I am programming with ARC Tools Simulator, please help me figure out why I get t
ID: 664997 • Letter: I
Question
I am programming with ARC Tools Simulator, please help me figure out why I get this error.
.begin
.org 2048
main:
ld [i], %r16
st %r16, [series + %r16]
addcc %r16, 1, %r16
st %r16, [i]
addcc %r16, -10, %r0
be main
jmpl %r15 + 4, %r0
i: 0
series: .dwb 10
.end
ERROR:
ARC Parser (ARCTools Version 2.0.2)
ERROR: Syntax Error: Encountered "series" at line 8, column 24.
.lst and .bin files will not be generated...
ARC TOOLS:
http://bcs.wiley.com/he-bcs/Books?action=weblinks&bcsId=3800&itemId=0471733881&webLinkURL=http://higheredbcs.wiley.com/legacy/college/murdocca/0471733881/arctools/arctools.htm
Explanation / Answer
I think it is because of the series :dwb line. trying removing this line.
Also I think add.cc should be the function as cc is for conditional codes.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.