Memory-Mapped Graphics Output
问题 I'm exploring into drawing pixels and lines, using Memory-Mapped Graphics. I'm using TASM in Textpad, in Windows. When I click run the whole screen turns blue and that's it, no pixels drawn. .model small .stack .data saveMode db ? xVal dw ? yVal dw ? .code main proc mov ax, @data mov ds, ax call SetVideoMode call SetScreenBackground call Draw_Some_Pixels call RestoreVideoMode mov ax, 4c00h int 21h main endp SetScreenBackground proc mov dx, 3c8h mov al, 0 out dx, al mov dx, 3c9h mov al, 0 out