aboutsummaryrefslogtreecommitdiffstats
path: root/src/assembler.py
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2023-04-10 15:02:50 +0300
committerJan Tuomi <jans.tuomi@gmail.com>2023-04-10 15:02:50 +0300
commit16b4fbd209d71bdb1a066bacd03a9ccd1cf3d16c (patch)
tree3d9a6a8f50f5c9c6392beef681c3a119d5b051d4 /src/assembler.py
parentf07900a66952edb27114b8bdd68efc397b995796 (diff)
Add stack ops, subroutines
Diffstat (limited to 'src/assembler.py')
-rwxr-xr-xsrc/assembler.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/assembler.py b/src/assembler.py
index 3a1d39f..8a53a5c 100755
--- a/src/assembler.py
+++ b/src/assembler.py
@@ -50,7 +50,8 @@ def parse(line: str) -> list[str]:
# 1st pass, gather labels, set options, eval operations
options: dict[str, str] = {
- "stack_pointer": "6" # RG
+ "stack_pointer": "6", # RG
+ "csr_scratch": "5", # RF
}
address: int = 0