Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
joncampbell123 committed Jun 25, 2018
1 parent 25dbfc0 commit 170b0ed
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test-fw/video/pc/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ int test_pause(unsigned int secs) {
return 1;
}

void vga_dacmask_test(void) {
void vga_dacmask_test(unsigned char fgcolor) {
unsigned int o,i;

/* set palette index 255 to white */
Expand Down Expand Up @@ -290,7 +290,7 @@ void vga_dacmask_test(void) {
mov ah,0x0E ; teletype output
mov al,cv
xor bh,bh
mov bl,0xFF ; foreground color (white)
mov bl,fgcolor
int 10h
}
}
Expand Down Expand Up @@ -329,7 +329,7 @@ void vga_dacmask_test(void) {
mov ah,0x0E ; teletype output
mov al,cv
xor bh,bh
mov bl,0xFF ; foreground color (white)
mov bl,fgcolor
int 10h
}
}
Expand Down Expand Up @@ -573,7 +573,7 @@ void vga_test(unsigned int w,unsigned int h) {
vga_write_AC(VGA_AC_ENABLE|0x1F,0);
}

vga_dacmask_test();
vga_dacmask_test(0xFF);
}

#define EGARGB2(r,g,b) \
Expand Down Expand Up @@ -1028,7 +1028,7 @@ void ega_test(unsigned int w,unsigned int h) {
if (!brk) break;
}

vga_dacmask_test();
vga_dacmask_test(0x0F);
}
}

Expand Down Expand Up @@ -1207,7 +1207,7 @@ void cga4_test(unsigned int w,unsigned int h) {
test_pause(1);

if ((vga_state.vga_flags & (VGA_IS_MCGA|VGA_IS_VGA)))
vga_dacmask_test();
vga_dacmask_test(3);
}

void cga2_test(unsigned int w,unsigned int h) {
Expand Down Expand Up @@ -1337,7 +1337,7 @@ void cga2_test(unsigned int w,unsigned int h) {
test_pause(1);

if ((vga_state.vga_flags & (VGA_IS_MCGA|VGA_IS_VGA)))
vga_dacmask_test();
vga_dacmask_test(1);
}

void alphanumeric_test(unsigned int w,unsigned int h) {
Expand Down Expand Up @@ -1513,7 +1513,7 @@ void alphanumeric_test(unsigned int w,unsigned int h) {
test_pause(3);

if ((vga_state.vga_flags & (VGA_IS_MCGA|VGA_IS_VGA)))
vga_dacmask_test();
vga_dacmask_test(7);
}

int main() {
Expand Down

0 comments on commit 170b0ed

Please sign in to comment.