Maths Subroutines for the 664 and 6128 only

&BD5E TEXT INPUT
Action Allows upto 255 characters to be input from the keyboard into a buffer (hmmm ... not really a maths routine ...)
Entry HL points to the start of the buffer - a NUL character must be placed after any characters already present, or at the start of the buffer if there is no text
Exit A has the last key pressed, HL points to the start of the buffer, the flags are corrupt, and all others are preserved
Notes This routine prints any existing contents of the buffer (upto the NUL character) and then echoes any keys used; it allows full line editing with the cursor keys and DEL, etc; it is exited only by use of ENTER or ESC
&BD7F REAL RND
Action Creates a new RND real value at a location pointed to by HL
Entry HL points to the destination for the result
Exit HL points to the RND value, AF, BC, DE and IX registers are corrupt; and all others are preserved
&BD8B REAL RND(0)
Action Returns the last RND value created, and puts it in a location pointed to by HL
Entry HL points to the place where the value is to be returned to
Exit HL points to the value created, AF, DE and IX are corrupt, and all other registers are preserved
Notes: See the BASIC handbook for more details on RND(0)