// @(#) $Header: /home/abrown/public_html/first/first2002chs/software2002/simulator/RCS/pb.h,v 1.6 2006/12/14 21:19:03 abrown Exp $
// Allen Brown  date="20061214 13:17:57"

/***********************************************************************
  * Copyright (C) 2002  Allen Brown
  * 
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 as
  * published by the Free Software Foundation.
  * 
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * 
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the
  *   Free Software Foundation, Inc.
  *   59 Temple Place, Suite 330
  *   Boston, MA  02111-1307  USA
  * 
  * To contact the author of this software:
  *   Allen Brown
  *   PO Box J
  *   Corvallis, OR
  * 
  *   http://brown.armoredpenguin.com/~abrown/contact.html
  ***********************************************************************/

#define DEBUG 1
#define BASEFORMAT 10
#define pbword8 -8
#define pbconst(a) a,pbword8
#define pbfunc(a) a,pbword8

#define bit0 0
#define bit1 1
#define bit2 2
#define bit3 3
#define bit4 4
#define bit5 5
#define bit6 6
#define bit7 7
typedef int pbword8_t;

#define out15 outbytehigh,7
#define out14 outbytehigh,6
#define out13 outbytehigh,5
#define out12 outbytehigh,4
#define out11 outbytehigh,3
#define out10 outbytehigh,2
#define out9 outbytehigh,1
#define out8 outbytehigh,0
#define out7 outbytelow,7
#define out6 outbytelow,6
#define out5 outbytelow,5
#define out4 outbytelow,4
#define out3 outbytelow,3
#define out2 outbytelow,2
#define out1 outbytelow,1
#define out0 outbytelow,0
#define in15 inbytehigh,7
#define in14 inbytehigh,6
#define in13 inbytehigh,5
#define in12 inbytehigh,4
#define in11 inbytehigh,3
#define in10 inbytehigh,2
#define in9 inbytehigh,1
#define in8 inbytehigh,0
#define in7 inbytelow,7
#define in6 inbytelow,6
#define in5 inbytelow,5
#define in4 inbytelow,4
#define in3 inbytelow,3
#define in2 inbytelow,2
#define in1 inbytelow,1
#define in0 inbytelow,0

