TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: LEIGH MORRESI
from: JAN WAGEMAKERS
date: 1997-09-24 16:13:00
subject: Bootable code.. offsets

Hello Leigh,
Leigh Morresi wrote to All :
 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
 LM> mov dx,OFFSET string
 LM> int 21h
Int 21h is a DOS-interrupt, so, DOS must be loaded before you can use this
interrupt. Are you sure that this is the case in your program?
 LM> ok now, for you outthere, this just prints a string onto the screen,
 LM> but obvoisuly it wont work, because the offset is not at 7C00h, so to
 LM> correct this problem, would i have to change the DATA seg t
 LM> string db+7C00h
 LM> or would I have to chaange the to code to
 LM> mov dx,OFFSET+7C00h string
 LM> ???, what should happen here?
I have once written a new MBR for my computer. Maybe??? my MBR-code can be
useful for you to see how I have done some things. And maybe, you can add
corrections to my program, so we can both learn from each other :-)
/* (MBR.UUE)
begin 644 mbr.asm
M("`@("`@("`@("`@("`@("`@("`@("`@+FUO9&5L('1I;GD-"B`@("`@("`@
M("`@("`@("`@("`@("`@("YC;V1E#0H@("`@("`@("`@("`@("`@("`@("`@
M("!/4D<@,3`P:"`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@
M("`@("`[($]M(%1,24Y+("]T('1E(&MU;FYE;B!D;V5N("@N0T]-*0T*#0I3
M=&%R=#H-"B`@("`@("`@("`@("`@("`@("`@("`@(#L@,2X@4&%R=&ET:64@
M8F]O=&MO9&4@9V5L861E;B!O<"`P,#`P.C=#,#`-"B`@("`@("`@("`@("`@
M("`@("`@("`@($-,20T*("`@("`@("`@("`@("`@("`@("`@("`@6$]2("`@
M("!!6"Q!6`T*("`@("`@("`@("`@("`@("`@("`@("`@34]6("`@("!34RQ!
M6`T*("`@("`@("`@("`@("`@("`@("`@("`@34]6("`@("!34"PW0S`P:`T*
M("`@("`@("`@("`@("`@("`@("`@("`@34]6("`@("!322Q34`T*("`@("`@
M("`@("`@("`@("`@("`@("`@4%532"`@("!!6`T*("`@("`@("`@("`@("`@
M("`@("`@("`@4$]0("`@("!%4PT*("`@("`@("`@("`@("`@("`@("`@("`@
M4%532"`@("!!6`T*("`@("`@("`@("`@("`@("`@("`@("`@4$]0("`@("!$
M4PT*("`@("`@("`@("`@("`@("`@("`@("`@4U1)#0H@("`@("`@("`@("`@
M("`@("`@("`@("!#3$0-"B`@("`@("`@("`@("`@("`@("`@("`@($U/5B`@
M("`@1$DL,#8P,&@-"B`@("`@("`@("`@("`@("`@("`@("`@($U/5B`@("`@
M0U@L,#$P,&@-"B`@("`@("`@("`@("`@("`@("`@("`@(%)%4$Y:#0H@("`@
M("`@("`@("`@("`@("`@("`@("!-3U935PT*("`@("`@("`@("`@("`@("`@
M("`@("`@9&(@("`@("`P14%H+#%D:"PP-F@L,#!H+#`P:"`@("`@("`@("`@
M("`@("`@("`@.R!*35`@,#`P,#HP-C%$#0H@("`@("`@("`@("`@("`@("`@
M("`@("`[(#(N(%9E&]R(&1X+&1X#0H@("`@("`@("`@("`@("`@("`@("`@
M("!M;W8@97,L9'@@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@
M("`@("`[($53(#T@,"`]($-3#0H@("`@("`@("`@("`@("`@("`@("`@("!M
M;W8@87@L,#8P,&@@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@
M("`[($-L96%R('=I;F1O=PT*("`@("`@("`@("`@("`@("`@("`@("`@;6]V
M(&)H+#%E:"`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@
M.R!!='1R:6(-"B`@("`@("`@("`@("`@("`@("`@("`@(&UO=B!C>"QC&]R(&1X+&1X("`@("`@("`@
M("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@.R!Z970@9'@@9V]E9"!V
M;V]R($$Z#0H@("`@("`@("`@("`@("`@("`@("`@("!M;W8@8W@L,2`@("`@
M("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`[('IE="!C>"!G
M;V5D('9O;W(@03H@0F]O='-E:W1O<@T*("`@("`@("`@("`@("`@("`@("`@
M("`@:FUP($(T#0I(87)D1&ES:SH-"B`@("`@("`@("`@("`@("`@("`@("`@
M($U/5B`@("`@4TDL,#="16@-"B`@("`@("`@("`@("`@("`@("`@("`@($U/
M5B`@("`@0DPL,#1H#0I",SH-"B`@("`@("`@("`@("`@("`@("`@("`@($--
M4"`@("`@0EE412!05%(@6U-)72PX,&@@("`@("`@("`@("`@("`@("`@("`@
M(#L@9V$@;W`@>F]E:R!N86%R(&5E;B!G96QD:6=E('!A"Q+=7)S;W(@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@
M("`@(#L@3V5F("P@9V]E9"!D870@=V4@9&ET(&)E=V%A"Q; thanxs..
Have a nice day.                       - Jan Wagemakers - 
 
o_o Front 242 : Welcome to paradise. 
--- Terminate 5.00/Pro (*Linux-DosEmu-OpenDOS*)
---------------
* Origin: Linux : Een goed OS hoeft niet duur te zijn :-) (2:292/8133.23)

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