??? 08/09/05 09:28 Read: times |
#99025 - return address Responding to: ???'s previous message |
Abhishek Singh said:
i completely missunderstood DEC R0 DEC R0 DEC R0 MOV A,DPH XCH A,@R0 PUSH ACC INC R0 MOV A,DPL XCH A,@R0 PUSH ACC This piece of code pushes DPH and DPL onto the place of return address and at same time pushes this recovered return address on the top of stack. By this, code prepares itself for correct return from subroutine with final RET. Regards, Oleg |