Re: A86: GraphLink Software


[Prev][Next][Index][Thread]

Re: A86: GraphLink Software





 after you've done the the stringprompt stuff, op1 will contain the name of
a new string variable with your string in it.  This will copy the string to
_OP1, turning it into a single length byte string (limiting it to 255
characters):

 rst $10                    ;_FINDSYM, pointer in bde
 ld a,b
 ld h,d
 ld l,e                        ;ld ahl,bde
 call _GETB_AHL        ;get the size of the string
 ld (_OP1),a                ;length byte
 ld l,a
 xor a
 ld h,a                        ;ahl = length of string
 call _SET_MM_NUM_BYTES
 ld hl,_OP1+1
 call _SET_ABS_DEST_ADDR
 ld a,b
 ex de,hl                    ;get abs addr back
 call $4c3f                  ;ahl =+ 2
 call _SET_ABS_SRC_ADDR
 call _mm_ldir            ;copy it to _OP1+1



>
>Can anyone get me an example of inputting numbers and / or strings?  I have
>read through the string prompt routine.  I cannot figure out what to do
>after the input.  It stores it in OP1, I know, but after that I am lost.  I
>also cannot figure out the location of the var. that has the string/num.
>Would it be possible if someone could post an example... that just shows
how
>to input... where it is located, and how to.. say.. add 10 to it.  Thanks a
>lot for any help whatsoever.
>
>
>Eric Matthews
>Rockets6@fred.net
>