;; ;; Helper functions for various LOAD/VERIVY/SAVE routine variants (IEC / U64 / etc.) ;; lvs_handle_byte_load_verify: ;; XXX add VERIFY support ;; Save it and advance pointer. ;; As with our BASIC, we want to enable LOADing ;; anywhere in memory, including over the IO space. ;; Thus we have to use a helper routine in low memory ;; to do the memory access ;; Save byte under ROMs and IO if required php sei ;; XXX behavior should depend on address ldx #$33 stx $01 ldy #0 sta (STAL),y ldx #$37 stx $01 plp rts lvs_advance_pointer: ;; Advance pointer inc STAL bne lvs_success_end inc STAL+1 ;; If we wrap around to $0000, then this is bad. beq lvs_error_end * clc rts lvs_display_searching_for: lda MSGFLG bpl lvs_display_end jsr printf .byte $0D,"SEARCHING FOR ",0 ldy #$00 * cpy FNLEN beq lvs_display_end ldx #