Re: A89: Matrices
[Prev][Next][Index][Thread]
Re: A89: Matrices
board:
ds.b 8*8 ;Obviously could define these with dc.b
; Rows and columns start at 0
get_element: ;In: d0 = X d1 = Y Out: d0 = Element a0 = Location
lea board(pc),a0
lsl #3,d1
add d0,d1
add d1,a0
move.b (a0),d0
rts
Lilpjd@aol.com wrote:
>
> How could I put a 8x8 matrix into a program? It would be a temporary one, so
> it can't be an actual MAT file. Here's why: I'm trying to build a board
> game, but i need a way to find store and access this matrix so that I can
> check what pieces are where. Thanks
>
> Pete
--
Scott "_Wrath_" Dial
wrath@calc.org
ICQ#3608935
TimeCity AI Guy II - www.timecity.org
Member of TCPA - tcpa.calc.org
__________________________________________
NetZero - Defenders of the Free World
Get your FREE Internet Access and Email at
http://www.netzero.net/download/index.html
References: