diff options
Diffstat (limited to 'ldmicro')
-rw-r--r-- | ldmicro/CMakeLists.txt | 5 | ||||
-rw-r--r-- | ldmicro/ldinterpret.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/ldmicro/CMakeLists.txt b/ldmicro/CMakeLists.txt index 0e5dee5..aeb706f 100644 --- a/ldmicro/CMakeLists.txt +++ b/ldmicro/CMakeLists.txt @@ -116,9 +116,14 @@ IF(UNIX) maincontrols.cpp ldmicro.cpp) + ## Build main LDMicro executable add_executable (LDMicro ${COMPILE_CPP_SOURCES}) add_dependencies(LDMicro LDMicro_SCRIPT_GENERATED_FILES) install (TARGETS LDMicro DESTINATION bin) target_link_libraries (LDMicro LinuxUI) target_link_libraries (LDMicro FreezeLD) + + ## Build *.int interpreter + add_executable (ldinterpret ldinterpret.c) + target_link_libraries (ldinterpret LinuxUI) ENDIF(UNIX)
\ No newline at end of file diff --git a/ldmicro/ldinterpret.c b/ldmicro/ldinterpret.c index 6f18d44..a37ff09 100644 --- a/ldmicro/ldinterpret.c +++ b/ldmicro/ldinterpret.c @@ -36,7 +36,7 @@ //----------------------------------------------------------------------------- #include <stdio.h> #include <ctype.h> -#include "linuxUI.h" +#include <unistd.h> #define INTCODE_H_CONSTANTS_ONLY #include "intcode.h" @@ -373,7 +373,7 @@ int main(int argc, char **argv) // XXX, nonportable; replace with whatever timing functions are // available on your target. - Sleep(10); + usleep(10000); } return 0; |