It is currently Sat Sep 21, 2019 6:33 pm

All times are UTC - 7 hours



Forum rules





Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: SuperFX LMS instruction
PostPosted: Sun May 12, 2019 5:23 pm 
Offline

Joined: Sat Oct 06, 2018 10:15 am
Posts: 25
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?


Top
 Profile  
 
PostPosted: Sun May 12, 2019 5:54 pm 
Online

Joined: Fri Feb 24, 2012 12:09 pm
Posts: 1009
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).

_________________
homepage - patreon


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group