I've been trying to get this simple ARMv8 assembly code to compile. I've followed the examples of the instructor for my course, but I still can't manage to get it to compile.
I have a duplicate of the instructors code, and according to the lecture slides, all that I should need to type into the console is "gcc demo1.s -g -o demo1"
However, when I type this command into terminal, I am presented with two error codes that I cannot manage to resolve.
.global main
main:
MOV x19, 10
ADD x19, x19, -10
RET
demo1.s:5: Error: too many memory references for 'mov'
demo1.s:6: Error: too many memory references for 'add'