From ee01f1a7f1e10be78bcceb4f0f42aa352a6a588f Mon Sep 17 00:00:00 2001 From: Jacques Comeaux Date: Sat, 24 Aug 2024 01:14:04 -0500 Subject: Add parsers for basic instruction types --- newasm/parsers/immediate.s | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 newasm/parsers/immediate.s (limited to 'newasm/parsers/immediate.s') 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} -- cgit v1.2.3