TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: LEIGH MORRESI
from: CRAIG HART
date: 1997-09-14 19:50:00
subject: Bootable code.. offsets

Hi..
 LM> Well im getting closer to fully understanding bootable code. Ive
 LM> looked at some examples and they say that the DATA offset has to be
 LM> 7C00h, now my problem is...
 LM> mov ah,09 mov dx,OFFSET string int 21h
 LM> string db 'biteme$'
 LM> ok now, for you outthere, this just prints a string onto the screen,
 LM> but obvoisuly it wont work, becuase the offset is not at 7C00h,
 LM> so to correct this problem, would i have to change the DATA seg to
what happens all depends on your ORG statement.
If you code ORG 7c00h then your offsets will be calculated correctly, without 
need of manual adjustment. I have plently of bootsector code, let me know if 
you want any, for examples.
--- FMail/386 1.20+
---------------
* Origin: Comms Barrier BBS +61.3.9585.1112, +61.3.9583.6119 (3:632/533)

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