Forum Discussion
Altera_Forum
Honored Contributor
16 years agoassembly language in the nios ii ide
Hi does the nios ii ide support assemble language? why does my assemble codes occur errors? my setup project proceed as follows: 1 Start the Nios II IDE. (Start->All Programs->Altera->...
Altera_Forum
Honored Contributor
15 years agoHi!
I still have the error, my asm sour file is main.S, the code from a NIOSII tutorial: .include "nios_macros.s"
.equ switches, 0x41020
.equ leds, 0x41030
.global main
main:
movia r2, switches
movia r3, leds
loop:
ldbio r4, 0(r2)
stbio r4, 0(r3)
br loop but: alt_main.c:154: undefined reference to `main' :(