|
It's been a long time since I had to do any assembler, so I might be on the wrong track here, but as far as I can remember:-
PROC WAIT_1 FAR pusha push es mov dx, [word 40H:006EH] 'Move the word at this address into DX mov [startDisplay], dx 'Move the contents of DX into the address startDisplay continue: mov dx, [word 40H:006EH] 'Move the word at this address into DX (nb, DX now = startDisplay sub dx, [startDisplay] 'submit startDisplay from DX, which should give 0 cmp dx, 12H 'compare dx with 12h je return 'if dx = 12 (which it can't because it's 0) goto return jmp continue 'go back to continue, which performs EXACTLY the same steps again with the same outcome return: pop es popa ret 4 ENDP WAIT_1
This post has been edited by rjm2k: May 21 2003, 10:44 PM
|