Simplify testing to look for start and stop conditions of code

This commit is contained in:
Jason Turner 2021-05-20 18:26:21 -06:00
parent 8894f4b1cf
commit a1806a4ae2
3 changed files with 6 additions and 14 deletions

View File

@ -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

View File

@ -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

View File

@ -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
}
// }
}
)";