Prev: 92E5 Up: Map Next: 948C
9434: Blits a column of a background bitmap based on its index value.
Input
IX Points to address of next item in background description string.
Output
Bg_BlitItemColumn 9434 LD A,(IX+$00) Based on index, calculate position in offcreen to blit object.
9437 LD DE,$0AA0
943A CP $9B
943C JR Z,Bg_BlitItemColumn_0
943E LD DE,$0660
9441 CP $8F
9443 JR C,Bg_BlitItemColumn_0
9445 LD DE,$0220
9448 CP $92
944A JR C,Bg_BlitItemColumn_0
944C LD DE,$0880
944F CP $C1
9451 JR C,Bg_BlitItemColumn_0
9453 LD DE,$0440
9456 CP $C9
9458 JR C,Bg_BlitItemColumn_0
945A LD DE,$0880
Bg_BlitItemColumn_0 945D LD L,A Using bitmap index, calculate address of data, pointing to dimensions of bitmap.
945E LD H,$00
9460 ADD HL,HL
9461 ADD HL,HL
9462 LD BC,Bitmap_PtrTableOffHeight
9465 ADD HL,BC
9466 LD B,(HL) Get height in char cells.
9467 RES 7,B
9469 EX DE,HL
946A LD DE,$0110
Bg_BlitItemColumn_1 946D AND A
946E SBC HL,DE
9470 DJNZ Bg_BlitItemColumn_1
9472 LD DE,(Ptr_Offscreen)
9476 ADD HL,DE
9477 LD (Temp_BlitTo),HL
947A LD L,(IX+$00) Get index of bitmap and copy info into memory.
947D CALL Bitmap_CopyFrame
9480 LD DE,(Bg_ColumnsLeft) Get which column, of bitmap, to blit.
9484 CALL Bitmap_DrawColumn
This entry point is used by the routines at Bg_DrawEmptyCol and Bg_StrCtrlCodes.
Bg_BlitItemEnd 9487 LD SP,(Data_Stack)
948B RET
Prev: 92E5 Up: Map Next: 948C