fork(1) download
  1. .%include 'functions.asm'
  2.  
  3. section .data
  4. msg db "The max value is:",0h
  5. array:
  6. dd 39
  7. dd 80
  8. dd 60
  9. dd 70
  10.  
  11.  
  12.  
  13. section .bss
  14. max resd 1
  15.  
  16. section .text
  17. global _start
  18.  
  19. _start:
  20. mov ebx,0
  21.  
  22. main:
  23. mov ecx,[array+ebx]
  24. cmp ecx,[max]
  25. jl next
  26. mov [max],ecx
  27. cmp ebx,16
  28. je exit
  29. jmp next
  30.  
  31. next:
  32. add ebx,4
  33. jmp main
  34.  
  35.  
  36.  
  37. exit:
  38. mov eax,msg
  39. call sprint
  40. mov eax,[max]
  41. call iprintLF
  42. call quit
  43.  
  44.  
  45.  
  46.  
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
ld: cannot find prog.o: No such file or directory
stdout
Standard output is empty