Any guide or small example on how to debug with bochs, specially the Realmode bootloader assembly code?
Another question I got is about segments in Real Mode. I've the bootloader stage1/stage2 code in one file, and it's working really well. Tell me if I'm wrong about calling functions in other segments. In the main stage I load the second sector and jump to the code which is working well.
At the beginning of sector 2 my code is:
Code: Select all
;; **************************************************************
;;
;; STAGE 2 at sector 2 of FD
;;
;; **************************************************************
org LDADDR_OFFSET ; sector2 loaded at 1000:0000
jmp start2
;; -- definitions for st2 ---
EXECMSG db 'Starting up...',0
BASE10 dw 0010
DIGIT db 5 dup (0)
start2: mov ax, LDADDR_SEGMENT
mov ds, ax
mov ax, 15995
call dispint
jmp $
Can I call the old function at CS:0000 or I should redefine the function for
the new bootloader stage?
I hope you understand.
Thank you very much for your help.
[/code]