Prev: 35598 Up: Map Next: 35669
35629: Set the read-enabled flag if carrying a readable object
Used by the routine at 35495.
35629 LD A,(65532) Reset read-enabled flag (i.e. false)...
35632 RES 3,A ...
35634 LD (65532),A ...
35637 LD B,5 Set counter to 5 (as Magic Knight can carry 5 objects)
35639 LD IX,25395 Point IX to start of Magic Knight's current inventory
35643 LD A,(IX+0) Load index of object carried by Magic Knight into A
35646 LD E,2 Point HL to property 2 ("read text") of this object (in table at 42242)...
35648 CALL 34160 ...
35651 LD A,(HL) ...and load into A
35652 OR A If "read text" property is not zero (i.e. if object can be read)...
35653 JR NZ,35660 ...then skip to 35660...
35655 INC IX ...else advance to next inventory slot...
35657 DJNZ 35643 ...and repeat
35659 RET If this was last slot, then return with read-enabled flag unset
35660 LD A,(65532) Set read-enabled flag (i.e. true)...
35663 SET 3,A ...
35665 LD (65532),A ...
35668 RET Return
Prev: 35598 Up: Map Next: 35669