DEV Community

Hyporos
Hyporos

Posted on

SPO600 - Week 3

From my readings on week 3 of SPO600, I've learned a couple new things about the 6502 language.

Firstly, the utilization of "define". It makes code a lot more readable and simpler because you're setting a value to a word. It's easier to understand "LDA #WHITE" than "LDA $0E".

A similar thing to this is DCB (define constant variable). However you wouldn't want the program to try to execute the code block so you'd want to stop the code beforehand using brk.

Overall this really increases the simplicity of any program, and it's useful to know along with other basics.

In another topic on this week, I learned about math operations.
ADC to add, SDC to subtract, and other misc functions like CLC, SED and ASL

Discussion (0)