0
我试图勾搭一些组件不显示,创建操作系统。当该代码被加载进入bootloader,它是假设输出“这是我很酷的新的操作系统!哇噢!ChigginsOS”但现在它说,减去“Chiggins”结尾。我哪里错了?字符串在装配
BITS 16
start:
mov ax, 07C0h
add ax, 288
mov ss, ax
mov sp, 4096
mov ax, 07C0h
mov ds, ax
mov si, text_string
call print_string
mov si, name_string
call print_string
jmp $
text_string db 'This is my cool new OS! Woohoo!',0
name_string db 'ChigginsOS',0
;---------------------------------------------------------------------------------------
exit:
ret
;---------------------------------------------------------------------------------------
print_string:
mov ah, 0Eh
.repeat:
lodsb
cmp al, 0
je .done
int 10h
jmp .repeat
.done:
call exit
;---------------------------------------------------------------------------------------
times 510-($-$$) db 0
dw 0xAA55