Hello world using nasm in windows assembly

后端 未结 2 1611
轻奢々
轻奢々 2020-12-01 01:34

I\'m using nasm to compile the following assembly. However the code crashes in the console under Windows.

C:\\>nasm -f win32 test.asm -o test.o

2条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-01 02:14

    Although, this same program probably will run in WINE on Linux like a charm. :)

    WINE doesn't prevent using Linux system calls from inside Windows PE binaries; the machine instructions run natively and WINE only provides DLL functions.

提交回复
热议问题