Spectrum ROM | Routines |
Prev: 08924 | Up: Map |
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 | 08967 | CALL STK_TO_A | First number to A. | ||||
08970 | LD B,A | Hence to B. | |||||
08971 | PUSH BC | Save it briefly. | |||||
08972 | CALL STK_TO_A | Second number to A. | |||||
08975 | LD E,C | Its sign indicator to E. | |||||
08976 | POP BC | Restore first number. | |||||
08977 | LD D,C | Its signs indicator to D. | |||||
08978 | LD C,A | Second number to C. | |||||
08979 | RET | BC, DE are now as required. |
Prev: 08924 | Up: Map |