Prev: 51439 Up: Map Next: 51593
51497: Routine at C929
Used by the routines at 45457, 46975 and 50385.
51497 CALL 51439 Call 51439.
51500 LD A,(41012) Jump to 51570 if *RoomDisplayParameter is greater than or equal to 254.
51503 CP 254
51505 JR NC,51570
51507 LD IX,(40983) IX=*40983.
51511 BIT 6,(IX+5) Jump to 51533 if bit 6 of *IX+5 is not set.
51515 JR Z,51533
51517 XOR A A=0.
51518 CALL 53724 Call 53724.
51521 JR NC,51533 Jump to 51533 if A is greater than or equal to 254.
51523 LD A,(41011) A=*41011.
51526 CALL SearchTwoByteTable Call SearchTwoByteTable.
51529 CP 255 Jump to 51552 if A is not equal to 255.
51531 JR NZ,51552
51533 LD A,(40975) Jump to 51570 if *40975 is less than 7.
51536 CP 7
51538 JR C,51570
51540 LD IX,(40979) IX=*40979.
51544 LD A,(41011) A=*41011.
51547 CALL 53724 Call 53724.
51550 JR NC,51570 Jump to 51570 if A is greater than or equal to 7.
51552 LD A,(IX+1) A=*IX+1.
51555 LD E,A E=A.
51556 LD D,0 D=0.
51558 LD HL,43633 HL=43633.
51561 DEC DE Decrease DE by one.
51562 ADD HL,DE HL+=DE.
51563 ADD HL,DE HL+=DE.
51564 LD E,(HL) E=*HL.
51565 INC HL Increment HL by one.
51566 LD D,(HL) D=*HL.
51567 EX DE,HL Exchange the DE and HL registers.
51568 JR 51606 Jump to 51606.
51570 LD A,(41011) A=*41011.
51573 LD IX,40760 IX=40760.
51577 CALL SearchThreeByteTable Call SearchThreeByteTable.
51580 CP 255 Jump to 56341 if A is equal to 255.
51582 JP Z,56341
51585 LD L,(IX+1) L=*IX+1.
51588 LD H,(IX+2) H=*IX+2.
51591 JR 51606 Jump to 51606.
Prev: 51439 Up: Map Next: 51593