Skip to content

Commit

Permalink
Updated 09.10.2022
Browse files Browse the repository at this point in the history
Updated C2MAN40 to detect current mode and stay in width 40 if this mode
is selected by a user
  • Loading branch information
Russian Bear Service Crew committed Oct 9, 2022
1 parent d7e00e9 commit 6f35bf3
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 12 deletions.
18 changes: 12 additions & 6 deletions Util/c2man.asm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
;
; Carnivore/Carnivore2 Cartridge's FlashROM Manager
; Copyright (c) 2015-2021 RBSC
; Version 2.12
; Version 2.13
;
; WARNING!!
; The program's code and data before must not go over #4000 and below #C000 addresses!
Expand Down Expand Up @@ -6312,11 +6312,11 @@ CLRSCR:
ld a,(VDPVER)
or a ; v991x?
jr z,Set40

if MODE=80
cp 2 ; v995x?
jr nc,Set80
ld a,(SCR0WID)
cp 41
jr nc,Set80
endif

ld a,#80
ld hl,#15C
Expand All @@ -6331,6 +6331,12 @@ CLRSCR:
cp #C3 ; MSX2?
jr nz,Set40

if MODE=40
ld a,(SCR0WID)
cp 41
jr c,Set40
endif

Set80:
ld a,80 ; 80 symbols for screen0
ld (SCR0WID),a ; set default width of screen0
Expand Down Expand Up @@ -7569,7 +7575,7 @@ I_MPAR_S:
;------------------ MODE 80 ------------------
PRESENT_S:
db 3
db "Carnivore2 Multi-Cartridge Manager v2.12",13,10
db "Carnivore2 Multi-Cartridge Manager v2.13",13,10
db "(C) 2015-2021 RBSC. All rights reserved",13,10,13,10,"$"
NSFin_S:
db "Carnivore2 cartridge was not found. Please specify its slot number - $"
Expand Down Expand Up @@ -7621,7 +7627,7 @@ NO_B_UPD:
;------------------ MODE 40 ------------------
PRESENT_S:
db 3
db "Carnivore2 Multi-Cartridge",10,13,"Manager v2.12",13,10
db "Carnivore2 Multi-Cartridge",10,13,"Manager v2.13",13,10
db "(C) 2015-2021 RBSC. All rights reserved",13,10,13,10,"$"
NSFin_S:
db "Carnivore2 cartridge was not found.",10,13
Expand Down
Binary file modified Util/c2man.com
Binary file not shown.
18 changes: 12 additions & 6 deletions Util/c2man40.asm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
;
; Carnivore/Carnivore2 Cartridge's FlashROM Manager
; Copyright (c) 2015-2021 RBSC
; Version 2.12
; Version 2.13
;
; WARNING!!
; The program's code and data before must not go over #4000 and below #C000 addresses!
Expand Down Expand Up @@ -6312,11 +6312,11 @@ CLRSCR:
ld a,(VDPVER)
or a ; v991x?
jr z,Set40

if MODE=80
cp 2 ; v995x?
jr nc,Set80
ld a,(SCR0WID)
cp 41
jr nc,Set80
endif

ld a,#80
ld hl,#15C
Expand All @@ -6331,6 +6331,12 @@ CLRSCR:
cp #C3 ; MSX2?
jr nz,Set40

if MODE=40
ld a,(SCR0WID)
cp 41
jr c,Set40
endif

Set80:
ld a,80 ; 80 symbols for screen0
ld (SCR0WID),a ; set default width of screen0
Expand Down Expand Up @@ -7569,7 +7575,7 @@ I_MPAR_S:
;------------------ MODE 80 ------------------
PRESENT_S:
db 3
db "Carnivore2 Multi-Cartridge Manager v2.12",13,10
db "Carnivore2 Multi-Cartridge Manager v2.13",13,10
db "(C) 2015-2021 RBSC. All rights reserved",13,10,13,10,"$"
NSFin_S:
db "Carnivore2 cartridge was not found. Please specify its slot number - $"
Expand Down Expand Up @@ -7621,7 +7627,7 @@ NO_B_UPD:
;------------------ MODE 40 ------------------
PRESENT_S:
db 3
db "Carnivore2 Multi-Cartridge",10,13,"Manager v2.12",13,10
db "Carnivore2 Multi-Cartridge",10,13,"Manager v2.13",13,10
db "(C) 2015-2021 RBSC. All rights reserved",13,10,13,10,"$"
NSFin_S:
db "Carnivore2 cartridge was not found.",10,13
Expand Down
Binary file modified Util/c2man40.com
Binary file not shown.
Binary file modified Util/special/c2man.com
Binary file not shown.
Binary file modified Util/special/c2man40.com
Binary file not shown.

0 comments on commit 6f35bf3

Please sign in to comment.