>>110129242
for the include I had to put a little hack, to make the whole thing more readable:
.equ STACK_TOP, 0x80014000
.equ DELAY, 1000000
.equ LED_REG, 0xF0000000
.equ NEO_BASE, 0xF0020000
.equ NEO_COUNT, 0xF0024000
.equ UART_BASE, 0xFFF50000
// 19200
// .equ UART_BRD, 0xa281
// 115200
.equ UART_BRD, 0x1ac1
.equ NUM_NEO, 5
.section .data
hello_str:
.ascii "Hello!\r\n" // 8 chars
hi_str:
.asciz "Hi!" // 4 chars
.section .text
j _start // jump over includes
#include "/Home/User/Has/proj/uart.ASM"
#include "/Home/User/Has/proj/neopix.ASM"
_start:
li x1, 0
li x2, 0
li x3, 0
li x4, 0
li x5, 0
li x6, 0
li x7, 0
otherwise the includes would have been somewhere at the bottom below the main loop