Prev: 32124 Up: Map Next: 32200
32158: Prepare viewscreen for USS Pisces' arrival at destination
Used by the routine at 32124.
Input
A A destination index
32158 ADD A,A Double destination index...
32159 LD C,A ...and load into BC...
32160 LD B,0 ...
32162 LD HL,25398 Point HL at first attribute entry in table of current planetary data...
32165 ADD HL,BC ...and add BC as offset
32166 LD A,(HL) Load A with attribute of planet at new location
32167 LD (52196),A Set colour of planet on viewscreen to this value
32170 LD (35948),A Prepare to fill a region with the attribute in A
32173 LD HL,6151 Set left and right x-coordinates of region to scroll to 7 and 24 (characters) respectively...
32176 LD (23489),HL ...
32179 LD HL,36416 Set top and bottom y-coordinates of region to scroll to 64 and 142 (pixels) respectively...
32182 LD (23491),HL ...
32185 LD HL,2055 Set top-left of area to fill to (7, 8) (characters)...
32188 LD (23493),HL ...
32191 LD HL,4376 Set bottom-right of area to fill to (24, 17) (characters)...
32194 LD (23495),HL ...
32197 JP 35940 Fill a region of attribute file with specified attribute and return
Prev: 32124 Up: Map Next: 32200