【发布时间】:2021-11-10 18:35:06
【问题描述】:
【问题讨论】:
-
@fuz 这是新问题。感谢您的帮助
-
请勿发布代码图片。反正 int21/02 不带颜色。
-
请提供不带图片的代码
标签: assembly colors x86-16 tasm
【问题讨论】:
标签: assembly colors x86-16 tasm
您可以使用 BIOS.WriteCharacterAndAttribute 函数 09h。
mov cx, 1 ; ReplicationCount
mov bx, 00B2h ; BH DisplayPage 0, BL Attribute 178
mov ax, 092Ah ; AH Function 09h, AL Character 42
int 10h
与DOS功能02h不同的是光标不前进。为此,您可以附加 BIOS.Teletype 函数 0Eh
mov cx, 1 ; ReplicationCount
mov bx, 00B2h ; BH DisplayPage 0, BL Attribute 178
mov ax, 092Ah ; AH Function 09h, AL Character 42
int 10h
mov ah, 0Eh
int 10h
【讨论】: