From c887100262b10fe9814eee05aaeba763202afe9c Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Wed, 22 Jun 2022 00:27:52 +0300 Subject: [PATCH] back to single-buffer to save space. modern machines are fast enough to draw everything in vblank --- bootcard.asm | 32 +++++++++----------------------- 1 file changed, 9 insertions(+), 23 deletions(-) diff --git a/bootcard.asm b/bootcard.asm index ed23d79..ddf50cd 100644 --- a/bootcard.asm +++ b/bootcard.asm @@ -52,24 +52,19 @@ start: xor ax, ax mov ax, 13h int 10h - push 1000h + push 0a000h pop es + setcur 10, 0 + mov si, str1 + call textout + setcur 12, 1 + mov si, str2 + call textout + sti mainloop: - call drawbg - - push ds - push es - push es - pop ds - push 0a000h - pop es - xor di, di - xor si, si - mov cx, 32000 - mov dx, 3dah .invb: in al, dx and al, 8 @@ -78,16 +73,7 @@ mainloop: and al, 8 jz .novb - rep movsw - pop es - pop ds - - setcur 10, 0 - mov si, str1 - call textout - setcur 12, 1 - mov si, str2 - call textout + call drawbg jmp mainloop -- 1.7.10.4