home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / UTILITY / LINK_NOW.ZIP / LINK_NOW.ASM < prev   
Assembly Source File  |  1996-11-10  |  9KB  |  218 lines

  1. ``Bubba`` #2@4500.TerraNET
  2. Wed Nov 06 17:34:31 1996
  3. 6>7>1RE: Uhhh....0
  4. 6>7>1BY: Doc #1 @9931.TerraNET0
  5. 6>7>0
  6. 6>7>1Wait. Why would you put Linker.exe into the EPREPROC.NET? When you set up0
  7. 6>7>1Linker, you are supposed to REN NETWORK2.EXE to NET2.EXE and then REN0
  8. 6>7>1LINKER.EXE to NETWORK2.EXE. so, if Linker is already scaning the incoming0
  9. 6>7>1Packets, why would you have to toss it into EPREPROC.NET????????0
  10. 6>0
  11. 6>3RE: Re: Uhhh....0
  12. 6>3BY: JAFO #1 @1.TerraNET0
  13. 6>0
  14. 6>3You should leave the "real" NETWORK2 alone, and stick LINKER.EXE and0
  15. 6>3AUTOSEND.EXE in your EPREPROC.NET files.  What happens if you don't0
  16. 6>3use Linker on every network?  It would be dumb to have it process packets0
  17. 6>3for all networks when only some use it...0
  18.  
  19. 8Good point!  You should put LINKER.EXE and AUTOSEND.EXE in your 0
  20. 8EPREPROC.NET files.  Additionally, if Linker is executed from EREPROC.NET, 0
  21. 8not only will linker un-link your received packets, but you also have the0
  22. 8opportunity to link packets IMMEDIATELY after they are written, BEFORE0
  23. 8your bbs networks!0
  24.  
  25. 8I have Linker executed as a logoff event, (Yes, I know, WWIV doesn't have0
  26. 8a logoff event), here is what I do.  In my LOGEVENT.BAT file I have the0
  27. 8following lines:0
  28.  
  29. CD\WWIV\WWIVNET
  30. LINK_NOW.COM
  31.  
  32. 8When one of my callers logon, and LOGEVENT.BAT is executed, the program0
  33. 2LINK_NOW.COM 8runs.  2It creates 8a 2LOCAL.NET 8file in my \WWIV\WWIVNET0
  34. 8directory.  The LOCAL.NET file contains a type 15 message, the kind you0
  35. 8see only once like "0Betty Joe read your mail on 10/26/968" except it0
  36. 8says "0Linker run on WWIVnet8".0
  37.  
  38. 8After the caller logs off, NETWORK2 notices the new LOCAL.NET file and0
  39. 8starts up!  Since 2LINKER.EXE 8is in my EREPROC.NET file, it 2runs too 8and0
  40. 8any packets that need to be linked will be processed and linked at this0
  41. 8time!0
  42.  
  43. 8I created my LINK_NOW.COM file using an ordinary assembly language0
  44. 8compiler.  It was real 2easy8, here is the code:0
  45.  
  46. 1--------------------------------------------------------------------0
  47.  
  48. ;=======================================================================;
  49. ;  Author:          Bubba #2@2498.WWIVnet           Date: Oct 22, 1995  ;
  50. ;  Codename:        LINK_NOW.ASM                                        ;
  51. ;  Filename:        LINK_NOW.COM                                        ;
  52. ;  Filesize:        115 bytes (after compiling)                         ;
  53. ;  Memory required: 122 bytes                                           ;
  54. ;                                                                       ;
  55. ;  This program will write the data in the string "local_net_data"      ;
  56. ;  to the file LOCAL.NET                                                ;
  57. ;                                                                       ;
  58. ;=======================================================================;
  59.  
  60. ;=======================================================================;
  61. ;  This assembly code is intended for use with Wolfware Assembly        ;
  62. ;  Language Compiler, Ver 2.02, (C) Copyright 1987 by Eric Tauck.       ;
  63. ;                                                                       ;
  64. ;  Wolfware Assembly Compiler minimum system requirements:              ;
  65. ;  an IBM PC or compatible 8086 computer,  MS/PC DOS 2.00 or up,        ;
  66. ;  and about 100 kilobytes of free memory.                              ;
  67. ;                                                                       ;
  68. ;  Wolfware Assembly Compiler (WASM202.ZIP) is available at:            ;
  69. ;  1.  The Unicorn Forest BBS (Of course!) (405) 536-5863               ;
  70. ;        Logon as GUEST, password GUEST, or whatever you please         ;
  71. ;  2.  http://oak.oakland.edu/pub/simtelnet/msdos/asmutl/wasm202.zip    ;
  72. ;        and just about any other SimTel mirror site                    ;
  73. ;=======================================================================;
  74.  
  75. ;-- housekeeping, save the registers
  76.  
  77.  push BX                    ;push register values onto stack
  78.  push CX
  79.  push DX
  80.  push DI
  81.  push SI
  82.  push DS
  83.  push ES
  84.  
  85. ;-- create and open a file
  86.  
  87.  mov DX, offset file_name   ;identify filename pointer
  88.  sub CX, CX                 ;normal file attribute
  89.  mov AH, 3Ch                ;create a file function
  90.  int 21h                    ;execute
  91.  mov word Handle, AX        ;store new file handle
  92.  
  93. ;-- write to the file
  94.  
  95.  mov DX, offset local_net_string     ;identify data pointer
  96.  mov CX, 33h                         ;identify length of data string
  97.  mov BX, word Handle                 ;identify file handle
  98.  mov AH, 40h                         ;write file function
  99.  int 21h                             ;execute
  100.  
  101. ;-- close the file
  102.  
  103.  mov BX, word Handle        ;identify file handle
  104.  mov AH, 3eh                ;close file function
  105.  int 21h                    ;execute
  106.  
  107. ;-- housekeeping, restore registers
  108.  
  109.  pop ES                    ;return register values from stack
  110.  pop DS
  111.  pop SI
  112.  pop DI
  113.  pop DX
  114.  pop CX
  115.  pop BX
  116.  
  117. ;-- exit the program
  118.  
  119.  mov AX, 4c00h              ;exit program function
  120.  int 21h                    ;execute
  121.  
  122. ;-- data
  123.  
  124. local_net_string    db  0C2h, 09h, 02h, 00h, 0C2h, 09h, 00h, 00h,
  125.                     db  0Fh,  00h, 00h, 00h, 00h,  00h, 00h, 00h,
  126.                     db  00h,  00h, 1Bh, 00h, 00h,  00h, 00h, 00h,
  127.                     db 'Linker v3.7 run on WWIVnet.'
  128.  
  129. file_name           db 'local.net'
  130. Handle              db  00h, 00h
  131.  
  132. ;-- end
  133.  
  134. 1--------------------------------------------------------------------0
  135.  
  136. 8The data in the "local_net_string" must be for your BBS!0
  137.  
  138. 81.  2To 8system.  We are at 224988.WWIVnet.0
  139.  
  140. 8  2498 decimal   2498 decimal0
  141. 8  ------------ = ------------ = 9 decimal, and 194 decimal remainder0
  142. 8  100 hex        256 decimal0
  143.  
  144. 8    9 decimal = 209 8hex0
  145. 8  194 decimal = 2C2 8hex0
  146.  
  147.   local_net_string    db  02C20h, 2090h, 02h, 00h, 0C2h, 09h, 00h, 00h,
  148.                       db  0Fh,  00h, 00h, 00h, 00h,  00h, 00h, 00h,
  149.                       db  00h,  00h, 1Bh, 00h, 00h,  00h, 00h, 00h,
  150.                       db 'Linker v3.7 run on WWIVnet.'
  151.  
  152. 82.  2To 8user number. Bubba#220
  153.  
  154. 8  2 decimal   2 decimal0
  155. 8  --------- = ------------ = 0 decimal, and 2 decimal remainder0
  156. 8  100 hex     256 decimal0
  157.  
  158. 8  0 decimal = 200 8hex0
  159. 8  2 decimal = 202 8hex0
  160.  
  161.   local_net_string    db  0C2h, 09h, 2020h, 2000h, 0C2h, 09h, 00h, 00h,
  162.                       db  0Fh,  00h, 00h, 00h, 00h,  00h, 00h, 00h,
  163.                       db  00h,  00h, 1Bh, 00h, 00h,  00h, 00h, 00h,
  164.                       db 'Linker v3.7 run on WWIVnet.'
  165.  
  166. 83.  2From 8system.  We are at 224988.WWIVnet.0
  167.  
  168. 8  2498 decimal   2498 decimal0
  169. 8  ------------ = ------------ = 9 decimal, and 194 decimal remainder0
  170. 8  100 hex        256 decimal0
  171.  
  172. 8    9 decimal = 209 8hex0
  173. 8  194 decimal = 2C2 8hex0
  174.  
  175.   local_net_string    db  0C2h, 09h, 02h, 00h, 02C20h, 2090h, 00h, 00h,
  176.                       db  0Fh,  00h, 00h, 00h, 00h,  00h, 00h, 00h,
  177.                       db  00h,  00h, 1Bh, 00h, 00h,  00h, 00h, 00h,
  178.                       db 'Linker v3.7 run on WWIVnet.'
  179.  
  180. 84.  2From 8user number 200
  181.  
  182. 8  (the same decimal to hex conversion as above)0
  183.  
  184.   local_net_string    db  0C2h, 09h, 02h, 00h, 0C2h, 09h, 2000h, 2000h,
  185.                       db  0Fh,  00h, 00h, 00h, 00h,  00h, 00h, 00h,
  186.                       db  00h,  00h, 1Bh, 00h, 00h,  00h, 00h, 00h,
  187.                       db 'Linker v3.7 run on WWIVnet.'
  188.  
  189. 85.  File 2type 8is 2158, those little "Betty read your mail..."0
  190.  
  191. 8  (the same decimal to hex conversion as above) 15 decimal = 2F 8hex0
  192.  
  193.   local_net_string    db  0C2h, 09h, 02h, 00h, 0C2h, 09h, 00h, 00h,
  194.                       db  20F0h,  2000h, 00h, 00h, 00h,  00h, 00h, 00h,
  195.                       db  00h,  00h, 1Bh, 00h, 00h,  00h, 00h, 00h,
  196.                       db 'Linker v3.7 run on WWIVnet.'
  197.  
  198.  
  199. 86.  not used in this type, set to 200
  200.  
  201.   local_net_string    db  0C2h, 09h, 02h, 00h, 0C2h, 09h, 00h, 00h,
  202.                       db  0Fh,  00h, 2000h, 2000h, 2000h,  2000h, 2000h, 2000h,
  203.                       db  2000h,  2000h, 1Bh, 00h, 00h,  00h, 2000h, 2000h,
  204.                       db 'Linker v3.7 run on WWIVnet.'
  205.  
  206. 87.  How 2long 8is the string "Linker v3.7 run on WWIVnet."?0
  207.  
  208. 8  (the same decimal to hex conversion as above) 27 decimal = 21B 8hex0
  209.  
  210.   local_net_string    db  0C2h, 09h, 02h, 00h, 0C2h, 09h, 00h, 00h,
  211.                       db  0Fh,  00h, 00h, 00h, 00h,  00h, 00h, 00h,
  212.                       db  00h,  00h, 21B0h, 2000h, 2000h,  2000h, 00h, 00h,
  213.                       db '2Linker v3.7 run on WWIVnet.0'
  214.                         8  ^^^^^^....................^0
  215.                         8  123456....................27 decimal = 21B 8hex0
  216.  
  217. 8Kool huh?0
  218.