X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fmodex16.c;h=02313272d9855ae8da34aff0a7aa749e178b9e7b;hb=791064641005d3f1f4df55927d28f6eb2db85fe4;hp=ac99e8c9bfd38a8f3c9788e3e2a76594b63ef6b1;hpb=8ad7dc4e3a8f8fded3805b3d035932f6dec7975e;p=16.git diff --git a/src/lib/modex16.c b/src/lib/modex16.c index ac99e8c9..02313272 100755 --- a/src/lib/modex16.c +++ b/src/lib/modex16.c @@ -321,6 +321,14 @@ modexClearRegion(page_t *page, int x, int y, int w, int h, byte color) { } __asm { + PUSHF + PUSH ES + PUSH AX + PUSH BX + PUSH CX + PUSH DX + PUSH SI + PUSH DI MOV AX, SCREEN_SEG ; go to the VGA memory MOV ES, AX MOV DI, poffset ; go to the first pixel @@ -354,6 +362,14 @@ modexClearRegion(page_t *page, int x, int y, int w, int h, byte color) { ADD DI, nextRow ; go to the next row DEC h JNZ SCAN_START + POP DI + POP SI + POP DX + POP CX + POP BX + POP AX + POP ES + POPF } }