icl 'library.s' icl 'kerneldb.inc' icl 'cio.inc' org $2c00 .proc main lda _menu_2ndtime beq first_time jsr _waitKeyPrompt first_time: lda #0 sta _test_passed sta _test_failed sta _test_skipped ;close list file IOCB if it is already open ldx #$20 lda #CIOCmdClose sta iccmd,x jsr ciov ;print banner jsr printBanner ;do countdown lda #$ff sta ch sta ch1 lda #5 waitloop: pha sta d1 jsr _log_imprintf dta c"Press key for options... %d",0 ;wait for a key for one second lda #50 ldx pal cpx #$0f sne:lda #60 clc adc rtclok+2 waitloop2: ldx ch inx beq nokey mva #$ff ch jsr _log_imprint dta $9c,c"Loading option module...",$9b,0 ldx #>fname_options lda #(str6502) dta >(str65C816_16) dta >(str65C02) dta >(str65C816_24) str6502: dta c"6502",0 str65C02: dta c"65C02",0 str65C816_16: dta c"65C816[16]",0 str65C816_24: dta c"65C816[24]",0 .endp run main