Project home page: http://www.linuxassembly.org/asmutils.html I selected just the following programs: Size Name 521 cpuinfo 201 dirname 215 extname 164 fromdos 240 hexdump 998 less 131 readlink 305 strings 0 todos -> fromdos 499 which Peter Schubnell tested it and reported success (2002-04-21) 557 httpd not tested 255 tee but there's a complete list at the bottom of this page. Please observe that 'hexdump' is present both here and in another package, all by itself. Don't bother installing both! It installs in /usr/bin. No pre-*.ini or post-*.ini script required, unless you want to move it to some other directory. Should you have any comments and/or questions, throw them at me and I'll try answer to the best of my abilities ;-) Enjoy, Cristian cpuinfo ------- ;- Copyright (C) 2000 H-Peter Recktenwald, Berlin ;- ;- $Id: cpuinfo.asm,v 1.2 2000/09/03 16:13:54 konst Exp $ ;- ;- file : cpuinfo.asm ;- created : 18-jan-2000 ;- modified : 12-mar-2000 ;- version : 0.22 05-08-00 ;- assembler : nasm 0.98 ;- description : short form i486+ cpuid output, sedecimal register ;- : values, and text output if invoked with (any) ;- : argument. self adjusting to cpuid stepping, and ;- : lines numbering scheme added for easier evaluation. ;- : output: ;- : leading "0x" for standard level queries, ;- : "1x" intel cache description, ;- : "8x" amd extended levels (eax=0x80000000+) ;- : where "x" is the corresponding level number, ;- : followed by 8 digits sedecimal eax..edx values/line ;- : with option -t or --time displays cpu timing in ;- : clocks/second (re below, 'e2sec' & 'ms'). ;- : with any other option displays cpuid data plus, ;- : additionally ascii equivalent of reg contents. ;- : due to very simple options checking any strings ;- : beginning "-t" or "--ti" will do for the timer ;- : and, "-h" or "--he" for a short help message. ;- author : H-Peter Recktenwald, Berlin ;- : http://home.snafu.de/phpr/ ;- comment : cpl: of asmutils 0.08 will work, ;- : 'long' text output treated as ascii, no conversion ;- : nor checks done, thus output might get corrupted ;- : if any chars found which sys_write doesn't catch. ;- ; conditional compiling: ;- : -h & -v options not compiled if OPTIMIZEd for SIZE ;- : which can be overridden by %define-d switch __LONG. ;- : "-t" mode w. disabled int's if __lockint %define-d. ;- : other modifiers re source text. ;- source : AMD no. 218928F/0 Aug 1999, pg 3 f. ;- requires : asmutils 0.09+, http://linuxassembly.org ;- ; i486-linux 2.2+ dirname ------- ;Copyright (C) Alexandr Gorlov ; ;$Id: dirname.asm,v 1.2 2000/09/03 16:13:54 konst Exp $ ; ;hackers dirname ; ;0.01: 15-Mar-2000 initial release ;0.02: 21-Mar-2000 full rewrite ;) ;0.03: 04-May-2000 "/" fixed, shorter (PR) ; ;syntax: ; dirname extname ------- ;Copyright (C) 2000 H-Peter Recktenwald ; ;$Id: extname.asm,v 1.3 2000/12/10 08:20:36 konst Exp $ ; ;hackers' extname (return extension or postfix of a given filename) ; ;syntax: extname { filename | - } [delimiter] ; "-" instead of filename for input from stdin ; delimiter is "." by default or, ; optionally any 1st (and 2nd) char of any length argument stg. ; ;if delimiter found: ; ret. part of basename after and inclusive delimiter or, ; ret extension not including dlm if arg is double dlm char. ; for instance, ; echo $(echo "yesterday was sunday"|extname - \ ) ; writes ; sunday ;if delimiter not found: ; empty string if no dlm found or only a leading single dlm. ; for instance, ; echo $(echo ".yesterday was sunday"|extname -) ; writes the empty string ; ;exitcode: ; 1 if no argument given, 0 otherwise fromdos, todos -------------- ; Copyright (C) 2001, Tiago Gasiba (ee97034@fe.up.pt) ; ; $Id: fromdos.asm,v 1.1 2001/08/19 12:41:59 konst Exp $ ; ; hackers' fromdos/todos ; ; This program converts ascii text files from DOS/UNIX ; to UNIX/DOS formats ; ; Example of usage: ; fromdos < text.dos > text.unix ; todos < text.unix > text.dos hexdump ------- ;; hexdump.asm: Copyright (C) 2001 Brian Raiter , ;; under the terms of the GNU General Public License. ;; ;; Usage: hexdump [FILE]... ;; With no parameters, hexdump reads from standard input. ;; hexdump returns zero on success, or an error code otherwise. ;; ;; $Id: hexdump.asm,v 1.3 2001/09/24 16:49:19 konst Exp $ httpd ----- ;Copyright (C) 1999 Indrek Mandre ; ;$Id: httpd.asm,v 1.8 2001/02/23 12:39:29 konst Exp $ ; ;hackers' sub-1K httpd ; ;syntax: httpd document-root port ; ;example: httpd /htdocs/ 8888 ; lynx http://localhost:8888/ ; ; when / is the last symbol in request, appends index.html ; in case of error just closes connection ; takes 16kb + 16kb for every request in memory, forks on every request, ; good enough to serve basic documentation. ; I tried to make it as secure as possible, there should be no buffer overflows ; I at least tryed not to make any. It ignores requests with '..' in. ; please, pelase send me e-mail and tell what you think ; this is my fifth assembler program (on x86 & nasm), the first I wrote ; yesterday ; ; Here I did a bit testing and it served about 214.8688524590 pages ; a second ;) maybe I'm wrong though, but this was the statistics less ---- ;Copyright (C) 2001, Tiago Gasiba (ee97034@fe.up.pt) ; ;$Id: less.asm,v 1.4 2001/09/24 16:49:19 konst Exp $ ; ;hackers' less ; ;syntax: ; less file ; or less < file ; ;TODO: ; - add "/" (search) ; - optimize source code ; ;known bugs: ; - lines numbers reported may not correspond to true line numbers readlink -------- ;Copyright (C) 2001 by Joshua Hudson ; ;$Id: readlink.asm,v 1.1 2001/08/14 18:55:38 konst Exp $ ; ;usage: readlink symlink [...] strings ------- ;Copyright (C) 1999 Dmitry Bakhvalov ; ;$Id: strings.asm,v 1.3 2000/04/07 18:36:01 konst Exp $ ; ;hackers' strings ; ;0.01: 18-Oct-1999 initial release ;0.02: 19-Oct-1999 size optimizations ; ;syntax: strings [option] [file, file, file...] ; The only supported option by now is -n. ; See strings manpage to find out more about this cool option :) ; ; If no file is given stdin is used. ; ; returns -1 on error, 0 on success ; ; If someone really feels like he needs more of the original GNU strings' ; options - just ask me or better yet add 'em yourself :) ; ; Send me any feedback,suggestions,additional code, etc. tee --- ;Copyright (C) 1999 Konstantin Boldyshev ; ;$Id: tee.asm,v 1.5 2001/03/18 07:08:25 konst Exp $ ; ;hackers' tee [GNU replacement] ; ;syntax: tee [-ai] [file...] ; ;-a append to files instead of overwriting ;-i ignore interrupt signals ; ;returns error count ; ;Note that this tee can handle about 1000 specified files only, ;however it is more than enough. -------------------------------------------------------------------------- Size Name 231 basename 148 cat 165 chmod 325 chown 128 chroot 284 chvt 107 clear 763 cp 521 cpuinfo 1492 date 477 dc 495 dd 1237 df 201 dirname 210 dmesg 362 echo 303 eject 118 env 707 execve 215 extname 510 factor 833 fire256 164 fromdos 937 game 316 grep 279 head 240 hexdump 174 hostname 557 httpd 295 id 497 ifconfig 550 init 559 kill 396 leaves 998 less 142 ln 1016 ls 229 lsmod 1033 lzss 1173 md5sum 255 mkdir 398 mknod 222 more 251 mount 327 mv 364 nc 992 od 497 paste 320 ping 504 ps 124 pwd 2208 rc6crypt 6230 readelf 255 readkey 131 readlink 136 reboot 232 renice 4986 report 485 rm 1252 rmdsum 2510 sh 198 sleep 1523 snake 203 softdog 305 strings 117 swapon 88 sync 303 tail 255 tee 157 touch 597 tr 95 true 143 tty 266 uname 155 update 541 watch 466 wc 499 which 370 whoami 807 window 168 yes