The fourth Z80 challenge for the ZX Spectrum was issued last week:
Back to something simple for the next challenge, a diagonal fade-to-white CLS. Write the shortest code to wipe the screen by increasing the ink colour of each character until it reaches white.
The clear should start at the top left and move one character across the screen per frame. The initial screen can be assumed to be monochrome — black text, white background, flash off, bright off. There’s no need to clear the screen bitmap. Here’s a demonstration of the clear in slow motion:
Target: under 50 bytes.
The deadline is Monday 6th April, midday (GMT).
- Your program shouldn’t rely on the initial contents of registers.
- Programs must halt between frames. The HALT is included in the size.
- No RAM/ROM other than the attribute memory should be written to.
- Programs must return. The RET instruction is included in the size.
- So everyone has a fair chance comment with the code size not code.
- There are no prizes, just the chance to show off your coding skills.
thanks to JM @ http://www.retroprogramming.com/