The assembler that I am using for one of my classes is limited because
it's just a java simulation, and it's not able to handle all
instructions.
It's limited to:
ADD | ADDS | <register>, <register>, <register>
SUB | SUBS <register>, <register>, #<literal>
MUL <register>, <register>, <register>
LDR | STR <register>, <label>
<register>, [<register>], #<literal>
MOV | MVN <register>, <register>
<register>, #<literal>
BEQ | BNE | <label>
BGT | BLT | BAL
Pseudo Instructions
LDR Rn, DATAIN
STR Rn, DATAOUT
EXIT
MEMDUMP
REGDUMP
I'm trying to create a selection sort with just that. From all of our
examples, we use LDRB - which is not supported by the simulator. I
also needed ADR but found:
LDR R2, POINTER
...
POINTER DCD NUM1
or
ADD Rd, R15, #offset
was equivalent.
Think anyone can help me with LDRB? |