Prev: 5E95 Up: Map Next: FE1F
9C40: Second tape block entry point
Used by the routine at 5E12.
9C40 LD HL,$9C52 Start of block to decrypt
9C43 LD BC,$0190 Length of block
9C46 LD D,$A5 Set initial salt
9C48 LD A,(HL) Get the next byte
9C49 XOR D Flip bits against the salt
9C4A LD (HL),A Store this
9C4B INC HL Point to next byte
9C4C DEC BC Decrease length
9C4D LD A,B Is the length 0?
9C4E OR C
9C4F JP NZ,$9C48 Loop back if it isn't
After this decrypter runs, the block now contains executable code
9C52 LD HL,$9C63 Start of block to copy
9C55 LD DE,$FE45 Destination address
9C58 LD BC,$0190 Length to copy
9C5B LDIR Copy it
9C5D LD SP,$FD84 Put the stack somewhere safe
9C60 JP $FE45 Jump to the main loading routine
Prev: 5E95 Up: Map Next: FE1F