# altair 2D config file
#

# This file is a configuration file for the FrontPanel simulation library
# which defines a 2-dimensional model of the Altair 8800 microcomputer

#  Copyright (c) 2007-2008, John Kichury

#   This software is freely distributable free of charge and without license fees with the
#   following conditions:

#   THE SOFTWARE AND DATA IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 
#   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
#   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
#   JOHN KICHURY BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
#   IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
#   CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

#   The above copyright notice must be included in any copies of this software.

object 
 texture altair_fp.jpg

 color 1 1 1
 polygon
 v .0 .0
 v 17.25 0.0
 v 17.25 7.0
 v .0 7.0

# switch graphics

object sw_down
 texture toggle_sw_down.jpg
 texture_scale 2.2 2.0
 texture_translate -.27 -.02
 referenced
 color 1 1 1
 polygon
 v -0.0831233 0.154485 0
 v -0.113966 0.134318 0
 v -0.158252 0.0908151 0
 v -0.186035 0.0362853 0
 v -0.195609 -0.0241609 0
 v -0.186035 -0.0846071 0
 v -0.159324 -0.139626 0
 v -0.12848 -0.169878 0
 v -0.161137 -0.270716 0
 v -0.175653 -0.316093 0
 v -0.177466 -0.351387 0
 v -0.173838 -0.393402 0
 v -0.155695 -0.433737 0
 v -0.132108 -0.462308 0
 v -0.0903802 -0.485837 0
 v -0.0486508 -0.495922 0
 v -0.00147927 -0.495922 0
 v 0.0438787 -0.477434 0
 v 0.0874217 -0.44046 0
 v 0.109193 -0.369873 0
 v 0.118264 -0.277438 0
 v 0.116451 -0.181643 0
 v 0.158252 -0.139137 0
 v 0.186035 -0.0846071 0
 v 0.195609 -0.0241609 0
 v 0.186035 0.0362853 0
 v 0.158179 0.0939824 0
 v 0.121893 0.130956 0
 v 0.0729065 0.156165 0
 v 0.0311784 0.16625 0
 v -0.0141796 0.169612 0
 v -0.0540942 0.16625 0

object sw_up
 texture toggle_sw_up.jpg
 texture_scale 1.99 1.42
 texture_translate -.25 -.27
 referenced
 color 1 1 1
 polygon
 v -0.0843328 0.15513 0
 v -0.114976 0.134091 0
 v -0.158252 0.0908151 0
 v -0.186035 0.0362853 0
 v -0.195609 -0.0241609 0
 v -0.186035 -0.0846071 0
 v -0.159799 -0.136728 0
 v -0.118293 -0.18042 0
 v -0.0616922 -0.21013 0
 v 0.00622666 -0.218869 0
 v 0.0816925 -0.199645 0
 v 0.142066 -0.159449 0
 v 0.183572 -0.098281 0
 v 0.195609 -0.0241609 0
 v 0.186035 0.0362853 0
 v 0.157158 0.0922134 0
 v 0.119425 0.134157 0
 v 0.112128 0.188237 0
 v 0.125675 0.228394 0
 v 0.144641 0.297416 0
 v 0.14735 0.350122 0
 v 0.137867 0.397809 0
 v 0.119425 0.43825 0
 v 0.0798061 0.473203 0
 v 0.0439596 0.488932 0
 v -0.00320655 0.495922 0
 v -0.0465999 0.485436 0
 v -0.0843328 0.46796 0
 v -0.112632 0.441745 0
 v -0.133385 0.410287 0
 v -0.150365 0.366596 0
 v -0.148479 0.319409 0
 v -0.139046 0.275718 0
 v -0.120179 0.232026 0
 v -0.0975387 0.19183 0

object sw_center
 texture toggle_sw_center.jpg
 texture_scale 1.7 2.3
 texture_translate -.22 -.25
 referenced
 color 1 1 1
 polygon
 v -0.0819899 0.156603 0
 v -0.114976 0.134091 0 
 v -0.158251 0.0908155 0
 v -0.186035 0.0362858 0
 v -0.195609 -0.0241606 0
 v -0.186035 -0.0846069 0
 v -0.158251 -0.139137 0
 v -0.114976 -0.182412 0
 v -0.0722825 -0.205182 0
 v -0.0322931 -0.217132 0
 v 0.00221312 -0.218969 0
 v 0.0604463 -0.210196 0
 v 0.114976 -0.182412 0
 v 0.158251 -0.139137 0
 v 0.186036 -0.0846069 0
 v 0.195609 -0.0241606 0
 v 0.186036 0.0362858 0
 v 0.158251 0.0908155 0
 v 0.122377 0.128218 0
 v 0.0915939 0.145374 0
 v 0.0734107 0.155343 0
 v 0.0289093 0.170029 0 
 v -0.016822 0.172306 0
 v -0.0537091 0.166855 0

lightsize .12 .12 .1

light LED_ADDR_15 pos=3.99,4.65
light LED_ADDR_14 pos=4.95,4.65
light LED_ADDR_13 pos=5.60,4.65
light LED_ADDR_12 pos=6.25,4.65
light LED_ADDR_11 pos=7.20,4.65
light LED_ADDR_10 pos=7.85,4.65
light LED_ADDR_09 pos=8.47,4.65
light LED_ADDR_08 pos=9.45,4.65
light LED_ADDR_07 pos=10.1,4.65
light LED_ADDR_06 pos=10.7,4.65
light LED_ADDR_05 pos=11.66,4.65
light LED_ADDR_04 pos=12.30,4.65
light LED_ADDR_03 pos=12.95,4.65
light LED_ADDR_02 pos=13.90,4.65
light LED_ADDR_01 pos=14.50,4.65
light LED_ADDR_00 pos=15.15,4.65

# data lights

light LED_DATA_07 pos=10.1,5.95
light LED_DATA_06 pos=10.7,5.95
light LED_DATA_05 pos=11.65,5.95
light LED_DATA_04 pos=12.30,5.95
light LED_DATA_03 pos=12.95,5.95
light LED_DATA_02 pos=13.85,5.95
light LED_DATA_01 pos=14.5,5.95
light LED_DATA_00 pos=15.15,5.95

# cpu status lights 

light LED_STATUS_00 pos=7.85,5.95 group=0
light LED_STATUS_01 pos=7.20,5.95 group=0
light LED_STATUS_02 pos=6.55,5.95 group=0
light LED_STATUS_03 pos=5.90,5.95 group=0
light LED_STATUS_04 pos=5.30,5.95 group=0
light LED_STATUS_05 pos=4.64,5.95 group=0
light LED_STATUS_06 pos=3.99,5.95 group=0
light LED_STATUS_07 pos=3.39,5.95 group=0

# other status lights

light LED_INTEN pos=2.09,5.95
light LED_PROT pos=2.74,5.95
light LED_WAIT pos=2.09,4.65
light LED_HOLD pos=2.74,4.65

switch SW_15 type=object operate=toggle objects=sw_down,sw_up pos=3.99,3.34,0.  size=.6,.6
switch SW_14 type=object operate=toggle objects=sw_down,sw_up pos=5.00,3.34,0.  size=.6,.6
switch SW_13 type=object operate=toggle objects=sw_down,sw_up pos=5.60,3.34,0.  size=.6,.6
switch SW_12 type=object operate=toggle objects=sw_down,sw_up pos=6.25,3.34,0.  size=.6,.6

switch SW_11 type=object operate=toggle objects=sw_down,sw_up pos=7.20,3.34,0.  size=.6,.6
switch SW_10 type=object operate=toggle objects=sw_down,sw_up pos=7.85,3.34,0.  size=.6,.6
switch SW_09 type=object operate=toggle objects=sw_down,sw_up pos=8.50,3.34,0.  size=.6,.6
switch SW_08 type=object operate=toggle objects=sw_down,sw_up pos=9.45,3.34,0.  size=.6,.6

switch SW_07 type=object operate=toggle objects=sw_down,sw_up pos=10.10,3.34,0. size=.6,.6
switch SW_06 type=object operate=toggle objects=sw_down,sw_up pos=10.75,3.34,0. size=.6,.6
switch SW_05 type=object operate=toggle objects=sw_down,sw_up pos=11.70,3.34,0. size=.6,.6
switch SW_04 type=object operate=toggle objects=sw_down,sw_up pos=12.35,3.34,0. size=.6,.6

switch SW_03 type=object operate=toggle objects=sw_down,sw_up pos=12.95,3.34,0. size=.6,.6
switch SW_02 type=object operate=toggle objects=sw_down,sw_up pos=13.90,3.34,0. size=.6,.6
switch SW_01 type=object operate=toggle objects=sw_down,sw_up pos=14.55,3.34,0. size=.6,.6
switch SW_00 type=object operate=toggle objects=sw_down,sw_up pos=15.20,3.34,0. size=.6,.6

switch SW_PWR type=object operate=toggle objects=sw_down,sw_up pos=1.00,2.04,0. size=.6,.6

switch SW_RUN type=object operate=mom_off_mom objects=sw_down,sw_up,sw_center pos=4.04,2.04,0. size=.6,.6
switch SW_STEP type=object operate=mom_off_mom objects=sw_down,sw_up,sw_center pos=5.30,2.04,0. size=.6,.6
switch SW_EXAMINE type=object operate=mom_off_mom objects=sw_down,sw_up,sw_center pos=6.60,2.04,0. size=.6,.6
switch SW_DEPOSIT type=object operate=mom_off_mom objects=sw_down,sw_up,sw_center pos=7.85,2.04,0. size=.6,.6
switch SW_RESET type=object operate=mom_off_mom objects=sw_down,sw_up,sw_center pos=9.15,2.04,0. size=.6,.6
switch SW_PROTECT type=object operate=mom_off_mom objects=sw_down,sw_up,sw_center pos=10.45,2.04,0. size=.6,.6
switch SW_INT type=object operate=mom_off_mom objects=sw_down,sw_up,sw_center pos=11.70,2.04,0. size=.6,.6
switch SW_AUX type=object operate=mom_off_mom objects=sw_down,sw_up,sw_center pos=13.00,2.04,0. size=.6,.6
