*--------------------* * Reference: Aliases * Mon Sep 23 09:47:58 1991 *--------------------* ============================== Introduction ================================== This reference file contains all aliases defined in s/PowerVisor-startup and s/pv/ExtraAliases. =================================== why ====================================== WHY Definition : help e\(error) Defined in : s/PowerVisor-startup This alias gives some additional help for the last error. Related commands: help =================================== lfd ====================================== LFD Definition : loadfd [] fd:[]_lib.fd Defined in : s/PowerVisor-startup This alias loads a ¹fd-file for a library. It is simply a shorthand notation. Example : < lfd exec instead of < loadfd exec fd:exec_lib.fd Related commands: loadfd =================================== bin ====================================== BIN Definition : bin = {bin8 ([])>>8;bin8 ([]);print \0a} bin8 = print \(([])>>7&1)\(([])>>6&1)\(([])>>5&1)\(([])>>4&1) \(([])>>3&1)\(([])>>2&1)\(([])>>1&1)\(([])&1) Defined in : s/PowerVisor-startup This alias shows the binary representation of the 16 least significant bits of . Example : < bin 1234 > 0000010011010010 =================================== cmd ====================================== CMD Definition : {rc="[]";rx s:pv/cmd} Defined in : s/PowerVisor-startup You can use this alias to execute Cli commands from within PowerVisor. The output will appear on the default logical window. This alias uses a unique temporary file in 'T:'. Example : < cmd dir dh0: all > ... =================================== asm ====================================== ASM
Definition : {rc=[];rx s:pv/assem} Defined in : s/PowerVisor-startup This alias calls a simple assembler written in ARexx. See s:pv/assem.pv for more info about the assembler. Stop the assembler with an empty input line. ================================= mstack ===================================== MSTACK Definition : {rwin 1;r 5 {home;d getstack()};stack []} Defined in : s/PowerVisor-startup This alias is equivalent to the 'stack' command. The difference is that this alias first opens the ³refresh logical window with one visible line and installs a ²refresh command to display the maximum stack usage two times per second (5 ¹IntuiTicks). Example : < mstack workbench 10000 Related commands: stack refresh Related functions: getstack =================================== at ======================================= AT Definition : attach [1] co([2]) qu([3]) e Defined in : s/PowerVisor-startup This alias ¹attaches a command to a key (makes a macro). The advantage of this alias is that you can use names for the ¹code and ¹qualifier of the key instead of numbers. Note that you have to define the 'co' and 'qu' functions in order to use this alias (this is already done in s/PowerVisor-startup). Note that the 'co' function does not work perfectly in ²AmigaDOS 1.3. Only use the 'co' function (and thus the 'at' alias) for special keys ('enter', 'esc', 'up', ...) and not for normal keys ('a', '3', ...). The following code strings are supported : f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, esc, enter, ret, up, down, right, left, del, help, tab, numl, scrl, prtsc, home, end, nup, nleft, nright, ndown, pgup, pgdn, ins, ndel All other strings are interpreted as one char only (you may only use one of the above strings if you have AmigaDOS 1.3) The following qualifier strings are supported : lshift, rshift, ctrl, lalt, ralt, lcmd, rcmd Example : < at 'help commands' help ralt This command attaches the 'help commands' command to the + key. Related commands: attach remattach ================================== opwin ===================================== OPWIN Definition : {-openpw [] 0 0 300 200;-openlw [] [] 80 40} Defined in : s/PowerVisor-startup This alias opens a ²physical window with size 300x200 and opens a ²logical window with the same name in this physical window. Related commands: openpw openlw ================================== fact ====================================== FACT Definition : fact = disp {_fact []} _fact = void if(([])==1,1,{_fact ([])-1}*([])) Defined in : s/pv/ExtraAliases This alias computes the facultaty of its argument. It is an example of how to use ²recursive aliases. Example : < fact 5 > 00000078 , 120 Related commands: disp void Related functions: if ================================= fdebug ===================================== FDEBUG Definition : script db Defined in : s/PowerVisor-startup This alias installs the ²fullscreen debugger for you. If the debug logical window is not open it is opened ('dwin' command). The number of instructions in the disassembly is set to 5 ('prefs debug' command). Some keys are assigned to commands ( is left amiga key) : +z ³singlestep one instruction +y singlestep one instruction +a ²set breakpoint after this instruction and execute +s ³skip current instruction +r ²run program until a breakpoint hit occurs +x ³halt running program +b set/reset a temporary breakpoint at the top of the ³debug logical window +t singlestep but ²skip BSR and JSR instructions +u ²trace until ... +b trace until a ³change of programflow occurs (branch, ...) +a set debug window start address ... +b set ²permanent breakpoint ... Note that these keys can differ when you use another ²default keymap (like 'azerty' or 'qwertz'). Change the 'db' script if you want to use other keys. 'fdebug' redefines itself. After the fullscreen debugger is installed you can use 'fdebug' to remove the fullscreen debugger. 'fdebug' is a toggle. Note that the 'db' script (located in s/pv) works best when called from within the alias. Never execute this script directly. Related commands: debug trace break ================================= salias ===================================== SALIAS Definition : {print \({_fl={pv 48 ·Å[]Å}},%s)\0a;v free(_fl);remvar _fl} Defined in : s/PowerVisor-startup With this alias you can show the commandline how it would look like after ²alias substitution. This is very useful for ²debugging aliases. If an alias does not work well you can use this alias to see what actually gets executed. Example : < alias x '[3][2][1] testing []' < salias x i r p last > pri testing i r p last Related commands: print pvcall =================================== cu ======================================= CU [] Definition : u lastmem() [] Defined in : s/PowerVisor-startup This alias is equivalent to the 'unasm' command. The only difference is that you can specify the number of lines to disassemble without having to specify the starting address. Related commands: unasm =================================== cm ======================================= CM [] Definition : m lastmem() [] Defined in : s/PowerVisor-startup This alias is equivalent to the 'memory' command. The only difference is that you can specify the number of bytes to view without having to specify the starting address. Related commands: memory =================================== vu ======================================= VU [] Definition : view lastmem() [] Defined in : s/PowerVisor-startup This alias is equivalent to the 'view' command. The only difference is that you can specify the number of bytes to view without having to specify the starting address. Related commands: view