Gamecoding in machinecode on a ZX81.

Any discussions related to the creation of new hardware or software for the ZX80 or ZX81
dr beep
Posts: 2079
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Gamecoding in machinecode on a ZX81.

Post by dr beep »

upkey loops until no key is pressed

nokey loops as long no key is pressed
MrVertigo
Posts: 106
Joined: Fri May 27, 2022 9:06 pm

Re: Gamecoding in machinecode on a ZX81.

Post by MrVertigo »

So we use both routines together in the code?
dr beep
Posts: 2079
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Gamecoding in machinecode on a ZX81.

Post by dr beep »

MrVertigo wrote: Fri Aug 04, 2023 4:36 pm So we use both routines together in the code?
Yes or you can't keep up with the speed
MrVertigo
Posts: 106
Joined: Fri May 27, 2022 9:06 pm

Re: Gamecoding in machinecode on a ZX81.

Post by MrVertigo »

Thank you!
salvacam
Posts: 52
Joined: Wed Jul 21, 2021 4:50 pm

Re: Gamecoding in machinecode on a ZX81.

Post by salvacam »

I don't know if it has already been mentioned. I haven't read the whole thread yet.
dr beep wrote: Sun Jan 31, 2021 4:25 pm

Code: Select all

gamecode 
	ld a,63
showa	ld (screen),a			
	dec a
	jr nz,showa
	jr gamecode
I get an error when trying to compile this change. Label not found: screen
I have to put the screen label here for it to work

Code: Select all

screen
	block 20,128		; BLOCK places 20x character 128,inverted space
	db 118
My games

ZX81 hoy Blog (in Spanish) of new games and applications for the ZX81
Post Reply