fprintf (f, "addr_deref");\r
break;\r
case slang_asm_addr_add:\r
- fprintf (f, "address_add");\r
+ fprintf (f, "addr_add");\r
break;\r
case slang_asm_addr_multiply:\r
- fprintf (f, "address_multiply");\r
+ fprintf (f, "addr_multiply");\r
break;\r
case slang_asm_jump:\r
fprintf (f, "jump\t%u", a->param[0]);\r
fprintf (f, "exit");\r
break;\r
default:\r
- break;\r
+ break;\r
}\r
\r
fprintf (f, "\n");\r
case slang_asm_enter:\r
mach.sp--;\r
mach.stack._addr[mach.sp] = mach.bp;\r
- mach.bp = mach.sp + a->param[0] / 4 + 1;\r
+ mach.bp = mach.sp + a->param[0] / 4;\r
break;\r
case slang_asm_leave:\r
mach.bp = mach.stack._addr[mach.sp];\r
case slang_asm_local_addr:\r
mach.sp--;\r
mach.stack._addr[mach.sp] = (GLuint) mach.stack._addr + mach.bp * 4 -\r
- (a->param[0] + a->param[1]);\r
+ (a->param[0] + a->param[1]) + 4;\r
break;\r
case slang_asm_call:\r
mach.sp--;\r