A82: Re: Ilya? (Info on 83 like calls)


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

A82: Re: Ilya? (Info on 83 like calls)




I have included information on all the calls below. The information was
taken from  ti82.h2, ti82.inc and 82-ROM.TXT. If you plan on using these
function i suggest that you use the ti82.h2 and ti82.inc files, since they
make it easier to understand what is going on. The files also include
support for commands which it is hard to use normally.

Dines

>     CALL ROM_CALL
>      .dw 0x2F48-0x1A
B_GET_KEY = $2F48-$1A ; BASIC Get key returns keynumber in OP2

Works like getkey in basic the keynumber is store as a fp value in OP2
>
>      CALL ROM_CALL
>      .dw 0x19F5
LD_DE_HL

Used to load OPs
>
>      CALL ROM_CALL
>       .dw 0x35A0
LD_DE_OP1 = $35BA-$1A ; Convert OP1 to binary and store in DE

Used to convert FP numbers to 16 bit values (like key from B_GET_KEY)
>
>     CALL ROM_CALL
>      .dw 0x3566-0x1A    ; OP1 = RANDOM
RANDOM = $3566-$1A  ; OP1 = RANDOM

Load OP1 with a random FP number
>
>     ld hl,8
>     CALL ROM_CALL
>     .dw 0x359A
LD_OP2_HL = $35B4-$1A ; Convert HL to FP and store in OP2

>
>     CALL ROM_CALL
>      .dw 0x0925       ;0925 or RST 0028 OP1 = OP1*OP2 (no extra digits)
MUL_OP1_OP2 = $0925

Multiply OP1 and OP2 and store the result in OP1 (calculations are done
using normal precision)
>
>      CALL ROM_CALL
>      .dw 0x0836       ;0836             OP1 = IPART(OP1)
IPART_OP1 = $0836

Get integer pasrt of FP value and sotre it in OP1
>
>     CALL ROM_CALL
>      .dw 0x35A0
LD_DE_OP1 = $35BA-$1A ; Convert OP1 to binary and store in DE
>
>         ld h,0
>         ld l,a
>         CALL ROM_CALL
>         .dw 0x359A
LD_OP2_HL = $35B4-$1A ; Convert HL to FP and store in OP2

The above lines converts A to a FP value an stores it in OP2 (destroyes HL)
>
>         CALL ROM_CALL
>         .dw 0x1D19
LD_OP1_HL

Used to load values to OP1
>
>         CALL ROM_CALL
>         .dw 0x2E46
>         .dw 0x6CA4
>         .db 0x04
DISPOP1A

Display FP value in OP1 using A digits



References: