Prev: 7C44 Up: Map Next: 7D49
7C63: Print out the inventory.
Used by the routines at Vectors, 7D49 and HandleSelectInput.
UpdateInv_A 7C63 XOR A
This entry point is used by the routine at ObjectDrop.
UpdateInv_B 7C64 LD ($7C62),A
7C67 LD HL,$5A20
7C6A LD A,$04
UpdateInv_A_0 7C6C LD BC,$0010
7C6F ADD HL,BC
7C70 EX DE,HL
7C71 LD HL,Zeros
7C74 LDIR
7C76 EX DE,HL
7C77 DEC A
7C78 JR NZ,UpdateInv_A_0
7C7A LD DE,$5AC0
7C7D LD HL,Zeros
7C80 LD BC,$0011
7C83 LDIR
7C85 LD DE,$5AE0
7C88 LD HL,Zeros
7C8B LD BC,$0011
7C8E LDIR
7C90 LD HL,($DFCE)
7C93 PUSH HL
7C94 LD HL,$0000
7C97 LD ($DFCE),HL
7C9A XOR A
7C9B LD (ManData_SelObj_02_DFCB),A
7C9E DEFB $ED,$5B,$C9,$DF Get number if items and index of item selected.
7CA2 DEFB $7A,$BB,$38,$05,$AF Make sure the selection is not greater than the number of items in the inventory.
7CA7 DEFB $57,$32,$CA,$DF Now holds the inventory index for the item selected.
7CAB DEFB $CD,$FF,$6C Print string at next address (defined by stack)
7CAE DEFB $10 String for INK(3), PAPER(0), BRIGHT(1)
7CAF DEFB $03
7CB0 DEFB $11
7CB1 DEFB $00
7CB2 DEFB $13
7CB3 DEFB $01
7CB4 DEFB $5E
7CB5 DEFB $1E,$00,$14 Return from print appears here.
7CB8 DEFB $DD,$21,$C3,$DF Man data holds pointer to first object carried.
7CBC DEFB $DD,$6E,$04,$DD,$66,$05 This offset holds the object pointer. Either first one in man data or next one held in object data iteself.
7CC2 DEFB $7D,$B4,$28,$73 zero means nothing carried.
7CC6 DEFB $E5 Store object address
7CC7 DEFB $E5,$DD,$E1,$21,$CE,$DF,$7E,$DD And copy into IX
7CCF DEFB $B6,$03,$77,$23,$DD,$7E,$03,$E6
7CD7 DEFB $03,$86,$77,$E1,$1C,$3E,$16,$D7
7CDF DEFB $7B,$D7,$3E,$10,$D7
7CE4 DEFB $15,$20,$11,$DD,$7E,$02,$32,$CB If D == 0 then we have hit the item which is selected.
7CEC DEFB $DF,$DD,$22,$CC,$DF
7CF1 DEFB $3E,$2A,$CD,$25,$89,$18,$05 Print the '*' next to the selected item.
7CF8 DEFB $3E,$20,$CD,$25,$89 Print the ' ' next to the unselected item.
7CFD DEFB $01,$06,$00,$09 Point to start of object string.
Print Object String.
7D01 LD A,(HL)
7D02 INC HL
7D03 DEFB $FE,$5E,$28,$B5 '^' is end of string.
7D07 DEFB $FE,$2B,$28,$05,$CD,$25,$89,$18 '+' is an extended message.
7D0F DEFB $F1,$DD,$CB,$03,$76,$20,$A6,$3A
7D17 DEFB $62,$7C,$EE,$01,$28,$9F,$32,$62
7D1F DEFB $7C,$0E,$06,$3E,$16,$D7,$79,$D7
7D27 DEFB $AF,$D7,$0C,$7E,$23,$FE,$5E,$28
7D2F DEFB $8C,$FE,$2B,$28,$EE,$CD,$25,$89
7D37 DEFB $18,$F1,$E1,$3A,$CE,$DF,$AD,$CB
7D3F DEFB $7F,$C8,$3A,$03,$E0,$A7,$CC,$42
7D47 DEFB $5E,$C9
Prev: 7C44 Up: Map Next: 7D49