Monday, February 22, 2010

 

AARGH – bug in ZX Spin v0.7?

I’ve just spent 2 hours trying to figure out why a piece of code typed in - then copied/pasted (even via Notepad) - from the aforementioned JC book did not work in Spin and kept giving me an INTEGER OUT OF RANGE error.

Finally tracked it down to this line:

ld hl, 21+15*256

and had to replace it with

ld hl, 21+(15*256)

What a p*sser.




Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?