fork download
  1. INCLUDE Irvine32.inc
  2. .data
  3.  
  4. str1 byte "hello", 0 ; 0dh,0ah,0
  5. str2 byte "Please enter string",0 ;5 dup(0)
  6. var1=35
  7. var2 dword 1234h
  8.  
  9. .code
  10. main PROC
  11.  
  12. comment $
  13. call Clrscr
  14. mov eax,500
  15. call Delay
  16. $
  17.  
  18. comment $
  19. mov edx, offset str1
  20. call writestring
  21. call crlf
  22. call writestring
  23. $
  24.  
  25. comment $
  26. mov eax, var1
  27. call writebin
  28. call crlf
  29. call writedec
  30. call crlf
  31. call writehex
  32. call crlf
  33. $
  34.  
  35. comment $
  36. mov ecx,sizeof str2
  37. mov edx, offset str2
  38. call msgbox
  39. call readstring ;add 0 by defult
  40. call writestring
  41. $
  42.  
  43. comment $
  44. inst:
  45. mov eax, 12345678h
  46. call randomrange
  47. call writeint
  48. $
  49.  
  50. comment $
  51. mov esi, offset inst
  52. mov ecx, 32
  53. mov ebx, 1
  54. call dumpmem
  55. $
  56.  
  57. comment $
  58. mov esi, offset var2
  59. mov ecx, 32
  60. mov ebx, 2
  61. call dumpmem
  62. $
  63.  
  64.  
  65. call dumpregs
  66. exit
  67. main ENDP
  68.  
  69. END main
  70.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.asm:1: error: parser: instruction expected
prog.asm:4: error: parser: instruction expected
prog.asm:7: error: parser: instruction expected
prog.asm:9: error: comma, colon, decorator or end of line expected after operand
prog.asm:13: error: symbol `main' redefined
prog.asm:13: error: parser: instruction expected
prog.asm:16: error: parser: instruction expected
ld: cannot find prog.o: No such file or directory
stdout
Standard output is empty