#include "asm1.h"
VM_FILE_HEADER
VM_FILE_TYPE_RAW
0x11 0x11 ; code size (can be as big as we want for now)
VM_FILE_HEADER_UNUSED_PADDING
;
; code for(int i = 3; i > 0;) { --i; debug_op(); ... }
; stack[1] = 0x2<--- z=0
; stack[1] = 0x1<--- z=0
; stack[1] = 0x0<--- z=1
;
PUSH CONSTANT 0x03
STOREIP REGISTER 0x0
DEC
DEBUG_OP
JNZ REGISTER 0x00