1 #if !defined(USE_NASM) && !defined(USE_AS86)
\r
10 #define BLOC(x) byte ptr x
\r
11 #define WLOC(x) word ptr x
\r
12 #define JMP(x) jmp x
\r
13 #define STRDECL(s) .ascii s
\r
14 #define SEGCS seg cs
\r
15 #define SEGES seg es
\r
16 #define ALIGN(x) .align x
\r
17 #define SPACE(x) .space x
\r
22 #define BCON(x) byte x
\r
23 #define WCON(x) word x
\r
25 #define BLOC(x) byte [x]
\r
26 #define WLOC(x) word [x]
\r
27 #define JMP(x) jmp short x
\r
28 #define STRDECL(s) db s
\r
31 #define ALIGN(x) align x, db 0
\r
32 #define SPACE(x) times x db 0
\r
58 ; rozmery prvniho HD
\r
65 ; prvi stopa obsahuje bootrom, tak ji natahneme do RAM
\r
72 mov bx, CON(ROMLOAD)
\r
78 ; hromada kodu podle zdrojaku netboot
\r
89 mov word ptr [ di ], CON(0x5a5a)
\r
90 mov byte ptr [ di + 2 ], CON(0x50)
\r
91 mov word ptr [ di + 0x10 ], CON(0xFFFF)
\r
92 mov word ptr [ di + 0x12 ], CON(0xFFFF)
\r
95 mov word [ di ], CON(0x5a5a)
\r
96 mov byte [ di + 2 ], CON(0x50)
\r
97 mov word [ di + 10h ], CON(0xFFFF)
\r
98 mov word [ di + 12h ], CON(0xFFFF)
\r
101 ; navratova adresa, kdyby nezabrala ROM
\r
103 mov WLOC(OfsErr), CON(RomErr)
\r
106 mov ax, CON(ROMLOAD)
\r
109 ; kouzelny jump....
\r
114 push word ptr [ si + 0x1a ] ; ...do bootrom v RAM
\r
117 push word [ si + 0x1a ] ; ...do bootrom v RAM
\r
123 mov si, LOC(OfsErr)
\r
144 STRDECL('HD Net Loader v1.0 (c) poli 1999')
\r
148 Error: STRDECL('Error load from HD !')
\r
150 RomErr: STRDECL('ROM Error !')
\r
160 times 510-($-$$) db 0
\r