Prev: 32055 Up: Map Next: 32124
32065: Scroll viewscreen content down 24 pixel rows then display acceleration / deceleration effect (i.e. leave orbit)
Used by the routine at 31688.
32065 LD HL,6151 Set left and right x-coordinates of region to scroll to 7 and 24 (characters) respectively...
32068 LD (23489),HL ...
32071 LD HL,36416 Set top and bottom y-coordinates of region to scroll to 64 and 142 (pixels) respectively...
32074 LD (23491),HL ...
32077 LD DE,25877 Point DE at end of temporary storage area (i.e. last pixel-row's data)
32080 LD B,24 Load B with 24 (number of pixels to scroll viewscreen content down)
32082 PUSH BC Store BC (B = remaining number of pixels to scroll viewscreen content down)
32083 PUSH DE Store DE (address of current position in temporary storage area)
32084 HALT Wait for two interrupts...
32085 HALT ...
32086 CALL 55436 Scroll a region of the display file down a pixel row without wrapping
32089 POP DE Restore DE (address of current position in temporary storage area)
32090 PUSH DE Store DE (address of current position in temporary storage area)
32091 LD HL,22055 Point HL at 7th pixel row of character block at 7, 17 (left-most byte of bottom pixel row of viewscreen contents)
32094 LD BC,18 Load B with 18 (as viewscreen contents are 18 characters wide) and C with zero
32097 LDIR Copy bitmap data in bottom pixel row of viewscreen content to temporary storage area
32099 LD HL,20423 Point HL at display file address for pixel row two above top of planet graphic (leftmost character in viewscreen content)
32102 LD DE,18439 Point DE at display file address for top pixel row in viewscreen content (leftmost character block)
32105 LD BC,18 Copy viewscreen content bitmap data from pixel row two above top of planet graphic to top pixel row in viewscreen content...
32108 LDIR ...
32110 POP HL Restore HL (address of current position in temporary storage area, was previously in DE)
32111 OR A Reset carry flag
32112 LD BC,18 Move HL back 18 bytes...
32115 SBC HL,BC ...
32117 EX DE,HL Swap DE (now points to current position in temporary storage area) and HL
32118 POP BC Restore BC (B = remaining number of pixels to scroll viewscreen content down)
32119 DJNZ 32082 Decrease remaining number of pixel rows to scroll viewscreen content down, and loop back to 32082 if not zero
32121 JP 35828 Display acceleration / deceleration effect on USS Pisces viewscreen and return
Prev: 32055 Up: Map Next: 32124