nascom 471 B

123456789101112131415161718192021222324252627282930
  1. # $Revision$
  2. var w=1
  3. var p=2
  4. var s=1
  5. var l=2
  6. var f=4
  7. var d=8
  8. var NAME=nascom
  9. var M=z80a
  10. var LIB=lib/{M}/tail_
  11. var RT=lib/{M}/head_
  12. var INCLUDES=-I{EM}/include -I/usr/include
  13. name be
  14. from .m.g
  15. to .s
  16. program {EM}/lib/{M}/be
  17. args <
  18. stdout
  19. need .e
  20. end
  21. name asld
  22. from .s.a
  23. to .out
  24. outfile a.out
  25. program {EM}/lib/z80/as
  26. mapflag -l* LNAME={EM}/{LIB}*
  27. args (.e:{HEAD}={EM}/{RT}em) ({RTS}:.b.c={EM}/{RT}cc) -o > \
  28. (.e:{TAIL}={EM}/{LIB}em.1 {EM}/{LIB}em.2)
  29. linker
  30. end