fork download
  1. [BITS 32]
  2. [ORG 0x7C00]
  3.  
  4. mov si, cat
  5. jmp printstr
  6.  
  7. printstr:
  8. loadsb
  9. cmp al, 0
  10. jz hang
  11. mov ah, 0x0e
  12. int 10h
  13. jmp printstr
  14.  
  15. hang:
  16. jmp hang
  17.  
  18. cat db "Booting.....", 0
  19. times 510 - ($-$$) db 0
  20. dw 0xAA55
  21.  
  22. ;Python OS 1.0 Bootloader
  23. ;status)unfinished
  24. .data
  25.  
  26. .text
  27.  
  28. .global main
  29. main: # int main()
  30. # {
  31.  
  32. # your code goes here
  33.  
  34. xor %eax, %eax # return 0;
  35. ret
  36. # }
  37.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.s: Assembler messages:
prog.s:1: Error: junk at end of line, first unrecognized character is `['
prog.s:2: Error: junk at end of line, first unrecognized character is `['
prog.s:4: Error: too many memory references for `mov'
prog.s:8: Error: no such instruction: `loadsb'
prog.s:9: Error: too many memory references for `cmp'
prog.s:11: Error: too many memory references for `mov'
prog.s:12: Error: junk `h' after expression
prog.s:12: Error: operand size mismatch for `int'
prog.s:18: Error: no such instruction: `cat db "Booting.....",0'
prog.s:19: Error: no such instruction: `times 510 - ($-$$)db 0'
prog.s:20: Error: no such instruction: `dw 0xAA55'
prog.s:22: Error: no such instruction: `python OS 1.0 Bootloader'
prog.s:23: Error: invalid character ')' in mnemonic
stdout
Standard output is empty