Updated Assembler directives (markdown)

simon987 2020-07-30 19:45:03 -04:00
parent b82e445a3e
commit cbb44ce427

@ -129,7 +129,7 @@ Sections are useful to organize your code.
There is currently two section, `.text` and `.data`. By default, the .data section implicitly starts at the beginning of your code and ends where the `.text` section starts, but you are allowed to reorder them as you wish. You must explicitly specify where the `.text` section starts. There is currently two section, `.text` and `.data`. By default, the .data section implicitly starts at the beginning of your code and ends where the `.text` section starts, but you are allowed to reorder them as you wish. You must explicitly specify where the `.text` section starts.
At the beginning of each tick, your code is executed starting at the first instruction after the `.text` directive until it reaches the `BRK` instruction (See [Execution cycle](https://github.com/simon987/Much-Assembly-Required/wiki/CPU#execution-cycle). At the beginning of each tick, your code is executed starting at the first instruction after the `.text` directive until it reaches the `BRK` instruction (See [Execution cycle](https://github.com/simon987/Much-Assembly-Required/wiki/CPU#execution-cycle)).
Notes: Notes:
* There is nothing stopping you from executing code in the `.data` section (or to store variables in the `.text` section) * There is nothing stopping you from executing code in the `.data` section (or to store variables in the `.text` section)