commit 2f27e29758da1f1ec965588c0712125051a6f71a Merge: ba722b1796b62fAuthor: FeralChild64 <you@example.com> Date: Tue Jan 28 17:34:53 2020 +0100 Merge branch 'master' into tape_redirect commit ba722b17e627af7dd067932688de0a3d86423e37 Author: FeralChild64 <you@example.com> Date: Tue Jan 28 17:28:19 2020 +0100 finished Mega65 variant of tape routines commit 47de685f2e08576504c5e00a5b7cb78498d22e72 Author: FeralChild64 <you@example.com> Date: Mon Jan 27 23:06:45 2020 +0100 compilation fix commit c3641acec049a7a6b53c35795b1f9e2df212cec2 Author: FeralChild64 <you@example.com> Date: Mon Jan 27 22:53:30 2020 +0100 dependencies fix commit dfad7a30bde043fa077005624dde1de4b72573b6 Merge: e4b0ec9e410bc0Author: FeralChild64 <you@example.com> Date: Mon Jan 27 21:25:49 2020 +0100 Merge branch 'master' into tape_redirect commit e4b0ec9c85861bde2ce52e0828d3bf895a681e17 Author: FeralChild64 <you@example.com> Date: Sat Jan 25 22:25:20 2020 +0100 initial attempt to move tape code to Mega65 extra ROM
43 lines
1.0 KiB
ArmAsm
43 lines
1.0 KiB
ArmAsm
// #LAYOUT# STD * #TAKE
|
|
// #LAYOUT# M65 KERNAL_1 #TAKE
|
|
// #LAYOUT# * * #IGNORE
|
|
|
|
//
|
|
// Tape (turbo) helper routine - storing byte uder I/O
|
|
//
|
|
|
|
// This helper routine is meant to be copiet to the start of CPU stack.
|
|
// Original ROM tape loading routines uses this area to store information
|
|
// about bytes that did not read properly for the first time
|
|
// (see Mapping the C64, page 47); this mechanism is useless for turbo tape,
|
|
// but it means we can safely use this area for our purposes
|
|
|
|
|
|
#if CONFIG_TAPE_TURBO
|
|
|
|
|
|
.label __tape_turbo_bytestore_defmap = __tape_turbo_bytestore + 7
|
|
.label __tape_turbo_bytestore_size = __tape_turbo_bytestore_source_end - tape_turbo_bytestore_source
|
|
|
|
|
|
tape_turbo_bytestore_source:
|
|
|
|
// Set all memory as RAM, tape motor ON
|
|
ldx #$00
|
|
stx CPU_R6510
|
|
|
|
// Store byte in memory
|
|
sta (MEMUSS), y
|
|
|
|
// Restore default memory layout
|
|
ldx #$00 // value will be determined later, offset from start: 7 bytes
|
|
stx CPU_R6510
|
|
|
|
// Go back
|
|
rts
|
|
|
|
__tape_turbo_bytestore_source_end:
|
|
|
|
|
|
#endif // CONFIG_TAPE_TURBO
|