fixed 40/80 column screen detection in the monitor
This commit is contained in:
1 parent
247731bc72
commit
0d7d28dcfa
2 files changed
+34
No files matched your search
@@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
;; #ALIAS# SETMSG = KERNAL_0.SETMSG
|
;; #ALIAS# SETMSG = KERNAL_0.SETMSG
|
||||||
;; #ALIAS# STOP = KERNAL_0.STOP
|
;; #ALIAS# STOP = KERNAL_0.STOP
|
||||||
|
;; #ALIAS# SCREEN = KERNAL_0.SCREEN
|
||||||
|
|
||||||
;; #ALIAS# monitor_exit = KERNAL_0.m65_shadow_BZP
|
;; #ALIAS# monitor_exit = KERNAL_0.m65_shadow_BZP
|
||||||
|
|
||||||
|
|||||||
@@ -466,6 +466,8 @@ Fetch
|
|||||||
Mon_Memory
|
Mon_Memory
|
||||||
; ********
|
; ********
|
||||||
|
|
||||||
|
JSR Set_MODE_80
|
||||||
|
|
||||||
JSR Get_LAC ; get 1st. parameter
|
JSR Get_LAC ; get 1st. parameter
|
||||||
LDZ #16 ; default row count
|
LDZ #16 ; default row count
|
||||||
BCS @row ; no address
|
BCS @row ; no address
|
||||||
@@ -564,6 +566,8 @@ Mon_Set_Register
|
|||||||
Mon_Set_Memory
|
Mon_Set_Memory
|
||||||
; ************
|
; ************
|
||||||
|
|
||||||
|
JSR Set_MODE_80
|
||||||
|
|
||||||
JSR Get_LAC ; get 1st. parameter
|
JSR Get_LAC ; get 1st. parameter
|
||||||
BCS @exit
|
BCS @exit
|
||||||
JSR LAC_To_LPC ; Long_PC = row address
|
JSR LAC_To_LPC ; Long_PC = row address
|
||||||
@@ -654,6 +658,8 @@ Dump_4_Chars
|
|||||||
Dump_Row
|
Dump_Row
|
||||||
; ******
|
; ******
|
||||||
|
|
||||||
|
JSR Set_MODE_80
|
||||||
|
|
||||||
PHZ
|
PHZ
|
||||||
JSR Print_CR
|
JSR Print_CR
|
||||||
LDA #'>'
|
LDA #'>'
|
||||||
@@ -2805,3 +2811,30 @@ Mon_Help
|
|||||||
!pet 0
|
!pet 0
|
||||||
|
|
||||||
JMP Main
|
JMP Main
|
||||||
|
|
||||||
|
|
||||||
|
; *********
|
||||||
|
Set_MODE_80
|
||||||
|
; *********
|
||||||
|
|
||||||
|
; Not too effective, but allows to retain more original code
|
||||||
|
|
||||||
|
PHP
|
||||||
|
PHA
|
||||||
|
PHX
|
||||||
|
PHY
|
||||||
|
|
||||||
|
JSR SCREEN
|
||||||
|
CPX #80
|
||||||
|
BEQ @1
|
||||||
|
LDA #$FF
|
||||||
|
+skip_2_bytes_trash_nvz
|
||||||
|
@1 LDA #$00
|
||||||
|
STA MODE_80
|
||||||
|
|
||||||
|
PLY
|
||||||
|
PLX
|
||||||
|
PLA
|
||||||
|
PLP
|
||||||
|
|
||||||
|
RTS
|
||||||
Reference in new issue
Block a user