Converting 16-bit DOS .com assembly for use on 64-bit

前端 未结 1 1522
慢半拍i
慢半拍i 2021-01-28 11:45

I wrote few programs in assembly in flat assembler for 32bit windows xp. But now that I have 64bit windows 8 I can\'t run the .com files, as they appear to be incompatible with

1条回答
  •  温柔的废话
    2021-01-28 12:22

    A .com file is 16-bit. You can use 32-bit instructions and registers, but it's 16-bit code. A 64-bit CPU, once it's put in "long mode", does not support vm86 which is what XP uses to run .com files. Blame AMD, not MS (this time). Use an emulator (DosBox, etc.) or convert your code to 32-bit (which should run on a 64-bit OS)

    0 讨论(0)
提交回复
热议问题