Prev: D5FA Up: Map Next: D61E
D610: Routine at D610
Used by the routines at Copy_Routine and Merge_Shot.
On entry HL points to an address in the screen attribute buffer.
Calc_Attribute D610 LD A,H Let's use $58C8 as an example;
  • A=$58
  • Subtract $08 = A=$50
  • Write it into HL=$50C8
  • A=$C8
  • Add $20 = A=$E8
  • Write it into HL=$50E8
D611 SUB $08
D613 LD H,A
D614 LD A,L
D615 ADD A,$20
D617 LD L,A
D618 RET NC
D619 LD A,H
D61A ADD A,$08
D61C LD H,A
D61D RET Return.
Prev: D5FA Up: Map Next: D61E