Sherlock: annotated disassembly

Routines

Prev: E39C Up: Map Next: E3B8
E3A9: DE = the sum of money in the command ($A02F)
Addresses named in the title: $A02F.
Unpacks the number the parser stored at $A02F (set by DB67 from '2/6', '3S' and the like) the same way, bit 7 of the high byte dropped. Returns NZ.
Output
DE total in pence
E3A9 LD DE,($A02F) Read $A02F in "Game variables" into DE
E3AD RES 7,D Clear bit 7 of D - Drop the number marker bit, then unpack as E39C
E3AF RL E Rotate E left through the carry
E3B1 SRA D Shift D right keeping its sign
E3B3 RR E Rotate E right through the carry
E3B5 OR $01 Make A non-zero, which clears the zero flag, and hand that back to the caller
E3B7 RET Return to the caller
Prev: E39C Up: Map Next: E3B8