How to write and execute PURE machine code manually without containers like EXE or ELF?

后端 未结 10 1639
天涯浪人
天涯浪人 2020-11-30 18:38

I just need a hello world demo to see how machine code actually works.

Though windows\' EXE and linux\' ELF is near machine code,bu

10条回答
  •  醉梦人生
    2020-11-30 19:11

    The next program is an Hello World program I wrote in Machine Code 16 bit (intel 8086), If you want to know machine code, I suggest that you learn Assembly first, because every line of code in Assembly is converted to A code line in Machine Code. For well I know I am from the few people in the world, still programming in Machine Code, instead of Assembly.

    BTW, To run it, save the file with a ".com" extension and run on DOSBOX!

    So, this is an Hello World Program.

提交回复
热议问题