Re: A82: Detecting ROM version
[Prev][Next][Index][Thread]
Re: A82: Detecting ROM version
"Thomas J. Hruska" <thruska@tir.com> writes:
>Does anyone know how to detect ROM version numbers on the TI-82? If
>so,
>could they send me some assembly code on how to do it?
>
>TIA,
>Thomas J. Hruska
Try this code, Thomas.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#include "ti82.h"
.org 0
.db "Disp. ROM Ver.",0
ROM_CALL(CLEARLCD)
ld HL, (ROM_VERS)
ld A, (HL)
ROM_CALL(M_CHARPUT) ; display %A on screen, menu style
WaitKey:
CALL GET_KEY
cp $37
jr nz, WaitKey
ret
.end
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
I receive an 8 on my screen when this program is run and my
version # is 18. Let me know if this works for other ROM
versions....anyone. =) Thanks.
Oh! I forgot to tell you to add the following line to the TI82.H
file.
ROM_VERS =$8C3E ; ROM version byte
-Scoobie
References: