Skip to content

Comments

Update tiny16se spec for assembler features (v0.2)#3

Merged
rafael84 merged 1 commit intomainfrom
codex/update-tiny16se-spec-with-macros-and-constants
Jan 25, 2026
Merged

Update tiny16se spec for assembler features (v0.2)#3
rafael84 merged 1 commit intomainfrom
codex/update-tiny16se-spec-with-macros-and-constants

Conversation

@rafael84
Copy link
Owner

Motivation

  • Make the tiny16se spec concise and focus on the language semantics the compiler relies on while documenting modern assembler capabilities.
  • Encourage the compiler to emit clearer assembly by leveraging assembler features such as macros, constants/expressions, sections, and data directives.

Description

  • Rewrite specs/tiny16se.txt to v0.2 with a shorter, focused specification emphasizing core language semantics and calling conventions.
  • Add guidance for assembler integration including use of .macro helpers, local labels, NAME = expression constants, and expression support in immediates.
  • Document section .code / section .data, DB, ORG, TIMES, and .include usage and include a concise lowering example showing macro-based code generation (FP_ENTER/FP_LEAVE).
  • Remove the long, low-level lowering rules and large examples in favor of a compact, maintainable spec that the compiler can target directly.

Testing

  • No automated tests were run because this is a documentation-only change and does not modify code or behavior of the toolchain.

Codex Task

@rafael84 rafael84 merged commit 16fdb90 into main Jan 25, 2026
3 checks passed
@rafael84 rafael84 deleted the codex/update-tiny16se-spec-with-macros-and-constants branch January 25, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant