0

I am trying to make an assembly program and I get the below error.

It is my first time using QTSpim Simulator.

Error Print Screen

My file start with

.data

N: .word 5

X: .word 2,4,6,8,10

SUM: .word 0

another Syntax Error

enter image description here

7
  • 2
    Looks like a byte order mark. Save your text file with the encoding set to ANSI Commented Oct 6, 2012 at 17:57
  • ok what about syntax errors .... i get the same warning but with syntax error ...... what about that Commented Oct 6, 2012 at 18:03
  • @harold can you answer me please ? ^_^ Commented Oct 6, 2012 at 18:11
  • 1
    Can you show the error? (btw I was making dinner) Commented Oct 6, 2012 at 18:15
  • 1
    Is the : actually in the file? Commented Oct 6, 2012 at 18:19

1 Answer 1

1

You need to complete the program. Try this:

.data

N:   .word 5
X:   .word 2,4,6,8,10
SUM: .word 0

     .text
     .globl main

main:

     #your code here

li $v0, 10
syscall
.end    
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.