main9.s 355 B

12345678910111213141516171819
  1. #define NPRIVATES 16
  2. TEXT _main(SB), 1, $(16 + NPRIVATES*4)
  3. MOVL $a6base(SB), A6
  4. MOVL R0, _tos(SB)
  5. LEA p-64(SP),A0
  6. MOVL A0,_privates+0(SB)
  7. MOVL $16,R0
  8. MOVL R0,_nprivates+0(SB)
  9. PEA inargv+0(FP)
  10. MOVL inargc-4(FP), TOS
  11. BSR main(SB)
  12. MOVL $_exits<>+0(SB), R0
  13. MOVL R0,TOS
  14. BSR exits(SB)
  15. RTS
  16. DATA _exits<>+0(SB)/4, $"main"
  17. GLOBL _exits<>+0(SB), $5