From a1806a4ae26f7cc6c6ae340e621fdcec8954e648 Mon Sep 17 00:00:00 2001 From: Jason Turner <jason@emptycrate.com> Date: Thu, 20 May 2021 18:26:21 -0600 Subject: [PATCH] Simplify testing to look for start and stop conditions of code --- compile.sh | 1 - make_file.sh | 7 ------- test/tests.cpp | 12 ++++++------ 3 files changed, 6 insertions(+), 14 deletions(-) delete mode 100755 compile.sh delete mode 100755 make_file.sh diff --git a/compile.sh b/compile.sh deleted file mode 100755 index c8c0fcc..0000000 --- a/compile.sh +++ /dev/null @@ -1 +0,0 @@ -avr-gcc $1 -Wall -Wextra -mtiny-stack -c -o- -S -O3 -I ~/avr-libstdcpp/include/ -std=c++20 | tee $1.asm | ./avr-to-6502 | tee $1.asm && xa -O PETSCREEN -M $1.prg diff --git a/make_file.sh b/make_file.sh deleted file mode 100755 index 51dc770..0000000 --- a/make_file.sh +++ /dev/null @@ -1,7 +0,0 @@ -#! /bin/bash - -~/llvm-build/bin/clang++ -std=c++1z -c -O3 -o- -Wall -Wextra -m32 -march=i386 -ggdb -S $1 > $1.x86.asm -cat $1.x86.asm | ~/x86-to-6502-build/x86-to-6502 > $1.6502.asm -cat $1.6502.asm | sed -e "/^\t\..*$/d" > $1.asm -~/Downloads/TMPx_v1.1.0-STYLE/linux-x86_64/tmpx $1.asm - diff --git a/test/tests.cpp b/test/tests.cpp index 2bf852a..e6fbfc2 100644 --- a/test/tests.cpp +++ b/test/tests.cpp @@ -65,10 +65,10 @@ std::vector<std::uint8_t> execute_c64_program(const std::string_view &name, std::ofstream vice_script(vice_script_filename); vice_script << fmt::format( R"( -z 100000 +until e5d1 l "{}" 0 keybuf run\n -z 100000 +until e147 bsave "{}" 0 {:x} {:x} quit )", @@ -174,9 +174,9 @@ int main() *reinterpret_cast<volatile unsigned char *>(i) = 32; } - while (true) { +// while (true) { // don't allow main to exit, otherwise we get READY. on the screen - } +// } } )"; @@ -221,9 +221,9 @@ int main() } } - while (true) { +// while (true) { // don't allow main to exit, otherwise we get READY. on the screen - } +// } } )";