Download presentation
Presentation is loading. Please wait.
1
The JUMP GROUP Unconditional Jump (JMP).
a. Short Jump (relative jump). They can be moved along with their related software, to any location in the current code segment without a change. JMP SHORT NEXT JMP NEXT NEXT: 8-bit displacement b. Near Jump. it is similar to the short jump, except that the distance is farther. JMP START START: 16-bit displacement
2
c. Far Jump. obtains a new segment and offset address to accomplish the jump.(80286-P4). JMP FAR PTR START d. Jump with Register Operands. JMP AX e. Indirect Jump using an Index. JMP TABLE[SI]
3
2. Conditional Jump. JA NEXT jump if above JB NEXT jump if below JS NRXT jump if sign(-ve) LOOP. It is combination of a decrement CX and the JNZ. CLD MOV CX,200 MOV DI,F3A6H N1: IN AX,P8 STOSW LOOP N1 INT 5
4
Conditional LOOP. LOOPNE NEXT LOOPZ NEXT
5
PROCEDURES Near CALL. CALL SUM SUM:16-bit displacement Far CALL.
CALL SUB SUB:32-bit displacement CALL with Register Operand. CALL BX CALL DS ,SS,CS, or ES RET. RET
6
0000 CALL 0FFF 0003 ADD AX,BX ADD,AX,AX 1002 ADD BX,10 AND AX,BX RET
Memory 0000 CALL 0FFF 0003 ADD AX,BX ADD,AX,AX 1002 ADD BX,10 AND AX,BX RET AFFFF 00 Stack AFFFE SP AFFFD 03 11002 PROCEDURE 11001 11000 10003 SP before CALL=FFFF SS before CALL=A000 IP before CALL=0003 CS=1000 10002 0F 10001 FF 10000 CALL
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.