[FREELDR]

Fix syntax for ML

svn path=/trunk/; revision=52347
This commit is contained in:
Timo Kreuzer 2011-06-18 19:41:01 +00:00
parent 37a3e0c675
commit 8ea179b79b
3 changed files with 11 additions and 10 deletions

View file

@ -49,8 +49,8 @@
PUBLIC start PUBLIC start
start: start:
// This code is loaded at 0000:8000 so we have to // This code is loaded at 0000:F800 so we have to
// encode a jmp instruction to jump to 0000:8200 // encode a jmp instruction to jump to 0000:FA00
.byte HEX(e9), HEX(fd), HEX(01) .byte HEX(e9), HEX(fd), HEX(01)
// Now starts the extra boot code that we will store // Now starts the extra boot code that we will store
@ -217,7 +217,8 @@ IsFat12_Done:
ret ret
msgLoading: .asciz "Loading FreeLoader...", CR, LF msgLoading:
.ascii "Loading FreeLoader...", CR, LF, NUL
.org 510 // Pad to 510 bytes .org 510 // Pad to 510 bytes
.word HEX(0aa55) // BootSector signature .word HEX(0aa55) // BootSector signature

View file

@ -2,7 +2,7 @@
PnpBiosGetDeviceNodeCount: PnpBiosGetDeviceNodeCount:
mov ax, word ptr [BSS_PnpBiosDataSegment] mov ax, word ptr ds:[BSS_PnpBiosDataSegment]
push ax push ax
push cs push cs
@ -27,16 +27,16 @@ PnpBiosGetDeviceNodeCount:
PnpBiosGetDeviceNode: PnpBiosGetDeviceNode:
/* push bios segment */ /* push bios segment */
mov ax, word ptr [BSS_PnpBiosDataSegment] mov ax, word ptr ds:[BSS_PnpBiosDataSegment]
push ax push ax
/* push control flag */ /* push control flag */
push 1 push 1
/* push pointer to node buffer (segment/offset) */ /* push pointer to node buffer (segment/offset) */
mov ax, word ptr [BSS_PnpBiosBufferSegment] mov ax, word ptr ds:[BSS_PnpBiosBufferSegment]
push ax push ax
mov ax, word ptr [BSS_PnpBiosBufferOffset] mov ax, word ptr ds:[BSS_PnpBiosBufferOffset]
push ax push ax
/* push pointer to node number (segment/offset) */ /* push pointer to node number (segment/offset) */

View file

@ -20,11 +20,11 @@
PxeCallApi: PxeCallApi:
mov ax, [BSS_PxeBufferSegment] mov ax, word ptr ds:[BSS_PxeBufferSegment]
push ax push ax
mov ax, [BSS_PxeBufferOffset] mov ax, word ptr ds:[BSS_PxeBufferOffset]
push ax push ax
mov ax, [BSS_PxeFunction] mov ax, word ptr ds:[BSS_PxeFunction]
push ax push ax
call dword ptr ds:[BSS_PxeEntryPoint] call dword ptr ds:[BSS_PxeEntryPoint]
add esp, 6 add esp, 6