1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2025-08-09 04:25:12 +00:00

Fixed Wrong size of padding for non-byte arrays. Closes #497

This commit is contained in:
jespergravgaard
2020-07-27 12:20:54 +02:00
parent 9227a3a857
commit 21a6e60eed
2 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
// Demonstrates Wrong allocation of arrays.
// Demonstrates wrong padding for non-byte arrays.
// https://gitlab.com/camelot/kickc/-/issues/497
.pc = $801 "Basic"
:BasicUpstart(main)

View File

@@ -139,7 +139,7 @@ Allocated zp[1]:3 [ main::$3 ]
INITIAL ASM
Target platform is c64basic / MOS6502X
// File Comments
// Demonstrates Wrong allocation of arrays.
// Demonstrates wrong padding for non-byte arrays.
// https://gitlab.com/camelot/kickc/-/issues/497
// Upstart
.pc = $801 "Basic"
@@ -209,7 +209,7 @@ Uplifting [] best 381 combination
ASSEMBLER BEFORE OPTIMIZATION
// File Comments
// Demonstrates Wrong allocation of arrays.
// Demonstrates wrong padding for non-byte arrays.
// https://gitlab.com/camelot/kickc/-/issues/497
// Upstart
.pc = $801 "Basic"
@@ -285,7 +285,7 @@ FINAL ASSEMBLER
Score: 321
// File Comments
// Demonstrates Wrong allocation of arrays.
// Demonstrates wrong padding for non-byte arrays.
// https://gitlab.com/camelot/kickc/-/issues/497
// Upstart
.pc = $801 "Basic"