Re: Question


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

Re: Question



At 06:16 AM 8/4/97 -0400, you wrote:
>Does anyone know how to change this so I can use D_ZT_STR?(Don't even
>bother to ask why?)
>#include "TI-85.H"
>
>        .org 0
>        .db "Analyzer v0.1a",0
>Init:
>        ROM_CALL(CLEARLCD)
>
>ROMVERS:
>        ld A,($8C3E)
>        cp $2A
>        ld b,$32
>        cp $57
>        ld b,$33
>        cp $83
>        ld b,$34
>        cp $5E
>        ld b,$35
>        cp $3D
>        ld b,$36
>        cp $97
>        ld b,$38
>        cp $91
>        ld b,$39
>        cp $35
>        ld b,$30
>        ld a,b

ALL of the above to detect the ROM version was a waste.  The A register
will always be $30.

>        ROM_CALL(TX_CHARPUT)
>
>Wait:
>        call GET_KEY
>        cp $37
>        ret z
>        JUMP_(Wait)

Why not use JR Wait...its faster.

>.end


                 Thomas J. Hruska -- thruska@tir.com
Shining Light Productions -- "Meeting the needs of fellow programmers"
         http://www.geocities.com/SiliconValley/Heights/8504
                    http://shinelight.home.ml.org


References: