Prev: 48922 Up: Map Next: 48992
48947: Load saved game
Sets IX (start of block to load) and DE (block length) for ROM LOAD routine.
First data block - all game data between 60065 and 60577
48947 LD IX,60064 Start of data block
48951 LD HL,60577 Address for end of block
48954 LD DE,60064 Start of block, game data at 60065
48957 SCF Set carry flag...
48958 CCF ...and then toggle so it's cleared
48959 SBC HL,DE Calculate the number of bytes in the data block and put result in DE register pair
48961 INC HL Need to add 1 to include the last byte
48962 EX DE,HL
48963 LD A,255 Indicates a data block to load (rather than header)
48965 SCF Sets the carry flag, which tells the ROM routine to perform a LOAD
48966 CALL 1366 Call the LD-BYTES ROM subroutine to load saved game data
Second data block - all game data between 26512 and 32819
48969 LD IX,(56053) Start of data block
48973 LD HL,(60257) Address for end of block
48976 LD DE,(56053) Start of block, game data at 26512
48980 SCF Set carry flag
48981 CCF ...and then toggle it so it's cleared
48982 SBC HL,DE Calculate the number of bytes in the data block and put result in DE register pair
48984 INC HL Need to add 1 to include the last byte
48985 EX DE,HL
48986 LD A,255 Indicates a data block to load (rather than header)
48988 SCF Sets the carry flag, which tells the ROM routine to perform a LOAD
48989 CALL 1366 Call the LD-BYTES ROM subroutine to load saved game data
Prev: 48922 Up: Map Next: 48992