Hello!
I'm trying to get into learning assembly for my TI84+CE calculator for a project I've wanted to do since high school. I know C and have a basic understanding of how low level computing works (I know binary, how registers work, roughly what the stack does, etc). I've picked up a tutorial I found on the website (https://github.com/CE-Programming/asm-docs), downloaded the docs, and am currently working through the tutorials. I've gotten to tutorial 3 with taking keypad input, and am going through the commands to see what's wrong with a slight modification. However, I've gotten to a line of self-modifying code.
Code:
. The tutorial identifies it, but doesn't explain what self-modifying code means. I've tried googling examples, but everything I get is just a solution for another problem and not an explanation. Does anyone know what it does? Does the $ reference position?
The only part I understand is that := means that the variable (xPos) is being defined as $-3. But again, beyond that I have no clue. Sorry if this is an easy problem who's solution is super obvious!
I'm trying to get into learning assembly for my TI84+CE calculator for a project I've wanted to do since high school. I know C and have a basic understanding of how low level computing works (I know binary, how registers work, roughly what the stack does, etc). I've picked up a tutorial I found on the website (https://github.com/CE-Programming/asm-docs), downloaded the docs, and am currently working through the tutorials. I've gotten to tutorial 3 with taking keypad input, and am going through the commands to see what's wrong with a slight modification. However, I've gotten to a line of self-modifying code.
Code:
xPos := $ - 3
The only part I understand is that := means that the variable (xPos) is being defined as $-3. But again, beyond that I have no clue. Sorry if this is an easy problem who's solution is super obvious!