A83: Re: Help!!!


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

A83: Re: Help!!!




Perhaps because curcol, currow haven't been initialized in your notint
function...

ld de,op1
ld a,(de)
ld b,a

could be written:
call    _convop1
ld      a,e            ; perhaps you can do ld b,e directly.
ld      b,a

Oh that's cool, makes a pulse out of given information, cool idea...tell me
if you get it to work, sounds interesting!  HTH,

James.
==========================================
E-mail matthews@tkb.att.ne.jp              ICQ: 7413754
http://home.att.ne.jp/gold/tomcat21/index.html
http://hyperion.advanced.org/18242/
==========================================
-----Original Message-----
From: RedPicasso@aol.com <RedPicasso@aol.com>
To: assembly-83@lists.ticalc.org <assembly-83@lists.ticalc.org>
Date: Tuesday, December 08, 1998 7:50 PM
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
>