【发布时间】:2013-12-28 06:30:13
【问题描述】:
这是我的默认代码,它以白色打印。我知道如何在没有中断的情况下进行彩色打印,但我不想那样做。我想使用中断以任何其他颜色打印它。我该怎么做?任何的想法?提前致谢 我正在使用emu8086作为汇编程序
data segment
wellcome db 'Wellcome User !',13, 10 ,'$'
how db 'how are you',13,10,'$'
ends
stack segment
dw 64 dup(0)
ends
code segment
start:
push ax
mov ax,data
mov ds,ax
mov es,ax
pop ax
lea si, wellcome
call print
lea dx, how
call print
MOV AH, 00h;wait for any key
INT 16h
mov ax, 0x4c00; terminating
int 21h
print:
;printing the line
mov ah, 9
int 21h
ret
ends
【问题讨论】:
标签: assembly colors x86-16 16-bit