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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/27/01 08:01
Read: times


 
#15177 - RE: 8052 - machine language
LCALL anywhere

puts a 16-bit value in the stack. This value is the address of the instruction that follows the LCALL, that is, where the subroutine must return to.
You can write a simple soubroutine,

anywhere:
<your code>

to determine the PC value before LCALL was executed (substract 3).

This trick is frequently used when setting breakpoints for debugging.

Regards,

Alfredo del Rio.


List of 7 messages in thread
TopicAuthorDate
8052 - machine language            01/01/70 00:00      
RE: 8052 - machine language            01/01/70 00:00      
RE: 8052 - machine language            01/01/70 00:00      
RE: 8052 - machine language            01/01/70 00:00      
RE: 8052 - machine language            01/01/70 00:00      
RE: 8052 - machine language            01/01/70 00:00      
RE: 8052 - machine language            01/01/70 00:00      

Back to Subject List