diff options
| author | 2023-02-18 16:05:09 +0000 | |
|---|---|---|
| committer | 2023-02-18 16:05:09 +0000 | |
| commit | 48827c5b747eca6d56555f69cae37291feb5fcda (patch) | |
| tree | 063bc21af510fe961a7002678e0cdf9dbb8bc228 /creole.c | |
| parent | add data, remove labels and make jumps absolute (diff) | |
adjust python assembler to new API
Diffstat (limited to 'creole.c')
| -rw-r--r-- | creole.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -380,7 +380,7 @@ parse_line(struct creole_env *env, struct ins *ins, struct creole_reader *r) return CREOLE_OPCODE_MALFORMED; } - if (opcode_info[ins->opcode].arglen >= CREOLE_MAX_ARG) + if (opcode_info[ins->opcode].arglen > CREOLE_MAX_ARG) return CREOLE_OPCODE_MALFORMED; for (i = 0; i < opcode_info[ins->opcode].arglen; i++) { if (!decode_seq(r, &w)) @@ -446,6 +446,7 @@ creole_compile(struct creole_env *env) add_to_env(env, &ins); } + env->r_current = env->r_start; return CREOLE_COMPILE_OK; } |
