0
BITS 16
start:
mov ax, 07C0h
add ax, 288
mov ss, ax
mov sp, 4096
mov ax, 07C0h
mov ds, ax
mov si, boot_message
call print_string
jmp $
boot_message db 'test1', 0
print_string:
mov ah, 0Eh
.repeat:
lodsb
cmp al, 0
je .done
int 10h
jmp .repeat
.done:
ret
times 510-($-$$) db 0
dw 0xAA55
我試圖用每行3個字符串替換字符串'測試1'。 輸出應該類似於:我需要幫助將一個字符串添加到.asm文件中的一個新行
test 1
test 2
test 3
你已經改變了太多的問題。如果你有其他問題,你應該單獨發佈。 –