Fix assembler
diff --git a/as/CMakeLists.txt b/as/CMakeLists.txt
index e3ed969..a3f40f5 100644
--- a/as/CMakeLists.txt
+++ b/as/CMakeLists.txt
@@ -5,6 +5,7 @@
include(TestBigEndian)
test_big_endian(BIG_ENDIAN)
+option(VERBOSE OFF "Verbose assembler messages")
if (${BIG_ENDIAN})
add_compile_definitions(BIG_ENDIAN)
@@ -12,7 +13,11 @@
add_compile_definitions(LITTLE_ENDIAN)
endif()
+if(${VERBOSE})
+ add_compile_definitions(VERBOSE_ASSEMBLER)
+endif()
+
add_executable(6502-as main.c as.h as.c pp.c map.h map.c hash.c hash.c)
-install(TARGETS 6502-as)
+install(TARGETS 6502-as RUNTIME DESTINATION bin)