Re: A85: Matix
[Prev][Next][Index][Thread]
Re: A85: Matix
At 11:29 AM 9/7/97 -0700, you wrote:
>To John Koch:
>> >> Why will no one ever answer me? I want to store to a temporary variable
>> >> called (temp) which contains my GameBoard. Now, IN ZSHELL, how do I
>> >> change and store things to certain cordinates in a matrix which is
>> >> stored in a variable?
>
>The only difference in ZShell and Usgard programs is that Usgard has more
>ROM calls that ZShell doesn't, and Usgard has built-in relocation done by
>the compiler and operating shell. So, this is how you store the matrix:
>
>temp:
>.db 0,0,0,0,0
>.db 0,0,0,0,0
> .
> .
> .
>.db 0,0,0,0,0
>
>Now, I'm new to all this, but as I understand it, if you want to store,
>say 10 in the second column, first row, you'd do this in Usgard:
>
> ld (&temp+1), $A
>
>In ZShell, you do the same thing, except you add (PGRM_ADR), but when I
>started programing, it was using USUL for Usgard, so I don't know for
>sure. This will work for every ASM program, though. Just add the
>program's offset, and like I said, with "&," Usgard does it automatically.
>I hope that helps you.
>
>To Robert Cutmann:
>> Here Here!!
>
>Hehe, it's "Hear, hear!"
>
>-----
>Stuntman (Nathan Haines) - ICQ UIN#: 2157863
>http://www.cyberverse.com/~stuntman/nathan.html
>President of Stuntworks, QuickBASIC/Visual BASIC programmer
>Stuntworks - http://stuntworks.home.ml.org
>
>
>
Well, sorry, and that's "G"utmann
Robby Gutmann
gutmann@planet-connect.com
ICQ UIN: 724927 Agonostis on IRC
Heights don't bother me--it's the falls that bother me....
Follow-Ups: