你应该试试这个:
MyFirstBlock:
mov ah, 09h ; Bored stuff...
mov cx, 80h ; 80h covers only the text and 1000h the entire remain screen
mov al, 20h ; More bored stuff...
mov bl, 4fh ; This is the color, try with CMD, Ex. 00 is black-black.
int 10h ; Call VGA to display block
然后,用call MyFirstBlock调用它,这是显示单个块的代码,使用你的打印功能:
mov si, MyEmptyText
call YouFunctionThatPrintTTYCharacters
MyEmptyText: db ' ', 0
完整代码:
MyFirstBlock:
mov ah, 09h ; Bored stuff...
mov cx, 80h ; 80h covers only the text and 1000h the entire remain screen
mov al, 20h ; More bored stuff...
mov bl, 4fh ; This is the color, try with CMD, Ex. 00 is black-black.
int 10h ; Call VGA to display block
; call MyFirstBlock is useless so dont put it!, until you are in a diferent file...
mov si, MyEmptyText
call YouFunctionThatPrintTTYCharacters
MyEmptyText: db ' ', 0
%INCLUDE "SomeBasicFunctions.asm"
我等待这将成为您问题的答案。
哦,int 33h,我认为他只在 MS-DOS 中工作,或者不是?,我从未使用过它,而是使用它。