Prev: 54778 Up: Map Next: 54814
54800: 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 54800 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
54801 SUB 8
54803 LD H,A
54804 LD A,L
54805 ADD A,32
54807 LD L,A
54808 RET NC
54809 LD A,H
54810 ADD A,8
54812 LD H,A
54813 RET Return.
Prev: 54778 Up: Map Next: 54814