lda #$01 ldx $ba bne _last_used_drive ldx #$08 _last_used_drive: ldy #$00 jsr $ffba lda #3 ldx #<_file_name ldy #>_file_name jsr $ffbd jsr $ffc0 ;open