Routines |
Prev: E542 | Up: Map | Next: E555 |
This divides (C,A) by 8, with rounding to nearest, returning the result in A.
Used by the routines at calc_interior_item_iso_pos, purge_invisible_characters, setup_vischar_plotting and pos_to_tinypos.
|
||||||||||||||
divide_by_8_with_rounding | E550 | ADD A,$04 | Add 4 to AC | |||||||||||
E552 | JR NC,divide_by_8 | |||||||||||||
E554 | INC C | |||||||||||||
FALL THROUGH into divide_by_8.
|
Prev: E542 | Up: Map | Next: E555 |