various I/O updates
This commit is contained in:
1 parent
bdcebb554f
commit
c03c7abf45
11 files changed
+263
-15
No files matched your search
@@ -16,7 +16,6 @@
|
||||
// On exit, $YYXX is the highest address into which data
|
||||
// will have been placed.
|
||||
|
||||
// XXX add VERIFY support
|
||||
|
||||
LOAD:
|
||||
|
||||
|
||||
@@ -10,4 +10,21 @@
|
||||
//
|
||||
|
||||
SAVE:
|
||||
STUB_IMPLEMENTATION()
|
||||
|
||||
// Reset status
|
||||
jsr kernalstatus_reset
|
||||
|
||||
#if CONFIG_MEMORY_MODEL_60K
|
||||
// We need our helpers to get to filenames under ROMs or IO area
|
||||
jsr install_ram_routines
|
||||
#endif
|
||||
|
||||
// Check whether we support the requested device
|
||||
lda FA
|
||||
|
||||
#if CONFIG_IEC
|
||||
jsr iec_check_devnum_lvs
|
||||
bcc_far save_iec
|
||||
#endif
|
||||
|
||||
jmp lvs_illegal_device_number
|
||||
@@ -7,7 +7,6 @@
|
||||
find_fls:
|
||||
|
||||
ldy LDTND
|
||||
beq find_fls_not_found // table empty
|
||||
!:
|
||||
dey
|
||||
bmi find_fls_not_found // no more entries
|
||||
|
||||
@@ -73,16 +73,32 @@ lvs_handle_byte_verify:
|
||||
|
||||
#if CONFIG_MEMORY_MODEL_60K
|
||||
|
||||
// XXX implement this part
|
||||
// Store byte for comparing
|
||||
sta TBTCNT
|
||||
|
||||
// Retrieve byte from under ROMs and IO if required
|
||||
php
|
||||
sei
|
||||
ldx #$33
|
||||
stx $01
|
||||
ldy #0
|
||||
lda (STAL),y
|
||||
ldx #$37
|
||||
stx $01
|
||||
plp
|
||||
|
||||
// Compare with stored byte
|
||||
cmp TBTCNT
|
||||
|
||||
#else
|
||||
|
||||
ldy #0
|
||||
cmp (STAL),y
|
||||
beq lvs_handle_byte_load_verify_end
|
||||
|
||||
#endif
|
||||
|
||||
beq lvs_handle_byte_load_verify_end
|
||||
|
||||
sec
|
||||
rts
|
||||
|
||||
|
||||
Reference in new issue
Block a user