From 97d5670bacdf4c248cb9f2f7e95b8d747821bd37 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Tue, 7 Jun 2016 09:15:10 -0500 Subject: [PATCH] updated ud.sh ^^ --- src/lib/modex16.c | 33 +++------------------------------ src/lib/modex16.h | 1 - 2 files changed, 3 insertions(+), 31 deletions(-) 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 -- 2.39.5