I like medium level languages. If you go really low level then everything gets hard to understand. This is a well written hello world program
Code:
title Hello World Program
dosseg
.model small
.stack 100h
.data hello_message db 'Hello, World!',0dh,0ah,'$'
.code
main proc
mov ax,@data
mov ds,ax
mov ah,9
mov dx,offset hello_message
int 21h
mov ax,4C00h
int 21h
main endp
end main
You guys remember Qbasic, you could put your entire program in one line of code as long as you put a colon between statements.
Code:
DECLARE SUB Greet():DIM SHARED greeting$ = "Hello World":CALL Greet():SYSTEM:SUB Greet():? greeting$:END SUB
Bookmarks