example problems from the Mazidi's textbook

Thread Starter

PG1995

Joined Apr 15, 2011
832
Hi :)

Thanks for giving it a look. But I have solved it. I will continue this thread with related problems.

Regards
PG
 

MrChips

Joined Oct 2, 2009
30,806
I am not familiar with the 8051 instruction set.
But maybe here is the answer.
There are three types of addressing for CALL and JMP:

Short - 1 byte address (relative) -128 +127 addressing range
Absolute - 1 byte address -> 11-bit address
Long - 2 byte address - > 16-bit address


So your question is answered in the AJMP instruction.
 

Markd77

Joined Sep 7, 2009
2,806
Some bits of the instruction are used for the instruction itself, eg ACALL is the first 5 bits of the first byte, which leaves 3 free bits to use with the second byte for the address.
<ed> Not quite read your question properly, I don't know why SCALL doesn't use the extra bits </ed>.
 
Top