Programming a Commodore 64 hurts my brain...

Комедия

Today I'm going to try and wrap my head around 6502 assembly.
I have a Discord server now!
/ discord
I have an Instagram now! (although I still don't know how to use it)
/ bandwidth_ytb
That's all the stuff I have for now!
The game
drive.google.com/file/d/1yd7b...
Go and watch the 8-bit guy!
/ the8bitguy
M.U.L.E. recording from:
• M.U.L.E. Theme (NTSC)
GPC recording from:
• Grand Prix Circuit (Co...

Пікірлер: 461

  • @Bandwidth_ytb
    @Bandwidth_ytb Жыл бұрын

    Ok a mistake was made. The Commodore 64's CPU runs on 1MHz. The chip itself is capable of 3MHz but the computer around it is not. I just assumed that with some tinkering it would be possible to get it up to 3MHz. (which I still think it is)

  • @kangarht

    @kangarht

    Жыл бұрын

    you can not simply overclock the c64 as the cpu's clock is tied to the video chip as one clock tick the cpu reads the ram, next clock tick the video chip reads the ram and so on, and if you increase the clock speed the video output will be no more pal/ntsc compatible. there are solutions but it always boils down the faster cpu having own ram and some mechanism to mirror this faster ram back to the machine, which is tied to 1mhz.

  • @SirGeldi

    @SirGeldi

    Жыл бұрын

    @@kangarht So he needs a Super CPU. Or a self made PCB with 3 Mhz quarz wich isolates the CPU and divides the external clock by 3 and also 3 times faster faster RAM on this PCB.

  • @kangarht

    @kangarht

    Жыл бұрын

    @@SirGeldi not only that the isolated cpu needs to access the onboard ram somehow aswell.

  • @AK-vx4dy

    @AK-vx4dy

    Жыл бұрын

    Overclocking is hardly doable... many many challenges, many headaches and very small speed up (if you use faster RAM for programs)

  • @badoli1074

    @badoli1074

    Жыл бұрын

    @@kangarht Well, you *can*, you just don't have any screen stuff anymore. I remember i read about a german guy building a overclock switch so he could calculate fractal images faster somewhere around 1990.

  • @earthsteward70
    @earthsteward70 Жыл бұрын

    A zoomer touching a commodore 64 is like a gen Xer touching a radar unit from WW2, god bless you sir

  • @ecernosoft3096

    @ecernosoft3096

    10 ай бұрын

    And yet, I'm 15 and can program all sorts of systems.

  • @tomsaltner3011

    @tomsaltner3011

    7 ай бұрын

    @@ecernosoft3096 Really all? 8)

  • @hakimESC

    @hakimESC

    6 ай бұрын

    @@tomsaltner3011the phrase "all sorts of" doesnt mean "EVERYTHING THERE IS", but several different languages 🙂

  • @another3997

    @another3997

    5 ай бұрын

    ​@@ecernosoft3096That rather depends on what languages you're talking about. If you use a high level language that exists for many platforms, then you can technically program ALL those systems just using one language. But that doesn't make you any different to anybody else who's dabbled in programming. Good old BASIC was included with just about every home computer back in the day, so without much effort, you could write the same program for many systems, even if the hardware were vastly different. Today people use Python, C++, Java etc. Learning "Assembly" for each CPU architecture is very different to that.

  • @ecernosoft3096

    @ecernosoft3096

    5 ай бұрын

    FYI- yes, I know. Here’s a list- PC engine (haven’t done much) Sega Genesis (again, haven’t done much…. Yet) 32X (still learning) ZX spectrum (it’s too weak. I did some stuff but then gave up.) Amstrad CPC Atari 2600, 5200, 7800, 8bit line, and I attempted the lynx Commodore 64, but didn’t do much since it’s too slow Apple 2 (never made any games) NES And I attempted the CX16

  • @jsn7123
    @jsn7123 Жыл бұрын

    "horrible blue screen" he says.....I still think the C64 startup is one the nicest things a screen can show, even after almost 40 years.

  • @oisnowy5368

    @oisnowy5368

    Жыл бұрын

    It is quite friendly. It's just being overly dramatic.

  • @daishi5571

    @daishi5571

    Жыл бұрын

    The colour choice was based on signal and TV quality. High contrast text would have had fringing making it disturbing to read so this was a good compromise. Commodore did a similar thing with the Amiga workbench and went so far as to buy the worst TV they could get and then get the best image quality.

  • @lordevyl8317

    @lordevyl8317

    Жыл бұрын

    Plus, it could be worse too. Imagine if they went with Comic Sans for the default C64 font. LOL

  • @neonvoid

    @neonvoid

    Жыл бұрын

    I love it too.

  • @timothy8428

    @timothy8428

    Жыл бұрын

    The Fallout 4 Pip Boy has the same number of bytes of free memory.

  • @OrangeDied
    @OrangeDied Жыл бұрын

    i dont know who you are, where you came from, but funny plad wearing man obsessed with impulsively programming whatever he could find in his garage may be the most interesting thing i've seen this week

  • @eengamer158

    @eengamer158

    Жыл бұрын

    That feels oddly relatable

  • @peterdonnell3784

    @peterdonnell3784

    Жыл бұрын

    IKR it's just light, original and fun, love it!

  • @michaelksiezopolski

    @michaelksiezopolski

    Жыл бұрын

    He is Polish all right...

  • @marciobrunoloiolagomesufc8799

    @marciobrunoloiolagomesufc8799

    Жыл бұрын

    @@michaelksiezopolski he is Czech i think

  • @8BitNaptime
    @8BitNaptime Жыл бұрын

    I don't know how I feel about my childhood computer being referred to as "history from the thrift store". I'm going to cry now.

  • @TheAnkMan

    @TheAnkMan

    Жыл бұрын

    Today, coders get everything pre-chewed. Move third party code snippets around with the mouse, copying code from the internet... Back in the 80s (or worse if you go further back in time) coding was much harder. For starters, you had no internet to look up code, let alone ask others. Some where lucky to have access to BBSes, if they could afford a modem or acoustic coupler and the dial-up rates. Your best friend was a book you could write down some examples. Especially but to learn stuff. Good he mentioned The 8Bit Guy's KZread channel. But when it comes to repairs (also of the C64), check out Adrian's Digital Basement.

  • @metalheadmaniac8686

    @metalheadmaniac8686

    Жыл бұрын

    @@TheAnkMan I'm a newer programmer well I've been doing it for 18+ years but that's not that long when compared to other programmers and I have never copied code from the internet, and I learned 90 percent of this stuff from books, doing it a bunch of times, and experimenting and the rest from programmers who have been doing this since the 80's. I almost always have a book about programming and a book about how computers work right next to me almost all the time.

  • @ravermanraverman

    @ravermanraverman

    Жыл бұрын

    @@TheAnkMan Well, Just like anything in history, People learn from people and things evolve. Assembly language dates back to the late 1940s, And programming language itself all started in the 1800s with Ada Lovelace and Charles Babbage creating the Analytical Engine. By the 1970s and 80s, There was already a wealth of knowledge available in text, Presented in universities/colleges, And people learnt and clever minds continued to evolve, The technology evolves, continues to get documented and the cycle carries on. People today who code are still well educated, The process and technologies are still evolving.. No-one or generation deserves to be degraded lol

  • @TheAnkMan

    @TheAnkMan

    Жыл бұрын

    @@ravermanraverman Fully agreed. But I think I heard some "degradation" in this clip.

  • @MasterChiefYT

    @MasterChiefYT

    Жыл бұрын

    I am Gen Z, 16 to be exact, I never grew up with the commodores or the Atari's and that stuff, but even hearing "history from the thrift store" made me cringe and kinda upset because I admire ALL technology, I actually REALLY want to get my hands on a commodore 64 and Atari as I really want to program them. I LOVE old tech and I actually learned a lot about computer science from it! And if anyone calls it a "Piece of History" again I will slap them and make them call it the king of 8-Bit computers

  • @rwxdesigns
    @rwxdesigns Жыл бұрын

    The C64 was never running at 3MHz clock speed. The 6510 cpu runs at 0.985MHz on a PAL C64 and 1.023MHz on an NTSC C64. So, that's 3 times slower than what you think. 🙃

  • @danielmantione

    @danielmantione

    Жыл бұрын

    The 6510 datasheet specifies 3MHz as the maximum clock frequency it supports, that's where the confusion came from.

  • @bitoxic

    @bitoxic

    Жыл бұрын

    Try over clocking the c64 🤣

  • @valuemastery

    @valuemastery

    Жыл бұрын

    I tried to overclock my C64 when I got it (1984) but it didn't work. Turned out the Video Chip's frequency is synchronized with the CPU, so overclocking the CPU crashed the video signal.

  • @zerksus

    @zerksus

    Жыл бұрын

    Then also, the execution was based on a 2 phased clock (so less instructions than expected). Many instructions ran several clock cycles. Thus very slow. To use the C64 properly you needed to understand all the hardware accelerator chips. For graphics it was important to understand the video raster interrupt. E.g. you could draw the 8x hardware sprites at the top the screen and then do another 8x at the bottom. Digital sample sound was generated using the volume control. Poke 54296. 4 bits. Levels 0 to 15. A change caused a DC shift and doing that at "fast speed" resulted in a crude DAC effect. I wanted to build myself a Midi interface and hacked in an Intel UART to do the 31250bits per second. Never got that to work properly on the C64 but I did eventually on a 4.77MHz XT PC clone. The funny thing was that Elon Musk lived about 30km from me and used the same C64 model. Apparently he has a bit more money than me.

  • @freezedeve3119

    @freezedeve3119

    Жыл бұрын

    @@zerksus coding in C64 was bit different than coding these days, you ended up making direct machine code for C64 but these days you just try to figure out how someone programmed libraries you are trying to use and what parameters those need to work so it can be what ever compared to direct processor coding.

  • @nickbensema3045
    @nickbensema3045 Жыл бұрын

    "somebody had to create BASIC in assembly, poor guy." Three people did, and one of them was Bill Gates.

  • @florisvandenberg7424

    @florisvandenberg7424

    Жыл бұрын

    Bill Gates, Paul Allen and who?

  • @DysoniaMultiverseNews

    @DysoniaMultiverseNews

    Жыл бұрын

    @@florisvandenberg7424 - Actually, there's more involved but BASIC existed before Bill Gates. They were making a version for the 8080 and then 6502. Commodore had some of their own individuals work on modifying BASIC for their computers over the years. However, BASIC began in the 1960s, as an FYI.

  • @lordevyl8317

    @lordevyl8317

    Жыл бұрын

    @@DysoniaMultiverseNews Yes, but Microsoft BASIC, didn't , which was his point

  • @cjmillsnun

    @cjmillsnun

    Жыл бұрын

    And that want a patch on the basic created by just one person. That person was Sophie Wilson.

  • @WhatHoSnorkers

    @WhatHoSnorkers

    Жыл бұрын

    @@cjmillsnun which has an assembly language interpreter built into the BASIC, I think

  • @Lee.Willcox
    @Lee.Willcox Жыл бұрын

    Now you speaking my language. I got my C64 in 1982. 30 years later I am now retired. Writing games as a 13 year old to a retired computer scientist. I just came across your channel and love your spirit. You are going places young man !

  • @YoreHistory

    @YoreHistory

    Жыл бұрын

    40 years later :) I know as im 50 :)

  • @Lee.Willcox

    @Lee.Willcox

    Жыл бұрын

    @@YoreHistory 😄 The good old days 🤭 It has been an amazing ride for me. Loved coding as a kid, then I had a lovely career travelling the world. I got to see so many places and learn so much about other industries in order to design and code. Well done you Yore too ! I still dabble a bit with Python. Just automating stuff around the house. Good fun.

  • @YoreHistory

    @YoreHistory

    Жыл бұрын

    @@Lee.Willcox Sigh...100% agree. I honestly miss it at times...not being tethered to a cell phone and the simplicity but depth of a system like the C64...good days indeed :)

  • @lillianskinner1984
    @lillianskinner1984 Жыл бұрын

    I was not expecting to see anyone touch my program. Thanks for checking it out, and most of all linking to it! I was just a beginner when I made that, so it's pretty rough. Thanks to you I just started to pick it back up and make it into something better (probably will have progress pushed in a few months). It's crazy looking back at my old work.

  • @Bandwidth_ytb

    @Bandwidth_ytb

    Жыл бұрын

    Great job! It is truly amazing!

  • @Link-channel

    @Link-channel

    Жыл бұрын

    Actually the download link does not work. I couldn't try it 💔🥹

  • @IonizedSun
    @IonizedSun Жыл бұрын

    C64 = instant like. Assembly programming is like opening a magic box.

  • @fixitalex
    @fixitalex Жыл бұрын

    That's so funny looking at young guys trying to get aware with artefacts of the past!

  • @azynkron
    @azynkron Жыл бұрын

    It's really not until you've seen Assembly that you understand that programming is nothing more than reading from and writing to memory.

  • @florisvandenberg7424

    @florisvandenberg7424

    Жыл бұрын

    Exactly. Realising the fact that in the end software is nothing more than instructions for a state machine helped me tremendously with becoming a better programmer.

  • @-108-

    @-108-

    Жыл бұрын

    Yeah... Loading the Accumulator; Loading the X Register; Loading the Y Register. I tried to learn Commodore Assembly by using the Commodore Reference Guide (the thick one). I tortured myself for years with that, and could never get beyond printing ASCII to the screen. I don't understand how kids learned to make entire games and demos from raw Commodore Assembly. In fact, I actually revisited it around 1997 and tried to wrap my head around it again, but, alas, I was still using that same Commodore Reference Guide and failed to get any further. lol

  • @florisvandenberg7424

    @florisvandenberg7424

    Жыл бұрын

    Still... it's not so hard. Asm is nothing more than registers, memory, calculations and branching. On the 6502 cpu anyway.

  • @ChrisM541

    @ChrisM541

    Жыл бұрын

    @@florisvandenberg7424 "Still... it's not so hard. " --> Try writing any of the following C64 classics...Delta, Armalyte, Wizball, Blood Money etc etc in 100% assembly language (no game engine...EVERYTHING from scratch). Oh yes, an NO internet research/ability whatsoever beforehand or during - you are provided only with 'programming books/magazines of the day' !!! Writing top games in the 80's was(!!!)...INCREDIBLY HARD, requiring an encyclopaedic knowledge of every opcode 'variant'(!!) and operand, cycle counting and sound/gfx programming. Crucially, when compared to writing the engine + the game from scratch in the past, today's incredibly impressive and powerful game engines, effectively, reduce the difficulty of creating a game by at least 95%.

  • @florisvandenberg7424

    @florisvandenberg7424

    Жыл бұрын

    @@ChrisM541 Writing those games is hard. That's not what I'm talking about.

  • @leap123_
    @leap123_ Жыл бұрын

    You can actually compile C to the C64. This is possible with CC65, which is a 6502 toolchain which can compile to a variety of 6502-based machines, like C64 and the NES. It has it's own assembler but you probably didn't care because you might want to use C instead of assembly.

  • @zerksus

    @zerksus

    Жыл бұрын

    I wrote an assembler before I knew what an assembler was. My one friend bought the C64 Master Reference Manual. Lots of gems in there. With it I figured out what the machine code instructions did. Took me ages to figure out that you can branch 127 locations forward and 128 backwards. Had to calculate everything with a calculator. The next step was to "automate" it with a Basic program.

  • @chloedevereaux1801

    @chloedevereaux1801

    Жыл бұрын

    6510 not 6502...... get it right...

  • @halofreak1990

    @halofreak1990

    Жыл бұрын

    @@chloedevereaux1801 the differences between a 6502 and the C64's 6510 are minor, nothing to get upset about.

  • @meneerjansen00
    @meneerjansen00 Жыл бұрын

    A tip for you: beware of the original power supply unit: it will go bad over time and fry a lot of chips on your C64. If I were you I'd buy an aftermarket one. :)

  • @blackterminal

    @blackterminal

    Жыл бұрын

    Use a inline filter on the dc output and your ok

  • @jameslongstreet9259

    @jameslongstreet9259

    10 ай бұрын

    Yes get rid of the brick of death ☠

  • @mrsid6581
    @mrsid6581 Жыл бұрын

    The poor guy who had to write the BASIC Interpreter in assembly was Bill Gates, so not that poor…

  • @TheAnkMan

    @TheAnkMan

    Жыл бұрын

    I was about to mention Microsoft, but your beat me. 🙂 The owner of this channel might have heard of Microsoft?

  • @dvdside

    @dvdside

    Жыл бұрын

    i mean... he still had to write the basic interpreter, soo

  • @joaovitormatos8147

    @joaovitormatos8147

    11 ай бұрын

    If the path to being a billionaire involved writing basic interpreters for the Commodore 64 there would be hardly any billionaire in the world

  • @Ribulose15diphosphat
    @Ribulose15diphosphat Жыл бұрын

    A Text based adventure is one of the kind of games, you can perfectly do in basic.

  • @Rilex037

    @Rilex037

    Жыл бұрын

    first game i ever made was on c64 as text adventure with basic

  • @FusionC6
    @FusionC6 Жыл бұрын

    you should continue this as a series, finding old hardware and attempting to code simple games on them. id watch em all. subbed

  • @gabor222
    @gabor2228 ай бұрын

    It is quite common that we 40+ old people go back for these machines for the nostalgia but it is a nice surprise that someone from the generation of our children is taking the time and effort to program them.

  • @EricHavard
    @EricHavard Жыл бұрын

    Dude... for a young guy on the scene, you are funny as hell!!! Love it!!

  • @jeffmccloud905
    @jeffmccloud905 Жыл бұрын

    during the pandemic, I went on an eBay spree and re-created my childhood C64 setup, right down to the Compute's Gazette magazines and a 1980's Mountain Dew can. I've got: the C-64, 1541 Floppy Drive, the Cassette Drive, 1902A monitor, the 1660 300 Baud modem, and an Okimate 10 color printer (still prints too - I recently used Print Shop to print a birthday banner). No mods or emulators, all original and in their original boxes, and everything works 100%. Can still load up and play The Bard's Tale from floppies!

  • @durrcodurr
    @durrcodurr7 ай бұрын

    Actually, you don't have to use assembly language on the C-64 except for time critical stuff. BASIC is just fine for most things. Even most of the games published on the Commodore label were just BASIC programs with the occasional machine code subroutine (and not just the ones on floppies or tapes, but also the ones on cartridges, which suprised me a lot, when I was looking at some games on the C-64 and VIC-20 back in my teens, back in the day). Although there are lots of C-64 IDEs nowadays that run on modern systems, nothing can beat the authentic experience of coding everything on the machine itself. 😁

  • @LovingMyJourney
    @LovingMyJourney Жыл бұрын

    I worked in Finance for the US Army during the years 1983-85 in Wurzburg, GE. We had a Commodore 64 programmed to do simple travel vouchers to pay our soldiers per diem. Surprisingly, it worked well and saved us lots of time.

  • @wavy1062
    @wavy1062 Жыл бұрын

    Loved your PS1 programming videos and i am glad to see you continuing this style of video. Subscribed!

  • @kraftwerk974
    @kraftwerk974 Жыл бұрын

    The C64 was very advanced for its time with sprite and scroll registers. If you want to make things real hard try to code a game on a VIC 20 with only softsprites and no raster interrupts 😁. Nice video 🤙

  • @idoblenderstuffs
    @idoblenderstuffs Жыл бұрын

    im not used to having good headphones so those keyboard sounds were really making me think someone was making loud clicking noises right behind me and i was afraid for my life

  • @nickolasgaspar9660
    @nickolasgaspar96608 ай бұрын

    -"3:03 also known as the sid chip. This chip gave the computer amazing sound capabilities which were almost unprecedented back in the day on personal computers". Actually 3 years earlier Jay Miner (father of Amiga) introduced the Atari 8bit line and the Pokey sound chip, an early implementation of Paula's capabilities(Amiga sound chip) in a four channel sound chip(SID only had 3) with High Pass Filter and a big number of tweak and tricks that programmers are still exploring to this day. The popularity of C64 has people confused on which machine did what first.

  • @lovemadeinjapan

    @lovemadeinjapan

    2 ай бұрын

    Too bad there is no Pokey love right now, it sounds so much better than the bubbly SID garbage we've heard too much (like OD'ed on 303 acid).

  • @rikpeol3612
    @rikpeol3612 Жыл бұрын

    Machine language on the C64 - 8 bit processor was the horror. But if you could get used to hexadecimal numbers, high and low bytes, sprites and so on, you wouldn't shy away from any other machine language.

  • @maurizio_italy

    @maurizio_italy

    Жыл бұрын

    6502's machine language is very similar to Motorola 6800. The 6800 architecture and instruction set were influenced by the popular Digital Equipment Corporation PDP-11 mini computer. On C-64 there was an assembler capable of generate executables and object files. The language was beautiful compared to 8086. I wrote thousand of lines in 6502's assembler, and was a very instructive way to understand the architecture. One of my best memorie of my childhood.

  • @Josh-tr3ld
    @Josh-tr3ld Жыл бұрын

    Great job, and great videos! Keep up the great work! Merry Christmas! Josh from Chicago.

  • @Cuperino
    @Cuperino Жыл бұрын

    “Poor guy…” Wasn’t that Bill Gates himself?? 😂😂

  • @tximinoman
    @tximinoman Жыл бұрын

    I just found your channel and automatically subscribed. I know nothing about programming but I'm finding your videos very entertaining. Keep up the great work!

  • @BasicBitesCA
    @BasicBitesCA Жыл бұрын

    Nice video! It's always fun to see someone starting a new adventure with the C64. Best computer of all time -- although it's actually a 1 Mhz machine. In between interpreted BASIC and pure machine language, there were MANY programming language packages developed for the C64 with their own compilers, as well as several standalone BASIC compilers that would speed up your BASIC V2 programs immensely. Over here in North America, the RF shields are metal, and double as heat-sinks for the chips. For longevity, I would highly recommend putting a heatsink on the SID; you might also want to do the CPU and PLA. -- JC

  • @Bandwidth_ytb

    @Bandwidth_ytb

    Жыл бұрын

    I realized my mistake and corrected it in a pinned comment. Thank you for telling me.

  • @jnharton

    @jnharton

    Жыл бұрын

    FWIW the original MOS 6510 CPU was manufactured with NMOS technology, a variant or one manufactured with a different process (HMOS, CMOS) might be able to be clocked faster. And, in any case, as best I understand, the speed of the main memory would have forced them to go with a lower clock speed anyway. - The MOS 8502 runs at 2 MHz for instance.

  • @BasicBitesCA

    @BasicBitesCA

    Жыл бұрын

    @@jnharton The 8502 used in the Commodore 128 was indeed a 2 Mhz processor. The HMOS version of the 6510 was the 8500 used in the Commodore 64C "short-boards". It's a more thermally-efficient chip that is backwards compatible with the 6510, but still ran at 1 Mhz, because it was still a C64. As you rightly point out, the speed of the DRAMs was one of the limitations. The main memory in a C64 is effectively being accessed at 2 Mhz, since the CPU and VIC-II are constantly jumping on and off the bus to alternately access the RAM. -- JC

  • @tnetroP
    @tnetroP Жыл бұрын

    I loved my C64. It was my second computer after the VIC20 and was a massive upgrade from that. I taught myself BASIC from the manual that came with the VIC20 (no internet in those days of course) which was compatible with the C64. Then on the C64 I taught myself machine code. I couldn't afford an assembler back then as I was just a school kid. So I would POKE the machine code instructions into memory before running them.

  • @dan_loup
    @dan_loup Жыл бұрын

    Another good channel for C64 stuff is the andrian's digital basement, he's always fixing those computers.

  • @mcd3379
    @mcd3379 Жыл бұрын

    Great video - you gave a good overview of the machine, and as someone who used a C64 back in the day, your "21st century" response to using it was highly entertaining! Keep up the great work.

  • @Squolly
    @Squolly Жыл бұрын

    Wow, you make one awesome video after the other and meet exactly my interests with them. Thank you for your content!

  • @xtrafa8014
    @xtrafa8014 Жыл бұрын

    I like the way you make your videos! Keep going! :D

  • @LeightonW87
    @LeightonW87 Жыл бұрын

    Not sure if it's been mentioned yet but I recommend replacing the old psu or get a overvoltage protector as the old psu have a habit of killing the system when they eventually go bad, love your videos btw..

  • @blackterminal

    @blackterminal

    Жыл бұрын

    There's dual voltage out. Ac and dc. I believe it's just the dc output that you need fo regulate. I was going to make and sell a inline filter so you could still have an original supply hooked up but didn't continue the project

  • @aky4360
    @aky4360 Жыл бұрын

    I remember programming Assembler during uni as one of the most unpleasant things ever... still there is use to it when it comes to optimizing stuff

  • @jordixboy

    @jordixboy

    Жыл бұрын

    I learned Assembly by myself, and I really enjoy it. Im really into low level stuff, virtual machines, emulation and so on. Its pretty fun and challenging. (Im self taught - no Degree)

  • @deang5622

    @deang5622

    Жыл бұрын

    I taught myself assembler in 6502, 6800, Z80 when I was between the ages of 12 and 16. Loved every minute of it.

  • @OptimiSkeptic

    @OptimiSkeptic

    Жыл бұрын

    @@deang5622 Same experience and ages for me, back around 1984. My C64 was my first and still favorite girlfriend.

  • @elmariachi5133

    @elmariachi5133

    Жыл бұрын

    Still better than all modern languages, since basically every language has become a variant of C ..

  • @charonone8606
    @charonone8606 Жыл бұрын

    Rly interesting the stuff you do greetings from Belgium ;)

  • @matthewrease2376
    @matthewrease23767 ай бұрын

    Poor guy? Nah, I feel bad for the person that wrote the first assembler. They didn't even get to code in assembly.

  • @crustycobb8286
    @crustycobb8286 Жыл бұрын

    What a great young person keep going haha almost makes me want to start coding my atari st again

  • @gman4141007
    @gman4141007 Жыл бұрын

    You inspire me to start my KZread channel, don't stop what you're doing !

  • @greg4lifers145
    @greg4lifers145 Жыл бұрын

    thank you little silly man who program stuff you help me sleep at night, i have no idea what your talking about and that’s fascinating.

  • @chromosundrift
    @chromosundrift Жыл бұрын

    So much fun to watch someone learn and experience an 80s microcomputer using comparisons with Python. "Someone had to create BASIC in assembly, poor guy" -> You know who that was in this case? Bill Gates

  • @idoblenderstuffs
    @idoblenderstuffs Жыл бұрын

    i used to watch 8 bit guy years ago but when i switched accounts i forgot to resubscribe. thanks for reminding me lol.

  • @c64borderless54
    @c64borderless54 Жыл бұрын

    If any consolation: you are not the only who who struggled with the c64 :)

  • @rizzoabbott8636
    @rizzoabbott8636 Жыл бұрын

    Love the content keep it up.

  • @NimhLabs
    @NimhLabs Жыл бұрын

    Guys, every day we are getting closer to getting him to write a program for the Konix Multisystem

  • @eepyeri
    @eepyeri Жыл бұрын

    BABE WAKE UP NEW BANDWIDTH VIDEO

  • @bas777ien
    @bas777ien Жыл бұрын

    I've started learning MIPS Assembly for the PS1 after your videos, let's see if I can make a game by myself Considering the C64, its demoscene is also pretty bonkers. It would be a nice idea for your next video to try and make a graphics demo for the C64, or maybe remake your first PS1 game in C64 (not the 3D one it's gonna be torture)

  • @turntablesrockmyworld9315
    @turntablesrockmyworld9315 Жыл бұрын

    I still have one from the early 80s. What a great time to be alive at the forefront of the computer revolution! Now I am old. lol

  • @JimNH777
    @JimNH777 Жыл бұрын

    Give us more :D It'd be awesome to see how you actually programmed it in Assembly :)

  • @AaronLitz
    @AaronLitz Жыл бұрын

    Ahh, I remember getting our C64 in 1987, our very first computer, as a Christmas present from my aunt and uncle. They would always bring their C64 with them when they came to visit and we would all play Jumpman together, so they eventually got us one, complete with a Commodore disk drive, monitor, and dot matrix printer.

  • @AndersNielsenAA
    @AndersNielsenAA7 ай бұрын

    Gotta love the fact that when you say "Somebody actually had to create BASIC in assembly - poor guy"... You're actually talking about BILL GATES! XD I made a video on that.. And yes - with some serious tinkering you can get the C64 to run at 3 MHz.. Like if you run the graphics off a separate clock :)

  • @MrWaalkman
    @MrWaalkman9 ай бұрын

    "Horrible blue screen"? Philistine.

  • @gnorts_mr_alien
    @gnorts_mr_alien Жыл бұрын

    subscribed! this channel has potential.

  • @bacon.cheesecake
    @bacon.cheesecake Жыл бұрын

    There is a compiler for the c64 called basicboss, which is a big step up in performance without having to resort to assembly, if anyone's interested in taking the easy route.

  • @stitchfinger7678
    @stitchfinger7678 Жыл бұрын

    I was really into the Playstation videos, but this one got me to sub :)

  • @erpirulayer6144
    @erpirulayer6144 Жыл бұрын

    finally a video thanks bandwidth

  • @stavros222
    @stavros222 Жыл бұрын

    Good haircut and very important video. Tip:(pay this kid in the basement 0,0001 dollars per week he worth it, it's hard to code in assembly nowadays)

  • @AK-vx4dy
    @AK-vx4dy Жыл бұрын

    Lol.... i'm trying to image your shock ;) Brain can indeed hurt after this experience for unprepared ;)

  • @LogiForce86
    @LogiForce86 Жыл бұрын

    Geoff Grammond programmed the physics engine for the Grand Prix formula 1 simulation racing games, and still up to this day you can feel that the physics engine runs smoother than any other physics engine programmed in C. Niels Heusinkveld did a nice review on his channel in that regard.

  • @Burubrikoos
    @Burubrikoos7 ай бұрын

    So cool! How did you get your written game to run on the original hardware? I thought that only ran on cassette tapes?

  • @sn1000k
    @sn1000k Жыл бұрын

    I''ll second the mention of the power supply! Beware.. it can cook your C64

  • @MilMike
    @MilMike Жыл бұрын

    C64 was my first computer and all I did was BASIC stuff, my brain back then wasn't even aware that there was such thing as assembler... we even didn't have internet back then and we needed to walk to the library to read how to code

  • @8bitgamerC64
    @8bitgamerC643 ай бұрын

    The good thing about learning 6502 m/c is that every other language seems really easy.

  • @systemchris
    @systemchris Жыл бұрын

    Not sure how I found this but defo enjoyed

  • @alejandroalzatesanchez
    @alejandroalzatesanchez Жыл бұрын

    he will end making a pc made pcb hot glued with a 6502

  • @keyboard_g
    @keyboard_g Жыл бұрын

    “Poor guy” who wrote basic is Bill Gates, the richest guy. 😂 Commodore Basic 2.0 is Microsoft Basic, which is why they needed peek a s poke for more advanced functionality.

  • @____uncompetative

    @____uncompetative

    Жыл бұрын

    You don't know anything about Computing History. John Kemeny was a professor at Dartmouth College when he was 27 years old. Tom Kurtz also had a PhD and joined the College where he met Kemeny. FORTRAN came out for their IBM 704 computer in 1956 and inspired them to work on a similar language with IF, PRINT and GO TO statements in it. A new machine arrived at the college in 1959 with 15 Kilobytes of RAM organised into 4K of 30 bit words. Kemeny and Kurtz designed a language that could be used by a complete beginner, and worked via dumb terminals, rather than a system where cards had holes punched in them and were sent away to be processed in batches with the result of the computation coming back the following week. The very first BASIC was a compiler, but it was fast, so it supported interactive exploratory programming suitable for beginners. It had line numbers as labels for the GO TO statement to refer to. Bill Gates had no involvement in the design and development of BASIC whatsoever. Bill Gates collaborated with Paul Allen to make an interpreter inspired by Kemeny and Kurtz's Dartmouth BASIC to run on the MIT Altair 8800 home computer in 1975, which was popular in the Homebrew computer club that Steve Wozniak attended. Wozniak made the first PC when he made the Apple-I in 1976, with 4Kb of RAM, cassette based BASIC programming language also written by Steve Wozniak - before he built the computer: "I had no assembler, that was another thing. To use an assembler, they figured that somebody was going to buy this processor to use for a company, and their company can pay a few thousand dollars in time-sharing charges to use an assembler that was available in time-share. I didn’t have any money like that, so a friend taught me that you just sort of look at each instruction, you write your instructions on the right side of the page, you write the addresses over on the left side, and you then look up the hex data for each instruction-you could assemble it yourself. So I would just sit there and assemble it myself. The BASIC, which we shipped with the first Apple II’s, was never assembled - ever. There was one handwritten copy, all handwritten, all hand-assembled. So we were in an era that we could not afford tools." - Steve Wozniak Apple Computers was founded by Steve Jobs (employee #1) and Steve Wozniak (employee #2) with the money from the sale of Jobs' VW Camper van, which he had paid for by mowing people's lawns. There is no connection between Jobs and the 1992 film _The Lawnmower Man_ or between that film and the 1975 short story of the same title by Stephen King, who sued the film makers because they were going to call their film _Stephen King's The Lawnmower Man_ and it bore no relation to his story, which wasn't about computers or VR or Steve Jobs. Apple were behind the microcomputer revolution from its inception. Bill Gates snuck in because IBM realised they had mainframes and mini computers but no microcomputers, so they made one out of off the shelf parts, and went to Gary Kildall of Digital Research to see if he would license his Control Program/Monitor operating system (CP/M) for use on their IBM PC and he was out of the house flying his plane, and his plane crashed, and he died. They called Gates, who didn't have an OS and Gates made out he did, and then bought the rights to 86-DOS from Seattle Computer Products for $75,000. Ultimately this led to Microsoft being sued for $60,000,000 and Microsoft eventually settled for $925,000. 86-DOS from which DOS was based, was originally called QDOS (for Quick and Dirty Operating System), and was completed in 1980 by Seattle Computer Product's employee Tim Paterson, who doesn't appear to have financially benefitted in proportion to his contribution to Microsoft's DOS, without which there would have been no relationship with IBM (or subsequent IBM compatibles), for there to be Windows. Apple didn't steal the idea of the GUI from Xerox PARC making it "a moot point whether Microsoft Windows ripped off the Macintosh Finder", as Apple gave Xerox stock in Apple in order to see what was happening at the Palo Alto Research Center. Steve Jobs was ousted from his own company, and went off to make the NeXT Cube computer for the University market, based on the UNIX operating system, but with an OOPS-lite GUI based on Objective-C a bit more similar to the full-OOPS of Smalltalk-80 on the Xerox Star mini computer which allowed every part of its OS to have its code modified at runtime by the end user. NeXT only let you use Interface Builder to make new Applications that worked within the existing UNIX OS. Bill Gates took this opportunity of Jobs' absence to pressure Apple CEO John Sculley to license Apple's software to all PC manufacturers, so it would become the _de facto_ standard. This way Microsoft would get the Mac without having to make their own Windows from scratch. This was rejected by Jean-Louis Gassee (who later made the BeOS based computers). There was more money to be made for Gates out of selling Word and Multiplan than DOS anyway, hence the push to have the Macintosh UI on all PCs. Bill Gates revealed Windows in 1985 at the COMDEX trade show and people were not at all impressed, as Digital Research's GEM was far better. Windows could not overlap each other, they could only tile. John Sculley saw it as a rip off of Apple's Macintosh Finder and threatened a lawsuit, but it transpired that Microsoft had ALSO licensed GUI elements from Xerox and begun work on Windows before they had first seen the Mac, so an agreement was made to permit Windows 1.x but nothing thereafter, tolerating Microsoft's coincidental design based off the same source influence in exchange for 2 year exclusivity of Excel on Mac. Windows 2.0 was seen by Sculley as a breach of contract, as was HP's NewWave, and the Apple v. Microsoft GUI court case ran from 1988-1993 and was decided in Microsoft's favor. Sculley had given Microsoft permission to use substantial elements of its GUI in 1985 in exchange for Word and Excel. Had Sculley pushed development of Pages and Numbers (or their equivalents) much earlier then its possible Microsoft would not be legally permitted to have such a similar UI to the Macintosh. Bill Gates is not the "richest guy". Elon Musk is. He has $254,000,000,000+ Most versions of BASIC vary quite a bit from Dartmouth BASIC. Bill Gates and Paul Allen's BASIC was nothing significant. They didn't write their own DOS for IBM PCs. They got it off someone else too sappy to realise they could sell it direct to IBM themselves. Gates has done nothing of any worth in Computing.

  • @florisvandenberg7424

    @florisvandenberg7424

    Жыл бұрын

    @@____uncompetative Bill Gates didn't invent BASIC, but he and Paul Allen did write the C64 BASIC interpreter. @Keyboard G is absolutely right about that. I can't say how significant Microsoft's BASIC was in terms of technology, but it was significant enough to be included in one of the most if not the most sold home computer in the world. And it was significant enough for Steve Wozniak to replace his own Integer BASIC for Microsoft's BASIC on the Apple 2 because of its floating point capabilities. So I guess it was pretty swell. Your summary of the history of Microsoft is interesting, but not really related to what @Keyboard G said nor to the Commodore 64. You mentioned Digital Research. There's a very interesting KZread video out there about how Digital Research didn't license or sell CP/M to IBM. The computing world would have been very different if Gary Kildall hadn't been so stupid. And that Gates did nothing of any worth in computing is obviously completely wrong.

  • @florisvandenberg7424

    @florisvandenberg7424

    Жыл бұрын

    Here it is: kzread.info/dash/bejne/pXh9rY98Zsetm9Y.html

  • @DysoniaMultiverseNews

    @DysoniaMultiverseNews

    Жыл бұрын

    @@florisvandenberg7424 - While yes, Microsoft made the first 6502 port of BASIC Interpreter. So, yes, Commodore BASIC is based on Microsoft BASIC that was used in CP/M and later MS-DOS. However, Commodore bought the proprietary rights to 6502 BASIC which was a tad costly to Microsoft because royalties from those variations on the 6502 cpu like found in Apple and Atari 8 bits had to be paid to Commodore instead of Microsoft. Microsoft had to do this MS-DOS deal or they would be out of business. Lets remember that Microsoft was a software company and they made software for the various computer platforms including applications, games, etc. into the 1980s. This was before MS-DOS became as dominant which occured in the second half of the 1980s and then Windows around mid-1990s. This is before Microsoft became the supergiant they are.

  • @keyboard_g

    @keyboard_g

    Жыл бұрын

    @@____uncompetative tldr

  • @Phoenix38m
    @Phoenix38m Жыл бұрын

    you are one class act of a channel....great content...and I loved your tour of the c64...I am 52 now...and got my c64 in 1982 when i was 12.....such a great trip down memory lane that I am slowly learning how to write assembly NOW....and finally make some sense on how to program my favorite games of all time

  • @comradeinternet467
    @comradeinternet467 Жыл бұрын

    You'll want to get a newly made power supply for that C64, the original PSUs have a bad habit of wearing out and causing board-killing voltage spikes.

  • @Bandwidth_ytb

    @Bandwidth_ytb

    Жыл бұрын

    Yes I got warned about it a lot but the new PSU didn't arrive in time so I just had to grit my teeth and go with it.

  • @carlossandoval5336
    @carlossandoval5336 Жыл бұрын

    Your friend just casually writing assembly 💀

  • @binguloid

    @binguloid

    Жыл бұрын

    It's really not difficult to use once you understand the basic ideas of it

  • @jacksonsmith4990
    @jacksonsmith49905 ай бұрын

    Writing a good for nothing calculator sounds like a rite of passage for any aspiring programmer…

  • @forkless
    @forkless Жыл бұрын

    Wait until he discovers raster interrupts... 🤣

  • @Bluebed
    @Bluebed Жыл бұрын

    You are my new fav KZreadr

  • @trelard
    @trelard Жыл бұрын

    LOL. When you opened that breadbox I got a phantom, nostalgic, tingling in my fingertips when I saw that glass fuse on the board. Y'see, I was using this as a kid and I didn't own an Action Replay cartridge which can "freeze" game states to allow code, or pokes, to modify the game to cheat and such. So, some smart chap found out that if you hit 2 pins at the same time on the cartridge slot with a paper clip, that was how the Action Replay activated its own. Problem was, get it wrong and you're gonna get zapped. Nothing too painful, the fuse on the inside blew before you got anywhere near a lethal shock. I went through a few fuses before I got a cart.

  • @neonvoid
    @neonvoid Жыл бұрын

    Despite of some mistakes (CPU speed, etc) and judgements (“Horrible” blue screen), I admire the efforts you put into this video even though this computer is much older than You. For me, it was my first computer, and back then it was state of art, top of the line, best in class, absolutely amazing graphics / music. The sample music you played is from 1983 which is super early in the platform, try Last Ninja 2 (1988). I still use sid chips and an 1982 SX64 during live music performances in 2022.

  • @larsjohansson442
    @larsjohansson4427 ай бұрын

    I like the Saab poster.

  • @AtariForeva
    @AtariForeva Жыл бұрын

    6502/6510 is fun. Complex and fun.

  • @mekkler
    @mekkler Жыл бұрын

    Now you need the Mapping the Commodore 64, which is available in PDF. Also C64 Programmers Reference Guide, and a Machine Language Monitor cartridge. 6502 is my second favorite language.

  • @ojonasar
    @ojonasar Жыл бұрын

    It boots up quickly in part because it doesn’t have to load megabytes of data from a disk drive. Technically, a PC boots quickly, the raw PC board that is, via its BIOS, that’s stored on ROM. What happens after that is the bit that takes the time.

  • @SomeIsDev
    @SomeIsDev Жыл бұрын

    let's go my inspiration

  • @noodlechan_
    @noodlechan_ Жыл бұрын

    I’m still a begginer programmer, as I started studies in computer engineering. Studying the 6502 have helped me understand more CPU architecture and how it works. I’m just learning how it works because I want to make a NES Emulator ☺️☺️☺️

  • @bodan1196

    @bodan1196

    Жыл бұрын

    I guess you have already found Ben Eater's YT channel then? If not, you should look at it. Ben Eater.

  • @noodlechan_

    @noodlechan_

    Жыл бұрын

    @@bodan1196 Yes, I've watched Ben Eater's videos. Thanks for recommending it anyway :)

  • @flanny9019
    @flanny9019 Жыл бұрын

    3:14 oh my god??? i remember this song from a background music in spore lmao what a way to find out

  • @CallousCoder
    @CallousCoder Жыл бұрын

    In that case watch my assembly course that I started as of last week. And the C64 had 1MHz.

  • @bladdidoo91
    @bladdidoo91 Жыл бұрын

    Awesome! Good job. I was hoping for more playstation stuff though. The PSP is dev friendly fro example.

  • @pabblo1
    @pabblo1 Жыл бұрын

    I actually have an interest for old computers like the Commodore 64. I sometimes code a bunch of little programs for these old computers. (Not exactly games, since I'm bad at making games in Unity, let alone 6502 or Z80 assembly) Also, it's because I have a mini-nostalgia for these computers (Back in 1990s Poland, the best computer you could buy at the time was a Commodore Amiga, and it was very expensive, hence the Commodore 64 and many other older computers became popular there due to its cheap price, as well as its availability)

  • @kangarht
    @kangarht Жыл бұрын

    haha, your "horrible blue screen" was the warm welcome screen to gaming in my childhood, anyways, nice to see young lads taking a look at old tech :)

  • @8bitvapor
    @8bitvapor Жыл бұрын

    I found a C64 in a thrift show in box with a 150$ sticker on it, the lady goes, "oh you're buying a keyboard 2$" haha this was in 2005 or sometime.

  • @TheUtuber999
    @TheUtuber9996 ай бұрын

    2:00 INC isn't a supported 6502/6510 instruction. That would come later with the 65C02.

  • @SteveMorrow8859
    @SteveMorrow88596 ай бұрын

    Just wait until you get to scrolling a screen in assembly. Then you experience full body pain, including a head case, lol. Miss this ole machine and all it's bits and bytes. Have your friend to try use a timer as a delay since it can sync with the machine better also. I didn't see the full code, but caught the brief glimpse of a nested loop.

  • @jameslongstreet9259
    @jameslongstreet925910 ай бұрын

    Get a new power supply or some overvoltage protection for it. BTW I love what you got out of this great computer. The Commodore 64C was my first computer. I got it in '88 at age 11 😎

  • @stoffe99k
    @stoffe99k Жыл бұрын

    Next up, SEGA! Good job Filip, have some white tea

  • @markbauermeister5449
    @markbauermeister544910 ай бұрын

    I think at this point in time it makes more sense to code in C (CC65) and inline ASM where needed. I last coded on a C64 around 2015 using ASM and found it far more frustrating than my current coding experience using CC65 and NESLib for an NES game.

  • @Duckiling
    @Duckiling Жыл бұрын

    BABE WAKE UP!!!! BANDWIDTH POSTED ANOTHER VIDEO!!!

  • @rodmatronic3011

    @rodmatronic3011

    Жыл бұрын

    WOOOOOOOO

  • @Chalisque
    @Chalisque Жыл бұрын

    Assembly was for those who could afford £50 for an assembler. My first computer, when I was about 8, was an Amstrad CPC with a Z80 chip. There were these mysterious 'pokes': cheats for games that involved using the POKE basic command to write bytes into memory. I never understood then, but wish I had, how they programmers were writing assembler with pen and paper, and hand assembling them to make the machine code numbers to be POKEd into memory and CALLd. I think the modern world has lost too much of the 'do a lot with very little' ethos of computers back in those days.

  • @ChrisX930
    @ChrisX930 Жыл бұрын

    Nice haircut! Fits you more!

  • @eisbombenterror
    @eisbombenterror9 ай бұрын

    The CPU runs machine language - not assembly. Assembly is already an abstraction of machine language and needs to be assembled into machine code instructions: Let's take LDA (load accumulator) for example. It translates into 8 different opcodes, depending on how the accumulater is loaded (immediate, absolute, indirect, etc.). Assembly usually also does provide macros (for labels, data types, etc.). Without labels for example you would need to know every single address for loading, storing, branching, jumping at coding time.

  • @nematolvajkergetok5104
    @nematolvajkergetok51049 күн бұрын

    If you think the Commodore 64's bootscreen is horrible, then you aren't worthy of touching any computer.

  • @kippie80
    @kippie804 ай бұрын

    I’d gotten my C64 in grade 9. The school had a computer course with VIC20s at the time. I’d also taken a typing course with electric typewriters not because of girls but wanted to type faster. Cool to see another generation get into this!

Келесі