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


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

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



ryan.gillespie@juno.com (Ryan N Gillespie) writes:
>>
>>I don't understand what this logic stuff does.  I need something to 
>>see if the number is a 0,1,2,3 etc..
>
>Just use the compare command and then make a conditional jump. 
>Example: (this checks if matrix location (2,1) is 4.
>
>	ld A, (Matrixone + (1*4) + 0)
>	cp 4
>	jr z, Label

I misled you here. This code accesses location (1,0) according to the
diagram. My mistake.

		-Scoobie


References: