From 7642349be93be4a1acf62e9c5ca831f918ba1c3c Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Sun, 12 May 2024 00:33:10 +0200 Subject: Load ELF into emulator --- main.asm | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 main.asm (limited to 'main.asm') diff --git a/main.asm b/main.asm new file mode 100644 index 0000000..e90d6a2 --- /dev/null +++ b/main.asm @@ -0,0 +1,9 @@ +.section .text +.global _main +_main: + li x1, 5 + addi x2, x1, 45 + +loop: + addi x2, x2, 1 + j loop -- cgit