Skip to content

Commit 4a557cf

Browse files
committed
Fix CGA SNOW_REMOVE=0 for modes 0,2 and 5
1 parent b7bc4ae commit 4a557cf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/GLABIOS.ASM

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6778,8 +6778,8 @@ INT_10_8_FAST:
67786778

67796779
INT_10_8_CHK_CGA:
67806780
SHR AL, 1 ; Video modes: 0=40,1=80,2=low-gfx,3=hi-gfx
6781-
IF CGA_SNOW_REMOVE GT 0
67826781
CMP AL, 1 ; is CGA modes 2,3?
6782+
IF CGA_SNOW_REMOVE GT 0
67836783
JNE INT_10_8_NOT_CGA ; jump if not
67846784

67856785
;----------------------------------------------------------------------------;
@@ -6796,7 +6796,7 @@ INT_10_8_CHK_CGA:
67966796
INT_10_8_NOT_CGA:
67976797
ENDIF
67986798

6799-
JB INT_10_8_FAST ; if not GFX modes 4,5,6 jump to fast text
6799+
JBE INT_10_8_FAST ; if not GFX modes 4,5,6 jump to fast text
68006800
; fall through to graphics
68016801

68026802
;----------------------------------------------------------------------------;
@@ -6986,8 +6986,8 @@ INT_10_9_FAST:
69866986

69876987
INT_10_CHK_CGA:
69886988
SHR AL, 1 ; group remaining video modes
6989-
IF CGA_SNOW_REMOVE GT 0
69906989
CMP AL, 1 ; is CGA modes 2,3?
6990+
IF CGA_SNOW_REMOVE GT 0
69916991
JNE INT_10_A_NOT_CGA ; jump if not
69926992

69936993
;----------------------------------------------------------------------------;
@@ -7035,7 +7035,7 @@ INT_10_9_CGA_LOOP:
70357035
INT_10_A_NOT_CGA:
70367036
ENDIF
70377037

7038-
JB INT_10_9A_FAST ; is not GFX modes 4,5,6 jump to fast text
7038+
JBE INT_10_9A_FAST ; is not GFX modes 4,5,6 jump to fast text
70397039
POP AX ; restore AX and fall through to graphics
70407040

70417041
;----------------------------------------------------------------------------;

0 commit comments

Comments
 (0)