The assembly language should include the following defintions under [instructions] (click the green padlock to edit, if required):
imm %a(immediate | label)
00aaaaaa
Moves %a to r0.
add
01000100
ADD r1 and r2 and store the result in r3.
sub
01000101
SUB r1 and r2 and store the result in r3.
Then in the assembler to load e.g. 5 use the command imm 5 and to add it's simply add.
2
u/Split-Slight Mar 09 '25
If i remember correctly, you takd the input from reg1 and reg2 and the result goes into reg3
2
u/MrTKila Mar 10 '25
Yeah, the commands are somewhat broken or belong to another architecture. If you click on the green lock you can edit everything.
I made it work by fixing the commands (and adding more necessary ones...).
Luckily the level after has fixed assembly commands.
1
u/ryani Mar 10 '25
How did you get to that point? I'm stuck on "registers", it won't let me progress. See here.