Prev: 63595 Up: Map Next: 63658
63637: Read Shape Header
Used by the routine at BuildShiftedShapeB.
Reads the header of a description of a shape and sets up the counters that the routines at BuildShiftedShapeA and BuildShiftedShapeB use. The first byte is the number of strips, which is stored in ScratchPair and 23583. The second byte is the number of rows, which is stored in ScratchValue and TileNumber. The third byte is the number of bytes in a row. The entry point at ReadShapeHeader_Rows skips the first byte.
Input
HL Address of the description
Output
HL Address of the first byte after the header
C Number of bytes in a row
D 250, the page of the table of bytes shifted by two pixels
ReadShapeHeader 63637 LD A,(HL) Read HL.
63638 LD (23582),A The number of strips.
63641 LD (23583),A The number of strips.
63644 INC HL Advance HL.
This entry point is used by the routine at BuildShiftedShapeA.
ReadShapeHeader_Rows 63645 LD A,(HL) Read HL.
63646 LD (23580),A The number of rows.
63649 LD (23581),A The number of rows.
63652 INC HL Advance HL.
63653 LD D,250 D=250.
63655 LD C,(HL) Read HL into C.
63656 INC HL Advance HL.
63657 RET Return.
Prev: 63595 Up: Map Next: 63658