You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
771B

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

Powered by TurnKey Linux.