order.a 610 B

1234567891011121314151617181920212223242526
  1. (* Copyright (C) 1987 Jensen & Partners International *)
  2. (* This module can be used to change the ordering of segments and
  3. classes. This version causes the program entry point to be at
  4. zero which is useful for GEM.
  5. To use it, use the batch command:
  6. m2 /l order+prog,prog
  7. where prog is the name of your program.
  8. *)
  9. module order
  10. segment ENTERCODE(CODE,28H)
  11. segment INITCODE(CODE,28H)
  12. segment C_ORDER(FCODE,68H)
  13. segment _DATA(BSS,68H)
  14. segment DATASTART(DUMMY,68H)
  15. segment _BSS(BSS,68H)
  16. segment D_ORDER(M_DATA,68H)
  17. segment STACK(STACK,68H)
  18. segment HEAP(HEAP,68H)
  19. end
  20.