A83: Re: Score storing problem...


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

A83: Re: Score storing problem...




the answers are inside the program...
i dont know anything about the input routine (or much about technical rom
calls like it),
so thats not included... hope this helps james

-Harper Maddox

jerky@ebicom.net
IRC nick: Geori
ICQ: 1214597

-----Original Message-----
From: James Matthews <matthews@tkb.att.ne.jp>
To: Assembly 83 List <assembly-83@lists.ticalc.org>
Date: Thursday, August 13, 1998 8:07 AM
Subject: A83: Score storing problem...


>
>Guys, can you help me here.  This is supposed to store the value the user
>enters in the programs.  I've got three problems:
>
>1.)  The program score starts of at 37755.
>2.)  The programs displays the highscore, and then prompts for input. With
>no line...I don't think newline, nor loading a new currow helps.
>3.)  The program locks up when it tries to write to the program :)...kinda
>important.
>
>Thanks.
>
>James.
>
>---START-OF-CODE-----
>.NOLIST
>#define equ .equ
>#define EQU .equ
>#define end .end
>#include "ti83asm.inc"
>#include "tokens.inc"
>.LIST
>
>PGMIO_EXEC         equ           50B2h
>_formDisp          equ           4D0Eh
>
>.org 9327h
>
>        call    _clrLCDFull
>        call    _homeup
>        ld      hl,ScoreText
> call    call _puts
>        call    _newline
> ld hl,HighScore ; Load current high score in HL

should be:
 ld a,(HighScore)    ; get the score
 ld l,a
 ld h,0    ; put "a" into hl

> call _dispHL ; Display high score
>
>        ld      de,821ch
>        ld      hl,prompt
>        ld      bc,16
>        ldir
>        ld      a,1
>        ld      (ASM_IND_CALL),a
>
>        call    PGMIO_EXEC
>
> call    _convop1
> ld      a,e
> ld hl,(HighScore)

this should be "ld hl,HighScore"

> ld (hl),a
>
>
>prompt:         .db "Points: ",0
>ScoreText:      .db "High Score: ",0
>HighScore: .db 0
>.end
>.end
>
>