![]() |
Routines |
| Prev: F785 | Up: Map | Next: F8AF |
|
Draw the location pictures. Each entry loads a graphic pointer and either draws it directly or expands and tints the shared room picture.
|
|||||
|
Displays the image for in deep space.
|
|||||
| DisplayImage_InDeepSpace | F813 | LD IX,$9ACD | IX=Image_InDeepSpace. | ||
| F817 | CALL Print_RoomImage | Call Print_RoomImage to draw the room picture. | |||
| F81A | RET | Return. | |||
|
Displays the image for in orbit around an unknown planet.
|
|||||
| DisplayImage_InOrbit | F81B | LD IX,$9F03 | IX=Image_InOrbitAroundAnUnknownPlanet. | ||
| F81F | CALL Print_RoomImage | Call Print_RoomImage to draw the room picture. | |||
| F822 | RET | Return. | |||
|
Displays the image for the landing pad.
|
|||||
| DisplayImage_LandingPad | F823 | LD IX,$DA47 | IX=Image_TheLandingPad. | ||
| F827 | CALL Print_RoomImage | Call Print_RoomImage to draw the room picture. | |||
| F82A | RET | Return. | |||
|
Displays the image for the yellow room.
|
|||||
| DisplayImage_YellowRoom | F82B | LD IX,$E911 | IX=Image_TheWhiteRoom. | ||
| F82F | CALL PrintRoomGraphic | Call PrintRoomGraphic to expand the room picture. | |||
| F832 | LD A,$30 | Tint that picture yellow (30). | |||
| F834 | CALL RecolourRoomImage | Call RecolourRoomImage to recolour the picture. | |||
| F837 | RET | Return. | |||
|
Displays the image for the green room.
|
|||||
| DisplayImage_GreenRoom | F838 | LD IX,$E911 | IX=Image_TheWhiteRoom. | ||
| F83C | CALL PrintRoomGraphic | Call PrintRoomGraphic to expand the room picture. | |||
| F83F | LD A,$20 | Tint that picture green (20). | |||
| F841 | CALL RecolourRoomImage | Call RecolourRoomImage to recolour the picture. | |||
| F844 | RET | Return. | |||
|
Displays the image for the blue room.
|
|||||
| DisplayImage_BlueRoom | F845 | LD IX,$E911 | IX=Image_TheWhiteRoom. | ||
| F849 | CALL PrintRoomGraphic | Call PrintRoomGraphic to expand the room picture. | |||
| F84C | LD A,$28 | Tint that picture cyan (28), the colour the game calls blue. | |||
| F84E | CALL RecolourRoomImage | Call RecolourRoomImage to recolour the picture. | |||
| F851 | RET | Return. | |||
|
Displays the image for the red room.
|
|||||
| DisplayImage_RedRoom | F852 | LD IX,$E911 | IX=Image_TheWhiteRoom. | ||
| F856 | CALL PrintRoomGraphic | Call PrintRoomGraphic to expand the room picture. | |||
| F859 | LD A,$50 | Tint that picture red (50). | |||
| F85B | CALL RecolourRoomImage | Call RecolourRoomImage to recolour the picture. | |||
| F85E | RET | Return. | |||
|
Paint the whole picture with the attribute in A first (PaintRoomImage), then blank the 47 attribute cells listed at Table_AttributeAddresses.
|
|||||
| RecolourRoomImage | F85F | CALL PaintRoomImage | Call PaintRoomImage to paint every picture attribute with A. | ||
| F862 | LD IX,$F785 | Point at Table_AttributeAddresses and prepare to blank its 47 attribute cells (black ink on black paper). | |||
| F866 | LD B,$47 | ||||
| F868 | XOR A | ||||
| RecolourRoomImage_Loop | F869 | LD L,(IX+$00) | Blank every attribute address in that list. | ||
| F86C | LD H,(IX+$01) | ||||
| F86F | LD (HL),A | ||||
| F870 | INC IX | ||||
| F872 | INC IX | ||||
| F874 | DJNZ RecolourRoomImage_Loop | ||||
| F876 | RET | Return. | |||
|
Displays the image for the white room.
|
|||||
| DisplayImage_WhiteRoom | F877 | LD IX,$E911 | IX=Image_TheWhiteRoom. | ||
| F87B | CALL Print_RoomImage | Call Print_RoomImage to draw the room picture. | |||
| F87E | RET | Return. | |||
|
Displays the image for the limestone maze.
|
|||||
| DisplayImage_LimestoneMaze | F87F | LD IX,$A685 | IX=Image_TheLimestoneMaze. | ||
| F883 | CALL Print_RoomImage | Call Print_RoomImage to draw the room picture. | |||
| F886 | RET | Return. | |||
|
Displays the image for the tall canyon.
|
|||||
| DisplayImage_TallCanyon | F887 | LD IX,$BFFB | IX=Image_TheTallCanyon. | ||
| F88B | CALL Print_RoomImage | Call Print_RoomImage to draw the room picture. | |||
| F88E | RET | Return. | |||
|
Displays the image for the reactor room.
|
|||||
| DisplayImage_ReactorRoom | F88F | LD IX,$D223 | IX=Image_TheReactorRoom. | ||
| F893 | CALL Print_RoomImage | Call Print_RoomImage to draw the room picture. | |||
| F896 | RET | Return. | |||
|
Displays the image for the west bank of the lake.
|
|||||
| DisplayImage_WestBankOfTheLake | F897 | LD IX,$C8E5 | IX=Image_TheWestBankOfTheLake. | ||
| F89B | CALL Print_RoomImage | Call Print_RoomImage to draw the room picture. | |||
| F89E | RET | Return. | |||
|
Displays the image for the plateau.
|
|||||
| DisplayImage_Plateau | F89F | LD IX,$B23D | IX=Image_ThePlateau. | ||
| F8A3 | CALL Print_RoomImage | Call Print_RoomImage to draw the room picture. | |||
| F8A6 | RET | Return. | |||
|
Displays the image for the repair bay.
|
|||||
| DisplayImage_RepairBay | F8A7 | LD IX,$E137 | IX=Image_TheRepairBay. | ||
| F8AB | CALL Print_RoomImage | Call Print_RoomImage to draw the room picture. | |||
| F8AE | RET | Return. | |||
|
View the equivalent code in;
|
|||||
| Prev: F785 | Up: Map | Next: F8AF |