I've have a raspberry pi that I use for University purposes. Since at home I don't have a monitor, I decided to code in assembly from my laptop, using Lubuntu.
The problem is, even if this works when I assemble it on the raspberry, when I run the command as -g -o $1.o $1.asm && gcc -g -o $1 $1.o
from my laptop, I get error messages from the assembler.
Here is the code
@ test this code
.global main
main:
mov r7,#1
svc #0
Here is the assembler response
wsearch.asm: Assembler messages:
wsearch.asm:1: Error: junk at end of line, first unrecognized character is `@'
wsearch.asm:5: Error: expecting operand after ','; got nothing
wsearch.asm:6: Error: no such instruction: `svc '
I don't know what I'm doing wrong since doing this exact processes on the raspberry works perfectly.