How i can write one application to in 64 os and 32 os together
not easily in asm, however using the /d compile64bit command in masm to pass defines works
and then
ifdef compile64bit
xor rcx,rcx
; do 64 bit stuff
else
xor ecx,ecx
; do 32 bit stuff
endif
works fine, done define it for 32 bit, define for 64 bit, you'll have to really plan out the code structure though etc
and then
ifdef compile64bit
xor rcx,rcx
; do 64 bit stuff
else
xor ecx,ecx
; do 32 bit stuff
endif
works fine, done define it for 32 bit, define for 64 bit, you'll have to really plan out the code structure though etc