Romasm IDE

Write, compile, and run Romasm assembly code in your browser

Romasm Source Code

Output

Ready to run...

Registers

Memory

Quick Reference

Instructions

InstructionDescriptionExample
LOADLoad value into registerLOAD R0, 10
STOREStore register to memorySTORE R0, [100]
ADDAdd two registersADD R0, R1
SUBSubtract two registersSUB R0, R1
MULMultiply two registersMUL R0, R1
DIVDivide two registersDIV R0, R1
MODModulo (remainder)MOD R0, R1
CMPCompare two registersCMP R0, R1
SHLShift left (multiply by 2^n)SHL R0, R1
SHRShift right (divide by 2^n)SHR R0, R1
JMPJump to labelJMP loop
JEQJump if equalJEQ done
PRINTPrint register valuePRINT R0

Registers

R0 through R8 (mapped to Roman numerals I through IX)

Labels: Use labels for jumps:
loop:
  INC R0
  JMP loop