home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / TEXT / UTILITY / COOKIE.ZIP / COOKIE.ASM next >
Encoding:
Assembly Source File  |  1991-12-11  |  5.4 KB  |  133 lines

  1. ;Name:  COOKIE
  2.  
  3. Comment ~
  4. I ran across a nice, tight little fortune cookie utility on FIDO's
  5. PC Assembly Language conference.  (See COOKIE.MSG for the original
  6. message and DEBUG script.)
  7.  
  8. I decided to enhance Mike Marotta's code just a little (mostly
  9. because all that white space in the original executable bugged
  10. me).
  11.  
  12. We now have a fortune cookie utility without any wasted space.
  13. Of course, that means you have to edit and recompile the source
  14. if you wish to make any significant changes to the quotations ..
  15. but that's what assemblers are for, right? :-)
  16.  
  17. The 60 quotes here include Mike's original samples, plus a bunch
  18. from my BlueWave BWSIGS.TXT file that I've stolen from all over
  19. (to include a bunch of Monty Python quotes).
  20.  
  21. David Kirschbaum
  22. Toad Hall
  23. kirsch@usasoc.soc.mil
  24. ~
  25.  
  26. CR    EQU    0DH
  27. LF    EQU    0AH
  28.  
  29. CSEG    SEGMENT PUBLIC PARA 'CODE'
  30.     ASSUME    CS:CSEG,DS:CSEG
  31.  
  32.     org    100H
  33. Cookie    PROC    NEAR
  34.     mov    ah,2CH        ;get current time
  35.     int    21H
  36. ;    mov    al,46H        ;length of each message
  37. ;    imul    dh        ;* seconds = offset to first msg
  38. ;    add    ax,offset Msgs    ;120H
  39. ;    mov    dx,ax
  40.     mov    al,dh        ;lsb = seconds
  41.     xor    ah,ah        ;clear msb
  42.     push    ax        ;save that second value
  43.     shl    ax,1        ;*2 for words
  44.     add    ax,offset msgtbl    ;table of msg pointers
  45.     mov    bx,ax        ;into BX
  46.     mov    dx,[bx]        ;get the msg pointer into DX
  47.     mov    ah,09
  48.     int    21H
  49.     mov    dx,offset CrLf
  50.     int    21H
  51. ;    int    20H
  52.     pop    ax        ;restore seconds to AL
  53.     mov    ah,4CH        ;terminate, ERRORLEVEL in AL
  54.     int    21H
  55.  
  56. CrLf    db    CR,LF,'$'
  57.  
  58.  
  59. m01    db '"Beam me up Scottie, there',27H,'s no intelligent life down here."$'
  60. m02    db "8 + 8 = 10 $"
  61. m03    db '"Hello, Dave, it',27H,'s good to be working with you again."$'
  62. m04    db '"Well, it',27H,'s got *some* rat in it."$'
  63. m05    db '"She',27H,'s a good Sheila, Bruce, and not at all stuck up."$'
  64. m06    db '"Mind if we call you ',27H,'Bruce',27H,' to keep it clear?"$'
  65. m07    db '"Well I',27H,'m sorry, but I',27H,'m going to have to shoot you."$'
  66. m08    db '"Bring out your dead!"$'
  67. m09    db '"Go and boil your bottoms, son of a silly person!"$'
  68. m10    db '"Ah blow my nose at you, so-called ',27H,'Arthur Keeeng',27H,'!"$'
  69. m11    db '"You and all your silly English Knnnnnnnn-ighuts!!!"$'
  70. m12    db '"you empty-headed animal food-trough wiper!"$'
  71. m13    db '"Ah fart in your general direction!"$'
  72. m14    db '"Your mother was a hamster, and your father smelt of elderberries!"$'
  73. m15    db '"Now go away, or I shall taunt you a second time!"$'
  74. m16    db '"If we took the bones out, it wouldn',27H,'t be crunchy, would it?"$'
  75. m17    db '"This parrot wouldn',27H,'t move if you put 4 thousand volts through it!"$'
  76. m18    db '"Die Jesu domine, Dona eis requiem." <bang>$'
  77. m19    db '"It',27H,'s symbolic of his struggle against reality."$'
  78. m20    db '"Aha!  Now we see the violence inherent in the system!"$'
  79. m21    db '"Notice that they do not so much fly as...plummet."$'
  80. m22    db '<Baaa baaa... flap flap flap ... whoosh ... thud.>$'
  81. m23    db 'Conservative: A Liberal who',27H,'s been mugged.$'
  82. m24    db 'Liberal: A Conservative who',27H,'s been indicted.$'
  83. m25    db "Moderate: Someone who's been mugged and indicted all in one day.$"
  84. m26    db 'Profanity: the universal programming language$'
  85. m27    db 22H,"Why isn't it ever unfair in MY favor?",22H,' Calvin.$'
  86. m28    db '"Quick, Natasha!  Shoot Moose!"$'
  87. m29    db '...and the horse you rode in on!$'
  88. m30    db "Jesus loves you.  Everyone else thinks you're a jerk!$"
  89. m31    db 'GOD is real .. unless declared integer.$'
  90. m32    db '"All [the girls] I meet at work are sluts and lawyers."  Bull$'
  91. m33    db '"Busy? I just spent four hours burying the cat."$'
  92. m34    db '"On second thought, let',27H,'s not go to Camelot.  '
  93.     db 'It is a silly place."$'
  94. m35    db "How can I miss you if you won't go away?$"
  95. m36    db "I'm from the Government... I'm here to help you!$"
  96. m37    db 'No condo, no MBA, no BMW ...$'
  97. m38    db "I'd kill Flipper for a good tuna sandwich right now.$"
  98. m39    db "She won't last forever.  Why give her a diamond?$"
  99. m40    db 'Life:  Anything that dies when you stomp it.$'
  100. m41    db 'Never attribute to malice what can be explained by simple stupidity!$'
  101. m42    db 'Calm down -- it',27H,'s only ones and zeros.$'
  102. m43    db '.... now touch these wires to your tongue!$'
  103. m44    db 'Always remember to pillage BEFORE you burn!$'
  104. m45    db 'Floggings will continue until morale improves.$'
  105. m46    db "If you don't understand it, squash it.$"
  106. m47    db '"I said a BUD LIGHT." - J. d',"'Arc$"
  107. m48    db "#define QUESTION ((bb) || !(bb))  - Shakespeare.$"
  108. m49    db "!sgub evah t'nseod CP sihT ?sgub naem ayaddahW$"
  109. m50    db "Real programmers use: COPY CON PROGRAM.EXE$"
  110. m51    db "REALITY.SYS corrupted- reboot Universe (Y/N)?$"
  111. m52    db ".signature not found!  reformat hard drive? [Yn]$"
  112. m53    db "Backup not found!  A)bort, R)etry or P)anic?$"
  113. m54    db "A)bort, R)etry or S)elf-destruct?$"
  114. m55    db "Press <CTRL>-<ALT>-<DEL> to continue ...$"
  115. m56    db "E=Mc^5...nahhh...E=Mc^4...nahh...E=Mc^3...ah, the hell with it.$"
  116. m57    db "I'll get you, my pretty ... and your little dog too!$"
  117. m58    db "Today's subliminal thought is:$"
  118. m59    db "Power corrupts.  Absolute power is kinda neat, though...$"
  119. m60    db "Profanity is the linguistic crutch of inarticulate bastards.$"
  120.  
  121. msgtbl    label    word
  122.     dw    m01, m02, m03, m04, m05, m06, m07, m08, m09, m10
  123.     dw    m11, m12, m13, m14, m15, m16, m17, m18, m19, m20
  124.     dw    m21, m22, m23, m24, m25, m26, m27, m28, m29, m30
  125.     dw    m31, m32, m33, m34, m35, m36, m37, m38, m39, m40
  126.     dw    m41, m42, m43, m44, m45, m46, m47, m48, m49, m50
  127.     dw    m51, m52, m53, m54, m55, m56, m57, m58, m59, m60
  128.  
  129. Cookie    ENDP
  130.  
  131. CSEG    ENDS
  132.     END    Cookie
  133.