diff options
author | dbarbi1 <dbarbi1@gmail.com> | 2018-02-03 23:18:02 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-03 23:18:02 -0600 |
commit | 43d1f8dc431def61296a02688e1a9eade9ddbaf7 (patch) | |
tree | 03e2742f8b7b3ffa92f25041029ea2222c4ae114 /software/asm_main | |
parent | 9c16e9dbde1f465464adb22fe08094f6f38d0a01 (diff) | |
parent | d80a373c6af9f92bb6d91cc89e1ded2ff0e4d539 (diff) |
Merge pull request #87 from sifive/asm
asm only program
Diffstat (limited to 'software/asm_main')
-rw-r--r-- | software/asm_main/Makefile | 6 | ||||
-rw-r--r-- | software/asm_main/asm_main.S | 8 |
2 files changed, 14 insertions, 0 deletions
diff --git a/software/asm_main/Makefile b/software/asm_main/Makefile new file mode 100644 index 0000000..40c1175 --- /dev/null +++ b/software/asm_main/Makefile @@ -0,0 +1,6 @@ +TARGET = asm_main +ASM_SRCS += asm_main.S +CFLAGS += -O2 -DNO_INIT + +BSP_BASE = ../../bsp +include $(BSP_BASE)/env/common.mk diff --git a/software/asm_main/asm_main.S b/software/asm_main/asm_main.S new file mode 100644 index 0000000..6241bb1 --- /dev/null +++ b/software/asm_main/asm_main.S @@ -0,0 +1,8 @@ + .section .text + .globl main + + +main: + add t0,zero,zero +1: addi t0,t0, 1 + j 1b |