• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Site › dolphin-emu.org articles v
1 2 3 Next »

Game Modification: 60 FPS Hacks and Patches
View New Posts | View Today's Posts

Pages (84): « Previous 1 ... 26 27 28 29 30 ... 84 Next »
Jump to page 
Thread Rating:
  • 3 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Game Modification: 60 FPS Hacks and Patches
10-19-2016, 10:53 AM
#271
Meowmaritus Offline
Zelda Enthusiast
***
Posts: 111
Threads: 0
Joined: Oct 2016
(10-19-2016, 10:39 AM)gamemasterplc Wrote: it would actually be lis r20, 0x803A because load and store offsets are signed.
That makes no sense. The signed offset is the offset provided in the actual load and store instructions. The value of the base address is unsigned.
I can confirm that lis r20, 0x8039 works perfectly.
Find
Reply
10-19-2016, 11:08 AM
#272
Zerowalker Offline
Member
***
Posts: 208
Threads: 19
Joined: Jan 2016
What code generator do you use, CodeWrite as said just tells me like "Address isn't between blabla and blabla"
Find
Reply
10-19-2016, 11:08 AM
#273
gamemasterplc Offline
Above and Beyond
*******
Posts: 1,111
Threads: 7
Joined: Mar 2016
Your assembler is probably adding 0x88A0 before the store operation.
Website is gamemasterplc.com. Youtube Channel is gamemasterplc.
Website Find
Reply
10-19-2016, 11:10 AM
#274
gamemasterplc Offline
Above and Beyond
*******
Posts: 1,111
Threads: 7
Joined: Mar 2016
Pikmin 1.1 NTSC-U 60 FPS Code:
0404817C 38000001
Website is gamemasterplc.com. Youtube Channel is gamemasterplc.
Website Find
Reply
10-19-2016, 11:12 AM
#275
Zerowalker Offline
Member
***
Posts: 208
Threads: 19
Joined: Jan 2016
My code is as follows:

mflr r0
li r21, 1
lis r20, 0x8039
stw r21, 0x88A0(r20)
Find
Reply
10-19-2016, 11:12 AM (This post was last modified: 10-19-2016, 11:13 AM by gamemasterplc.)
#276
gamemasterplc Offline
Above and Beyond
*******
Posts: 1,111
Threads: 7
Joined: Mar 2016
The 0x8039 will not work if the ori r20, r20, 0x88A0 operation is not included before the store and the store offset is changed to 0x0.
Website is gamemasterplc.com. Youtube Channel is gamemasterplc.
Website Find
Reply
10-19-2016, 11:14 AM
#277
Zerowalker Offline
Member
***
Posts: 208
Threads: 19
Joined: Jan 2016
The one that gives me errors in the code generator is actually:
stw r21, 0x88A0(r20)
Find
Reply
10-19-2016, 11:16 AM
#278
gamemasterplc Offline
Above and Beyond
*******
Posts: 1,111
Threads: 7
Joined: Mar 2016
I posted a working code for Pikmin 1 just a few posts back.
Website is gamemasterplc.com. Youtube Channel is gamemasterplc.
Website Find
Reply
10-19-2016, 11:16 AM
#279
Meowmaritus Offline
Zelda Enthusiast
***
Posts: 111
Threads: 0
Joined: Oct 2016
(10-19-2016, 11:12 AM)Zerowalker Wrote: My code is as follows:

mflr r0
li r21, 1
lis r20, 0x8039
stw r21, 0x88A0(r20)

Oh duh, the 0x88A0 is too large for a signed value (max is probably 7FFF for positive value)

Anyways you just have to load the whole address into r20:
li r20 0x88A0
oris r20, r20, 0x8039
The order you load which half of the number doesn't matter. This is the same functionality:
lis r20, 0x8039
ori r20, r20, 0x88A0
Anyways, since the address is exactly what you want you just specify 0 for the offset on the store instruction:
stw r20, 0 (r20)
Find
Reply
10-19-2016, 11:17 AM (This post was last modified: 10-19-2016, 11:19 AM by gamemasterplc.)
#280
gamemasterplc Offline
Above and Beyond
*******
Posts: 1,111
Threads: 7
Joined: Mar 2016
If you want a negative offset include the 0xFFFF before the signed part.
Website is gamemasterplc.com. Youtube Channel is gamemasterplc.
Website Find
Reply
« Next Oldest | Next Newest »
Pages (84): « Previous 1 ... 26 27 28 29 30 ... 84 Next »
Jump to page 


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 2 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode