home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / CPM / BBSING / PBBS / PBBS.SLR < prev    next >
Text File  |  2000-06-30  |  2KB  |  74 lines

  1. SUBJECT : USING SLR'S Z80ASM AND SLRNK.COM ASSEMBLER/LINKER WITH PBBS
  2.  
  3. FROM    : IRV HOFF W6FFC
  4.  
  5. DATE    : 7 SEPT 86
  6.  
  7.  
  8.  
  9.     Most of the PBBS modules commence with:
  10.  
  11.  
  12.     .Z80
  13.     ASEG
  14.     ORG    0100H
  15.  
  16.  
  17.     Null out or remove all three lines.  Rename the module so it has
  18. a .Z80 extent (unless your Z80ASM assembler has been installed to expect
  19. a .MAC extent.)  Then assemble (when ready):
  20.  
  21.     B>Z80ASM PBBS/M     ; <== /M for a Microsoft-type .REL file
  22.  
  23. when finished assembling (under two minutes even on a modest-speed floppy
  24. system), then ready for linking.  In this case:
  25.  
  26.     B>SLRNK /P:100,PBBS,PBBSUBS,PBBS/N/E
  27.  
  28. will generate a PBBS.COM file from the PBBS.REL file you made and the
  29. PBBSUBS.REL utility section of PBBS.  This will take around 22 seconds.
  30. (When using M80 it took around 6-1/2 minutes to assemble and L80 took
  31. around 1:40 to link with the same floppy system.)
  32.  
  33.         (The /P:100 tells it to establish a
  34.         base address of 0100H when linking.
  35.         You could have kept the  ORG  0100H
  36.         address in the original module, and
  37.         then used /P:0 instead of /P:100.)
  38.  
  39.     Then do the other four sections:  PBYE, PBBSMNT, PNOTE1 and
  40. PCHAT11 in a similar manner.  You can fix the APBBS.SUB submit file in
  41. an appropriate manner if you want to automate the whole procedure.  (I
  42. don't use submit files myself, the EX14 and EX15 files always bomb the
  43. system here when they are finished and are supposed to return to the
  44. operating system.)
  45.  
  46.                     - Irv
  47.  
  48.  
  49.    (Note:  The PBBS.MAC v3.0 had one line which causes the Z80ASM
  50.        assembler to barf, it looked like this:
  51.  
  52. ------------------------------------------------------------------------
  53.             as originally distributed
  54.  
  55. SCNASK:
  56.     CALL    PRINT
  57.     CR,'Message number to begin scan (1-',0
  58.      |
  59.      \no 'DB' here, Microsoft's M80 will accept this line
  60.  
  61. ------------------------------------------------------------------------
  62.                 corrected
  63. SCNASK:
  64.     CALL    PRINT
  65.     DB    CR,'Message number to begin scan (1-',0 ; <== 'DB' added
  66.      |
  67.      \'DB' has been added, SLR's Z80ASM is now happy (so is M80).
  68.  
  69. ------------------------------------------------------------------------
  70.  
  71. Without that 'DB' ahead of the ASCII string, the SLR assembler thought
  72. you were redefining the value of 'CR' and would put out about 30-40
  73. errors saying subsequent 'CR' values were "out of range".
  74.