![]() |
Routines |
B | 1-8 (corresponding to one of the eight main characters) |
45170 | LD A,8 | C=8-B |
45172 | SUB B | |
45173 | LD C,A | |
45174 | ADD A,A | A=8*(8-B) |
45175 | ADD A,A | |
45176 | ADD A,A | |
45177 | SUB C | A=7*(8-B) |
45178 | ADD A,A | A=14*(8-B) |
45179 | ADD A,128 | A=128+14*(8-B) |
45181 | LD L,A | Place this LSB in L |
45182 | RET |