home *** CD-ROM | disk | FTP | other *** search
/ Groovy Bytes: Behind the Moon / groovybytes.iso / GROOVY / DISKMAGS / IMPHOB_8.ZIP / IMP8_EX!.ZIP / STONE4KB.ZIP / ZERODATA.ASM < prev   
Encoding:
Assembly Source File  |  1994-08-26  |  1.7 KB  |  50 lines

  1. ;▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
  2. ; Postprocessor Implementation
  3. ;
  4. ; To make 4KB Intros small. Published together with the Imphobia VIII issue.
  5. ;
  6. ; Written in 1994 by Markus Stein alias Stone/Dust
  7. ;▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
  8.  
  9. code    segment
  10.         assume cs:code,ds:code
  11.         org 100h
  12.         locals
  13.         .386
  14.  
  15. ;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  16. ; MAIN
  17. ;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  18.  
  19. start:  cld                       ;clear direction flag ;this code has to stay
  20.         mov di,offset zeroed_data_start                 ;EXACTLY the same if
  21.         mov cx,offset zeroed_data_end-zeroed_data_start ;you want it to work
  22.         push ds                                         ;with my postprocessor
  23.         pop es
  24.         xor al,al
  25.         rep stosb                 ;init zeroed data (s. postprocessor)
  26.  
  27.         ; ... your program starts here ...
  28.  
  29. EXIT:   mov ah,4ch                ;exit
  30.         int 21h
  31. ;----------------------------------
  32.  
  33. ;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  34. ; ZEROED DATA: insert all your zero data in between the ZEROED_DATA_START and
  35. ;              the ZEROED_DATA_END label
  36. ;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  37.  
  38. ZEROED_DATA_START label
  39. ;----------------------------------
  40.  
  41.         align 4
  42. NOT_REALLY_USED     db 10000 dup (0)
  43. ;----------------------------------
  44.  
  45. ZEROED_DATA_END label
  46. ;----------------------------------
  47.  
  48. ;▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
  49. code    ends
  50.         end start