Re: A82: How do the good programmers do it?


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

Re: A82: How do the good programmers do it?



Ryan N Gillespie wrote:
 
> Store:
> 
>         ld A, 1
>         ld (Matrixone + [ROW*4] + [COL] ), A

So if I wanted to store 1 into (3,4) I would:
  ld A,1
  ld (Matrixone + 12 + 4 ),A  (<--you can use +'s like this?? doesn't 
seem right?)


 
 Read:
>         ld (Matrixone + [ROW*4] + [COL] ), A

So If I wanted to read (3,4) I would:

  ld A, (Matrixone + 12 +3 )

 
> Logic:
>         ld (Matrixone + [ROW*4] + [COL] ), A
>         or A
>         jr z, Label

I don't understand what this logic stuff does.  I need something to see 
if the number is a 0,1,2,3 etc..


Follow-Ups: References: