Prev: 38966 Up: Map Next: 39066
39032: Populate primary display buffer with graphic layout data for entity whose simple / complex state data is at address in IX
Used by the routine at PopulatePrimaryDisplay_LayoutData.
Input
IX Address of complex state data for an entity
39032 LD E,(IX+2) Load DE with address of graphic layout data for entity.
39035 LD D,(IX+3)
39038 LD A,(28066) Load A with TempStore_RoomDimension_YCoordinateTopEdge and add y-coordinate of graphic element to draw as offset, subtract 100 and load into L.
39041 ADD A,(IX+4)
39044 SUB 100
39046 LD L,A
39047 LD A,(28064) Load A with TempStore_RoomDimension_XCoordinateLeftEdge and add x-coordinate of graphic element to draw as offset, subtract 100 and load into H.
39050 ADD A,(IX+5)
39053 SUB 100
39055 LD H,A
39056 LD (28106),HL Store x- and y-coordinates at DrawingYCo-Ordinate/ DrawingXCo-Ordinate.
39059 PUSH DE Load IX with address of graphic layout data in simple/complex state data.
39060 POP IX
39062 LD B,0 Reset do-not-recalculate-display-buffer-address flag, as address not yet calculated.
39064 JR 39070 Jump to 39070 (read / process data at address in IX).
Prev: 38966 Up: Map Next: 39066