Learning VIC-20 Programming with ChatGPT-3.5: Part 2
The Clueless Engineer The Clueless Engineer
1.88K subscribers
256 views
0

 Published On Apr 10, 2024

Continuing on with our attempt to get ChatGPT-3.5 to write a simple Commodore VIC-20 program, we finally have success ... after correcting it further. I find it interesting that it appears to interpret the correction I give it to ... mostly ... come up with the corrected program. This time I'm using the VICE emulator on my Mac rather than Retro Game's THEVIC20.

The chat can be found here:
https://chat.openai.com/share/fb4570c...

After providing several corrections, I checked in a new chat session if it remembered any of my corrections ... no, it appears not. It came up with several different variations, none appeared correct and none appeared to incorporate my corrections.

The next part will be to see if it can convert it to assembly language ...

So far, I don't think VIC-20 programmers have anything to worry about from ChatGPT-3.5 ...

The final program:

10 REM BOUNCING BALL
20 REM INITIALISE VARIABLES
30 X=10:Y=10
40 DX=1:DY=1
50 FOR I=7680 TO 8185:POKE I,32:NEXT I
60 REM MAIN LOOP
70 PRINT CHR$(147)
80 POKE (X+Y*22+7680),143:POKE (X+Y*22+38400),6
90 X=X+DX:Y=Y+DY
100 IF X=0 OR X=21 THEN DX=-DX
110 IF Y=0 OR Y=22 THEN DY=-DY
120 FOR T=1 TO 50:NEXT T
130 GOTO 70

show more

Share/Embed