Commodore 64 Part 2: Intro to 6502 Machine Language

  Рет қаралды 34,035

The [Fill in the Blank] Programmer

The [Fill in the Blank] Programmer

Күн бұрын

Using the MOS 6502 and Commodore 64 BASIC as our starting point, I give an overview of how the CPU interprets instructions and how to give the most basic example of writing a value to memory to change the border color with machine language.

Пікірлер: 50
@Infinitesap
@Infinitesap 5 жыл бұрын
This is crazy. One of the best explanations in the world. And only so few pay attention to these three videos. I thank you very much for your effort. I hope you would bring more to the table.
@Kevin_KC0SHO
@Kevin_KC0SHO 6 жыл бұрын
Thanks for the video. I would sit in front of my c64 for hours writting programs from books and magazines and never knew what I was really doing at time. I always wanted make better programs, but never knew how and information wasn't available like it is now. Just got my C64 back out the other day and trying to get my 1541 back up and running. I also got some parts to build the X1541 cable so good times are ahead.
@thebootrex5609
@thebootrex5609 6 жыл бұрын
i just found your channel today and im absolutely loving it! thank you for your concise explanations for someone just getting into this stuff. You are easy to listen to and follow!
@gc1418
@gc1418 Жыл бұрын
This explanation was so great. Assembly is not an easy thing to understand, and you made it very clear. Nicely done!!!
@LMacNeill
@LMacNeill 6 жыл бұрын
Compute Magazine had a small program that you could enter and save to your floppy or tape... You’d run that program before typing in one of the programs in their magazine. Each line of the program in the magazine ended in a colon and a 5 digit number. It was a checksum (I know that now - didn’t know that then). The small program you ran before typing in one of their programs would replace a tiny part of the C64 BASIC screen-editor, and would use the checksum number at the end of the line to ensure you entered that line correctly. It would let you know, via a very displeasing “buzz” sound, that you had entered the line incorrectly, so you knew immediately to check that line and correct your mistake. It made entering programs a *lot* easier - and whoever came up with that idea deserved a big pay-raise! Really made my life a lot easier, back in the day.
@1stacbats
@1stacbats 5 жыл бұрын
Nice video. The two so far as well as a machine code book ive been reading have really helped me. Cheers
@Zefrem23
@Zefrem23 5 жыл бұрын
I learned much more watching this one video than I ever did poring through those issues of COMPUTE! magazine and typing random examples into my VIC-20.
@tach409
@tach409 2 жыл бұрын
Excellent! I could have really used these videos back in the 80's!
@AlanCanon2222
@AlanCanon2222 2 жыл бұрын
Love the shout-out to Real Genius! As someone who grew up on the C64, Atari 400, and Atari 2600, I often have been given to wonder why we don't have 64 bit versions of the 6502 today, perhaps a WDC W65C864. The answer is probably, "because Steve Jobs", thinking of his war against the Apple II gs in favor of the Mac. I've mused about having a 64 bit 6502 descendent and Adrien Kohlbecker, W65C816 maven, has commented in response: it would be in a DIP-40 and they'd make us time demultiplex the 64 bits off the address/data pins.
@RetroMarkyRM
@RetroMarkyRM 7 жыл бұрын
Nice. I can relate to pretty much everything you´re saying regarding deduction and the complexities of machine language!
@adrianpurser
@adrianpurser 3 жыл бұрын
Great video. This really takes me back to my youth. I had a program published in a magazine when I was a teenager. It also was just a page of data statements. Helped me buy more computer bits :)
@AndreasStenmark
@AndreasStenmark 7 жыл бұрын
Fun channel :) I grew up on Commodore boxes too. This video perfectly explains how I wrote my first assembler programs, manually converting every single bit. I would also type in those magazine programs and in a retro fit a cpl years ago I dug one out and reimplemented Eliza for Android. Not that it hadn't been done before, but hey...
@ProGaming-we6hh
@ProGaming-we6hh 6 жыл бұрын
Verry interesting. Keep up with good work 😊
@ryan_chapelle9489
@ryan_chapelle9489 7 жыл бұрын
This series has been great! Keep going, I've learned so much!
@ryan_chapelle9489
@ryan_chapelle9489 7 жыл бұрын
Oh of course! I've liked every video simply on how great they are!
@Havanacuba1985
@Havanacuba1985 4 жыл бұрын
RYAN_CHAPELLE dude your handle is the guy off 24
@zaferaydogan1516
@zaferaydogan1516 7 жыл бұрын
The C64 used the 6510 whose instruction set was almost identical to the 6502.
@chrisnorth4320
@chrisnorth4320 Жыл бұрын
Wish I had these videos 40 years ago.
@AxelWerner
@AxelWerner 7 жыл бұрын
really nice tutorial. i wished i would have understood all that back then when i was a kid.
@BriansManCave
@BriansManCave 7 жыл бұрын
Same here :)
@Jeff-xy7fv
@Jeff-xy7fv 6 жыл бұрын
I actually did. I used to play around with machine language a lot when I was about 12.
@timharig
@timharig 5 жыл бұрын
Jeff Yea, I quickly found BASIC to be very limiting. Even today I still find assembly programming to be quite enjoyable coding for pic16 MCUs. There is an element of code craft and artistry that is lost writing in higher level languages.
@bierundkippen720
@bierundkippen720 4 жыл бұрын
Axel Werner I think it depended a lot on your location. If there weren’t kids around in your home city that could introduce you into that stuff, you were fucked. I also would’ve liked to know more about this. Could have bought a book or so. But didn’t have enough passion, I guess.
@rationalraven8956
@rationalraven8956 3 жыл бұрын
It can be fun to revisit the past for the nostalgia but I'm glad we no longer have to compile assembly code by hand lol
@nicholasmaude6906
@nicholasmaude6906 4 жыл бұрын
I'd love to see a similar video about the Apple IIe.
@Mr_ToR
@Mr_ToR 6 жыл бұрын
awesome, thank you very much :-)
@BitwiseMobile
@BitwiseMobile 4 жыл бұрын
Compute! was a favorite of mine. It had more IBM/PC stuff (which I had because that's what my parents bought).
@Meow_YT
@Meow_YT 6 жыл бұрын
I cannot really recall how I ended up programming 6510... I think I just went into the machine code monitor in the Action Replay mk V and got a little interested in what I saw. Never really had any books help me, just the games I took apart... also never had an assembler, just the ARmkV.... man keeping all the JSR routine locations on paper was fun and refactoring to make space was... interesting.
@gregorymalchuk272
@gregorymalchuk272 3 жыл бұрын
Did the Commodore 64 have a built-in assembly monitor like the Apple II did?
@Meow_YT
@Meow_YT 3 жыл бұрын
@@gregorymalchuk272 no. Had to use extra tools.
@gregorymalchuk272
@gregorymalchuk272 3 жыл бұрын
@@Meow_YT Which ones? TurboMacroPro?
@adrianpurser
@adrianpurser 3 жыл бұрын
I used a cartridge based assembler, I think it was called Mikro Assembler. It would let you write assembler like a basic program with line numbers and it added commands to assemble it.
@Meow_YT
@Meow_YT 3 жыл бұрын
@@gregorymalchuk272 Like I said. I didn't have anything other than the Action Replay machine code monitor. I didn't know of any other tools until later and I really didn't learn much about them until I was writing on other machines, like the Acorn. All I really had was pieces of paper to write down my routine locations and remembering the important addresses on the C64 myself, mostly in hex.
@BriansManCave
@BriansManCave 7 жыл бұрын
Computes Gazette was what I used!
@Jeff-xy7fv
@Jeff-xy7fv 6 жыл бұрын
I used to subscribe to that!!
@JesusisJesus
@JesusisJesus 6 жыл бұрын
The C=64 has a glitch in the Kernel where if you type 350800 into basic, as if to remove that line from a basic program, the computer jumps to the RESTORE mode. Can anyone please explain this, I've been wondering for the last 35 years.
@TheStevenWhiting
@TheStevenWhiting Жыл бұрын
What I never understood back then is why was the main text printed nice and clear but the code in the magazines and books was always printed poorly.
@Fill_In_The_Blank_Programmer
@Fill_In_The_Blank_Programmer Жыл бұрын
My guess is: more expensive paper for the pages that more expensive ads appear on
@unity6926
@unity6926 3 жыл бұрын
Just finding your videos now, these are great. Do you still check this channel? Would love to see more. Subbed.
@Fill_In_The_Blank_Programmer
@Fill_In_The_Blank_Programmer 3 жыл бұрын
I do! I posted a new episode not that long ago, actually. I have a long series planned and am slowly putting it together now.
@stana1980
@stana1980 3 жыл бұрын
Is this commodore basic or assembly language. Assembly comes with instructions like Lda, sta etc
@tenminutetokyo2643
@tenminutetokyo2643 2 жыл бұрын
The $ means it’s a hexadecimal number.
@TrevorKevorson
@TrevorKevorson 6 жыл бұрын
Great video, I've been messing about with computers for over 30 years but never really understand what the DATA and READ commands did. Watching this video makes it all clearer :-) Really enjoying the series so far, although I'm trying to learn Z80 I'm guessing the basics are fairly similar regardless of what machine you use. Times like this I wish I had KZbin back in the 80s to explain this stuff to me :-)
@timharig
@timharig 5 жыл бұрын
Rob Beard There are commonalities between most the assembly language of most processors but there are sometimes very different paradigms in how the processor architecture is set up -- especially with how memory addressing works. That said, Z80 assembly is almost like a superset of 6502 assembly. The big difference is that you have some general purpose registers to work with so you don't have to be so dependent on constantly loading addresses into the index registers every time that you need to work with a value.
@tenminutetokyo2643
@tenminutetokyo2643 2 жыл бұрын
Ah yes typing in programs in the basement every weekend for hours.
@Testacabeza
@Testacabeza 2 жыл бұрын
For them to fail due to a typo! :)
@ericmullins7990
@ericmullins7990 7 жыл бұрын
c64 keyboard was horrible, did exactly this hundreds (perhaps thousands) of times: 14:25 LIT ?SYNTAX ERROR READY.
@bierundkippen720
@bierundkippen720 4 жыл бұрын
I loved it. ☺️
@andreranulfo-dev8607
@andreranulfo-dev8607 4 жыл бұрын
6:50 "Enjoy the silence" - Lolol
@user-hx9gu5nh9p
@user-hx9gu5nh9p 5 жыл бұрын
What's the point of this video? You go back and forth with cursors keys and you type a few lines like a snail. We can look up Wikipedia on our own
Commodore 64 Part 3: Intro to 6502 Assembly
10:04
The [Fill in the Blank] Programmer
Рет қаралды 27 М.
Commodore 64 Part 1: How The Memory Map Worked
18:01
The [Fill in the Blank] Programmer
Рет қаралды 57 М.
КАК ГЛОТАЮТ ШПАГУ?😳
00:33
Masomka
Рет қаралды 2,1 МЛН
Teenagers Show Kindness by Repairing Grandmother's Old Fence #shorts
00:37
Fabiosa Best Lifehacks
Рет қаралды 7 МЛН
FOOTBALL WITH PLAY BUTTONS ▶️ #roadto100million
00:24
Celine Dept
Рет қаралды 153 МЛН
Programming Like It's 1979: 6502 Assembly language on the Apple ][
19:53
10 Rarely Used Commodore 64 BASIC Features
31:20
8-Bit Show And Tell
Рет қаралды 73 М.
Commodore 64 in Russia: review, restoration, loading games
18:41
27c3: Reverse Engineering the MOS 6502 CPU (en)
51:57
Christiaan008
Рет қаралды 428 М.
everything is open source if you can reverse engineer (try it RIGHT NOW!)
13:56
Low Level Learning
Рет қаралды 1,2 МЛН
"Hello World" on Commodore 64 in Assembly Language, Machine Code
33:39
8-Bit Show And Tell
Рет қаралды 45 М.
The basics of BASIC, the programming language of the 1980s.
24:07
The 8-Bit Guy
Рет қаралды 2,3 МЛН
Infrared Soldering Iron from Cigarette Lighter
0:58
ALABAYCHIC
Рет қаралды 1,9 МЛН
Распаковка айфона в воде😱 #shorts
0:25
Mevaza
Рет қаралды 1,1 МЛН
🔥Новый ЛИДЕР РЫНКА СМАРТФОНОВ🤩
0:33
КУПИЛ SAMSUNG GALAXY S24 ULTRA ЗА 88000 РУБЛЕЙ!
27:29