Coding NES Loops

preview_player
Показать описание
In this episode I show you how to program with loops on the NES.

Chapters:

0:00 Introduction
0:50 Loops Explained
5:10 Multi-Attack Example
7:18 HP Initialization Loop
11:30 Attack Loop
16:10 Conclusion
Рекомендации по теме
Комментарии
Автор

UPDATE: There are multiple issues with how I treat the negative flag in this episode. Both DEX and SBC set the Negative Flag whenever the result has the 7th bit set. This means the flag will be set by a DEX when X = 255, and again with SBC for 200 - 50 = 150 (*1*0010110 in binary). Big mistake on my part, I apologize. Thank you very much to @TheWoodsieLord for pointing the error out!

It's been a while! Hope you all like the video and let me know if there's a specific topic you'd like me to tackle next 😁

NesHacker
Автор

Not even VS Code can make Assembly programming painless.
Really makes you appreciate how far we've come in terms of game programming.

FloatingSunfish
Автор

The last time checked, you had somewhere around 300 subscribers, and now you've blown well past 10k! Well done!

jaysonl
Автор

The return of the king

Hope you stay doing more videos.

ReachTimeToWin
Автор

Indeed it's been a while, but totally worth the wait. Assembly is still hard for me to 'digest' but it gets much easier when it's explained in an interesting way and within a fun subject like the almighty NES. Keep 'em coming whenever possible man, we know life gets in the way most of the time. And sorry for my crappy english.

Favourites
Автор

Great video! It's nice to have you back. :) I personally would like a video explaining how Zelda's initial screen works. Specifically, how the waterfall, heart and fairy (in the scrolling screen) are animated, and how to change palettes on the fly. Cheers!

damianvila
Автор

Man, you're PURE GOLD !
A huge thank you and never stop this... it's one of the best if not the best NES related channel EVER MADE !

Again, thanks a lot !🙏

violator
Автор

I just love love LOVE how the carry flag between the Z80 and the 6502 behave in largely the same way, unless you're comparing and subtracting where it works exactly backwards.

TheNuje
Автор

Probably the coolest way I could think of to learn assembly programming! Please keep making great videos like these

stam
Автор

Thank you for returning! Great breakdown of the loop process and explaining unnamed loops

BrianBates
Автор

I really enjoy how well you explain this! 😎👍

DSage
Автор

Very well explained and some entertaining infographics. Thanks!

randy
Автор

Before i learn asm, i learnt how CPU works, Logisim is a good simulator for learn this. After i learn CPU logic then i wondered how assembly codes are understandable by CPU and where they kept.. and brought me to ROMs, compilers, lexical analysis, parses, tokes... etc.. i dig and dig to the core.. this is how i find videos like yours. Thanx

seckinseckin
Автор

That's by far the best series to learn assembler! I wanted to learn assembler a long time ago, and now I have a solid basic understanding of it. Thank you very much!

ikemkrueger
Автор

Just THANK YOU. The production quality is massive as usual with your videos.

luzten
Автор

Your explanations are both deep and very, very, very clear. Hard to find something like that when it comes to programming nowadays. Congratulations.

vitmaubra
Автор

I won't complain about how long it take between your videos. I know how it is. Besides, it is worth the wait 😎

GustavoValdiviesso
Автор

It's not even that this is the best NES programming series. This is the best series for programming and programming concepts in general. There are college classes that don't go this hard. If you ever decide to teach any other topics, you can bet I'll be on board.

EastCoastBaja
Автор

Next amazing video! Thousand thanks, your videos helped me a lot! I can use nesdev and know what's what and why :D
I might be wrong, but:

10:23 still sets the negative flag, any number ranging from to will in fact set the negative flag! The negative flag is just the 7th byte of a number. The numbers on NES range from -128 to 127 or 0 to 255.
EDIT : 14:50 BPL ==> BCS. Also the carry will be set if it didn't have to borrow when subtracting.

I love your vids though! I think I've seen each of your videos on NES minimum twice lol

thinksie
Автор

NES Hacker is awesome. Thank you so much for providing this knowledge to us! I've been lurking around assembly language for quite a while but I've never found someone who does into a deep dive like this in a easily consumable way. PLEASE Keep doing these videos!

BDJones