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 / JSAGE / ZSUS / PROGPACK / TOHEX.LBR / TOHEX.DQC / TOHEX.DOC
Text File  |  2000-06-30  |  2KB  |  50 lines

  1.                               TOHEX
  2.  
  3.      I  have  been using Microsoft's M80 assembler to generate  a 
  4. custom  bios  for  my system.  There are  problems  in  using  an 
  5. otherwise fine product for this purpose, namely L80. L80 will not 
  6. link  a  file  which is targeted beyond the TPA  of  the  current 
  7. system.  Also,  to just get an executable file,  L80 is both slow 
  8. and complicated in places where it will do the job. 
  9.      Most  of my assembly programming efforts are small programs. 
  10. By this I mean that they consist of only one module. There are no 
  11. EXTERN/PUBLIC symbols to be resolved,  They are ORG'ed to where I 
  12. want them to be, and require no relocation. 
  13.      This  program allows me to convert a program created with  a 
  14. few constraints directly from a REL file to a HEX file.  It  does 
  15. not  care  where in memory the HEX file is to be loaded,  and  it 
  16. does no relocation.  (Have you ever used ORG 100H in an M80  file 
  17. and  then  found those 256 unused bytes and a jump to 203H  after 
  18. linking?) I know that all of that stuff can be overridden in  the 
  19. linker, but give me a break, I LIKE load-and go.
  20.  
  21.                             TO USE IT
  22.      In  order  to use this conversion utility,  there are a  few 
  23. constraints on your assembly language files. 
  24.      1.  They  can only contain CSEG and  ASEG  directives.  When 
  25.      using TOHEX, CSEG and ASEG are identical.
  26.      2.   They  cannot contain any ENTRY,PUBLIC,EXTERN or  COMMON 
  27.      symbols.
  28.  
  29. Assemble your file using M80:
  30.  
  31. M80 FUBAR=FUBAR
  32.  
  33. You will now have FUBAR.REL . Now run TOHEX.
  34.  
  35. TOHEX FUBAR.REL FUBAR.HEX
  36.  
  37. Now, either run DDT FUBAR.HEX or LOAD FUBAR. For a CBIOS you have 
  38. the  HEX  file to be merged with CPMxx.COM and you are  ready  to 
  39. generate a new system.
  40.  
  41. Enjoy.
  42. Ed Ganger
  43. 605 Laurel Ave
  44. Johnson City, TN 37604
  45. (615)929-7053
  46. It  is requested that if you modify and distribute this software, 
  47. you  share the blame.  I don't want midnite calls for bugs I  did 
  48. not bring into the world.  Actually,  I don't want midnite  calls 
  49. for bugs I created, either. 1800-2200 Eastern Time, please. Thank 
  50. you.