added some basic proxies for monitor

This commit is contained in:
FeralChild64 committed 2020-12-14 17:55:06 +01:00
1 parent 112895bdfb
commit 2aa7acf240
6 files changed
+58 -4

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
; 'Print immediate', original implementation by Mike Barry, adapted to 65CE02
; see http://www.6502.org/source/io/primm.htm
PRIMM:
pla ; get low part of (string address-1)
sta PTR1
pla ; get high part of (string address-1)
sta PTR2
+bra @2
@1:
jsr CHROUT ; output a string char
@2:
inc PTR1 ; advance the string pointer
bne @3
inc PTR2
@3:
ldy #$00
lda (PTR1), y ; get string char
bne @1 ; output and continue if not NUL
lda PTR2
pha
lda PTR1
pha
rts