fork download
  1. INCLUDE Irvine32.inc
  2.  
  3. .data
  4. input1stIntMsg BYTE "Input the first integer: ", 0
  5. input2ndIntMsg BYTE "Input the second integer: ", 0
  6. outputSumMsg BYTE "The sum of the two integers: ", 0
  7.  
  8. num1 DWORD ?
  9. num2 DWORD ?
  10. sum DWORD ?
  11.  
  12. .code
  13. main PROC
  14. call Clrscr; clear screen
  15.  
  16. mov dl, 20
  17. mov dh, 11
  18. call Gotoxy
  19.  
  20. mov edx, OFFSET input1stIntMsg
  21. call WriteString
  22.  
  23. call ReadInt
  24. mov num1, eax
  25.  
  26. mov dl, 20
  27. mov dh, 12
  28. call Gotoxy
  29.  
  30. mov edx, OFFSET input2ndIntMsg
  31. call WriteString
  32. call ReadInt
  33. mov num2, eax
  34.  
  35. mov eax, num2
  36. add eax, num1
  37. mov sum, eax
  38.  
  39. mov dl, 20
  40. mov dh, 13
  41. call Gotoxy
  42. mov edx, OFFSET outputSumMsg
  43. call WriteString
  44. mov eax, sum
  45. call WriteInt
  46.  
  47. exit
  48. main ENDP
  49. END main
  50.  
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:5: error: parser: instruction expected
prog.asm:6: error: parser: instruction expected
prog.asm:8: error: parser: instruction expected
prog.asm:9: error: parser: instruction expected
prog.asm:10: error: parser: instruction expected
prog.asm:13: error: parser: instruction expected
prog.asm:20: error: comma, colon, decorator or end of line expected after operand
prog.asm:30: error: comma, colon, decorator or end of line expected after operand
prog.asm:42: error: comma, colon, decorator or end of line expected after operand
prog.asm:48: error: symbol `main' redefined
prog.asm:48: error: parser: instruction expected
prog.asm:49: error: parser: instruction expected
ld: cannot find prog.o: No such file or directory
stdout
Standard output is empty