From c1c2a973906812ff31faf534c4bc384e895cadfe Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 20 Mar 2025 17:08:15 +0200 Subject: feat: Demo video and accompanying example assembly --- examples/example1.s | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 examples/example1.s (limited to 'examples/example1.s') diff --git a/examples/example1.s b/examples/example1.s new file mode 100644 index 0000000..b1e38ed --- /dev/null +++ b/examples/example1.s @@ -0,0 +1,14 @@ +; Assembler produces binary files, containing series of big-endian i64 values + +; Arguments in the form "%NUMBER" signify absolute addresses + +subleq %10, %11, %12 + +; Higher-order instructions convert to a series of subleq instructions +; https://en.wikipedia.org/wiki/One-instruction_set_computer#Synthesized_instructions + +jmp %20 ; subleq %0, %0, %20 + +add %39, %41 ; subleq %39, %0, next_address + ; subleq %0, %41, next_address + ; subleq %0, %0, next_address -- cgit v1.3.1-26-gb76a