RE: A85: Matix


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

RE: A85: Matix



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

----------
From: 	John Koch[SMTP:john@imagin.net]
Sent: 	Sunday, September 07, 1997 4:41 PM
To: 	assembly-85@lists.ticalc.org
Subject: 	A85: Matix

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?

John
Warning
Could not process part with given Content-Type: application/ms-tnef

Follow-Ups: