fork download
  1. .model tiny,c
  2. .286
  3. .code
  4. .startup
  5. main proc
  6. mov si,offset count
  7. inc byte ptr [si]
  8. mov al, [si]
  9. mov bx,4090h
  10. shr al, 4
  11. call convert
  12. lodsb
  13. and al,0fh
  14. mov byte ptr end_convert, 08bh
  15. convert:
  16. add al,bl
  17. daa
  18. adc al,bh
  19. daa
  20. int 29h
  21. end_convert:
  22. ret
  23. db 0d6h
  24. ; mov dx, si
  25. mov ah,3ch
  26. xor cx, cx
  27. int 21h
  28. xchg bx, ax
  29. mov dx,offset main
  30. mov cx,offset the_end - offset main
  31. int 21h
  32. ret
  33. main endp
  34.  
  35. count:
  36. db 0
  37. name:
  38. db 'c.com', 0
  39. the_end:
  40. end
  41.  
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: attempt to define a local label before any non-local labels
prog.asm:4: error: attempt to define a local label before any non-local labels
prog.asm:5: error: parser: instruction expected
prog.asm:6: error: comma, colon or end of line expected
prog.asm:7: error: comma, colon or end of line expected
prog.asm:14: error: comma, colon or end of line expected
prog.asm:29: error: comma, colon or end of line expected
prog.asm:30: error: comma, colon or end of line expected
prog.asm:33: error: symbol `main' redefined
prog.asm:33: error: parser: instruction expected
stdout
Standard output is empty