Allow ds to take multiple values to repeat for a count (#725)

Fixes #722
This commit is contained in:
Rangi
2021-02-16 19:01:23 -08:00
committed by GitHub
parent 76d6ef8695
commit 8c0275480c
9 changed files with 74 additions and 14 deletions

View File

@@ -1,14 +1,14 @@
SECTION "test fixed", ROM0[0]
FixedStart:
ds 8, (@ - FixedStart) * 2 + zero
ds 8, (@ - FixedStart) * 2 + zero
ds 6, (@ - FixedStart) * 2 + zero
ds 10, (@ - FixedStart) + zero, (@ - FixedStart) * 3 + zero, (@ - FixedStart) * 4 + zero
SECTION "test floating", ROM0
FloatingStart:
ds 8, (@ - FloatingStart) * 2 + zero
ds 8, (@ - FloatingStart) * 2 + zero
ds 6, (@ - FloatingStart) * 2 + zero
ds 10, (@ - FloatingStart) + zero, (@ - FloatingStart) * 3 + zero, (@ - FloatingStart) * 4 + zero
SECTION "zero", ROM0[0]
zero:

Binary file not shown.

View File

@@ -6,3 +6,4 @@ Label:
ds 5, .other - Label - 5 ; Expressions should work...
ds 60, .last - Label ; ...even if not constant
.last
ds 11, $67, $89

View File

@@ -1 +1 @@
****<2A><><EFBFBD><EFBFBD><EFBFBD>EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
****<2A><><EFBFBD><EFBFBD><EFBFBD>EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEg<EFBFBD>g<EFBFBD>g<EFBFBD>g<EFBFBD>g<EFBFBD>g