Re: A86: string inputting


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

Re: A86: string inputting




In a message dated 11/16/99 20:23:01 Eastern Standard Time, MikeT843@aol.com 
writes:

> If this is the code to input, where does it store the string that the user 
>  inputs?
>  
>  
>  call    _clrScrn         ;
>  call    _homeup          ; cursor to top left
>  ld      de,_ioprompt
>  ld      hl,str_prmpt
>  call    _mov10b          ; 

The CLEANTMP junk isn't really necessary as far as I can tell....

cut out from here
>  LD      HL,(_CLEANTMP)
>  PUSH    HL           
>  LD      HL,(_PTempCnt)
>  LD      (_CLEANTMP),HL    ;
to here


>  ld      a,0Ch
>  ld      (_asap_ind),a    ; set for 'inputstring'
>  call    _exec_pg3        ; 

Right here the input is stored into a string.  The name of this string is in 
OP1.

So if you wanted to load the input, you could do so like this:

    rst 10h     ;_findsym
    call _DATA_SIZE_TO_DE    ;_get_word_size or something in old ACZ includese
    call _load_ram_ahl
;hl points to start of string input.

>  
>  
>  
>  str_prmpt:
>  .db      "Prompt = ",0
>  



----
Jonah Cohen
<ComAsYuAre@aol.com>
http://linux.hypnotic.org/~jonah/