Routines |
Prev: 2307 | Up: Map | Next: 2320 |
Used by the routine at STK_TO_BC.
This subroutine loads the A register with the floating point number held at the top of the calculator stack. The number must be in the range +00 to +FF.
|
||||||||||
STK_TO_A | 2314 | CALL FP_TO_A | Modulus of rounded last value to A if possible; else, report error. | |||||||
2317 | JP C,REPORT_B_3 | |||||||||
231A | LD C,$01 | One to C for positive last value. | ||||||||
231C | RET Z | Return if value was positive. | ||||||||
231D | LD C,$FF | Else change C to +FF (i.e. minus one). | ||||||||
231F | RET | Finished. |
Prev: 2307 | Up: Map | Next: 2320 |