Re: Jumping into middle of instruction




mybwpp asked:

Can we categorize this technique of jumping into middle of
instructions, as 'self modifying code'?

No, SMC is a different story.

start:
; this works only in true RealMode!
cmp al,80h
jns L1:
mov word CS:[L2],9090h ;two NOPs
L1:
.... ;put some code in here to avoid prefetched remains
mov ax...
add ax,cx
L2:
JC L3 ;this two bytes may become NOPS
....

__
wolfgang


.



Relevant Pages