aboutsummaryrefslogtreecommitdiff
path: root/newasm/parsers/immediate.s
diff options
context:
space:
mode:
authorJacques Comeaux <jacquesrcomeaux@protonmail.com>2024-08-24 01:14:04 -0500
committerJacques Comeaux <jacquesrcomeaux@protonmail.com>2024-08-24 01:14:04 -0500
commitee01f1a7f1e10be78bcceb4f0f42aa352a6a588f (patch)
tree271e7034ee94e4447784db5b31bf8e332b30fbba /newasm/parsers/immediate.s
parent80d8f3ae48255f786bd4d52a1819ea0c339f6946 (diff)
Add parsers for basic instruction typesHEADmaster
Diffstat (limited to 'newasm/parsers/immediate.s')
-rw-r--r--newasm/parsers/immediate.s13
1 files changed, 13 insertions, 0 deletions
diff --git a/newasm/parsers/immediate.s b/newasm/parsers/immediate.s
new file mode 100644
index 0000000..ac3e578
--- /dev/null
+++ b/newasm/parsers/immediate.s
@@ -0,0 +1,13 @@
+.syntax unified
+.cpu cortex-m0plus
+.thumb
+
+.type immediate, %function
+.global immediate
+
+// R4 input buffer
+// R2 output buffer
+
+immediate:PUSH {LR}
+ BL decimal
+ POP {PC}