Prev: 84E6 Up: Map Next: 8569
8554: Copy an object's or a room's words
If B is not $FF, copies the six bytes of words (noun and two adjectives) of object B (or of room B, if A is non-zero) to DE.
8554 INC B Was there actually no object given at all ($FF)?
8555 RET Z If so, there is nothing to copy
8556 DEC B Restore B
8557 AND A Is the thing being named actually a room, rather than an object?
8558 LD A,B
8559 JR Z,$8560
855B CALL $71CC An object: HL = its own words
855E JR $8563
8560 CALL $71D9 A room: HL = its own name words
8563 LD BC,$0006 Copy all 6 bytes - the noun and its two adjectives
8566 LDIR
8568 RET
Prev: 84E6 Up: Map Next: 8569