我有以下代码,我尝试显示但我的调试器(AFD)继续调试,但没有显示任何内容。
[org 0x100]
mov ax, 0xb800
mov es, ax
mov di, 0
nextchar: mov word [es:di], 0x0720
add di, 2
cmp di, 40
jne nextchar
mov ax,0x0003 ; 80x25 text mode, 16 colors
int 0x10
答案 0 :(得分:1)
通过在退出前等待键盘键,让自己有机会看输出的内容:
[org 0x100]
mov ax, 0xb800
mov es, ax
mov di, 0
nextchar:
mov word [es:di], 0x0741 ; Will show 20x "A"
add di, 2
cmp di, 40
jne nextchar
mov ah,0x00
int 0x16 ; Wait for a key
mov ax,0x0003 ; 80x25 text mode, 16 colors
int 0x10