Hello, Blog!
If you have just stumbled upon my SPO600 series of blog posts, it has been created to document and share my learnings as I progress through my Software Portability and Optimization college course.
The semester is wrapping up, and I'm working to catch up on my backlog of blog posts - bringing you a sudden throwback to 6502 assembly.
In this post, I'll cover the second lab of the course. The main goal of this lab was getting familiar with performing math operations in 6502 assembly, specifically to animate the graphics on the screen.
Check out my 1-st post about 6502 Assembly:
Nice and colourful 6502 reference:
Let's make it bounce
Our goal in this lab is to make the graphic the bitmapped display using 6502 math, instead of resetting after a set number of frames.
Steps taken:
1. Set the initial position for the graphic: I chose a non-corner starting point, so the graphic can properly bounce around the screen once I am finished with the logic
CODE; Set initial position X=Y=0
LDA #$00
STA XPOS
LDA #$05
STA YPOS
Full Solution
If you’d like to see the complete implementation, feel free to check it out on GitHub.
Afterthoughts
Assembly programming is certainly very tedious, especially after stepping away from it for a while (the process of readjusting is very real!). However, the complete lack of abstraction also has its benefits: it forces you to gain an intimate understanding of every tiny detail of the code's logic.
↗ Original-Artikel auf dev.to lesenVollständiger Original-BerichtAusführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
SOCIAL SHARE CARD GENERATOR