From 142510b8325b9ef89bd3e22463f36c3caa2815de Mon Sep 17 00:00:00 2001 From: Flavian Kaufmann Date: Mon, 20 May 2024 12:18:20 +0200 Subject: io --- prog/src/startup.s | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'prog/src/startup.s') diff --git a/prog/src/startup.s b/prog/src/startup.s index 7adfb5e..963c288 100644 --- a/prog/src/startup.s +++ b/prog/src/startup.s @@ -1,6 +1,23 @@ .section .init .globl _start _start: + +prog: +/* + la t0, 4 + la t1, 1 + + sw t1, 0(t0) + + la t0, 0x00100000 + li t1, 1 + sw t1, 0(t0) + lw t2, 0(t0) + + + j halt + +*/ /* Set up stack pointer */ la sp, _stack_end -- cgit v1.2.3