Page 2 of 2

Re: Sharper by Genesis Project

Posted: Fri Jul 15, 2022 3:13 pm
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
		...