Skip to content

ds align fails in already-aligned sections #1723

Open
@ISSOtm

Description

@ISSOtm
issotm /tmp% rgbasm a.asm
error: a.asm(5):
    Section's alignment fails required alignment (offset from section start = $0002)
error: Assembly aborted (1 error)!
1 issotm /tmp% bat a.asm
───────┬─────────────────────────────────────────────────
       │ File: a.asm
───────┼─────────────────────────────────────────────────
   1   │ SECTION "test", ROM0
   2   │
   3   │ align 4
   4   │ dw 42
   5   │ ds align[8,$C2]
───────┴─────────────────────────────────────────────────

This should have generated suitable padding, but apparently it fails to.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions