Re: A83: Matrices., and a message to Pat.


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

Re: A83: Matrices., and a message to Pat.




On 10-Jun-98, James Matthews wrote:

>Conway,

>> #define equ .equ
>> #define EQU .equ
>> #define end .end
>> #include "ti83asm.inc"
>> #include "tokens.inc"
>> 
>> .LIST
>> #define matrixobj 02h
>> .org 9237h
>> 
>>   call  _ZEROOOP1   ;Ti documentation say zeroop1!
>>   ld    hl,matrixname
>>   ld    de,op1
>>   ld    bc,3
>>   ldir
>>   call  _chkfindsym
>> ;Ok What are you cheacking here

>OK, its this entire thing I'm unsure about, and this is why I bitch about
>TI releasing some more example programs.  What I THINK I'm doing, is try to
>find the starting memory address of the matrix, and put it in DE.

>>   inc   de
>>   inc   de ; Gone to the fith byte of OP1, yes?
>Huh? :)...What I thought I was doing was incrementing the memory address of
>the matrix to get to the elements.

>>   ld    bc,0101h       ; Do you want a hex number here?
>Yeah...I think so.  I want the first row, first column...

>>   ld    a,10d
>>   call  _setxxop1    ;What does this do?
>This puts the acc into op1.

>>   call  _puttomat    ; And this too.
>This puts OP1 to a matrix at DE in row/col bc.

>So, what am I doing wrong?

>James.

First of all, don't increment de.  Second, my guess is that _setxxop21
trashes bc and de.

Linus


References: