RE: A86: [ot] any ideas on an algo for this game?


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

RE: A86: [ot] any ideas on an algo for this game?




Here's the interrupt I use in keen, it seems to be pretty good. Also it only
uses AF', which means you may use the other shadow registers in your program
(via EXX) if you would like to. You need to install it as a standard IM2
interrupt (I installed it on the graph screen...). It seems to be pretty
good for flicker, but probably not any better than others...

.org $CBCB
Interrupt:
	ex	af,af'

	in	a,(3)
	bit	1,a
	jr	z,InterruptSkip

	ld	a,0
InterruptMod = $ - 1
	inc	a
	cp	3
	jr	c,InterruptOkay
	xor	a
InterruptOkay:
	ld	(InterruptMod),a
	cp	2
	ld	a,$FC
	jr	c,InterruptDark
	ld	a,$F6
InterruptDark:
	out	(0),a
InterruptSkip:
	in	a,(3)
	and	1
	add	a,9
	out	(3),a
	ld	a,11
	out	(3),a

	ex	af,af'
	ei
	reti
InterruptEnd:

-----Original Message-----
From: owner-assembly-86@lists.ticalc.org
[mailto:owner-assembly-86@lists.ticalc.org]On Behalf Of matt
Sent: Friday, June 09, 2000 9:07 AM
To: assembly-86@lists.ticalc.org
Subject: Re: A86: [ot] any ideas on an algo for this game?

after reading this i watched the worms carefully and this seems like the way
to go. anyone know whats the best 4 level grayscale out there?
peace




References: