A83: Re: Help!!!
[Prev][Next][Index][Thread]
A83: Re: Help!!!
I don't think you can input using that method from a shell. You could use
the input routine in ZInpt or you could fix the vat to make it work though.
Joe Wingbermuehle
http://www.usmo.com/~joewing/
----- Original Message -----
From: <RedPicasso@aol.com>
To: <assembly-83@lists.ticalc.org>
Sent: Tuesday, December 08, 1998 4:49 AM
Subject: A83: Help!!!
>
>could anyone tell me why this code will freeze up after you input the
>frequency?
>
>.nolist
>#include "ti83asm.inc"
>#include "tokens.inc"
>#include "sos.inc"
>
>.org 9327h
>.list
>
> xor a
> jr initialize
> .dw 0
> .dw description
>
>description:
> .db "Frequency",0
>
>initialize:
> call _runindicoff
> call _clrLCDfull
> ld hl,input_cycles
> call _puts
> ld a,1
> ld (ASM_IND_CALL),a
> call $50B2 ;PGMIO_EXEC
> call _ckint
> jr nz,notint
> ld de,op1
> ld a,(de)
> ld b,a
> ld hl,input_frequency
> call _puts
> call _newline
> ld a,1
> ld (ASM_IND_CALL),a
> call $50B2 ;same as above
> call _ckint
> jr nz,notint
> ld de,op1
> ld a,(de)
> ld c,a
>
>beep: di ;joe's beep routine
> ld e,$D0
>beepl1: ld a,c
>beepl2: dec a
> jr nz,beepl2
> ld a,e
> xor %00000011
> ld e,a
> out (0),a
> djnz beepl1
> ei
> ret
>
>notint:
> ld hl,not_an_integer
> call _puts
> call _getkey ;I would like to change these to jp _getkey
> ret ;but when I do it resets my mem. why?
>
>input_cycles:
> .db "How many cycles?",0
>input_frequency:
> .db "Frequency?",0
>not_an_integer:
> .db "Not an integer!",0
>.end
>END
>