Short: Set of useful E modules Author: Kyzer/CSG Uploader: Kyzer/CSG Type: dev/e This is a collection of E modules I have written. Some come without usage instructions or examples, but on the whole I think they are very usable. You are welcome to use them in your own programs, provided you do not claim ownership or copyright of them. Some are written in E, some are written in assembly language. All are ready-compiled, and the test/ directory contains some examples/tests of the modules. args.m: Allows you to use a single ReadArgs() template to do both shell-args parsing _and_ Workbench tooltype parsing. As used in ShellScr. clr.m: memset(mem, char, size) sets [size] bytes of memory to [char], starting from [mem]. clr(mem, size) does memset(mem, 0, size) ie clears memory. datestring.m: datestring is an object that holds the text equivalent of the current date when you create it. You can choose the format of the text. [includes tester program] defarg.m: a shorter replacement for 'IF x THEN x ELSE y'. efuncs.i, eglobs.e, eglobs.i: for assembler module writers. eglobs.e will generate an eglobs.i file, so you can use the E global variables. Also, efuncs.i includes the magic addresses of the E builtins, but o2m needs more magic added to it to be able to use these. fixed.m: convert between 16:16 fixed point, floating point, and integers. hex.m: read text strings in as hex values. Like Val(), but only for hex digits. Much shorter than prepending a '$' to a string and using Val(). [includes tester program] keypress.m: 'presses' raw keys on the keyboard. Not fully working with modifers (ie shift, ctrl, etc...) [includes tester program] ledfilter.m: control the state of your low pass filter/power LED. [includes tester program] loadfile.m: load a file into memory, can also use XPK to load crunched files. mkport.m: version of the v36+ ROM functions CreateMsgPort()/DeleteMsgPort(), if you want need this but want to support 1.3 patch.m: a very flexible and safe object to patch library functions. As used in MemPatch. [includes tester program] paths.m: A whole slew of functions to allow you to copy command paths (ie set with the PATH command), also can copy the Workbench path list if you need to start shell programs from the Workbench. As used in ShellScr. [includes tester program] rawkeys.m: for use with keypress.m - it's all the keys on the (american) keyboard. segtracker.m: puts a name and offset to the address of code in memory, provided the tool 'SegTracker' (by Michael Sinz, comes with Enforcer) is running. [includes tester program] stealchip.m, steallong.m: allows you to read and write any part of chip memory without being reported by Enforcer/Cyberguard, etc. [includes tester program] string.m: macros for most functions in ANSI-C . Also includes strdup() which makes a fresh copy of a string, and also can copy BSTR strings.