home *** CD-ROM | disk | FTP | other *** search
- *--------------------*
- * Reference: Aliases * Thu Feb 6 15:47:25 1992
- *--------------------*
-
-
- ============================== 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 <library name>
-
-
- 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 <enter>
-
- instead of
-
- < loadfd exec fd:exec_lib.fd <enter>
-
-
- Related commands: loadfd
-
- =================================== bin ======================================
-
- BIN <number>
-
-
- 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 <number>.
-
-
- Example :
-
- < bin 1234 <enter>
- > 0000010011010010
-
- =================================== cmd ======================================
-
- CMD <cli command line>
-
-
- 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:'.
- Warning! You can't use Cli commands that ask for input.
-
-
- Example :
-
- < cmd dir dh0: all <enter>
- > ...
-
- =================================== asm ======================================
-
- ASM <address>
-
- 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 <task> <microseconds>
-
-
- 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 <enter>
-
-
- Related commands: stack refresh
-
- Related functions: getstack
-
- =================================== at =======================================
-
- AT <command string> <code string> <qualifier string>
-
-
- 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 <enter>
-
- This command attaches the 'help commands' command to the <right-alt>+<help>
- key.
-
-
- Related commands: attach remattach
-
- ================================== opwin =====================================
-
- OPWIN <window name>
-
-
- Definition : {-openpw [] 0 0 300 200;-openlw [] [] 80 40}
- Defined in : s/PowerVisor-startup
-
- This alias opens a ▓physical window <window name> with size 300x200
- and opens a ▓logical window with the same name in this physical window.
-
-
- Related commands: openpw openlw
-
- ================================== fact ======================================
-
- FACT <number>
-
-
- 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 <enter>
- > 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 (<lcmd> is left amiga key) :
-
- <ctrl>+z │singlestep one instruction
- <ctrl>+y singlestep one instruction
- <ctrl>+a ▓set breakpoint after this instruction and execute
- <ctrl>+s │skip current instruction
- <ctrl>+r ▓run program until a breakpoint hit occurs
- <ctrl>+x │halt running program
- <ctrl>+b set/reset a temporary breakpoint at the top of the
- │debug logical window
- <ctrl>+t singlestep but ▓skip BSR and JSR instructions
- <lcmd>+u ▓trace until ...
- <lcmd>+b trace until a │change of programflow occurs (branch, ...)
- <rcmd>+a set debug window start address ...
- <rcmd>+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 <commandline>
-
-
- 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 []' <enter>
- < salias x i r p last <enter>
- > pri testing i r p last
-
-
- Related commands: print pvcall
-
- =================================== cu =======================================
-
- CU [<number of lines>]
-
-
- 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 [<number of bytes>]
-
-
- 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 [<number of bytes>]
-
-
- 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
-
-
-