Sunday, October 20, 2013

46 - Sunday - Programming Basic on the Commodore 64

Played Annie on LOL....

Another thing I did this evening was download a Commodore 64 emulator. Yeah, after realizing a few things namely that I wish that I had programmed the Commodore 64 when I was alot younger and that any programming I do today will help me with my current learning of programming. So with that said I have begun to learn how to program the Commodore 64. Now, I do not mean I am going to become a Commodore 64 programmer. Just in case you do not know the Commodore 64 was released around - my God - 30 years ago!

Here is a little same of code:

1 REM UP, UP, AND AWAY
5 PRINT "(CLR/HOME)"
10 V = 53248 : REM START OF DISPLAY CHIP
11 POKE V + 21,4 : REM ENABLE SPRITE 2
12 POKE 2042,13 : REM SPRITE 2 DATA FROM BLOCK 13
20 FOR N = 0 TO 62 : READ Q : POKE 832+N,Q : NEXT
30 FOR X = 0 TO 200
40 POKE V + 4,X : REM UPDATE X COORDINATES
50 POKE V + 5,X : REM UPDATE Y COORDINATES
60 NEXT X
70 GOTO 30
200 DATA 0,127,0,1,255,192,3,255,224,3,231,224
210 DATA 7,217,240,7,223,240,7,217,240,3,231,224
220 DATA 3,255,224,3,255,224,2,255,160,1,127,64
230 DATA 1,62,64,0,156,128,0,156,128,0,73,0,0,73,0
240 DATA 0,62,0,0,62,0,0,62,0,0,28,0



Now, if you typed that in in your Commodore 64 you would get the following image...

Oh.... ahem, well. I was going to have a screen shot here but it seems like the Commodore 64 emulator I was using did not like being screen shot.

ha ha ha... I actually find it really funny. It is exactly like something that would happen after typing in tons of a program, you type in the whole thing and then it does not work or something happens and then you have to type in the whole thing again!

ok this is lame, the image is so pale because a print screen would not work! this is the screen grab after the image crashed! lols... but if you look you will be able to see the little ballon that was floating across the screen. 

No comments:

Post a Comment

The Reality Of The News

There have been a few times where I have clicked on a news article only to realise that I have been hit with a paywall. I don't mean thi...