A | Attribute byte |
BC | Address of UDG |
DE | Display file address |
31844 | 165A | LD D,90 | |
31846 | 12 | LD (DE),A | Set the attribute byte |
31847 | 1650 | LD D,80 | |
31849 | 0A | LD A,(BC) | Copy the UDG onto the screen |
31850 | 0C | INC C | |
31851 | 12 | LD (DE),A | |
31852 | 14 | INC D | |
31853 | CB5A | BIT 3,D | |
31855 | 28F8 | JR Z,31849 | |
31857 | 0EE8 | LD C,232 | Reset C |
31859 | 1C | INC E | Move DE to next place in on-screen inventory |
31860 | C9 | RET |