Hacker News new | ask | show | jobs
by londons_explore 879 days ago
Hah! The code doesn't work because chatGPT missed a very obscure trick...

At the start of the code is a comment "REM xxxxxx". It stripped this comment out thinking it was junk.

But actually, the code later uses the "PAGE" command to directly read RAM to get the contents of this comment, which it then uses as a lookup table for dithering.

1 comments

Actually I did that (note that the REM is missing from my prompt.) It didn't look like a hack for embedding binary data for subsequent PEEK or CALL statements, which was common on the 8-bit Apple I grew up using, so I assumed it was just garbage and left it out.

When I fed it your updated version that didn't include the REM, farther down the page, it still didn't quite work. Although I can tell it's not too badly broken. There's some visual structure in the output, just not the expected image.