Introduction to Commodore 64 BASIC and Why You Should Learn It

  Рет қаралды 23,798

Retro Game Coders - Chris Garrett

Retro Game Coders - Chris Garrett

Күн бұрын

Пікірлер: 111
@RetroGameCoders
@RetroGameCoders 3 жыл бұрын
I added the full illustrated transcript to the post, plus an option to get a disk, slides, and PDF of the transcript - check it out on the site :) retrogamecoders.com/commodore64-basic-programming/
@MichaelFergusonVideos
@MichaelFergusonVideos 10 ай бұрын
I was much older than many of you here when the VIC-20 came out but it was my first computer and a great intro to BASIC. I loved programming so much I earned a Bachelors in Computer Science.
@TheDarkmore
@TheDarkmore 3 жыл бұрын
Just finished debugging one of my basic games on the c64, started basic at the age of 10, now 39, BASIC v2 for life! :-)
@RetroGameCoders
@RetroGameCoders 3 жыл бұрын
It's like there is a secret society of us :D Will you be sharing/publishing your game?
@TheDarkmore
@TheDarkmore 3 жыл бұрын
@@RetroGameCoders Sure, once it is bug free, it got a major overhaul: I changed the start of BASIC higher so I could read all my sprite data in the first VIC bank. Unfortunately the code is a mess, but that happens without an editor or proper design.
@Plrang
@Plrang 3 жыл бұрын
@@TheDarkmore what editor are you using?
@TheDarkmore
@TheDarkmore 3 жыл бұрын
@@Plrang Just plain C64, with some online tools: krissz pertscii editor and spritemate, also trying out lvlvl petscii converters for future projects, CBM studio is a bit hard for lot of petscii graphics, which I usually have tons of.
@Plrang
@Plrang 3 жыл бұрын
@@TheDarkmore You mean you code directly in C64 editor or am I reading that wrong?
@10MARC
@10MARC 3 жыл бұрын
Really a wonderful introduction to BASIC and Commodore BASIC specifically. I am looking forward to the future videos in the series! I should send you a copy of my Haiku generator I wrote in BASIC back in 2019. I created it so it runs on everything from the PET to the VIC-20, C64 and PLUS/4! (And the C128 in C128 mode, both 40 and 80 column!)
@RetroGameCoders
@RetroGameCoders 3 жыл бұрын
Thank you and please do :)
@aftertheendtimes
@aftertheendtimes Жыл бұрын
Thank you for this great intro to basic, ive got a Vic-20 in late 1980 at age 12 and moved on with Sinclair 48k, then C=64, and then C=128. but after these all years away from the Basic language ive forgotten it, so this course i gold for me to get back on it, now i built a Raspberry PI running Combian 64 emulator wich emulates all commodores from PET to C=128,.....it is awesome fun, thank you again Chris Garrett
@RetroGameCoders
@RetroGameCoders Жыл бұрын
Glad you enjoyed it! Combian is amazing isn't it? Also check out Bare Metal C64 for immediate boot and some other advantages, though you do lose Raspberry Pi operating system quality of life conveniences with that setup :) I also started with Vic 20 and then Spectrum 128+2, but then my brother got employed so we could move on to Atari ST :)
@aftertheendtimes
@aftertheendtimes Жыл бұрын
@@RetroGameCoders Hi dear friend! =) thanks for the tip on bare metal C64 i am exiting to look into it =) love cheers
@kolex023
@kolex023 10 ай бұрын
Wow, it was fast! :D Congrat sir this video has won the 10s award :) Which means I've never seen any of your content before and within 10 second I subscribed to your channel. :D
@CityXen
@CityXen 3 жыл бұрын
Pretty good BASIC primer video. Well done!
@RetroGameCoders
@RetroGameCoders 3 жыл бұрын
Thank you :)
@Centar1964
@Centar1964 11 ай бұрын
Basic was my 1st language that I liked and just recently got VISION Basic for the 64 which has rekindled that love.
@RetroGameCoders
@RetroGameCoders 11 ай бұрын
Vision basic is excellent, though I am biased towards cross-development rather than editing and compiling on the C64 itself. Using emulation for Vision allows a partial solution to that :)
@Centar1964
@Centar1964 11 ай бұрын
I sorta do that, I run it on a C64 Mini with a wireless keyboard.@@RetroGameCoders
@ChrisM541
@ChrisM541 Жыл бұрын
Nice one. The great thing about these 'golden era' first home computers (ZX80/81/Spectrum, CBM64) was that you simply switched them on and you were taken instantly into a BASIC/IDE environment. That's what hooked so many into beginning their passion for programming. Is it this easy today? - bizarrely no! since you need to install your own IDE & toolsets. That said, double-click on any of these excellent emulators and you're taken straight into that same 1980's BASIC environment.
@DS-pk4eh
@DS-pk4eh 8 ай бұрын
Started with VIC20 and tape drive, and Basic and some assembly. I also tried Forth as that was one of the tapes I got with a computer. Later I got C64, still only tape drive. Did my diploma work with Simon's Basic as it had so many commands, mostly graphic ones that I needed (wanted to draw 3D graphics. One wireframe sphere would took 5 hours to render! ). In school we learned Fortran and Cobol (that we had chance to try on some big IBM mainframes from the local bank) After that I got Amiga 500 and there, I wanted to try Amiga Basic, but discovered and loved more C.
@bekbraceplus
@bekbraceplus 8 ай бұрын
Awesome! I'm one myself, a RGC - Totally supporting your channel
@RetroGameCoders
@RetroGameCoders 8 ай бұрын
Thank you, hope you enjoy :)
@bekbraceplus
@bekbraceplus 8 ай бұрын
@@RetroGameCoders I have, and subbed!
@througtonsheirs_doctorwhol5914
@througtonsheirs_doctorwhol5914 Жыл бұрын
Started in Cobol, BASH, C, Java. Old school analyst programmer course from 2000 to 2003.... But the worse was Assembly... the teacher had us do exams with pen and paper on graph-type paper to note the hexadecimal values in memory of the data we manipulated with Asembly. Yeah my first work as an intern was COBOL for the gov't ! In passé computer infrastructures for the time. NORTEL had failed and they were still - ARE STILL - using COBOL.
@RetroGameCoders
@RetroGameCoders Жыл бұрын
I kind of enjoyed COBOL, and I was tempted during Y2K prep to take the fat $$$$$ on offer;)
@througtonsheirs_doctorwhol5914
@througtonsheirs_doctorwhol5914 Жыл бұрын
now learning Commodore Basic for my C64 mini ! @@RetroGameCoders from that book you referenced, the descendent of the Brown Bible... he says you can use the screen at 1/576th of an inch vertically with a precision of 1/1296th of an inch horizontally? Is this similar to what nowadays feel like 576 x 1296 pixelated blocks ?
@througtonsheirs_doctorwhol5914
@througtonsheirs_doctorwhol5914 Жыл бұрын
Thanks for readin g ! @@RetroGameCoders
@RetroGameCoders
@RetroGameCoders Жыл бұрын
@@througtonsheirs_doctorwhol5914 which, the Atari Reference Manual?
@througtonsheirs_doctorwhol5914
@througtonsheirs_doctorwhol5914 Жыл бұрын
sorry one led me to the other : it was in Complete_Commodore_Inner_Space_Anthology @@RetroGameCoders
@tenminutetokyo2643
@tenminutetokyo2643 3 жыл бұрын
Started on the VIC in 1983, and then on Apple II, then Pascal, then C on the Mac and from there became a pro rockstar including at Apple + Sony.
@Enfors
@Enfors 3 жыл бұрын
Wow. This video deserves way more views than it has.
@RetroGameCoders
@RetroGameCoders 3 жыл бұрын
Thank you! One day I might crack the KZbin algorithm but for now I just get all up in my head with analysis paralysis instead ;)
@Plrang
@Plrang 3 жыл бұрын
Great introduction:)
@SteveMorrow8859
@SteveMorrow8859 3 жыл бұрын
A great demonstration of how Basic works with the machine and how to program in it. Do you teach assembly language videos as well? Quite curious.
@RetroGameCoders
@RetroGameCoders 3 жыл бұрын
I considered it but wasn’t sure if I could add anything that hasn’t already been offered :)
@SteveMorrow8859
@SteveMorrow8859 3 жыл бұрын
@@RetroGameCoders What I've discovered in my experience is that people are looking for a lot of assembly language type programs, which is what I enjoy doing. Although the computer is old as dirt, for some reason there are those who still like the bits and bytes. There is always room for another great tutorial guy. Maybe you could be him?
@robertcraane7910
@robertcraane7910 2 жыл бұрын
I started BASIC programming at age 13, in 1980, at school, We didn't have computers so we used a punch card system! They were send to a Central School Computer for a print out! I became a Dbase programmer. Later I was in IT- management, so I didn't any coding anymore. Now I'm 54, and I have to relearn BASIC again, hahaha! Forgotten almost all!
@RetroGameCoders
@RetroGameCoders 2 жыл бұрын
I just missed the punch card era but our COBOL teacher told stories of dropping her cards and having to put them back in order, hoping none of them got too creased or bent up in the process :D
@robertcraane7910
@robertcraane7910 2 жыл бұрын
@@RetroGameCoders I know the feeling! 😁😁
@AllGamingStarred
@AllGamingStarred 2 жыл бұрын
you earned a sub. great work
@gabrielcamacho6112
@gabrielcamacho6112 3 жыл бұрын
I really appreciate this. I especially like the In-browser emulator you provide. You literally could not make it easier, and I'm grateful for that. I'll be following and learning along!
@mocatz1963
@mocatz1963 Жыл бұрын
I can't use the online emulator. My keyboard keys didn't have the same layout as a commodore so I couldn't use it. What type of keyboard do you have? how did you get a modern computer to use the online emulator? or did you use the online keyboard?
@NuntiusLegis
@NuntiusLegis 6 ай бұрын
@@mocatz1963 To make use of your keyboard, you can use the emulator VICE locally on your system. You can also buy stickers for the keys with all the specific symbols of the C64 keyboard, costs about a tenner.
@dharmatech
@dharmatech 2 ай бұрын
The photo next to the Dijkstra quote is John McCarthy, the inventor of LISP.
@aimeefoster1613
@aimeefoster1613 3 жыл бұрын
What an inspiring and educational video! I have no significant experience with computers and programming other than the general. I’m 31 now now and having recently read the book Code by Charles petzold I’d like to get started with learning about computers and programming. This leads to my question: having seen that amazon is selling a replica of C64, i wondered if it’s possible to have a full programming experience on the replica vs the original? I’d very much appreciate your input. Best wishes.
@RetroGameCoders
@RetroGameCoders 3 жыл бұрын
Yeah I think it’s worth buying. Enjoy!
@NuntiusLegis
@NuntiusLegis 6 ай бұрын
You might also consider buying a real C64 - the C model (later one in the more streamlined case) is very reliable to this day. You may google for 4:3 TFT TVs with s-video input that work nicely as C64 monitors, and pick one up from Ebay.
@MattKasdorf
@MattKasdorf 3 жыл бұрын
Might you produce some TRSE videos? Targeting the Commodore PET? 🇨🇦
@RetroGameCoders
@RetroGameCoders 3 жыл бұрын
Yes the first written articles are on my site, it takes me *ages* to edit videos so they tend to come down the priority list :)
@MattKasdorf
@MattKasdorf 3 жыл бұрын
@@RetroGameCodersSuper! Yeah, I saw your BASIC videos, which lead me to your site. Then I read the TRSE articles, and went looking for videos 😏
@RetroGameCoders
@RetroGameCoders 3 жыл бұрын
@@MattKasdorf I just have to get better/faster at editing and get more comfortable speaking into a microphone :)
@PlayBASIC-Developer
@PlayBASIC-Developer 2 жыл бұрын
Yeah we all should learn BASIC ..
@dailydoseofeverything7141
@dailydoseofeverything7141 Жыл бұрын
Wow, this video is great! But I'm having a problem were the clear home button doesn't work. Any idea on how to fix it? Also how would I go about continuing my learning seeing as you don't make videos anymore? Is there any good manuals you recomend?
@RetroGameCoders
@RetroGameCoders Жыл бұрын
What device are you using? Emulator or an actual C64 or the maxi or ..? I’m going to start doing videos again now the flood of trolls seem to have gotten bored with me. So long as my videos aren’t exposed to Reddit I think my mental health will improve 🤣
@dailydoseofeverything7141
@dailydoseofeverything7141 Жыл бұрын
@@RetroGameCoders I was using your web emulator on pc
@RetroGameCoders
@RetroGameCoders Жыл бұрын
@@dailydoseofeverything7141ok that must mean something changed in the keyboard scan codes since I did the videos - will investigate! 👍
@RetroGameCoders
@RetroGameCoders Жыл бұрын
Just worked for me on Chrome on mac but I did have to fix some of the character keys such as " and & :) You should be able to use your computer keyboard to do shift+home or the onscreen keyboard to clear home
@FunAfter52
@FunAfter52 10 ай бұрын
My first computer was a Vic-20. I bought one just after graduating from high school. In school, i had taken a "computer math" class. We used TRS-80s, which we called "trash 80's". The Commodore 64 was my next computer. For nostalgia, i just bought a C64 mini, which I received yesterday.
@RetroGameCoders
@RetroGameCoders 10 ай бұрын
I like my C64 mini. While I did get a C64 "Maxi" (the big one with the working keyboard), the mini can do everything that can do it just doesn't have the convenient keys for symbols and colours etc :)
@FunAfter52
@FunAfter52 10 ай бұрын
@@RetroGameCoders Sounds like it is good enough for me though.
@RetroGameCoders
@RetroGameCoders 10 ай бұрын
@@FunAfter52 yep I am sure it is :)
@jinchoung
@jinchoung Жыл бұрын
i've heard that quote from djkstra before and yeah, it's totally backwards. sure, there are conventions in basic that don't work elsewhere... but that's EVERY LANGUAGE. the basics of how things work, what you're doing, why you're doing it, and the insane degree of bare metal access that 8bit computers gave to users THROUGH BASIC really gives people a leg up on understanding the overall process of computing and programming. no grudge against djkstra but yeah, he's very very very wrong and it would be a great boon to kids right now to start with even a commodore vic20.
@NuntiusLegis
@NuntiusLegis 6 ай бұрын
Why no grudge against Djkstra? We need more grudge against Djkstra! I think he actually ruined the reputation of BASIC single-handedly with his BS, resulting in less work going into improving the language, compilers, etc. He was a plague.
@shmeegleson9464
@shmeegleson9464 3 жыл бұрын
Awesome, thank you!
@RetroGameCoders
@RetroGameCoders 3 жыл бұрын
You bet!
@RetroRobotRadio
@RetroRobotRadio 2 жыл бұрын
Watching your editor through me for a minute until I realized it was an emulation! That's why it had replacements for down and left and such. Those characters don't exist on the PCs font
@davedavenport8673
@davedavenport8673 3 жыл бұрын
Great! FYI Links in description are the wrong timestamps.
@RetroGameCoders
@RetroGameCoders 3 жыл бұрын
Aargh, that will be because of my transcription! I will fix, thank you!
@davedavenport8673
@davedavenport8673 3 жыл бұрын
@@RetroGameCoders Thanks. As others have said on Twitter, "I was just thinking about something like this." I mainly use U64, C64 and Vice, but I tried the browser emulator and could not get it running on multiple machines/browsers. Guessing it has to do with java not being supported.
@RetroGameCoders
@RetroGameCoders 3 жыл бұрын
@@davedavenport8673 it uses web assembly and JS but I just updated to a more recent build just now :) I’ll be showing vice and my u64 next though
@DJ-Daz
@DJ-Daz 3 жыл бұрын
I haven't even looked at basic program or is it programme on the C64 in nearly 4 decades, but I'm immediately thinking about animating sprites and mapping sprites with a sprite box. Where they 8x8? That seems a little small.
@RetroGameCoders
@RetroGameCoders 3 жыл бұрын
C64 sprites start out as 24x21 so a bit more space to work with
@DJ-Daz
@DJ-Daz 3 жыл бұрын
I've just had a very quick play with the embedded emulator and it's nice. But I had to laugh out loud at the size of the saved disk image, 179KB!
@RetroGameCoders
@RetroGameCoders 3 жыл бұрын
@@DJ-Daz massive right? 🤣
@DJ-Daz
@DJ-Daz 3 жыл бұрын
@@RetroGameCoders I think IIRC I've actually got an original manual upstairs. Maybe I should read it? LOL It's only been what about 37 years!
@gfabasic32
@gfabasic32 10 ай бұрын
Brings back memories!
@RetroGameCoders
@RetroGameCoders 10 ай бұрын
When is there going to be a GFA BASIC for Mac and Linux? :) Actually I quite like the modern BBC BASIC and QBasic, I need to check GFA out as I have a boxed edition for the Atari ST somewhere!
@keimahane
@keimahane 2 жыл бұрын
Good Stuff, Thank you.
@Eightbitswide
@Eightbitswide 3 жыл бұрын
Well done! Are you planning to make this a series?
@RetroGameCoders
@RetroGameCoders 3 жыл бұрын
It is a series :)
@escos0410
@escos0410 3 жыл бұрын
I was bought a c64 maxi last Christmas by the other half because that’s all I went on about as my parents bought me a commodore 16 lol 😂 Iv started trying to learn basic now at nearly 47 lol 😂 and I can’t even figure out to be able to input the date (7/12/2021) lol 😂 But I don’t care I’m enjoying trying to learn it
@alexmcd378
@alexmcd378 2 жыл бұрын
You were getting a like anyway, but for using grok, I'd give you a second like if I could :D
@Unmedicated_Moments
@Unmedicated_Moments 2 жыл бұрын
Would this still work on a VIC-20?
@mocatz1963
@mocatz1963 Жыл бұрын
Yes. Commodore Basic will work on VIC 20
@PhillHorrocks
@PhillHorrocks 3 жыл бұрын
I used to love C64 BASIC. However, it was a nightmare dealing with any kind of graphics or sound. This is what ultimately put me off using it. The C128 BASIC addressed a lot of these issues. Simon's Basic on C64 was also excellent
@RetroGameCoders
@RetroGameCoders 3 жыл бұрын
I see BASIC as a gateway to other things. It's a great learning tool :)
@NuntiusLegis
@NuntiusLegis 6 ай бұрын
The hefty price for convenient graphics commands etc. in more "advanced" BASICs is speed loss. The streamlined C64 BASIC is the fastest CBM 8-Bit BASIC, and for decent results, you have to use the VIC and SID registers directly anyway.
@15743_Hertz
@15743_Hertz 3 жыл бұрын
10 input "enter your name";a$ 20 for i = len(a$) to 1 step -1 30 print mid$(a$,i,1); 40 next i If I enter "bob" it prints out "bob".
@bnatens1
@bnatens1 6 ай бұрын
hi belgium her im going to begin is ther also an book
@computernerd8157
@computernerd8157 5 ай бұрын
I have alot of Nostalga for QBasic but I would recommend teaching kids Python or the original C. Depending on their interest, I would even consider Javascript. Basic wont ruin them but most programs in basic have none professional feel to them. If it was me, I would teach them C first then introduce them to Python for Object Oriented Programming. Depending on what they want to create, I would introduce other tools in their languange of choice.
@RetroGameCoders
@RetroGameCoders 5 ай бұрын
@@computernerd8157 Python is great and I do teach Python, which has an advantage of running on basically everything but it’s worth noting that this is a retro channel so that context is important :) (I do have c/c++ tutorials on my site by the way)
@computernerd8157
@computernerd8157 5 ай бұрын
@@RetroGameCoders Cool, this is my first time on your channel ,so I did not know the context. This is a good video and you made alot of good points. For example using a tool that does not have bells and whistle will increase our understanding thus learning basic can still make you a good programer.
@rtrgrl78
@rtrgrl78 3 ай бұрын
I'd say Scratch, BASIC, Python and C. Then go from there. For really youngsters.
@YesiPleb
@YesiPleb Жыл бұрын
I had a programming teacher at college who said a program should have only one start and one exit. She, too, frowned on BASIC due to GOTO and I found her arguments a bit retarded because what's BEQ? What's BNE? What's BRA? What's BHI if they're not all forms of GOTO? You can't RTS from one of those. Don't get me wrong, I absolutely love the C64 but Commodore 64 BASIC - really??? It's shit! I got spoilt with BBC BASIC and that had support for graphics and sounds and many more features C64 BASIC could only dream of.
@RetroGameCoders
@RetroGameCoders Жыл бұрын
Yeah BBC BASIC is the standard that others are measured by but comparatively few people experienced it in comparison to Microsoft BASIC so that is what everyone refers to and knows, not just because of Microsoft putting it on PCs but the Commodore line and all the others that used it or copied it, which is a shame
@NuntiusLegis
@NuntiusLegis 6 ай бұрын
The C64 BASIC interpreter has a streamlined command set making it fast and memory efficient (only 8 K!). And C64 sprites or synth sounds created with C64 BASIC probably look and sound better than anything done in BBC Micro BASIC. The well thought-out graphical characters of the C64 are easy to use in BASIC.
@tenminutetokyo2643
@tenminutetokyo2643 3 жыл бұрын
DOOD!
@montyhall2805
@montyhall2805 2 ай бұрын
basic 2.0 was mind crippling. When I saw functions in pascal and c when I was a kid in the 80's, my jaw dropped. I think int's were all floats or something like that in 2.0 too. Ugh.... Horrible language. Many bad memories. 6502 macro assembler was more expressive than 2.0. Just being able to use labels than line numbers was a quantum leap. No, I'll go one further, 80's home computer basic stunk. I spent a year on the original IBM-PC using basica. It was only slightly less crappy than commodore basic. By the time quick basic came out, I was already into pascal and c++. Turbo-XXX series from borland rocked on DOS.
@RetroGameCoders
@RetroGameCoders 2 ай бұрын
It wasn't so crippling that you stopped programming :)
@kylehill3643
@kylehill3643 2 жыл бұрын
The push to FPS gaming and consoles have ruined the potential. Now at best we have 'Early Access' games that rarely ever leave that.
Commodore BASIC Dungeons and Dragons Character Generator Programming
5:48
Retro Game Coders - Chris Garrett
Рет қаралды 5 М.
Using a Commodore 64 on the modern internet!
21:08
Veronica Explains
Рет қаралды 717 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
How It Was Made: THE COMMODORE 64 factory tour
22:10
Retro Recipes 🕹️ vintage tech + tv
Рет қаралды 519 М.
Python laid waste to my C++!
17:18
Sheafification of G
Рет қаралды 143 М.
One-Line Bouncing Ball: Commodore 64 BASIC
42:34
8-Bit Show And Tell
Рет қаралды 62 М.
Jim Butterfield Commodore 64 Training Tape - FULL Length C64
1:56:23
The basics of BASIC, the programming language of the 1980s.
24:07
The 8-Bit Guy
Рет қаралды 2,4 МЛН
"Hello World" on Commodore 64 in Assembly Language, Machine Code
33:39
8-Bit Show And Tell
Рет қаралды 54 М.
The 30 Best Commodore 64 Games of all Time!
20:57
Old Style Gaming
Рет қаралды 81 М.
Commodore 64 - Introduction to Programming - Level 1
1:00:14
256byteram
Рет қаралды 72 М.
What is the Smallest Possible .EXE?
17:04
Inkbox
Рет қаралды 552 М.