hello.M1 908 B

12345678910111213141516171819202122232425262728293031323334
  1. ## Copyright (C) 2017 Jeremiah Orians
  2. ## This file is part of stage0.
  3. ##
  4. ## stage0 is free software: you can redistribute it and/or modify
  5. ## it under the terms of the GNU General Public License as published by
  6. ## the Free Software Foundation, either version 3 of the License, or
  7. ## (at your option) any later version.
  8. ##
  9. ## stage0 is distributed in the hope that it will be useful,
  10. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. ## GNU General Public License for more details.
  13. ##
  14. ## You should have received a copy of the GNU General Public License
  15. ## along with stage0. If not, see <http://www.gnu.org/licenses/>.
  16. :main
  17. PUSH_ebp
  18. MOVE_esp_To_ebp
  19. SUB_Immediate8_From_esp !64
  20. PUSH_Immediate32 &string_0
  21. CALLI32 %eputs
  22. ADD_Immediate8_To_esp !4
  23. TEST_eax_eax
  24. LOADI32_eax %42
  25. LEAVE
  26. RETURN
  27. :string_0
  28. "Hello, Mescc!
  29. "
  30. :ELF_end