assembly - What is wrong with this line of Lc3 code? -
i doing practice exam question.
the question is
is there wrong in line of lc3 code? (the starred line)
add r3, r3, 0; **brnz ispos;** halt .blkw 250 ispos not r3, r3 ....
i saw starred line branch , condition codes negative , zero, go label ispos if condition code negative or 0 or halt program otherwise.
i line of lc3 code has nothing wrong it. see problems it?
yes, there couple different errors code segment.
opcodes cannot have other label preceding them.
**brnz ispos;**
must become:
brnz ispos;**
you cannot have random characters after operands, unless commented out
ispos not r3, r3 ....
must change to:
ispos not r3, r3 ;....
Comments
Post a Comment