home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / pctchnqs / 1991 / number5 / hax.asm < prev    next >
Assembly Source File  |  1991-09-16  |  758b  |  44 lines

  1. ;***
  2. ;
  3. ; HAX.ASM  - Demonstrates how to use TASM to make data files
  4. ;
  5. ; Assemble with:
  6. ;   TASM hax
  7. ; Link with:
  8. ;   TLINK /t hax, hax.bin
  9. ;
  10.  
  11. ideal
  12.  
  13. model tiny
  14. codeseg
  15.  
  16.    ORG 0h      ; offset of zero
  17.  
  18. begin:
  19.  
  20. ;
  21. ; Declare your data here ...
  22. ;
  23.  
  24. File_Header DB 'HAX! How to use an assembler to make a data file'
  25.             DB 26    ; Ctrl-Z
  26.  
  27. LABEL Index BYTE
  28.  
  29. String1  DW offset String_1
  30. String2  DW offset String_2
  31. String3  DW offset String_3
  32. String4  DW offset String_4
  33.  
  34. LABEL Strings BYTE
  35.  
  36. String_1 DB 'The first string', 0
  37. String_2 DB 'another one...', 0
  38. String_3 DB 'Yet another string!',0
  39. String_4 DB 'A BIG STRING', 13, 10
  40.          DB 'Spread out over several', 13, 10
  41.          DB 'lines.',0
  42.  
  43.    end   begin
  44.