Routines |
Prev: 22DC | Up: Map | Next: 2314 |
This subroutine loads two floating point numbers into the BC register pair. It is thus used to pick up parameters in the range +00 to +FF. It also obtains in DE the 'diagonal move' values (+/-1,+/-1) which are used in DRAW_LINE.
|
||||||||||||||
STK_TO_BC | 2307 | CALL STK_TO_A | First number to A. | |||||||||||
230A | LD B,A | Hence to B. | ||||||||||||
230B | PUSH BC | Save it briefly. | ||||||||||||
230C | CALL STK_TO_A | Second number to A. | ||||||||||||
230F | LD E,C | Its sign indicator to E. | ||||||||||||
2310 | POP BC | Restore first number. | ||||||||||||
2311 | LD D,C | Its sign indicator to D. | ||||||||||||
2312 | LD C,A | Second number to C. | ||||||||||||
2313 | RET | BC, DE are now as required. |
Prev: 22DC | Up: Map | Next: 2314 |