fork download
  1. .model tiny
  2. .code
  3. org 100h
  4.  
  5. main proc
  6.  
  7. mov ah,9 ; Display String Service
  8. mov dx,offset hello_message ; Offset of message (Segment DS is the right segment in .COM files)
  9. int 21h ; call DOS int 21h service to display message at ptr ds:dx
  10.  
  11. retn ; returns to address 0000 off the stack
  12. ; which points to bytes which make int 20h (exit program)
  13.  
  14. hello_message db 'Hello, World!$'
  15.  
  16. main endp
  17. end main
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.asm:1: error: attempt to define a local label before any non-local labels
prog.asm:1: error: parser: instruction expected
prog.asm:2: error: attempt to define a local label before any non-local labels
prog.asm:3: error: parser: instruction expected
prog.asm:5: error: parser: instruction expected
prog.asm:8: error: comma, colon or end of line expected
prog.asm:16: error: symbol `main' redefined
prog.asm:16: error: parser: instruction expected
prog.asm:17: error: parser: instruction expected
stdout
Standard output is empty