korruptor wrote:
Calling Evilpaul :D
Haha. Yeah, I've written one or two things on the Speccy ;)
My current setup is
Pasmo, ZXSpin and makefiles with a bunch of custom command line tools. For smaller projects (256byte and 1k demos) I usually just use Pasmo on its own.
The screen is indeed weird, but there are a few tricks for navigating around the pixels. Trick 1 is:
Code:
; in: current screen line in DE
; out: next screen line in DE
getNextDE
inc d
ld a,d
and 7
ret nz
ld a,e
add a,32
ld e,a
ret c
ld a,d
sub 8
ld d,a
ret
Trick 2 is to build a table of the start address of each screen line, aligned on a page boundary for quick access of course..
Trick 3 is that it's actually only hard to jump down every 8th line, for the other seven you just need to add 256 to the current address. So if HL holds the current line, doing INC H will jump down one line..
There's so much stuff like this that doesn't seem to be documented anywhere. There are efforts like the
ZX Technical Wiki but that's still looking pretty pointless. Learning to code a Speccy is all a bit trial and error really. I think I learned most of my most useful Z80 tricks by reading MSX dev sites. If you want, I can give you a few useful bits of code and some header files. Maybe even post them in here for other people to see?
Like Barney I might also suggest asking on WOS, but I don't think you'll get a decent answer, so don't bother :D
Oh, and as for checking on a real Speccy, I have to admit that I don't bother any more - the emulators are more than good enough for most things. If I *have* to test something I have a +2 and a
divIDE up in the loft but, more often than not, I ask someone else to test it for me ;)