在Assembly Fasm中更改字符颜色

时间:2015-02-28 17:39:35

标签: assembly fasm

我需要将打印字符设为绿色,但我的代码不会这样做。如何使用BIOS进行此操作? (不是DOS)。

mov ax, 9ch
mov ss, ax
mov sp, 4096d
mov ax, 7c0h
mov ds, ax
;--------------
mov ah, 0eh
mov bx, 000Ah  ;Trying to make green character color but this is not working
mov al, 'M'
int 10h
jmp $
;--------------
times 510-($-$$) db 0
dw 0xAA55

0 个答案:

没有答案