Additional notes to FANLED as of 4-5-85 FANLED.REL is current as of 4-5-85 18:00 CST and will not be significantly modified unless problems are reported. The version number is 1.10. FANLED.O is current as of the same date/time. version 1.10. To install FANLED.O in your 8086 TurboDOS system, you must replace the INPLN module with FANLED. This is best done in the STDSLAVE.PKG file. If you don't have PACKAGE.CMD, you may be out of luck. I don't know if the programs DELINK.CMD and RELINK.CMD are used or distributed by anyone, but they are one way (see FANLED.DOC). Another, rather tricky way, is to load STDSLAVE.O into a debugger, search for the occurrence of INPLN as a global label (second occurrence from start of file) and mutilate it. Then add FANLED in the GEN file and TLINK it... Lotsa fun! NOTE..... FANLED is active through C-function 10, too! This means ALL PROGRAMS using C-fcn 10 (such as CB80/86 compiled programs) can benefit from FANLED!!! More.... FANLED is an example where Z80 shows superior code size, 8086 shows its elegance. It's a breeze programming in TASM 8086 but a pain to optimize the code. On the other hand, raw Z80 code is usually pretty tight. FANLED was handcoded in Z80 (a crash project, hammered out in about 10 hours after which it was a usable but buggy product). A commercial translator did most of the conversion to 8086, with lots of hand-coding to accommodate TASM syntax and 4 hours of hand optimizing. Here are a few stats as to size... pgm initial size debug size optimized size DS CS DS CS DS CS -------------------------------------------------------------- FANLED.REL ???? ???? 0171 0327 0171 0311 FANLED.O 0171 04BA 0171 0438 0171 03E2 As you can see, there wasn't much to be improved in the Z80 version but the 8086 version shrunk by 216 bytes, mostly due to selection of advanced 8086 instructions over unoptimized translator-generated Z80 equivalents. Still, the Z80 version is quite a bit smaller. Considering the average 8086 system has 256k vs 64k for Z80, the 8086 version is comparatively 1/4 the size of the Z80 version. On the other hand, it takes away TPA space, whereas FANLED.REL in a banked system takes no TPA space. Heck, I had fun. Use it and let me know how it works!!!!!