Hello World in ASCII

It took me 2 days, but I’ve managed to make a program in ascii. It’s a com file; using characters between 0×20 and 0x7E this program is made of pure human readable ascii. This is a hello world program, paste to notepad and save with .com extension:

X5))%@IP5YI5Y@5P!%PAP[55!5e 5O!54(P^)7CC)7SZBBXPSRABCABCABCABCABCABCABCABCABCZ[XH+H*hello world!$

Run in cmd for 32 bit Windows, dosbox for 64 bit windows, or msdos for msdos.
Assembly de-compilation (fasm):

org 100h
use16
pop ax
xor ax,2929h
and ax,4940h       ;AX=0900
push ax
xor ax,4959h
xor ax,4059h       ;AX=0
xor ax,2150h
and ax,4150h       ;AX=150
push ax
pop bx             ;BX=150
xor ax,2135h
xor ax,2065h       ;AX=0
xor ax,214fh
xor ax,2834h       ;AX=097B
push ax
pop si             ;SI=097B
sub [bx],si        ;[150] = int 21
inc bx             ;BX=151
inc bx             ;BX=152
sub [bx],si        ;[152] = int 20
push bx            
pop dx             ;DX=152
inc dx             ;DX=153
inc dx             ;DX=154
pop ax             ;AX=0900
push ax
push bx
push dx            ;Save AX,BX, and DX
inc cx             ;The rest are just memory fillers
inc dx
inc bx
inc cx
inc dx
inc bx
inc cx
inc dx
inc bx
inc cx
inc dx
inc bx
inc cx
inc dx
inc bx
inc cx
inc dx
inc bx
inc cx
inc dx
inc bx
inc cx
inc dx
inc bx
inc cx
inc dx
inc bx
pop dx             ;DX=0154
pop bx             ;BX=0150
pop ax             ;AX=0900
db 48h,2bh,48h,2ah ;for int 21 and int 20
db "hello world!$" ;your message goes here

2 thoughts on “Hello World in ASCII

  1. mov ah, 02
    mov dl, 48
    int 21
    mov dl, 65
    int 21
    mov dl, 6C
    int 21
    int 21
    mov dl, 6F
    int 21
    mov dl, 20
    int 21
    mov dl, 77
    int 21
    mov dl, 6F
    int 21
    mov dl, 72
    int 21
    mov dl, 6C
    int 21
    mov dl, 64
    int 21
    int 20

    ;IDK

  2. THANK YOU VERY MUCH
    Jakash3′s please give us a tutorial in assembly 16bit especially in VGA (give us a tutorial how we programing a little games and explain to us the instructions )

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: