汇编ah=2输出字符
.model small .stack 256 ;默认为1kb .data bufx db 66 bufy db 67 bufz db ? .code .startup mov al,bufx mov bl,bufy cmp al,bl ja next mov bufz,bl jmp done next: mov bufz,al jmp ans done: jmp ans ans: mov ah,2 mov dl,bufz int 21h .exit 0 end
.model small .code mov ax,10 mov cx,ax xor al,al again: add al,7 loop again mov ah,2 mov dl,al int 21h .exit 0 end