more compatible STAL/EAL/MEMUSS handling

This commit is contained in:
FeralChild64 committed 2019-11-07 19:00:09 +01:00
1 parent 2e9a0b1610
commit ce68834035
5 files changed
+65 -33

No files matched your search

+13 -10
View File
@@ -69,20 +69,23 @@ load_iec:
jsr iec_turnaround_to_listen
bcs load_iec_error
// Get load address and store it if secondary address is zero
// Get load address
jsr iec_rx_byte
bcs load_iec_file_not_found
ldx SA
beq !+
sta STAL+0
!:
sta EAL+0
jsr iec_rx_byte
bcs load_iec_file_not_found
sta EAL+1
ldx SA
beq !+
sta STAL+1
// If secondary address is 0, override EAL with STAL
lda SA
bne !+
lda STAL+0
sta EAL+0
lda STAL+1
sta EAL+1
!:
// Display start address
jsr lvs_display_loading_verifying
@@ -102,7 +105,7 @@ iec_load_loop:
// Handle STOP key; it is probably an overkill to do it
// with every byte, once per 32 bytes should be enough
lda STAL
lda EAL
and #$1F
bne !+
phx_trash_a
+1 -1
View File
@@ -5,7 +5,7 @@
// XXX this is untested!
// test EAL/STAL - LOAD (tape, disk), SAVE - Open ROMs vs hybrid vs original
// also test STAL/EAL - Open ROMs vs hybrid vs original