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

Hail!
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.
   No. It must assemble to a short jump to the next insn. -- $ points to the 
offset of "jmp", not to the next insn., and the short jump insn. is 2 bytes 
long.
 TH> It is considered poor programming practice with the 86xx family, but
                                                         ^^^^
   What do you mean?
 TH> was routinely done with the 65xx processors. You can safely bet
 TH> that folks who still do this used to program Commodors. [grin]
   It's been widely used to insert a delay between 2 I/O port accesses on the 
80x86 PCs until 486/P5 have appeared.
Farewell!
--- GoldED 2.50+
---------------
* Origin: Five Green Queens & Jean (FidoNet 2:5020/157.59)

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™.