; emit.inc - parser-to-codegen statement emission (E04-S06). ; ; The emitter writes into the shared code buffer (codegen.s). Offsets are ; frame displacements relative to FP (frames.inc): locals at FP-1 downward and ; parameters at FP+2 upward. .ifndef EMIT_INC EMIT_INC = 1 EM_TMP = $F7 ; two-byte combine temp; below MB_SELF ($F9) EM_LP = $F5 ; two-byte slot pointer; below MB_SELF EM_ERR_SIZE = 1 ; a value or slot is not one byte EM_ERR_TARGET = 2 ; the assignment target is not a scalar local EM_ERR_OP = 3 ; operator the emitter does not handle yet EM_ERR_STATE = 4 ; missing runtime entry or bad emitter state EM_KIND_LOCAL = 0 EM_KIND_PARAM = 1 .endif