Prev: 1190 Up: Map Next: 11B7
11A7: THE 'REMOVE-FP' SUBROUTINE
Used by the routines at MAIN_EXEC and INPUT.
This subroutine removes the hidden floating-point forms in a BASIC line.
Input
HL E-LINE or WORKSP
REMOVE_FP 11A7 LD A,(HL) Each character in turn is examined.
11A8 CP $0E Is it a number marker?
11AA LD BC,$0006 It will occupy six locations.
11AD CALL Z,RECLAIM_2 Reclaim the floating point number.
11B0 LD A,(HL) Fetch the code again.
11B1 INC HL Update the pointer.
11B2 CP $0D Is it a carriage return?
11B4 JR NZ,REMOVE_FP Back if not. But make a simple return if it is.
11B6 RET
Prev: 1190 Up: Map Next: 11B7