Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/22/04 14:28
Read: times


 
#77940 - RE: disassemble instructions with rel. addr.
Responding to: ???'s previous message
hi,

As Erik has already said, AJMP is "absolute jump". It is not relative one, it does jump into address within 2kb page of program space. The address is concatenated from:
- the high-order five bits of the PC (after incrementing the PC twice). They become A15..A11 of the address where the next instruction is placed at;
- opcode bits 7..5. They become A10..A8;
- and the second byte of the instruction (A7..A0).

Another question: what disassembler do you use? It should "calculate" address itself. Otherwise you need a calculator to do it yourself.

Regards,
Oleg

List of 8 messages in thread
TopicAuthorDate
disassemble instructions with rel. addr.            01/01/70 00:00      
   RE: disassemble instructions with rel. addr.            01/01/70 00:00      
   sorry            01/01/70 00:00      
      Real name            01/01/70 00:00      
         Thread re-opened            01/01/70 00:00      
   RE: disassemble instructions with rel. addr.            01/01/70 00:00      
      RE: disassemble instructions with rel. addr.            01/01/70 00:00      
   Try this            01/01/70 00:00      

Back to Subject List