SuperFX LMS instruction

Discussion of hardware and software development for Super NES and Super Famicom.

Moderator: Moderators

Forum rules
  • For making cartridges of your Super NES games, see Reproduction.
Post Reply
Posts: 28
Joined: Sat Oct 06, 2018 10:15 am

SuperFX LMS instruction

Post by noyen1973 » Sun May 12, 2019 5:23 pm

I'm a bit confused by the format of the instruction LMS. The description says LMS Rn,(yy) where n=0~15, yy=0~510. The problem is (yy) which is suppose to be an address divided by 2 to get a byte value in the range of 0-255. When you use a debugger will the debugger show the actual byte value or the expanded address? Vice versa, in the assembling process would the source line LMS R3,(200) be converted to 3D A5 65 or would it just be straight 3D A5 C8 and leave it up to the coder to divide the address by 2?

Posts: 1130
Joined: Fri Feb 24, 2012 12:09 pm

Re: SuperFX LMS instruction

Post by nocash » Sun May 12, 2019 5:54 pm

You mean 3D A3 64 for LMS R3,(200) ?

Yes, Assemblers/disassemblers should do it that way. But some might chose to use whatever more confusing syntax. If you have a disassembler then you can check for yourself, it should display the disassembled instruction, and also the hex bytes (either in the code window, or somewhere else).

Post Reply