Get the latest tech news

A 23-byte "hello, world" program assembled with DEBUG.EXE in MS-DOS


A 23-byte “hello, world” program assembled with DEBUG.EXE in MS-DOS - susam/hello

Also, note that the W(write) command expects the registers BX and CX to contain the number of bytes to be written to the file. The binary executable file can be created on a Unix or Linux system using the printf command as follows: As a result, executing the RET instruction pops 0000 off the stack at FFFE and loads it into IP.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of World

World

Photo of program

program

Photo of hello

hello

Related news:

News photo

World's second-largest eyeglass lens-maker blinded by infosec incident

News photo

A cheeky intern nearly turned MS-DOS into NSFW-DOS

News photo

Hello World