X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fmodex16.c;h=6a5b27994f5549b8c1e80e141fab486627389662;hb=ab7178cd4cfa5f75d0388d0322db7512bc9a6f20;hp=ee7f156c0558ebc66cca31e31493d7f06e9224b1;hpb=1ff7522be9df2fd844d372e4a3f510a1bc9a5519;p=16.git diff --git a/src/lib/modex16.c b/src/lib/modex16.c index ee7f156c..6a5b2799 100755 --- a/src/lib/modex16.c +++ b/src/lib/modex16.c @@ -324,6 +324,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 @@ -357,6 +365,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 } }