From 71ea27eea0f59f19c18a256a37de630a5cbb3125 Mon Sep 17 00:00:00 2001 From: Lee Fastenau Date: Tue, 14 Mar 2017 11:05:51 -0700 Subject: [PATCH] Moved conwayRules to unitialized segment. --- src/conway.asm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/conway.asm b/src/conway.asm index 410de8b..bc5cb7b 100644 --- a/src/conway.asm +++ b/src/conway.asm @@ -457,7 +457,12 @@ initData dc.b %00000000,%00000000,%00000000,%00000000,%00000000 initDataLen equ .-initData -conwayRules ds.b 256 + +dataSeg equ . + seg.u conwayData ; uninitialized data segment + org dataSeg + +conwayRules ds.b 256 ; Reserved for rules table echo "--------" echo "CALL",[iterate]d,": REM ITERATE" @@ -465,9 +470,6 @@ conwayRules ds.b 256 echo "--------" echo "Total length:", [.-start]d, "bytes" -dataSeg equ . - seg.u conwayData ; uninitialized data segment - org dataSeg datapg0 ds.b dataWidth * dataHeight ; The start of data page 0 (padded) datapg0_last equ .-n_offset ; The last non-padding cell of data page 0 (topleft neighbor of last cell) datapg0_tln equ datapg0_last - n_offset ; Top left neighbor of last non-padding cell of page 0