Routines |
Prev: 36810 | Up: Map | Next: 36875 |
36830 | PUSH HL | Store HL | ||
36831 | LD HL,40149 | Point HL at start of common words table | ||
36834 | SUB 91 | Subtract 91 from A to get index of special character | ||
This entry point is used by the routine at 36882.
|
||||
36836 | JR Z,36844 | If first string is required (i.e. index is zero), then jump straight to print commands | ||
36838 | LD B,A | Load index into B | ||
36839 | CALL 36703 | Get start of next zero-terminated string... | ||
36842 | DJNZ 36839 | ...and repeat until the B-th string is found (e.g. 20th)... | ||
36844 | CALL 36725 | ...then print this string to screen | ||
36847 | JR 36807 | Jump to 36807 (i.e. we have printed the common word, so go back to printing rest of original string) | ||
This entry point is used by the routine at 36725.
|
||||
36849 | LD B,199 | PAPER bits | ||
36851 | JR 36863 | Update attribute | ||
This entry point is used by the routine at 36725.
|
||||
36853 | LD B,191 | BRIGHT bit | ||
36855 | JR 36863 | Update attribute | ||
This entry point is used by the routine at 36725.
|
||||
36857 | LD B,127 | FLASH bit | ||
36859 | JR 36863 | Update attribute | ||
This entry point is used by the routine at 36725.
|
||||
36861 | LD B,248 | INK bits | ||
36863 | INC HL | Advance to next character | ||
36864 | LD A,(23695) | Load A with attribute stored at 23695 | ||
36867 | AND B | Clear bits | ||
36868 | OR (HL) | Update bits with value from HL | ||
36869 | LD (23695),A | Store attribute at 23695 (i.e. change INK / PAPER colour of text) | ||
36872 | JP 36732 | Move onto next character |
Prev: 36810 | Up: Map | Next: 36875 |