I find this in tutorial 4
msg db "Welcome to My Operating System!", 0
;*************************************************;
; Bootloader Entry Point
;*************************************************;
loader:
; Error Fix 1 ------------------------------------------
xor ax, ax ; Setup segments to insure they are 0. Remember that
mov ds, ax ; we have ORG 0x7c00. This means all addresses are based
mov es, ax ; from 0x7c00:0. Because the data segments are within the same
; code segment, null em.
mov si, msg
call Print
cli ; Clear all Interrupts
hlt ; halt the system
Why is it you say "Setup segments to insure they are 0. Remember that we have ORG 0x7c00. This means all addresses are based from 0x7c00:0. Because the data segments are within the same code segment, null em.
why all addresses are based from 0x7c00:0? I thought we loaded our bootloader at 0x7c00
Thanks in advance