fork download
  1. Assume cs:code, ds:code
  2. Code Segment
  3. org 100h
  4. start: mov ax,cs
  5. mov ds,ax
  6. ; установка видеорежима
  7. mov ah, 0
  8. mov al, 3
  9. int 10h
  10. ; ввод строки
  11. BB: mov ah, 0ah
  12. lea dx, string
  13. int 21h
  14. ; перевод строки
  15. mov ah, 9
  16. lea dx, crlf
  17. int 21h
  18. ; вывод строки
  19. mov ah, 9
  20. lea dx, string
  21. int 21h
  22. exit: mov ah, 4ch
  23. int 21h
  24. string db 255, 255 dup(0)
  25. crlf db 0ah, 0dh, '$'
  26. loop BB
  27. code ends
  28. end start
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
1
2
10
42
11
compilation info
prog.asm:1: error: parser: instruction expected
prog.asm:2: error: parser: instruction expected
prog.asm:3: error: parser: instruction expected
prog.asm:24: error: comma expected after operand 2
prog.asm:27: error: parser: instruction expected
prog.asm:28: error: parser: instruction expected
stdout
Standard output is empty