SuperFX LMS instruction

This is an archive of a topic from NESdev BBS, taken in mid-October 2019 before a server upgrade.
View original topic
SuperFX LMS instruction
by on (#238744)
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?
Re: SuperFX LMS instruction
by on (#238745)
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).