mirror of
https://github.com/KarolS/millfork.git
synced 2024-10-04 12:55:29 +00:00
Fix test
This commit is contained in:
parent
769f31717d
commit
5acf92d4e8
@ -46,10 +46,10 @@ class ConstantSuite extends FunSuite with Matchers {
|
|||||||
test("Special const functions should work") {
|
test("Special const functions should work") {
|
||||||
EmuUnoptimizedCrossPlatformRun(Cpu.Mos, Cpu.Z80, Cpu.Intel8086, Cpu.Motorola6809)(
|
EmuUnoptimizedCrossPlatformRun(Cpu.Mos, Cpu.Z80, Cpu.Intel8086, Cpu.Motorola6809)(
|
||||||
"""
|
"""
|
||||||
| const array values = [111, if (0,1,2), if(1,2,3), min(2,3,4), max(2,3,4)
|
| const array values = [111, if (0,1,2), if(1,2,3), min(2,3,4), max(2,3,4) ]
|
||||||
| pointer output @$c000
|
| pointer output @$c000
|
||||||
| void main() {
|
| void main() {
|
||||||
|
|
| output = values.addr
|
||||||
| }
|
| }
|
||||||
""".stripMargin){m =>
|
""".stripMargin){m =>
|
||||||
val arrayStart = m.readWord(0xc000)
|
val arrayStart = m.readWord(0xc000)
|
||||||
|
Loading…
Reference in New Issue
Block a user