small cleanup

This commit is contained in:
FeralChild64 authored and FeralChild64 committed 2021-01-26 00:03:07 +01:00
1 parent b5fb6441eb
commit 7875782ed2
3 files changed
+6 -13

No files matched your search

-3
View File
@@ -1,3 +0,0 @@
!macro NOP { eom }
-1
View File
@@ -3,4 +3,3 @@
!word Mon_Call !word Mon_Call
!word Mon_Break !word Mon_Break
!word Mon_Switch
+6 -9
View File
@@ -5,14 +5,16 @@
; ******************************* ; *******************************
!macro NOP { eom } ; ACME does not allow NOP for MEGA65 CPU
; XXX adapt all the addresses/constants! ; XXX adapt all the addresses/constants!
; ************************************************ ; ********************
; * Register storage for JMPFAR and JSRFAR calls * ; * Register storage *
; ************************************************ ; ********************
!addr Bank = 2 !addr Bank = 2 ; XXX get rid of it!
!addr PCH = 3 !addr PCH = 3
!addr PCL = 4 !addr PCL = 4
!addr SR = 5 !addr SR = 5
@@ -100,17 +102,12 @@
Mon_Break Mon_Break
; ******* ; *******
JSR PRIMM
!pet KEY_RETURN, "break",0 ; ; XXX what is '\a'?
JSR Print_Commands JSR Print_Commands
; pull BP, Z, Y, X, A,SR,PCL,PCH ; pull BP, Z, Y, X, A,SR,PCL,PCH
; 7 6 5 4 3 2 1 0 ; 7 6 5 4 3 2 1 0
LDX #7 LDX #7
BIT EXIT ; version
BPL @loop
DEX
@loop PLA @loop PLA
STA PCH,X STA PCH,X
DEX DEX