Re: A83: Question


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

Re: A83: Question




> 1. (pencol) & (penrow), Which is X and which is Y?

Column...so x.
Row......so y.

> 2. Doing this...
> 	ld hl, X*256+Y	;Is the 'h' loaded with X, and 'l' loaded with Y?
> 	ld (pencol), hl	;But now 'l' is at (pencol)?  LSB or something?

Nah, to move X over to h you must multiply it by 100h right?  100h = 256d.

H would go into pencol, and l to penrow...wait, I think you'd do:
 	ld (penrow),hl

HTH,

James.