Basics - 6502 Assembly Crash Course 01

  Рет қаралды 124,279

NesHacker

NesHacker

Күн бұрын

Пікірлер: 207
@EternalDarknessAboveTheBlueSky
@EternalDarknessAboveTheBlueSky 3 жыл бұрын
This gets me one step closer to understanding how the original Legend of Zelda and Super Mario Bros. games were made.
@NesHacker
@NesHacker 3 жыл бұрын
One step at a time :)
@colonthree
@colonthree 6 ай бұрын
@@NesHacker One inx at the time. uwu
@alucard0712
@alucard0712 2 жыл бұрын
man...there is something magical about being able to control the console you loved so much in your childhood! I wanted to learn programming for myself, for fun but having a big trouble with high-level languages. somehow I've instantly hooked in assembly and today discovered 6502 and NES homebrew! now I found it more fun than UE5, lol. thank you a lot!
@NesHacker
@NesHacker 2 жыл бұрын
That. 100%, that’s exactly why I started messing around with NES programming. Knowing others were out there like me was why I started the channel :)
@DamianLDF
@DamianLDF Жыл бұрын
For anyone running into the issue of compiling 'wrapper.s' instead of the example file, I could solve it by changing cl65config.json, adding "input" and changing "params" like this: "input": "wrapper.s", "params": "--verbose --target nes examples\\01_XandY.s" I'm guessing that this has something to do with dependencies and the order in which the files are compiled, and there might be a better way to configure it, but it worked for me.
@MystycCheez
@MystycCheez Жыл бұрын
Thanks, I was just about to give up
@twirlincurtis
@twirlincurtis Жыл бұрын
This worked for me, thank you!
@MotorOil3
@MotorOil3 10 ай бұрын
OMG THANK YOU SOO MUCH THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU
@runtoday1
@runtoday1 9 ай бұрын
Yes this solved my problem of build task not created 01_XandY file. Followed exact instructions you laid out and it worked straight away. Thank you.
@menitoon
@menitoon 8 ай бұрын
I changed the file to this and it didn't work { "executable": "C:\\cc65\\bin\\cl65", "input": "wrapper.s", "params": "--verbose --target nes examples\\01_XandY.s" } why ?
@deusprogrammer_thekingofspace
@deusprogrammer_thekingofspace 2 жыл бұрын
Wanted to thank you. I am working on a new Zelda 2 Randomizer that uses a different approach to the randomization and I used your videos to help me figure out why certain maps in the game don't respect the level exit data, and I was able to follow a trace and find the code. Using your videos and some 6502 ASM wikis I managed to figure it out. For some reasons maps with a map number greater than 29, ignore the level exits and default to all "go outside" exits. Thanks for the help =).
@NesHacker
@NesHacker 2 жыл бұрын
That’s super-super-super cool. Helping folks do stuff with oldschool games is kinda the point of the channel, and I am really happy to have helped :D
@BlueFinch
@BlueFinch Жыл бұрын
I'm a SMB3 rom hacker and I am very thankful for your instruction on assembly programming. bitwise operations video helped me a lot.
@GeneralLee131
@GeneralLee131 3 жыл бұрын
Absolutely underrated channel. Thanks for the great content! Love learning the deep dark secrets of one of my favorite pieces of tech! Keep up the good work!
@NesHacker
@NesHacker 3 жыл бұрын
Thank you so much! Yeah the NES is near and dear to my heart cause it was the first video game system I had when I was a kid.
@dakotaboy80
@dakotaboy80 3 жыл бұрын
It is fascinating to learn how the games I loved in my childhood were built. Thank you for this series!
@NesHacker
@NesHacker 3 жыл бұрын
For sure, the whole reason I do these videos is for people like yourself :)
@r65z40
@r65z40 Жыл бұрын
im 2 years late finding out your channel. but i'll catch up eventually on your latest material. these stuff are the "gems" buried in the youtube landfill. i hope you always find more inspiration and energy so you can continue making these videos. the way you present and deliver the information shows your talent, knowledge, attention to details, and passion. as a non dev and old soul, i get inspired to nerd out about this subject. i guess childhood dreams will forever haunt us if we always ignore them. thank you for the reminder and showing a direction on how to start this journey.
@NesHacker
@NesHacker Жыл бұрын
Welcome to the channel, I’m happy you found it and please enjoy 😉
@jazzgirl2358
@jazzgirl2358 2 жыл бұрын
Please don't stop this channel 🥺, now I can finally make nes games. I knew programming but never found this content except nesdev which is very complicated to understand
@riyantan9237
@riyantan9237 3 жыл бұрын
I really like the way you explain about NES Programming e.i. such an intricate topic, it’s so intuitive & concise. Thanks you very much for putting time & effort to do all these stuff which I believe will inspire many people loving retro game. Much appreciated, keep doing your great work man 🙏🏻❤️❤️
@NesHacker
@NesHacker 3 жыл бұрын
Thanks! I really appreciate the kinds words :D
@mykalimba
@mykalimba 3 жыл бұрын
Former 6502 games programmer here (for C64, not NES, but still the same processor). Never have I ever pronounced the DEX instruction like the word "decks". It's always been DEE-EEE-EX. 🤷‍♂
@NesHacker
@NesHacker 3 жыл бұрын
Haha, yeah… that’s just how I first read it and it stuck with me. Hope it doesn’t put ya on tilt 😆
@scootergirl3662
@scootergirl3662 Жыл бұрын
Anything in tech, you can always expect someone to comment on pronunciation of something
@mykalimba
@mykalimba Жыл бұрын
@@scootergirl3662 I bet if someone pronounced NES as "knees", you'd have something to say about that. Also, I wasn't saying that "decks" is wrong; I just said that in all of the years that I was writing 6502 code, neither I nor anyone I worked with ever pronounced it that way.
@acied6200
@acied6200 Жыл бұрын
How about just "decrease X" ?
@e_c6324
@e_c6324 Жыл бұрын
It’s actually decrement X. Just like INX is increment X. So DEX (as it’s spelt) makes sense. “DEE-EEE-EEX” does not make sense. DEX is also easier to say, with less palette movement, which is the purpose of acronyms. Leave the man alone and be word by yourself.
@derftastic4322
@derftastic4322 3 жыл бұрын
'kay like, what the fuck. Like, when I was into NES dev with cc65 a year ago. The best we had was Michael Cheeseburger's series the 'Zero Pages', which don't get me wrong, is pretty okay. But I just looked up NES dev again today and I found this absolute GOLD MINE of nes dev tutorials. You sir, are a god send. These tutorials are so incredibly easy to understand and digestible with your animations and way of explaining things. Keep up the good work man.
@NesHacker
@NesHacker 3 жыл бұрын
Glad you like the channel :D
@moltony
@moltony 3 жыл бұрын
great job keeping assembly development very simple. me, who has no assembly experience, easily followed along.
@NesHacker
@NesHacker 3 жыл бұрын
Glad you found the video helpful!
@loreleieleanor8124
@loreleieleanor8124 5 ай бұрын
I've just discovered your youtube channel and these videos make my day. I'm planning to make my own NES game and every piece of advice and information is very valuable.
@xard4spl
@xard4spl 3 жыл бұрын
Your videos kinda remind me of Ben Eater's 6502 series but with NES flavor. I really like your way of explaining this stuff. Keep up the good work!
@phil2768
@phil2768 2 жыл бұрын
Excellent video - please make more. I cannot believe only 39k views! You definitely deserve more.
@thehollowknerd3858
@thehollowknerd3858 2 жыл бұрын
this channel is underrated
@LukeAvedon
@LukeAvedon 3 жыл бұрын
So, so, so, so happy I found this channel!!!!!!!!!
@NesHacker
@NesHacker 3 жыл бұрын
Welcome! I’m currently on a rest month but new videos are starting up in October, glad you’re enjoying the channel thus far!
@ShadyNetworker
@ShadyNetworker 2 ай бұрын
YOOOO, how did you make those awesome sildes with animated text and such? They really add to the value of the video!
@Adrenailine
@Adrenailine 3 жыл бұрын
So thankful I stumbled onto your channel. I'm really interested in people two keep continuing to create 8-bit gaming.
@abomaria7192
@abomaria7192 2 жыл бұрын
This lesson is like an icebreaker, against the ice that around assembly language. Thank you a lot
@socat9311
@socat9311 2 жыл бұрын
Love the way you explain. I will start to develop NES based on your content. I got also the book from 8bit workshop, so my childhood dream might come true :) i hope you have time for more videos!
@runtoday1
@runtoday1 2 жыл бұрын
Again, massive help Ryan. I have been looking at how I can start running Assembly script but also debug at the same time. Thanks again mate. :)
@mizumeh4214
@mizumeh4214 Жыл бұрын
When I run build task on any of the examples, it builds a rom of the wrapper. The key difference is that when you do it it executes the task directly but on my terminal it executes the task in the folder.
@shootmepleasedotnet
@shootmepleasedotnet Жыл бұрын
Same issue here. If I figure it out I will update how.
@kaboom569
@kaboom569 Жыл бұрын
I got the execute the task in the folder when I used the git bash, but I use cmd prompt it works fine. I got the wrapper as well, the contents is the same as those in the video.
@PanosGeorgiadis
@PanosGeorgiadis 3 жыл бұрын
Excellent video and unique approach into teaching the basics using the NES ecosystem at the same time. Subscribed :D
@NesHacker
@NesHacker 3 жыл бұрын
Thanks! Yeah I liked the idea of teaching 6502 and helping people get more comfortable with building games at the same time.
@twobob
@twobob Жыл бұрын
after 30 years of programming sure I know this but it's all about the delivery. That was fun
@NesHacker
@NesHacker Жыл бұрын
Nice, I have about the same. I think communicating this stuff is really fun, but it is quite hard to strike a balance for those without many years of programming experience.
@twobob
@twobob Жыл бұрын
eh you nailed it and when 01010000 01000101 01000010 01000011 01000001 01000011 the teacher is all that matters @@NesHacker
@jimmeyotoole
@jimmeyotoole 3 жыл бұрын
Hey mate, I've had a since long stalled nes emulator I was writing in golang. I've wanted to pick it back up again and get it working. It has all the CPU instructions written but goes out of memory and crashes frequently. This video really helped get my brain back in gear and thinking about debugging it again. Appreciate it!
@Dicateaux
@Dicateaux 5 ай бұрын
dude, this is really really cool of you to do. thank you
@Robert_Shmigelsky
@Robert_Shmigelsky Жыл бұрын
Good stuff. The dev cart magazines got me interested in assembly.
@pavelgreddd9635
@pavelgreddd9635 2 жыл бұрын
Wow, what a channel. Keep going man
@AndrewSpencer-s6p
@AndrewSpencer-s6p Жыл бұрын
These videos are an amazing resource! Thank you so much. This has already been very helpful.
@flandyknightmaster9961
@flandyknightmaster9961 2 жыл бұрын
If you got the message "Unknown ROM file format" by FCEUX 2.6.1(or higher). Don't worry. Insert five lines code of demo (begin from .segment "HEADER"...) to your .s file.
@SuperSomieStuff
@SuperSomieStuff 2 жыл бұрын
Please explain more, what do you mean by “demo”?
@macsilvano
@macsilvano 2 жыл бұрын
@@SuperSomieStuff Add the following lines to the beginning of your code: .segment "HEADER" ; .byte "NES", $1A ; iNES header identifier .byte $4E, $45, $53, $1A .byte 2 ; 2x 16KB PRG code .byte 1 ; 1x 8KB CHR data .byte $01, $00 ; mapper 0, vertical mirroring
@kurtcpi5670
@kurtcpi5670 Жыл бұрын
The 6502 was an amazing CPU in its day, and remains one of the best choices for microcontroller foundations 50 years later. It's architecture and assembly language offer a straightforward path to creating sophisticated apps without high-level languages/compilers. It has a few things that have to be digested, like the difference between indirect-indexed and indexed-indirect modes (also known as indirect-x and indirect-y), but the ability to use either as the situation demands is super power, and permits C-like pointers and pointers to pointers to be easily created in assembly. It's a time-tested chip with utility that extends far beyond the typical useful life of such a complex-purpose unit.
@NesHacker
@NesHacker Жыл бұрын
I agree wholeheartedly. I think 6502 is my favorite assembly language to work in because it is incredibly expressive given such a concise instruction set. While working in on comparable architectures like Z80 I really miss the indexed addressing modes 😭
@pimpingkek4947
@pimpingkek4947 Жыл бұрын
This was going to be my next question. Thank you so much. I wanted to know more about 6502
@m.w.4508
@m.w.4508 3 ай бұрын
I have absolutely no idea what I'm getting wrong here, but from the 8:55 mark after running the build task, the resulting code in my terminal is word-for-word exactly the same as what appears in your terminal, however the assembler doesn't produce a ROM file in the examples directory. In fact, it doesn't produce one anywhere. I have no idea what's going wrong as I've followed along step-by-step since the "NES Development Environment" video.
@m.w.4508
@m.w.4508 3 ай бұрын
It seems it's a problem with the cl65config.json file included in the crash course documents. My file's "params" section was pointing to "wrapper.s" I followed the instructions posted by @DamianLDF in the comments to get my config file to point to the correct location and it's now working again. Seems a few of us are having this problem. Might be worth "pinning" Damian's comment!
@ttface
@ttface Ай бұрын
Hi Ryan, you are the only youtuber of this niche. I wonder is it possible to learn how a nes game written in code and make a very similar game on windows with C++ or with other languages ?
@squirlmy
@squirlmy Ай бұрын
I'm just a student now, but I'm remembering the Atari 2600. Unlike many here, I'm older than the 6502 chip! and knew people who started on the original C64, for example, who went on to code higher languages on Windows, so I know the answer to your question. Of course the principles of programming are the same, if this is your first low level language, it will help you to learn others. OTOH, it's also like asking if you can build a dam after learning to build a swimming pool. The point of C specifically, and the C family generally, is to hide what is going on at lower levels, to do things in one line that takes several lines of assembly. Here's another metaphor -it's like wanting to grow an orchard after learning to grow algae cultures in petri dishes. It's much better to get an NES emulator in Windows for those games. You can use the latest VS Code or Codium editors in Windows to write 6502 code, and test it on an emulator. and the final product should run on the real hardware. But to make a Windows game? That like making a winter wardrobe out of summer clothes sewn together. It's not impossible, but you are going to see it's a lot of hard work for no reason.
@squeezeb0x
@squeezeb0x 2 жыл бұрын
Excellent video. Thank you.
@Jadair215
@Jadair215 2 жыл бұрын
I'm having some problems on the debbuging phase, i reset the ROM file into de FCEUX and add the breakpoint, but the counter just starts at 0000 address. What can i do?
@humbledb4jesus
@humbledb4jesus 10 ай бұрын
the intellect that takes you from a finite set of instructions on what to do with a 0 or 1 to AI threatening mankind when given free will is quite an accomplishment...
@keltonpennel5841
@keltonpennel5841 3 жыл бұрын
So, this has been a great resource so far. I have been learning a lot, especially with VS code. However, I have run into a snag. When I try to run the code for Lesson 1, I get an error code like this, "ld65: Warning: C:\cc65\cfg/nes.cfg:63: Segment 'HEADER' does not exist", for this , "STARTUP", "VECTORS", and "CHARS". I did not change anything in the .json file. Any thoughts as to what I might be missing?
@not_herobrine3752
@not_herobrine3752 6 ай бұрын
you most probably dont have the wrapper assembly file or otherwise have it misconfigured
@bojiden
@bojiden Жыл бұрын
6502 was also used in slight variations on Atari 2600s and Commodore 64, if you want to program games for those consoles.
@sergeykish
@sergeykish Жыл бұрын
Thank you. I've compiled with `cl65 01_XandY.s --verbose --target nes -o 01_XandY.nes` on Linux and it failed with "Unknown ROM file format". It is great that you have provided DevEnvironmentDemo. I had to add header .segment "HEADER" ; .byte "NES", $1A ; iNES header identifier .byte $4E, $45, $53, $1A .byte 2 ; 2x 16KB PRG code .segment "VECTORS" ;; When an NMI happens (once per frame if enabled) the label nmi: .addr 0 ;; When the processor first turns on or is reset, it will jump to the label reset: .addr Main Without vectors it failed to reach 8000
@pdrobautista
@pdrobautista 2 жыл бұрын
Nice content, I was specting some kind of app to program nes games no raw assembly code
@diegolopes8737
@diegolopes8737 2 жыл бұрын
thank for you video. great class about it.
@wlcrutch
@wlcrutch Жыл бұрын
Lemme guess: You’re a professional programmer? I’m a CS student taking my first assembly course, for an Atmega16. I LOVE it. Being a big fan of C and HATING courses in Android and .NET, dev, it’s so enriching and fun to mess with hardware. Hardware is the platform! ❤
@NesHacker
@NesHacker Жыл бұрын
I was for many years, but now I’m a KZbinr 😂
@christopherjackson2157
@christopherjackson2157 2 жыл бұрын
The 6502 in the nes, is it a stock 6502 with simply some features removed? Does it have a proprietary pin-out or could a nes be repaired with a standard 6502?
@cletusthefetus23
@cletusthefetus23 2 жыл бұрын
I know this is 2 month old comment lol. The 6502 for the NES was manufactured by Ricoh, and lacks the decimal mode of the original MOS6502. The same package also contains the sound generator. So I wouldn't expect it to work if you replaced it with some other 6502.
@christopherjackson2157
@christopherjackson2157 2 жыл бұрын
@@cletusthefetus23 Thanks! That line lines up pretty well with what I've read since. :)
@macelapine1573
@macelapine1573 2 жыл бұрын
You're a legend. Thanks!
@NesHacker
@NesHacker 2 жыл бұрын
You’re welcome :)
@AliAbdullah-oi3wc
@AliAbdullah-oi3wc 3 жыл бұрын
Wow it's scary 😭 I hope you do a hello world example
@NesHacker
@NesHacker 3 жыл бұрын
Haha, the scary part is that hello world is way more complex than most of the examples I’ve shown on the channel thus far. I will do one… just need to build up to it a bit ;)
@the_unforseen8224
@the_unforseen8224 Жыл бұрын
This is random and may or may not help someone but I know it’s helped me remember the difference between data and storage. Data comes from the Latin verb do dare which means to give, data is it’s perfect passive participle meaning things having been given. So storage is where you store the things having been known or given 🙂
@NesHacker
@NesHacker Жыл бұрын
*reply with mind explosion gif* 😳
@qwerty4o4
@qwerty4o4 Жыл бұрын
At 6:28, you mentioned not to worry about the lines that started with the dot. Could you explain what those lines do? I get that they provide information to the assembler, but what information do they give? Why are they necessary?
@RixtronixLAB
@RixtronixLAB 3 жыл бұрын
Keep it up, nice video clip, thank you for sharing it :)
@fungo6631
@fungo6631 2 жыл бұрын
I suggest Mesen for the NES emulator as it's much more accurate than FCEUX and it also has an excellent debugger.
@CartoonFinder
@CartoonFinder 3 жыл бұрын
I ran the build task, but I got this error: _cl65 : The term 'cl65' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling_ _of the name, or if a path was included, verify _ _that the path is correct and try again._
@NesHacker
@NesHacker 3 жыл бұрын
Did you install CC65 as part of setting up your development environment? I have a video detailing all the steps that are required to perform builds using VSCode here: kzbin.info/www/bejne/iKW8ZnmMarmlf7c. Lemme know if you're still seeing issues, and cheers!
@CartoonFinder
@CartoonFinder 3 жыл бұрын
@@NesHacker yes, I did. And thanks, I'll take a look at ir
@CartoonFinder
@CartoonFinder 3 жыл бұрын
Still not working...
@NesHacker
@NesHacker 3 жыл бұрын
Sorry for the late reply! Okay, if you’re seeing that error then it means that windows cannot find the cl65.exe file on your computer. The cl65config.json file in the source repository expects it to be at exactly “C:\cc65\bin\cl65.exe” so that would be the first thing to check to ensure that it is there (which it should be given you’ve followed the instructions from the development environment video). Other than that it might be an issue with not having permission to access the file… though that seems unlikely. Unfortunately I cannot think of another reason why this might be happening :(
@CartoonFinder
@CartoonFinder 3 жыл бұрын
@@NesHacker Hello again! I waited for a month or 2... and It works! :D
@SignatureScentReviews
@SignatureScentReviews Жыл бұрын
Finally got my dev environment working on my M1 Mac!
@pfever
@pfever 2 жыл бұрын
Amazing video!
@doctorx0079
@doctorx0079 7 ай бұрын
If we have cc65, why not use C?
@SuperSomieStuff
@SuperSomieStuff 2 жыл бұрын
I’m trying to follow this, but “run build task” just makes an .o file that FCEUX can’t use. Any idea of how to make it work would be appreciated
@oscarw.alcantara4459
@oscarw.alcantara4459 2 жыл бұрын
Don’t know if this will help, but try it. 1st. Make sure you have a working assembling process (on his video NES Development) 2nd. You have to change the “input” and “params” lines on the cl65config.json code to indicate what’s the target and end result. For example: If you create a .s file named “example.s”, then your cl65config.json has to read (if you have the exact default setup that he explains in the NES development video) this: { ”executable”: “C:\\cc65\\bin\\cl65”, “input”: “example.s”, “params”: “-verbose -target nes -o example.nes” } Note how you have to change the input (which code are you targeting) and params (to what do you want to change that code).
@Maurice-n1v
@Maurice-n1v 2 ай бұрын
when i run build task to make the xandy a rom i dont get the new green letter file above the example like you did
@fawfulmark2
@fawfulmark2 Жыл бұрын
For some reason when I get to the step at 8:50 it doesn't make the additional XandY file and instead keeps doing it to Wrapper. was there a step I missed?
@ttermit
@ttermit Жыл бұрын
I also had this problem. Go to the file that points to cl65 on the first line. In input chang buffer.s to XandY.s and in output change buffer.nes to XandY.nes
@nolancarey6244
@nolancarey6244 Жыл бұрын
When doing the run and build for the XandY code, the compiler kept building the wrapper file instead of the XandYs. I configured the default build task to be on the XandYs, although I don't know if that does anything different. Either way, after compiling, it doesn't make a .NES file, it just makes a blank file that can't be used by the emulator. I don't know why it does this.
@RoastedPistachi0
@RoastedPistachi0 11 ай бұрын
if you rename the file to include .nes at the end of the file, an emulator should be able to open it
@wirebus379
@wirebus379 3 жыл бұрын
I like your video, simple and informative . I have 2 questions: 1-how can I start 6502 programming? 2- what software are you using for programming 6502? keep up the good work
@NesHacker
@NesHacker 3 жыл бұрын
Check out my “NES Dev Environment” video. I show how to get started and what software to use there.
@Wojtek_1777
@Wojtek_1777 Жыл бұрын
What do i do if it compiles wrapper.s instead of 01_XandY.s
@olds86307
@olds86307 2 жыл бұрын
i'm kinda hoping this is done for snes stuff as well
@glauco_rocha
@glauco_rocha Жыл бұрын
One thing that strikes me right in the nerd feels when I think about programming is: the distinction between code and data is purely conceptual. In the real world, code is just data that works on other data.
@NesHacker
@NesHacker Жыл бұрын
I was reading something somewhere where this concept is really only central to von Neumann architectures. But since for serial computing that basically just means “any computer” it feels like this concept is fundamental.
@german69692007
@german69692007 7 ай бұрын
Stay away from me!!!!!!!!!!!!!! You're too smart. Love your Tutorial
@pastaprod3297
@pastaprod3297 Жыл бұрын
Not here for the gaming stuff but really interesting!
@artstechnology7809
@artstechnology7809 7 ай бұрын
Respect for you genius ❤❤❤
@Borhamus
@Borhamus 4 ай бұрын
i have the FCEUX 2.6.6, and when i wanna execute the file "01_XandY.s" says "Unknown ROM file format. what can i do? i cant open the debugger cos dont open the file.
@hiukas.
@hiukas. 2 жыл бұрын
Deserves more views...
@wildside4822
@wildside4822 Жыл бұрын
Great tutorial, very helpful, thanks
@NesHacker
@NesHacker Жыл бұрын
You’re welcome ☺️
@maxmuster7003
@maxmuster7003 2 жыл бұрын
I used 6502 assembly at first and then i used x86 assembly and it is much easier to have 16 bit and 32 bit register.
@lays6341
@lays6341 Жыл бұрын
for some reason it keeps generating me wrapper file instead of the 01_XandY file, even tho i’ve followed exactly your manipulation
@russellsnyderjr7523
@russellsnyderjr7523 11 ай бұрын
Awesome Video, But When I Follow The Link, There Is No "Demo Repository".
@canofsoda
@canofsoda Жыл бұрын
what parameters should i use in the cl65config.json file? the default params dont work and ive tried the ones shown on the github and the files they make dont work with FCEUX.
@NesHacker
@NesHacker Жыл бұрын
Interesting, let me take a look at it as sometimes software gets updated and the steps may have changed.
@canofsoda
@canofsoda Жыл бұрын
@NesHacker goof point. I've noticed that while it doesn't make the correct file for 01_XandY, it does make it for the "wrapper" file which is interesting
@thehollowknerd3858
@thehollowknerd3858 2 жыл бұрын
this is best channel
@samuelsathler9586
@samuelsathler9586 2 жыл бұрын
When I try to build the rom, I get the message "no build task to run found".
@objectobjectobject4707
@objectobjectobject4707 Жыл бұрын
Do instructions contain the data by itself lie OPCODE and OPERAND ? Thanks for the series !!!
@ttermit
@ttermit Жыл бұрын
I know this video's kinda old, but when i try to run smth except the hello program, fceux just says "unknown ROM file format". Can anyone help?
@NesHacker
@NesHacker Жыл бұрын
You’re not the only one who’s said this recently. I gotta check it out and see what is going on… Might be time for me to make an updated video :)
@ttermit
@ttermit Жыл бұрын
​@@NesHackerhow do you respond that quickly?😂
@ttermit
@ttermit Жыл бұрын
​@@NesHackeralso idk if this will help but when you build the example project in console it talks about startup, vector, chars and some other segments, but when i compile the same code, i get warnings about segments CHARS, VECTORS, STARTUP and HEADER not existing. Thanks for help though
@ttermit
@ttermit Жыл бұрын
@NesHacker i added this code: .segment "HEADER" .byte "NES" .byte $1A .byte $02 .byte $01 .byte $00 .segment "STARTUP" RESET: INFLOOP: JMP INFLOOP NMI: RTI it doesn't make any errors and shows a grey screen. There is code at address 8000, but X is 0, although i set it to 5 in the code. Also, it's visible that you have a lot of code in the file when you open it in the debugger, so i think these files may be a problem. Hope that helps
@anthonyleedickinson3491
@anthonyleedickinson3491 Жыл бұрын
Hi just a quick one. I got myself a nes programming course. It teaches 60hz programming, and would like to know how easy or difficult it would be to convert to 50hz has it doesn't teach that. Thanks in advance.
@NesHacker
@NesHacker Жыл бұрын
Well the difference is gonna be in the feel of the game. You should be able to use most emulators to see how it feels in 50 vs 60hz. Other than that the core programming concepts should be pretty much the same. Happy hacking!
@minirop
@minirop 11 ай бұрын
most games just didn't gave a %%%% so the game just runs 17% slower. and a couple just had different constants (like increased speed)
@SignatureScentReviews
@SignatureScentReviews Жыл бұрын
I need a 6502 book I think. I have an original book form the 80's that I got for programming my Commodore 64, will it work?
@NesHacker
@NesHacker Жыл бұрын
My primary reference is the MOS Microcomputers 6502 Programming manual. The only big thing to watch out for is that the 2A02 on the NES doesn’t have the decimal mode circuitry (they replaced it with the APU), so that stuff doesn’t work… But otherwise yeah, everything else is pretty much the same when it comes to the CPU.
@commscan314
@commscan314 4 ай бұрын
I'm not even watching this series to make NES games. I'm watching it so I can make one into a servo controller for an R2 unit (no joke, I am planning on controlling an R2 unit with a 6502.) I wonder if I could use an NES emulator and monitor certain memory address writes to treat them as servo addresses, though at this point I should probably just buy a 65C02 and wire it up.
@misterretrowolf1464
@misterretrowolf1464 2 жыл бұрын
GREAT!!
@SmoggyLambGG
@SmoggyLambGG 2 ай бұрын
Will all of this work on the Commander X16?
@squirlmy
@squirlmy Ай бұрын
most of it will work, the biggest difference is NES is for old TV CRTs, and it won't work without adjustment for a modern monitor. Does the C. X16 have a "RCA" video cable? that might work better. And for example, Atari 2600 code is VERY much based on old TV screens, it will not work at all on a monitor unless you have an emulator of some sort.
@hitsuji-m
@hitsuji-m Жыл бұрын
Hello, great video ! I wanted to start learning and creating games for NES for a while (more than 1 year) and you made me start, so thanks for being able to break my lazyness xD ! Could you share the code that helps to prevent the grey screen on FCEUX ? I visited some websites but don't really understand if it's due to the emulator, an error in the code or just basic NES functionning. Also, do you plan on creating a video about the base code of a NES game (explaining VECTORS/HEADER segments, how to display a simple sprite on the screen, etc...) ? I really think it would be helpful, especially from you ! I hope you're having a great day !
@or4cl3br
@or4cl3br 8 ай бұрын
Why my code in debugger start in index $8070?
@E.T.S.
@E.T.S. Жыл бұрын
At 7:00 you start with an assembler without explaining it is an assembler. Try to explain MC with a simple MC editor only before jumping into assembler editors.
@Adamchevy
@Adamchevy 2 жыл бұрын
I assume this could be used for making Atari games.
@finngomezgamer
@finngomezgamer 2 жыл бұрын
how could we make games for the snes because the processor core is still 6502
@NesHacker
@NesHacker 2 жыл бұрын
I’m hoping to branch out and do some snes stuff too in the future. Focusing on the nes for now until I get more of the bases covered for the system :)
@Gitbizy
@Gitbizy Жыл бұрын
Was good at 6502 back in the 80’s. Very nice limited size instruction set compared to todays CPUs
@NesHacker
@NesHacker Жыл бұрын
Haha, I wasn't... but you're not joking. Even modern micro controllers make the 6502 look like it was invented shortly after the wheel 😆
@Gitbizy
@Gitbizy Жыл бұрын
@@NesHacker your videos are very interesting. I learned by reverse engineering code on the Atari 800 using Omnimon which was a real-time editor/debugger that you could jump into anytime with a two key sequence. Learned a whole lot that way… those were the fun days of computers… your videos bring back a lot of memories for me. Thanks and nice job.
@BGDMusic
@BGDMusic Жыл бұрын
i know the first thing about 6502 assembly, just not the second thing.
@NesHacker
@NesHacker Жыл бұрын
Mood
@snowiethetoolguy
@snowiethetoolguy Жыл бұрын
Build a EFI computer and a CNC lathe with a C64 a fair while back. All with Assembly.
@stevethemagicninja
@stevethemagicninja Жыл бұрын
Nice shirt!
@shahriarrafsun7078
@shahriarrafsun7078 11 ай бұрын
I don't know what is happening but whenever I want to make my own workspace and follow your command it never works! But your code is perfectly working without any fault. Even I copied all of your code into a new workspace and it's not working
@dr.ignacioglez.9677
@dr.ignacioglez.9677 2 жыл бұрын
I LOVE C64 👍🥂🎩
@hangonsnoop
@hangonsnoop Жыл бұрын
I triple dog dare you to talk about self-modifying code.
@trxgreder
@trxgreder Жыл бұрын
i am GOING to learn 6502 for a SCHOOL PPROJECT in 6 WEEKS. wish me luck, i HOPE its possible
@NesHacker
@NesHacker Жыл бұрын
I bet you can learn it in a week or two if you really buckle down and work on some serious projects 😀
@trxgreder
@trxgreder Жыл бұрын
@@NesHacker why thank you for the support!
@antoinedevldn
@antoinedevldn 2 жыл бұрын
Wadawow!
@2SUB-TV_space
@2SUB-TV_space 9 ай бұрын
Assembly language is difficult for many people. Why not make lessons for the C language?
@NesHacker
@NesHacker 9 ай бұрын
Because most games were made in assembly back in the day, it gives you more control, it's very useful to know when debugging, essential for ROM hacking, and most important of all: because I like assembly ;)
@2SUB-TV_space
@2SUB-TV_space 9 ай бұрын
@@NesHackerAssembly languages are also different. It is important to mention which one is used. Otherwise, assembler of brain occurs.. 🙂
@zerospacer
@zerospacer 2 жыл бұрын
STAGE0 got me here
@JarppaGuru
@JarppaGuru 10 ай бұрын
if want learn 6502 assemply. then not focus NES. just assembly forget system specific this is is this address. just assembly moving bytes. even better build own computer and sure it has no video card so basic moving bytes is all you need learn. next step is use that to control devices
RAM & Addition - 6502 Assembly Crash Course 02
18:29
NesHacker
Рет қаралды 43 М.
The Code That Makes Mario Move
9:53
NesHacker
Рет қаралды 544 М.
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
x86 Assembly Crash Course
10:45
HackUCF
Рет қаралды 851 М.
I Designed My Own 16-bit CPU
15:46
AstroSam
Рет қаралды 2,1 МЛН
“Hello, world” from scratch on a 6502 - Part 1
27:25
Ben Eater
Рет қаралды 4,9 МЛН
NES Scrolling Basics featuring Super Mario Bros. - Behind the Code
17:25
Displaced Gamers
Рет қаралды 130 М.
27c3: Reverse Engineering the MOS 6502 CPU (en)
51:57
Christiaan008
Рет қаралды 442 М.
How we fit an NES game into 40 Kilobytes
12:04
Morphcat Games
Рет қаралды 3,6 МЛН
NES Development Environment
14:58
NesHacker
Рет қаралды 357 М.
Programming the NES - Everything you need to know
28:36
Inkbox
Рет қаралды 61 М.
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН