Prev: DD03 Up: Map Next: DD22
DD12: Prepare Tape Block
Used by the routines at Tape_Save, Tape_Load and Tape_Checksum.
Sets IX to SkipDelayFlag, DE to the length and A to FF.
Output
IX Start of the tape block
DE Length of the tape block
A Data block flag (FF)
Point at the start and the exclusive end.
Tape_BlockRange DD12 LD IX,$647C Point IX at SkipDelayFlag.
DD16 LD DE,$647C Point DE at SkipDelayFlag.
DD19 LD HL,$7C67 Point HL at 7C67.
Make the length.
DD1C XOR A Clear A and the carry flag.
DD1D SBC HL,DE Subtract DE from HL.
Set the data-block flag.
DD1F EX DE,HL Put the length in DE.
DD20 DEC A Set A to FF.
Return.
DD21 RET Return.
Prev: DD03 Up: Map Next: DD22