TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: SERGUEI SHTYLIOV
from: TIM HUTZLER
date: 1997-11-07 15:41:00
subject: Re: jmp $+2

SS>Hail!
SS>Once you wrote to Glenn Delahoy:
GD>>can someone tell me what this means please:
GD>>jmp $+2
TH>Jump over the next 2-bytes.
SS>No.
Now, now, friend - that is what I have said.
SS>It must assemble to a short jump to the next insn. -- $ points to
SS>the offset of "jmp", not to the next insn., and the short jump
SS>insn. is 2 bytes long.
Yep.
TH>It is considered poor programming practice with the 86xx family, but
SS>What do you mean?
A constant displacement is risky, since it may cause the system to
crash if the assembler options is set to use long displacements.
TH>was routinely done with the 65xx processors. You can safely bet
TH>that folks who still do this used to program Commodors. [grin]
SS>It's been widely used to insert a delay between 2 I/O port
SS>accesses on the 80x86 PCs until 486/P5 have appeared.
NOPs would seem better, IMHO.
SS>Farewell!
Best regards...
BTW, what is the nationallity of your name?
--- Maximus/2 3.01
---------------
* Origin: Madman BBS * Chico, California * 916-893-8079 * (1:119/88)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.