aboutsummaryrefslogtreecommitdiff
path: root/prog
diff options
context:
space:
mode:
Diffstat (limited to 'prog')
-rw-r--r--prog/src/startup.c6
-rw-r--r--prog/src/test_prog.s9
2 files changed, 12 insertions, 3 deletions
diff --git a/prog/src/startup.c b/prog/src/startup.c
index 2ed3253..b587a95 100644
--- a/prog/src/startup.c
+++ b/prog/src/startup.c
@@ -5,15 +5,15 @@ extern unsigned int _sbss; // start of .bss section
extern unsigned int _ebss; // end of .bss section
extern unsigned int _estack; // end of .stack section (stack top)
-void main(void); // main function declaration
+//void main(void); // main function declaration
-// extern void test_prog(void);
+extern void test_prog(void);
void _start(void) __attribute__((section(".text.startup"), naked)); // entry point, cpu starts executing from here
void _start(void)
{
- // test_prog();
+ //test_prog();
unsigned int *src, *dst;
diff --git a/prog/src/test_prog.s b/prog/src/test_prog.s
index caa6d8c..675a2b8 100644
--- a/prog/src/test_prog.s
+++ b/prog/src/test_prog.s
@@ -2,6 +2,15 @@
.globl test_prog
test_prog:
+
+ la t0, 0x00100000
+ li t1, 0x00ff0000
+
+ sw t1, 0(t0)
+ la t0, 0x00100002
+ lb t2, 0(t0)
+
+
li t0, 0xFFFFFFFF
li t1, 0x33333333
li t2, 0x88888888