boot sector

From: Golemancd_at_aol.com <(Golemancd_at_aol.com)>
Date: Tue Jan 22 06:23:37 2002

can anyone tell me if they can see the bug in this boot sector.
i cant seem to get it to work.


.386
 .model tiny

option segment:use16

cseg segment para public 'code'
startt:
mov ax,4000h
mov ds,ax
mov bx,0h
mov bp,0300h ;setup far pointer

mov word ptr ds:[bp],bx ;move from 0000:7c00 to 07c0:0000
mov bx,7c0h
mov word ptr ds:[bp]+2,bx
jmp dword ptr ds:[bp]

;start of my code

mov bx,0b800h ;set up video write
mov es,bx
xor bx,bx
mov ax,0731h
mov word ptr es:[bx+80],ax
stay: ;loop
nop
jmp stay

org 510
dw 0aa55h
cseg ends
end startt

Joee
Received on Tue Jan 22 2002 - 06:23:37 GMT

This archive was generated by hypermail 2.3.0 : Fri Oct 10 2014 - 23:34:57 BST