tf5-5.0beta8/.git/
tf5-5.0beta8/.git/info/
tf5-5.0beta8/.git/logs/
tf5-5.0beta8/.git/logs/refs/heads/
tf5-5.0beta8/.git/objects/00/
tf5-5.0beta8/.git/objects/01/
tf5-5.0beta8/.git/objects/04/
tf5-5.0beta8/.git/objects/05/
tf5-5.0beta8/.git/objects/07/
tf5-5.0beta8/.git/objects/09/
tf5-5.0beta8/.git/objects/0a/
tf5-5.0beta8/.git/objects/0c/
tf5-5.0beta8/.git/objects/0e/
tf5-5.0beta8/.git/objects/12/
tf5-5.0beta8/.git/objects/13/
tf5-5.0beta8/.git/objects/14/
tf5-5.0beta8/.git/objects/16/
tf5-5.0beta8/.git/objects/17/
tf5-5.0beta8/.git/objects/19/
tf5-5.0beta8/.git/objects/1c/
tf5-5.0beta8/.git/objects/1d/
tf5-5.0beta8/.git/objects/1e/
tf5-5.0beta8/.git/objects/1f/
tf5-5.0beta8/.git/objects/20/
tf5-5.0beta8/.git/objects/21/
tf5-5.0beta8/.git/objects/23/
tf5-5.0beta8/.git/objects/27/
tf5-5.0beta8/.git/objects/29/
tf5-5.0beta8/.git/objects/2a/
tf5-5.0beta8/.git/objects/2b/
tf5-5.0beta8/.git/objects/2f/
tf5-5.0beta8/.git/objects/30/
tf5-5.0beta8/.git/objects/33/
tf5-5.0beta8/.git/objects/34/
tf5-5.0beta8/.git/objects/35/
tf5-5.0beta8/.git/objects/39/
tf5-5.0beta8/.git/objects/3c/
tf5-5.0beta8/.git/objects/3d/
tf5-5.0beta8/.git/objects/3f/
tf5-5.0beta8/.git/objects/40/
tf5-5.0beta8/.git/objects/41/
tf5-5.0beta8/.git/objects/42/
tf5-5.0beta8/.git/objects/44/
tf5-5.0beta8/.git/objects/46/
tf5-5.0beta8/.git/objects/47/
tf5-5.0beta8/.git/objects/48/
tf5-5.0beta8/.git/objects/4a/
tf5-5.0beta8/.git/objects/4d/
tf5-5.0beta8/.git/objects/4f/
tf5-5.0beta8/.git/objects/53/
tf5-5.0beta8/.git/objects/54/
tf5-5.0beta8/.git/objects/58/
tf5-5.0beta8/.git/objects/5b/
tf5-5.0beta8/.git/objects/5c/
tf5-5.0beta8/.git/objects/5e/
tf5-5.0beta8/.git/objects/5f/
tf5-5.0beta8/.git/objects/60/
tf5-5.0beta8/.git/objects/61/
tf5-5.0beta8/.git/objects/62/
tf5-5.0beta8/.git/objects/63/
tf5-5.0beta8/.git/objects/66/
tf5-5.0beta8/.git/objects/67/
tf5-5.0beta8/.git/objects/6c/
tf5-5.0beta8/.git/objects/6e/
tf5-5.0beta8/.git/objects/72/
tf5-5.0beta8/.git/objects/73/
tf5-5.0beta8/.git/objects/75/
tf5-5.0beta8/.git/objects/77/
tf5-5.0beta8/.git/objects/7a/
tf5-5.0beta8/.git/objects/7b/
tf5-5.0beta8/.git/objects/7c/
tf5-5.0beta8/.git/objects/7e/
tf5-5.0beta8/.git/objects/7f/
tf5-5.0beta8/.git/objects/81/
tf5-5.0beta8/.git/objects/84/
tf5-5.0beta8/.git/objects/86/
tf5-5.0beta8/.git/objects/87/
tf5-5.0beta8/.git/objects/88/
tf5-5.0beta8/.git/objects/8b/
tf5-5.0beta8/.git/objects/8c/
tf5-5.0beta8/.git/objects/8f/
tf5-5.0beta8/.git/objects/91/
tf5-5.0beta8/.git/objects/93/
tf5-5.0beta8/.git/objects/96/
tf5-5.0beta8/.git/objects/97/
tf5-5.0beta8/.git/objects/99/
tf5-5.0beta8/.git/objects/9a/
tf5-5.0beta8/.git/objects/9b/
tf5-5.0beta8/.git/objects/9c/
tf5-5.0beta8/.git/objects/9d/
tf5-5.0beta8/.git/objects/9e/
tf5-5.0beta8/.git/objects/a1/
tf5-5.0beta8/.git/objects/a3/
tf5-5.0beta8/.git/objects/a4/
tf5-5.0beta8/.git/objects/a6/
tf5-5.0beta8/.git/objects/a7/
tf5-5.0beta8/.git/objects/a8/
tf5-5.0beta8/.git/objects/a9/
tf5-5.0beta8/.git/objects/ab/
tf5-5.0beta8/.git/objects/ac/
tf5-5.0beta8/.git/objects/ae/
tf5-5.0beta8/.git/objects/b1/
tf5-5.0beta8/.git/objects/b2/
tf5-5.0beta8/.git/objects/b3/
tf5-5.0beta8/.git/objects/b7/
tf5-5.0beta8/.git/objects/b9/
tf5-5.0beta8/.git/objects/bb/
tf5-5.0beta8/.git/objects/bc/
tf5-5.0beta8/.git/objects/bd/
tf5-5.0beta8/.git/objects/bf/
tf5-5.0beta8/.git/objects/c0/
tf5-5.0beta8/.git/objects/c1/
tf5-5.0beta8/.git/objects/c2/
tf5-5.0beta8/.git/objects/c3/
tf5-5.0beta8/.git/objects/c5/
tf5-5.0beta8/.git/objects/c7/
tf5-5.0beta8/.git/objects/ca/
tf5-5.0beta8/.git/objects/ce/
tf5-5.0beta8/.git/objects/d1/
tf5-5.0beta8/.git/objects/d3/
tf5-5.0beta8/.git/objects/d4/
tf5-5.0beta8/.git/objects/d5/
tf5-5.0beta8/.git/objects/d8/
tf5-5.0beta8/.git/objects/d9/
tf5-5.0beta8/.git/objects/dc/
tf5-5.0beta8/.git/objects/dd/
tf5-5.0beta8/.git/objects/e1/
tf5-5.0beta8/.git/objects/e4/
tf5-5.0beta8/.git/objects/e5/
tf5-5.0beta8/.git/objects/e6/
tf5-5.0beta8/.git/objects/e7/
tf5-5.0beta8/.git/objects/e8/
tf5-5.0beta8/.git/objects/ea/
tf5-5.0beta8/.git/objects/eb/
tf5-5.0beta8/.git/objects/ed/
tf5-5.0beta8/.git/objects/ee/
tf5-5.0beta8/.git/objects/ef/
tf5-5.0beta8/.git/objects/f0/
tf5-5.0beta8/.git/objects/f4/
tf5-5.0beta8/.git/objects/f5/
tf5-5.0beta8/.git/objects/f6/
tf5-5.0beta8/.git/objects/f8/
tf5-5.0beta8/.git/objects/f9/
tf5-5.0beta8/.git/objects/fa/
tf5-5.0beta8/.git/objects/fb/
tf5-5.0beta8/.git/objects/fc/
tf5-5.0beta8/.git/objects/fd/
tf5-5.0beta8/.git/refs/heads/
tf5-5.0beta8/.git/refs/tags/
tf5-5.0beta8/autom4te.cache/
tf5-5.0beta8/macos/
tf5-5.0beta8/unix/
tf5-5.0beta8/win32/
/*************************************************************************
 *  TinyFugue - programmable mud client
 *  Copyright (C) 2000-2003, 2004, 2005, 2006-2007 Ken Keys
 *
 *  TinyFugue (aka "tf") is protected under the terms of the GNU
 *  General Public License.  See the file "COPYING" for details.
 ************************************************************************/
/* $Id: opcodes.h,v 35004.29 2007/01/13 23:12:39 kkeys Exp $ */

/*
 * Expression operators use the ASCII character as their opcode to be
 * mnemonic; other operators use characters just because that's the easiest
 * way to avoid colliding with the expression operator characters and
 * keep them in the 0x7F OPNUM_MASK space.
 */

/*        label     code  type  arg   flag */
/*        -----     ----  ----  ---   ---- */

/* 01-3F: expression operators.  Flag: has side effect */
defopcode(EQUAL    ,0x01, EXPR, INT,  0)     /*  ==  */
defopcode(NOTEQ    ,0x02, EXPR, INT,  0)     /*  !=  */
defopcode(GTE      ,0x03, EXPR, INT,  0)     /*  >=  */
defopcode(LTE      ,0x04, EXPR, INT,  0)     /*  <=  */
defopcode(STREQ    ,0x05, EXPR, INT,  0)     /*  =~  */
defopcode(STRNEQ   ,0x06, EXPR, INT,  0)     /*  !~  */
defopcode(MATCH    ,0x07, EXPR, INT,  0)     /*  =/  */
defopcode(NMATCH   ,0x08, EXPR, INT,  0)     /*  !/  */
defopcode(ASSIGN   ,':',  EXPR, INT,  SIDE)  /*  :=  */
defopcode(PREINC   ,0x0A, EXPR, INT,  SIDE)  /*  ++  */
defopcode(PREDEC   ,0x0B, EXPR, INT,  SIDE)  /*  --  */
defopcode(POSTINC  ,0x0C, EXPR, INT,  SIDE)  /*  ++  */
defopcode(POSTDEC  ,0x0D, EXPR, INT,  SIDE)  /*  --  */
defopcode(FUNC     ,0x0E, EXPR, INT,  SIDE)  /*  name(...)  */
defopcode(NOT      ,'!',  EXPR, INT,  0)     /*  !   */
defopcode(MUL      ,'*',  EXPR, INT,  0)     /*  *   */
defopcode(MULA     ,'*',  EXPR, INT,  SIDE)  /*  *=  */
defopcode(ADD      ,'+',  EXPR, INT,  0)     /*  +   */
defopcode(ADDA     ,'+',  EXPR, INT,  SIDE)  /*  +=  */
defopcode(SUB      ,'-',  EXPR, INT,  0)     /*  -   */
defopcode(SUBA     ,'-',  EXPR, INT,  SIDE)  /*  -=  */
defopcode(DIV      ,'/',  EXPR, INT,  0)     /*  /   */
defopcode(DIVA     ,'/',  EXPR, INT,  SIDE)  /*  /=  */
defopcode(LT       ,'<',  EXPR, INT,  0)     /*  <   */
defopcode(GT       ,'>',  EXPR, INT,  0)     /*  >   */

/* positional parameter substitution operators.  Flag: 0 push, 1 append */
defopcode(PPARM    ,'A', SUB,  INT,  0)     /* {3} positional param */
defopcode(APARM    ,'A', SUB,  INT,  APP)
defopcode(PXPARM   ,'B', SUB,  INT,  0)     /* {-3} complementary pos param */
defopcode(AXPARM   ,'B', SUB,  INT,  APP)
defopcode(PLPARM   ,'C', SUB,  INT,  0)     /* {L3} pos param, from end */
defopcode(ALPARM   ,'C', SUB,  INT,  APP)
defopcode(PLXPARM  ,'D', SUB,  INT,  0)     /* {-L3} comp pos param from end */
defopcode(ALXPARM  ,'D', SUB,  INT,  APP)
defopcode(PPARM_CNT,'E', SUB,  NONE, 0)     /* {#} pos. param. count */
defopcode(APARM_CNT,'E', SUB,  NONE, APP)
defopcode(PPARM_ALL,'F', SUB,  NONE, 0)     /* {*} all pos. params. */
defopcode(APARM_ALL,'F', SUB,  NONE, APP)
defopcode(PPARM_RND,'G', SUB,  NONE, 0)     /* {R} random pos. param. */
defopcode(APARM_RND,'G', SUB,  NONE, APP)

/* other substitution operators.  Flag: 0 push, 1 append */
defopcode(PRESULT  ,'P', SUB,  NONE, 0)     /* {?} user_result */
defopcode(ARESULT  ,'P', SUB,  NONE, APP)
defopcode(PREG     ,'Q', SUB,  INT,  0)     /* regexp captured string */
defopcode(AREG     ,'Q', SUB,  INT,  APP)
defopcode(PCMDSUB  ,'R', SUB,  NONE, 0)     /* output of a cmdsub */
defopcode(ACMDSUB  ,'R', SUB,  NONE, APP)
defopcode(PMAC     ,'S', SUB,  STRP, 0)     /* value of macro */
defopcode(AMAC     ,'S', SUB,  STRP, APP)
defopcode(PVAR     ,'T', SUB,  VALP, 0)     /* value of variable */
defopcode(AVAR     ,'T', SUB,  VALP, APP)
defopcode(PBUF     ,'U', SUB,  STRP, 0)	    /* buf */
/*defopcode(ABUF     ,'U', SUB,  STRP, APP)*/
defopcode(PCMDNAME ,'V', SUB, NONE, 0)	    /* {0} command name */
defopcode(ACMDNAME ,'V', SUB, NONE, APP)

/* jump operators.  Flag: negate condition */
defopcode(JZ       ,'0', JUMP, INT,  0)     /* jump if zero */
defopcode(JNZ      ,'0', JUMP, INT,  NEG)   /* jump if not zero */
defopcode(JRZ      ,'1', JUMP, INT,  0)     /* jump if user_result == 0 */
defopcode(JRNZ     ,'1', JUMP, INT,  NEG)   /* jump if user_result != 0 */
/*defopcode(JEMPTY   ,'2', JUMP, INT,  0)*/ /* jump if empty string */
defopcode(JNEMPTY  ,'2', JUMP, INT,  NEG)   /* jump if not empty string */
defopcode(JUMP     ,'3', JUMP, INT,  0)

/* control operators.  Flag: negate result. */
/* STRP defaults to buffer. */
defopcode(SEND     ,'a', CTRL, STRP, 0)     /* send string to server */
defopcode(EXECUTE  ,'b', CTRL, STRP, 0)     /* execute arbitrary cmd line */
defopcode(BUILTIN  ,'c', CTRL, CMDP, 0)     /* execute a resovled builtin */
defopcode(NBUILTIN ,'c', CTRL, CMDP, NEG)   /* execute a resovled builtin */
defopcode(COMMAND  ,'d', CTRL, CMDP, 0)     /* execute a resovled command */
defopcode(NCOMMAND ,'d', CTRL, CMDP, NEG)   /* execute a resovled command */
defopcode(MACRO    ,'e', CTRL, VALP, 0)     /* execute a macro cmd line */
defopcode(NMACRO   ,'e', CTRL, VALP, NEG)   /* execute a macro cmd line */
defopcode(ARG      ,'f', CTRL, STRP, 0)     /* arg for BUILTIN, COMMAND, SET */
defopcode(APPEND   ,'g', CTRL, STRP, 0)
defopcode(PUSHBUF  ,'h', CTRL, NONE, 0)
defopcode(POPBUF   ,'i', CTRL, NONE, 0)
defopcode(CMDSUB   ,'j', CTRL, NONE, 0)     /* new frame & tfout queue */
/*defopcode(POPFILE  ,'k', CTRL, CHAR, 0)*/ /* pop pointer to a tfile */
defopcode(PUSH     ,'l', CTRL, VALP, 0)
defopcode(POP      ,'m', CTRL, NONE, 0)
defopcode(DUP      ,'n', CTRL, INT,  0)
defopcode(RETURN   ,'o', CTRL, VALP, 0)
defopcode(RESULT   ,'p', CTRL, VALP, 0)
defopcode(TEST     ,'q', CTRL, VALP, 0)
defopcode(DONE     ,'s', CTRL, NONE, 0)
defopcode(ENDIF    ,'t', CTRL, NONE, 0)
defopcode(PIPE     ,'u', CTRL, NONE, 0)     /* pipe from this stmt to next */
defopcode(NOP      ,'v', CTRL, NONE, 0)
defopcode(EXPR     ,'w', CTRL, NONE, 0)
defopcode(LET      ,'x', CTRL, VALP, 0)	    /* set local variable */
defopcode(SET      ,'y', CTRL, VALP, 0)	    /* set global variable */
defopcode(SETENV   ,'z', CTRL, VALP, 0)	    /* set environment variable */

#undef defopcode