Re: A85: Matix


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

Re: A85: Matix



You have to be sure that you set Z-shell to recalculate the checksum.

At 06:39 PM 9/7/97 -0500, John Koch wrote:
>I tried that and then put lh (hl),a and it didn't work andgave me a bad
>checksum!  Here is how I'm calling my matrix, if this matters, and I
>have the number I want stored in A!  but nothing is working!  Does
>anyone know why or ahve they run across this?
>
>John
>
>Ess Andreas wrote:
>> 
>> B = x coordinate
>> C = y coordinate
>> DE = addr of your matrix-like gameboard
>> 
>>         ld      H, 0
>>         ld      L, C
>>         add     HL, HL
>>         add     HL, HL
>>         add     HL, HL  ;you have an 8x8 matrix, right?
>>         ld      C, B
>>         ld      B, 0
>>         add     HL, BC
>>         add     HL, DE
>> 
>> Now you can perform ld A, (HL), ld (HL), A etc. etc.
>>         Andreas
>
>
---
Evil Jim
Viva La Mexico
<eviljim@writeme.com>
http://members.tripod.com/~eviljim/
I want to die in my sleep like my Grandfather, not screaming in pain like
the passengers in my car...


References: