changed handling of external token lists

This commit is contained in:
FeralChild64 committed 2020-07-21 17:45:24 +02:00
1 parent 151b9440dd
commit 985a0882f6
29 files changed
+295 -316

No files matched your search

@@ -0,0 +1,42 @@
// #LAYOUT# STD * #TAKE
// #LAYOUT# * BASIC_0 #TAKE
// #LAYOUT# * * #IGNORE
cmd_bverify:
// LOAD and VERIFY are very similar, from BASIC perspective there is almost no difference;
// just different parameter passed to Kernal and different error message in case of failure
lda #$01 // mark operation as VERIFY
skip_2_bytes_trash_nvz
cmd_bload:
lda #$00 // mark operation as LOAD
jsr helper_load_init_params
// Fetch the file name
jsr helper_bload_fetch_filename
// Fetch device number
jsr fetch_coma_uint8
bcs_16 do_SYNTAX_error
sta FA
// Fetch the start address
jsr helper_bload_fetch_address
// Perform loading
lda VERCKB // LOAD or VERIFY
jsr JLOAD
bcs_16 do_kernal_error
// Execute next statement
rts