commit | dab15a62100fca488c5bbbfed678aa63eec450d4 | [log] [tgz] |
---|---|---|
author | swissChili <swisschili@fastmail.com> | Mon Aug 17 15:41:27 2020 -0700 |
committer | swissChili <swisschili@fastmail.com> | Mon Aug 17 15:41:27 2020 -0700 |
tree | ebbafc966611c3682dacc86df4f58c55071bf393 | |
parent | 7acb4ce5b95b32eb4b03fcc824b99837e967232d [diff] [blame] |
Add code generator to assembler, re compile colors.dat with assembler
diff --git a/as/CMakeLists.txt b/as/CMakeLists.txt index 70638fe..7a7b6a5 100644 --- a/as/CMakeLists.txt +++ b/as/CMakeLists.txt
@@ -2,4 +2,15 @@ project(6502 VERSION 0.1.0 LANGUAGES C) +include(TestBigEndian) +test_big_endian(BIG_ENDIAN) + + +if (${BIG_ENDIAN}) + add_compile_definitions(BIG_ENDIAN) +else() + add_compile_definitions(LITTLE_ENDIAN) +endif() + + add_executable(6502-as main.c as.h as.c map.h map.c hash.c hash.c)