From 2365a076ac3e6c74d1f6335365744fa09f03c0cc Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Sat, 9 Oct 2021 16:33:52 +0200 Subject: [PATCH] clean test.p8 --- examples/test.p8 | 35 ++++------------------------------- 1 file changed, 4 insertions(+), 31 deletions(-) diff --git a/examples/test.p8 b/examples/test.p8 index 83541711f..03f7faf6e 100644 --- a/examples/test.p8 +++ b/examples/test.p8 @@ -1,37 +1,10 @@ %import textio -%import floats -%zeropage dontuse +%import test_stack +%zeropage basicsafe main { - -label: sub start() { - - ubyte[6] ubs = 10 to 20 step 2 - ubyte[] ubs2 = 10 to 20 step 2 - float[6] fs = 10 to 20 step 2 - float[] fs2 = 10 to 20 step 2 - - txt.print_ub(len(ubs)) - txt.nl() - txt.print_ub(len(ubs2)) - txt.nl() - txt.print_ub(len(fs)) - txt.nl() - txt.print_ub(len(fs2)) - txt.nl() - - ubyte ix - for ix in 0 to 5 { - txt.print_ub(ubs2[ix]) - txt.spc() - } - txt.nl() - for ix in 0 to 5 { - floats.print_f(fs2[ix]) - txt.spc() - } - txt.nl() - + txt.print("ok") + test_stack.test() } }