mirror of
https://github.com/lefticus/6502-cpp.git
synced 2025-09-27 15:16:32 +00:00
Simplify testing to look for start and stop conditions of code
This commit is contained in:
@@ -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
|
|
@@ -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
|
|
||||||
|
|
@@ -65,10 +65,10 @@ std::vector<std::uint8_t> execute_c64_program(const std::string_view &name,
|
|||||||
std::ofstream vice_script(vice_script_filename);
|
std::ofstream vice_script(vice_script_filename);
|
||||||
vice_script << fmt::format(
|
vice_script << fmt::format(
|
||||||
R"(
|
R"(
|
||||||
z 100000
|
until e5d1
|
||||||
l "{}" 0
|
l "{}" 0
|
||||||
keybuf run\n
|
keybuf run\n
|
||||||
z 100000
|
until e147
|
||||||
bsave "{}" 0 {:x} {:x}
|
bsave "{}" 0 {:x} {:x}
|
||||||
quit
|
quit
|
||||||
)",
|
)",
|
||||||
@@ -174,9 +174,9 @@ int main()
|
|||||||
*reinterpret_cast<volatile unsigned char *>(i) = 32;
|
*reinterpret_cast<volatile unsigned char *>(i) = 32;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (true) {
|
// while (true) {
|
||||||
// don't allow main to exit, otherwise we get READY. on the screen
|
// 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
|
// don't allow main to exit, otherwise we get READY. on the screen
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
)";
|
)";
|
||||||
|
Reference in New Issue
Block a user