BIOS now attached to BOOTCPM command, fixed another screen editor bug
This commit is contained in:
1 parent
6935ece386
commit
94a699119a
10 files changed
+151
-34
No files matched your search
@@ -0,0 +1,41 @@
|
||||
|
||||
;; #IMPORT# KERNAL_0 = KERNAL_0_combined.sym
|
||||
;; #IMPORT# KERNAL_C = KERNAL_C_combined.sym
|
||||
|
||||
;
|
||||
; Definitions for calling MEGA65 segment KERNAL_0 routines from ZVM_1
|
||||
;
|
||||
|
||||
;; #ALIAS# CHROUT = KERNAL_C.proxy_Z1_CHROUT
|
||||
|
||||
;; #ALIAS# return_from_interrupt = KERNAL_0.return_from_interrupt
|
||||
|
||||
|
||||
; 'Print immediate', original implementation by Mike Barry, adapted to 65CE02, modified to preserve .Y
|
||||
; 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
|
||||
phy
|
||||
+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
|
||||
ply
|
||||
lda PTR2
|
||||
pha
|
||||
lda PTR1
|
||||
pha
|
||||
|
||||
rts
|
||||
Reference in new issue
Block a user