The type of executable I mentioned before NASM.exe file.asm -o file.bin, which is a simple flat binary.
Yes it's indeed a bootsector, the strange behaviour comes with the first few lines actually so here they are they are:
ORG 7C00h ; oddity here is that this produces 1KB of zeros in Win64 using Windows version of NASM
BITS 16
JMP 0:$+5 ; here bytes starts to differ in DOS and Win NASM when used in Win64, more specifically a original 7C goes into a 80h
; These two above lines is my main problem, if I have more problems as the bytes changing mentioned above they are clearly related to the above.
Note that when used in Win7 32bit windows NASM version worked PERFECTLY and identical to DOS, but now on 64bit Win7 seem to be a different game alltogether?
Anyone knows what these 2 strange oddities is happening?
I want to stress again that if I bring a already compiled from an XP machine for example it will run perfecly in BOCHS on the Win7 64bit. Its just the
behaviour of NASM that seem to differ.
There’s not really enough information here. A simple “hello world” example is fine, as long as it demonstrates the behaviour you are describing.
Also, you didn’t mention what type of executable you are trying to create, and which platform it is for. It sounds like you might be trying to create an x86 boot sector.