Author Topic: Win 64 bit incompatibility problem  (Read 2433 times)


  • Guest
Win 64 bit incompatibility problem
« on: March 26, 2008, 05:51:54 PM »
I installed nasm 2.02 and asselbled the following program like this:

>nasm -f obj skeleton.asm
>link skeleton.obj io.obj

The are no errors until now...
but when I try to execute the exe file as:
... it says that the program is not compatible with the 64 bit version of windows...
What can I do??

;;; Skeleton.asm program for nasm
%include "io.mac"
   msg1  db "enter a char",0
   msg2  db "enter an integer",0
   msg3  db "enter a string",0
   msg4  db "you entered: ",0
    str1 resb 30
   PutStr msg1
   GetCh  AL
   PutStr msg4
   PutCh al
        PutStr msg2
   GetInt  BX
   PutStr msg4
   PutInt  BX
   PutStr msg3
   GetStr  str1
   PutStr msg4
   PutStr str1



  • Guest
Re: Win 64 bit incompatibility problem
« Reply #1 on: March 27, 2008, 01:33:09 AM »
Without "io.mac", we have *no* idea what this code does!

The use of the 16-bit bx register might suggest dos code. I guess M$ made good on their threat to drop dos support in win64 - I really thought they'd back down on that. Guess not. That's just a guess...

If that's the problem, write some 64-bit code. Or win32 code??? I suppose that'll still run(?). Or install some sort of "dosbox" emulator. (I think there's one here at SF?) Or install a "dual boot" system, with dos as an option.

Best of all would be to escape your MicroSerfdom and graduate to Linux! (but dos code won't run there, either, without "dosemu").