Skip to content

Commit

Permalink
remove unused reg, set CX=FFFF for alternate function select test
Browse files Browse the repository at this point in the history
  • Loading branch information
joncampbell123 committed Sep 24, 2019
1 parent 489639b commit 409bfd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test-fw/video/pc/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -2288,6 +2288,8 @@ int main() {
uint16_t bv=0,cv=0;

__asm {
xor cx,cx
dec cx
mov ah,0x12 ; Alternate function select - Get EGA INFO
mov bx,0xFF10
int 10h
Expand All @@ -2308,7 +2310,6 @@ int main() {
xor bx,bx
int 10h
mov bv,bx
mov cv,cx
}

LOG(LOG_DEBUG "INT 10h AX=0x1A00 Get Display Combination Code:\n"
Expand Down

0 comments on commit 409bfd9

Please sign in to comment.