├── .gitignore ├── AddressRange.cpp ├── AddressRange.h ├── AddressSet.cpp ├── AddressSet.h ├── COPYING ├── CREDITS ├── Function.cpp ├── Function.h ├── FunctionBuilder.cpp ├── FunctionBuilder.h ├── FunctionManager.cpp ├── FunctionManager.h ├── JitBool.h ├── LLVMStuff.cpp ├── LLVMStuff.h ├── M6502Internal.h ├── Makefile.am ├── README ├── README.lib6502 ├── Registers.cpp ├── Registers.h ├── TODO ├── config.h.in ├── configure.ac ├── const.h ├── examples ├── README ├── hex2bin └── lib1.c ├── lib6502-compatibility.txt ├── lib6502-jit.cpp ├── lib6502.c ├── lib6502.h ├── m4 └── boost.m4 ├── man ├── M6502_delete.3 ├── M6502_disassemble.3 ├── M6502_dump.3 ├── M6502_getCallback.3 ├── M6502_getVector.3 ├── M6502_irq.3 ├── M6502_new.3 ├── M6502_nmi.3 ├── M6502_reset.3 ├── M6502_run.3 ├── M6502_setCallback.3 ├── M6502_setMode.3 ├── M6502_setVector.3 ├── lib6502.3 └── run6502.1 ├── run6502.c ├── test ├── addr-wrap-1.mst ├── addr-wrap-1.xa ├── basic-callback.c ├── basic-callback.mst ├── call-illegal-callback-modify-code.c ├── call-illegal-callback-modify-code.mst ├── config.xa ├── interleave.mst ├── interleave.xa ├── irq-nmi.c ├── irq-nmi.mst ├── pc-wrap-1.mst ├── pc-wrap-1.xa ├── pc-wrap-2.mst ├── pc-wrap-2.xa ├── run-c-tests.py ├── run-c-tests.sh ├── run-run6502-tests.py ├── run-run6502-tests.sh ├── setjmp-trick.c ├── setjmp-trick.mst ├── stack-code-brk.c ├── stack-code-brk.mst ├── stack-code-jsr.c ├── stack-code-jsr.mst ├── test-utils.c ├── test-utils.h ├── trivial-test.mst ├── trivial-test.xa ├── write-callback-modify-code.c ├── write-callback-modify-code.mst ├── z-self-modify-1.mst ├── z-self-modify-1.xa ├── z-self-modify-2.mst └── z-self-modify-2.xa ├── util.cpp ├── util.h └── valgrind.h /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/.gitignore -------------------------------------------------------------------------------- /AddressRange.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/AddressRange.cpp -------------------------------------------------------------------------------- /AddressRange.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/AddressRange.h -------------------------------------------------------------------------------- /AddressSet.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/AddressSet.cpp -------------------------------------------------------------------------------- /AddressSet.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/AddressSet.h -------------------------------------------------------------------------------- /COPYING: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/COPYING -------------------------------------------------------------------------------- /CREDITS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/CREDITS -------------------------------------------------------------------------------- /Function.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/Function.cpp -------------------------------------------------------------------------------- /Function.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/Function.h -------------------------------------------------------------------------------- /FunctionBuilder.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/FunctionBuilder.cpp -------------------------------------------------------------------------------- /FunctionBuilder.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/FunctionBuilder.h -------------------------------------------------------------------------------- /FunctionManager.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/FunctionManager.cpp -------------------------------------------------------------------------------- /FunctionManager.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/FunctionManager.h -------------------------------------------------------------------------------- /JitBool.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/JitBool.h -------------------------------------------------------------------------------- /LLVMStuff.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/LLVMStuff.cpp -------------------------------------------------------------------------------- /LLVMStuff.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/LLVMStuff.h -------------------------------------------------------------------------------- /M6502Internal.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/M6502Internal.h -------------------------------------------------------------------------------- /Makefile.am: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/Makefile.am -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/README -------------------------------------------------------------------------------- /README.lib6502: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/README.lib6502 -------------------------------------------------------------------------------- /Registers.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/Registers.cpp -------------------------------------------------------------------------------- /Registers.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/Registers.h -------------------------------------------------------------------------------- /TODO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/TODO -------------------------------------------------------------------------------- /config.h.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/config.h.in -------------------------------------------------------------------------------- /configure.ac: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/configure.ac -------------------------------------------------------------------------------- /const.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/const.h -------------------------------------------------------------------------------- /examples/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/examples/README -------------------------------------------------------------------------------- /examples/hex2bin: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl 2 | 3 | while () { 4 | chomp; 5 | print pack "H*", $_ 6 | } 7 | -------------------------------------------------------------------------------- /examples/lib1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/examples/lib1.c -------------------------------------------------------------------------------- /lib6502-compatibility.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/lib6502-compatibility.txt -------------------------------------------------------------------------------- /lib6502-jit.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/lib6502-jit.cpp -------------------------------------------------------------------------------- /lib6502.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/lib6502.c -------------------------------------------------------------------------------- /lib6502.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/lib6502.h -------------------------------------------------------------------------------- /m4/boost.m4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/m4/boost.m4 -------------------------------------------------------------------------------- /man/M6502_delete.3: -------------------------------------------------------------------------------- 1 | .so man3/lib6502.3 2 | -------------------------------------------------------------------------------- /man/M6502_disassemble.3: -------------------------------------------------------------------------------- 1 | .so man3/lib6502.3 2 | -------------------------------------------------------------------------------- /man/M6502_dump.3: -------------------------------------------------------------------------------- 1 | .so man3/lib6502.3 2 | -------------------------------------------------------------------------------- /man/M6502_getCallback.3: -------------------------------------------------------------------------------- 1 | .so man3/lib6502.3 2 | -------------------------------------------------------------------------------- /man/M6502_getVector.3: -------------------------------------------------------------------------------- 1 | .so man3/lib6502.3 2 | -------------------------------------------------------------------------------- /man/M6502_irq.3: -------------------------------------------------------------------------------- 1 | .so man3/lib6502.3 2 | -------------------------------------------------------------------------------- /man/M6502_new.3: -------------------------------------------------------------------------------- 1 | .so man3/lib6502.3 2 | -------------------------------------------------------------------------------- /man/M6502_nmi.3: -------------------------------------------------------------------------------- 1 | .so man3/lib6502.3 2 | -------------------------------------------------------------------------------- /man/M6502_reset.3: -------------------------------------------------------------------------------- 1 | .so man3/lib6502.3 2 | -------------------------------------------------------------------------------- /man/M6502_run.3: -------------------------------------------------------------------------------- 1 | .so man3/lib6502.3 2 | -------------------------------------------------------------------------------- /man/M6502_setCallback.3: -------------------------------------------------------------------------------- 1 | .so man3/lib6502.3 2 | -------------------------------------------------------------------------------- /man/M6502_setMode.3: -------------------------------------------------------------------------------- 1 | .so man3/lib6502.3 2 | -------------------------------------------------------------------------------- /man/M6502_setVector.3: -------------------------------------------------------------------------------- 1 | .so man3/lib6502.3 2 | -------------------------------------------------------------------------------- /man/lib6502.3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/man/lib6502.3 -------------------------------------------------------------------------------- /man/run6502.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/man/run6502.1 -------------------------------------------------------------------------------- /run6502.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/run6502.c -------------------------------------------------------------------------------- /test/addr-wrap-1.mst: -------------------------------------------------------------------------------- 1 | Y -------------------------------------------------------------------------------- /test/addr-wrap-1.xa: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/test/addr-wrap-1.xa -------------------------------------------------------------------------------- /test/basic-callback.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/test/basic-callback.c -------------------------------------------------------------------------------- /test/basic-callback.mst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/test/basic-callback.mst -------------------------------------------------------------------------------- /test/call-illegal-callback-modify-code.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/test/call-illegal-callback-modify-code.c -------------------------------------------------------------------------------- /test/call-illegal-callback-modify-code.mst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/test/call-illegal-callback-modify-code.mst -------------------------------------------------------------------------------- /test/config.xa: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/test/config.xa -------------------------------------------------------------------------------- /test/interleave.mst: -------------------------------------------------------------------------------- 1 | Y -------------------------------------------------------------------------------- /test/interleave.xa: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/test/interleave.xa -------------------------------------------------------------------------------- /test/irq-nmi.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/test/irq-nmi.c -------------------------------------------------------------------------------- /test/irq-nmi.mst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/test/irq-nmi.mst -------------------------------------------------------------------------------- /test/pc-wrap-1.mst: -------------------------------------------------------------------------------- 1 | Y -------------------------------------------------------------------------------- /test/pc-wrap-1.xa: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/test/pc-wrap-1.xa -------------------------------------------------------------------------------- /test/pc-wrap-2.mst: -------------------------------------------------------------------------------- 1 | Y -------------------------------------------------------------------------------- /test/pc-wrap-2.xa: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/test/pc-wrap-2.xa -------------------------------------------------------------------------------- /test/run-c-tests.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/test/run-c-tests.py -------------------------------------------------------------------------------- /test/run-c-tests.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/test/run-c-tests.sh -------------------------------------------------------------------------------- /test/run-run6502-tests.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/test/run-run6502-tests.py -------------------------------------------------------------------------------- /test/run-run6502-tests.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/test/run-run6502-tests.sh -------------------------------------------------------------------------------- /test/setjmp-trick.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/test/setjmp-trick.c -------------------------------------------------------------------------------- /test/setjmp-trick.mst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/test/setjmp-trick.mst -------------------------------------------------------------------------------- /test/stack-code-brk.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/test/stack-code-brk.c -------------------------------------------------------------------------------- /test/stack-code-brk.mst: -------------------------------------------------------------------------------- 1 | B0C1 -------------------------------------------------------------------------------- /test/stack-code-jsr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/test/stack-code-jsr.c -------------------------------------------------------------------------------- /test/stack-code-jsr.mst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/test/stack-code-jsr.mst -------------------------------------------------------------------------------- /test/test-utils.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/test/test-utils.c -------------------------------------------------------------------------------- /test/test-utils.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/test/test-utils.h -------------------------------------------------------------------------------- /test/trivial-test.mst: -------------------------------------------------------------------------------- 1 | Y -------------------------------------------------------------------------------- /test/trivial-test.xa: -------------------------------------------------------------------------------- 1 | #include "config.xa" 2 | 3 | LDA #'Y' 4 | JSR OSWRCH 5 | JMP QUIT 6 | -------------------------------------------------------------------------------- /test/write-callback-modify-code.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/test/write-callback-modify-code.c -------------------------------------------------------------------------------- /test/write-callback-modify-code.mst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/test/write-callback-modify-code.mst -------------------------------------------------------------------------------- /test/z-self-modify-1.mst: -------------------------------------------------------------------------------- 1 | Y -------------------------------------------------------------------------------- /test/z-self-modify-1.xa: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/test/z-self-modify-1.xa -------------------------------------------------------------------------------- /test/z-self-modify-2.mst: -------------------------------------------------------------------------------- 1 | Y -------------------------------------------------------------------------------- /test/z-self-modify-2.xa: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/test/z-self-modify-2.xa -------------------------------------------------------------------------------- /util.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/util.cpp -------------------------------------------------------------------------------- /util.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/util.h -------------------------------------------------------------------------------- /valgrind.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ZornsLemma/lib6502-jit/HEAD/valgrind.h --------------------------------------------------------------------------------