Mima Compiler and Interpreter
Code:
Run!
Stop
Step
Reset/Reparse
Finish
Compile to C
; Modulo.mima ; calculates x mod y and writes the result in z x DS 567 y DS 13 z DS tmp DS * = 0x100 eins DS 1 START: LDV y NOT ADD eins STV tmp LDV x LOOP: ADD tmp JMN FIN JMP LOOP FIN: ADD y STV z OUTPUT z ; not a real mima assembler command HLT
Memory:
Log: