; Function defined on pp272-273 of C64 Programmers Reference Guide ;; IEC reference at http://www.zimmers.net/anonftp/pub/cbm/programming/serial-bus.pdf ;; Definition of function from Compute's Mapping the 64 p231 ;; Expects that SETLFS and SETNAM are called before hand. ;; $YYXX = load address. ;; (ignored if SETLFS channel = 1, i.e., like ,8,1) ;; If A=1 then VERIFY instead of LOAD. ;; On exit, $YYXX is the highest address into which data ;; will have been placed. ;; Searching through Compute's Mapping the 64, we find the following ;; things are used: ;; $93 = kernal_load_or_verify_flag ;; $AC = current pointer for loading/verifying ;; $C1 = similar to the above. load: ;; Are we loading or verifying? sta kernal_load_or_verify_flag ;; Store start address of LOAD stx load_save_start_ptr+0 sty load_save_start_ptr+1 ;; We need our helpers to get to filenames under ROMs or IO area jsr install_ram_routines ;; Disable IRQs, since timing matters! SEI ;; Display SEARCHING FOR jsr printf .byte "SEARCHING FOR ",0 ldy #$00 print_filename_loop: cpy current_filename_length beq + ldx #