hello.M1 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. DEFINE SYSCALL_ALWAYS 000000EF
  17. DEFINE LOADI_ALWAYS A0E3
  18. DEFINE ADDI_PC_ALWAYS 8FE2
  19. DEFINE R0 0
  20. DEFINE R1 1
  21. DEFINE R2 2
  22. DEFINE R7 7
  23. :_start
  24. !1 R0 '0' LOADI_ALWAYS
  25. !string2 R1 '0' ADDI_PC_ALWAYS
  26. !18 R2 '0' LOADI_ALWAYS
  27. !4 R7 '0' LOADI_ALWAYS
  28. SYSCALL_ALWAYS
  29. !1 R0 '0' LOADI_ALWAYS
  30. !string1 R1 '0' ADDI_PC_ALWAYS
  31. !18 R2 '0' LOADI_ALWAYS
  32. !4 R7 '0' LOADI_ALWAYS
  33. SYSCALL_ALWAYS
  34. !0 R0 '0' LOADI_ALWAYS
  35. !1 R7 '0' LOADI_ALWAYS
  36. SYSCALL_ALWAYS
  37. :ELF_data
  38. <
  39. :string1
  40. "Hello mescc-tools
  41. "
  42. <
  43. :string2
  44. "Hello tacos-tools
  45. "