From: sparky4 Date: Tue, 7 Jun 2016 14:15:10 +0000 (-0500) Subject: updated ud.sh ^^ X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=97d5670bacdf4c248cb9f2f7e95b8d747821bd37;p=16.git updated ud.sh ^^ --- diff --git a/src/lib/modex16.c b/src/lib/modex16.c index e3e557bf..fb54edf7 100755 --- a/src/lib/modex16.c +++ b/src/lib/modex16.c @@ -1140,36 +1140,9 @@ modexWaitBorder() { // spin } - while(!(inp(INPUT_STATUS_1) & 8)) { - //spin - } -} - -void bios_cls() { - VGA_ALPHA_PTR ap; - VGA_RAM_PTR rp; - unsigned char m; - - m = int10_getmode(); - if ((rp=vga_state.vga_graphics_ram) != NULL && !(m <= 3 || m == 7)) { - unsigned int i,im; - - im = (FP_SEG(vga_state.vga_graphics_ram_fence) - FP_SEG(vga_state.vga_graphics_ram)); - if (im > 0xFFE) im = 0xFFE; - im <<= 4; - for (i=0;i < im;i++) vga_state.vga_graphics_ram[i] = 0; - } - else if ((ap=vga_state.vga_alpha_ram) != NULL) { - unsigned int i,im; - - im = (FP_SEG(vga_state.vga_alpha_ram_fence) - FP_SEG(vga_state.vga_alpha_ram)); - if (im > 0x7FE) im = 0x7FE; - im <<= 4 - 1; /* because ptr is type uint16_t */ - for (i=0;i < im;i++) vga_state.vga_alpha_ram[i] = 0x0720; - } - else { - printf("WARNING: bios cls no ptr\n"); - } +// while(!(inp(INPUT_STATUS_1) & 8)) { +// //spin +// } } void modexprintmeminfo(video_t *v) diff --git a/src/lib/modex16.h b/src/lib/modex16.h index 0b30850d..3fe143c8 100755 --- a/src/lib/modex16.h +++ b/src/lib/modex16.h @@ -184,7 +184,6 @@ void modexprintbig(page_t *page, word x, word y, word t, word col, word bgcol, c void modexpdump(page_t *pee); void modexcls(page_t *page, byte color, byte *Where); void modexWaitBorder(); -void bios_cls(); void modexprintmeminfo(video_t *v); #endif