"Syntax error spim: (parser) on line [...]", where I used the label .byte

When I program the assembly and use the label .byte, I have a problem with its execution using Qtspim. I tried to change the position or value, but the problem persists and is probably a label.

The error response was on line 3. At the end of the label, you will find a parser.

main:

.data
  v    : .byte 2,0,0,0,4,0,0,0
  array: .byte 2,0,0,0,3,0,0,0,5,0,0,0,7,0,0,0,11,0,0,0,13,0,0,0,17,0,0,0,19,0,0,0

[..] # other code

When I change the directive .byteto .space, the problem does not arise.

How can I solve it?

+4
source share
1 answer

The problem is that at least QtSpim requires arrays to take place after commas. So this will work just fine:

.data
v:  .byte 2, 0, 0, 0, 4, 0, 0, 0

.

, QtSpim . , .

float:

flo:  .float 2,2
0

All Articles