Sherlock: annotated disassembly

Routines

Prev: A2AB Up: Map Next: A2BD
A2B1: HL = verb A's record in the verb table
HL = 8259 + 8 x (A - 1): the 8-byte records of the verb table, verb 1 first (see 8259).
Input
A verb number
Output
HL its record
A2B1 DEC A Subtract one from A - Verb number A (1-based) times 8 into HL...
A2B2 LD L,A Copy A into L
A2B3 LD H,$00 Load H with $00
A2B5 ADD HL,HL Double HL (shift it left one bit)
A2B6 ADD HL,HL Double HL (shift it left one bit)
A2B7 ADD HL,HL Double HL (shift it left one bit)
A2B8 LD DE,$8259 Load DE with 8259 (-32167 as a signed offset), the amount that is added next - ...added to the verb table 8259: HL = its record
A2BB ADD HL,DE Add DE to HL
A2BC RET Return to the caller
Prev: A2AB Up: Map Next: A2BD