Routines

61440: Control EINSTEIN during class


Used by tables of A&P numbers 82, 84 and 86

H 208 (EINSTEIN)

61440 3A807F LD A,(32640)
61443 CB5F BIT 3,A Should EINSTEIN be talking to the teacher?
61445 C8 RET Z Return if not
61446 010B6A LD BC,27147 Direct control of EINSTEIN to the routine at 27147 (make character speak) and then return to 61452
61449 CD9F63 CALL 25503
61452 2E03 LD L,3 Reset the address of the controlling routine in bytes 3 and 4 of EINSTEIN's buffer to 61440
61454 3600 LD (HL),0
61456 21807F LD HL,32640
61459 CB9E RES 3,(HL) Signal: EINSTEIN has finished speaking
61461 C9 RET