Re: A83: FP-number input [83]


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

Re: A83: FP-number input [83]




Can't you just try?

ld a,1
ld (ASM_IND_CALL),a
call PGMIO_EXEC
ld d,h
ld e,l
ld hl,OP1
sub hl,de
ld a,h
or l
jr z,true
ld hl,no
jr continue
true:
ld hl,yes
continue:
jp vputs    ; I can't remember the call for displaying a string... that's not a 
good sign :(
yes: .db "Yeah!",0
no:  .db "I'm not sure, but i don't think so...",0


> 
> Does anybody know if this code returns HL already being a pointer to
> OP1?
> Or do I need to write it myself?
> 
>         ld      a,1			; code for NUMBER input
>         ld      (ASM_IND_CALL),a	; place to store that number
>         call    PGMIO_EXEC	; get input and save in op1
> ;;; HL = OP1???
> 
> 	Henk Poley
> 
> 
> 



References: