home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 2 / goldfish_vol2_cd1.bin / files / dev / asm / snma / arexx / asm.xdme < prev    next >
Text File  |  1994-08-23  |  849b  |  36 lines

  1. /*  SNMA AREXX MACRO FOR THE XDME
  2.     args: <filepath> <filename>
  3.     Problems with "Ram Disk:"
  4. */
  5.  
  6. arg path name        /* fetch args */
  7.  
  8. /* make sure there are both args */
  9. if path='' then do
  10.     "title (No path)"
  11.     exit 0
  12.     end
  13. if  name ='' then do
  14.     "title (No name)"
  15.     exit 0
  16.     end
  17.  
  18. /* make sure we have SNMA port */
  19. xdme_add = address()
  20. snma_port = SNMA
  21. do while ~ show('p',snma_port)
  22.     "title (Cannot find port named" snma_port
  23.     exit 10
  24.     end
  25.  
  26. "title (SNMA assembling " name
  27. ADDRESS SNMA
  28. CHDIR path
  29. ASM NAME 'INCLUDE a:include2'
  30. INFO STAT
  31. address value xdme_add
  32. if STAT.STATUS = "FAIL" then
  33.     "title (SNMA Failure:" STAT.FAILSTR
  34.     else
  35.     "title (SNMA Res:" STAT.STATUS"." STAT.LINES "lines," STAT.ERRORS "Errs," STAT.WARNINGS "Warns, C:" STAT.CODE","STAT.CODESIZE".D:"STAT.DATA","STAT.DATASIZE".B:"STAT.BSS","STAT.BSSSIZE
  36.