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

Re: Wall Defence game for Apple II



> could have used the arrow keys, but I remember that the older Apple II
> models did not have left and right arrows as well, and Ctrl+H and Ctrl
> +U were used instead. Also the up and down arrow keys were only in the
> later Apple II models, so if I use arrows + up arrow and space, it
> will work whenever the Caps lock. But joystick will work in all the
> cases.

All models of Apple II had the left and right arrow keys, I know this
because we wore those keys out playing games.  I like your choice of z
and x for left and right.  It feels more retro on the Apple II because
modern flash games use z and x.


getkey:
	LDA $C000
	BPL getkey

	BIT $C010 ; clear keyboard strobe and put bit 6 of keypress into
oVerflow flag
        BVC skip  ; skip the next instruction if the oVerflow flag is
clear
	AND #$DF  ; clear bit 5 to upcase the character
skip:


Alternatively, the last line could be this:

	ORA #$20 ; set bit 5 to lowercase the character