I'm making book loader for 1week. help me
Posted: Thu May 27, 2004 8:59 pm
I'm making very simple boot loader, which just print '====' out
But It does work, I dont know why..
The code is from tute that is in ORCR
Let me show my source code at first.
[ORG 0]
jmp 07C0h:start ; Goto segment 07C0
start:
; Update the segment registers
mov ax, cs
mov ds, ax
mov es, ax
mov ah, 9 ; Print "===="
mov al, '=' ;
mov bx, 7 ;
mov cx, 4 ;
int 10h ;
hang: ; Hang!
jmp hang
times 510-($-$$) db 0
dw 0AA55h
I made img file with 'WinImage' And tested with VMWare
It is expected to print '====' and then hang
But It doesn't print out and noting shown in VMWare
I'm working on Windows XP Professional
What do I do to get expected result?
Some others say this code looks doesn't reach entry point, which is start: in my source code and I need to debug it.
But I even don't know how to debug like in CodeView by using trace..
Thank you in advance..~
But It does work, I dont know why..
The code is from tute that is in ORCR
Let me show my source code at first.
[ORG 0]
jmp 07C0h:start ; Goto segment 07C0
start:
; Update the segment registers
mov ax, cs
mov ds, ax
mov es, ax
mov ah, 9 ; Print "===="
mov al, '=' ;
mov bx, 7 ;
mov cx, 4 ;
int 10h ;
hang: ; Hang!
jmp hang
times 510-($-$$) db 0
dw 0AA55h
I made img file with 'WinImage' And tested with VMWare
It is expected to print '====' and then hang
But It doesn't print out and noting shown in VMWare
I'm working on Windows XP Professional
What do I do to get expected result?
Some others say this code looks doesn't reach entry point, which is start: in my source code and I need to debug it.
But I even don't know how to debug like in CodeView by using trace..
Thank you in advance..~