Prev: 9B18 Up: Map Next: 9B44
9B38: Draw Floor
Used by the routine at Draw_Room.
Draws the floor of the room if bit 4 of the frame flags is set, or clears its area if it is not.
The floor is drawn at x position 18 and y position A0 by the code that draws the ceiling (see Draw_Ceiling), using the tiles of the table at Floor_Tile_Table.
Input
DE Frame flags of the room in E
IX Object record of Sabreman
Draw_Floor 9B38 PUSH DE Stash the frame flags on the stack.
9B39 BIT 4,E Test bit 4 of the frame flags (the floor).
9B3B LD HL,$A018 Set the x position to 18 and the y position to A0 (A018).
9B3E LD DE,$9B44 Point at the table of floor tiles (Floor_Tile_Table).
9B41 JP Draw_Ceiling_Check_Present Jump to Draw_Ceiling_Check_Present to draw the floor.
Prev: 9B18 Up: Map Next: 9B44