Sharper by Genesis Project

Is there such a thing as an MZ demoscene?
hlide
Posts: 681
Joined: Thu Jan 25, 2018 9:31 pm

Re: Sharper by Genesis Project

Post by hlide »

I'm indeed coding that star field as an exercise and yes there is no need to use stack for that :

The critical section to be drawn is so short:

Code: Select all

		...
		EX		DE,HL					; save the current VRAM position for the next iteration
		; Start of the critical section of BLNK signal
		LD		(HL),C					; clear the previous star character in VRAM
		LD		(DE),A					; draw the current star character in VRAM
		; End of the critical section of BLNK signal
		...
Post Reply