mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-18 21:14:31 -04:00
Implement support for 64-bit builds.
The implentation is through a few macros to handle the fact in 64-bit, all addresses have to be loaded first to register and only offsets are ok. Also, push only supports 64-bit registers in 64-bit, so we have _AX, _BX, _CX etc. defines, which are eax, ebx and ecx on 32bit and rax, rbx and rcx on 64bit.
This commit is contained in:
@ -8,7 +8,14 @@ function(regression_test testname)
|
||||
add_executable(${testname} ${source}.asm test_renderer.c)
|
||||
|
||||
# the tests include the entire ASM but we still want to rebuild when they change
|
||||
file(GLOB SOINTU ${PROJECT_SOURCE_DIR}/src/*.inc ${PROJECT_SOURCE_DIR}/src/*.asm ${PROJECT_SOURCE_DIR}/src/opcodes/*.asm ${PROJECT_SOURCE_DIR}/src/opcodes/*.inc)
|
||||
file(GLOB SOINTU ${PROJECT_SOURCE_DIR}/src/*.inc
|
||||
${PROJECT_SOURCE_DIR}/src/*.asm
|
||||
${PROJECT_SOURCE_DIR}/src/opcodes/*.asm
|
||||
${PROJECT_SOURCE_DIR}/src/opcodes/*.inc
|
||||
${PROJECT_SOURCE_DIR}/src/win32/*.asm
|
||||
${PROJECT_SOURCE_DIR}/src/win32/*.inc
|
||||
${PROJECT_SOURCE_DIR}/src/win64/*.asm
|
||||
${PROJECT_SOURCE_DIR}/src/win64/*.inc)
|
||||
set_source_files_properties(${source}.asm PROPERTIES OBJECT_DEPENDS "${SOINTU}")
|
||||
set_source_files_properties(${FOURKLANG} PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
|
||||
|
Reference in New Issue
Block a user