Deferred Feature: Nested Macro Support for cvt_asm
Status
DEFERRED - Low priority, no current demand. Will implement when:
- A real-world use case with nested macros appears
- User requests it with an actual file
- Benefit-to-effort ratio improves
Current Behavior
Single-level macros fully supported:
- ✓ Extract macro definitions
- ✓ Preserve in macro-supporting formats
- ✓ Expand for non-macro formats
Nested macros:
- ✗ NOT supported (treated as macro body content)
- Result: Nested structure is flattened, functionality preserved
Why Deferred
- Not used in practice - No evidence in 6502/65C02 assembly code
- Acceptable degradation - Files still convert correctly (just flattened)
- Implementation cost - ~200 lines of code + testing
- Better use of time - Prioritize features with actual demand
Implementation (When Needed)
Would require:
- Nesting depth tracking (not just boolean flag)
- Stack-based macro storage for nested levels
- Parameter scoping per nesting level
- Recursive expansion logic
- Test suite for nested expansion
Related
Priority: LOW
Effort: MEDIUM
Demand: NONE (currently)
Status: FUTURE WORK
Deferred Feature: Nested Macro Support for cvt_asm
Status
DEFERRED - Low priority, no current demand. Will implement when:
Current Behavior
Single-level macros fully supported:
Nested macros:
Why Deferred
Implementation (When Needed)
Would require:
Related
Priority: LOW
Effort: MEDIUM
Demand: NONE (currently)
Status: FUTURE WORK