# cromemco 2D config file
# derived from imsai 2D config file

# This file is a configuration file for the FrontPanel simulation library
# which defines a 2-dimensional model of the Imsai 8080 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 
 # normal graphics
 texture cromemco_1024.jpg
 #hi definition graphics
 #texture cromemco_1600.jpg

 color 1 1 1
 polygon
 v .0 .0
 #t 0 0

 v 17.25 .0
 #t .5 0

 v 17.25 7.0
 #t .5 .5

 v .0 7.0
 #t 0 .5 

#object cover
#color 0 .4 1

polygon
v 0 0
v .125 0
v .125 7
v 0 7

polygon
v 0 6.875
v 17.25 6.875
v 17.25 7
v 0 7

polygon
v 17.125 0
v 17.25 0
v 17.25 7
v 17.125 7

# switches
# --------

object pwr_sw_up
texture pwr_sw_up.jpg
referenced
color 1  1 1
polygon
v 0 0
v 1 0
v 1 1
v 0 1

object pwr_sw_dn
texture pwr_sw_dn.jpg
referenced
color 1  1 1
polygon
v 0 0
v 1 0
v 1 1
v 0 1

object red_sw_down
texture paddle_dn_red.jpg
referenced
color 1  1 1
polygon
v 0 0
v 1 0
v 1 1
v 0 1

object red_sw_up
texture paddle_up_red.jpg
referenced
color 1  1 1
polygon
v 0 0
v 1 0
v 1 1
v 0 1

object red_sw_center
texture paddle_cent_red.jpg
referenced
color 1  1 1
polygon
v 0 0
v 1 0
v 1 1
v 0 1

object blue_sw_down
texture paddle_dn_blue.jpg
referenced
color 1 1 1
polygon
v 0 0
v 1 0
v 1 1
v 0 1

object blue_sw_up
texture paddle_up_blue.jpg
referenced
color 1 1 1
polygon
v 0 0
v 1 0
v 1 1
v 0 1

object blue_sw_center
texture paddle_cent_blue.jpg
referenced
color 1 1 1
polygon
v 0 0
v 1 0
v 1 1
v 0 1

#switches

switch SW_15 type=object operate=toggle objects=blue_sw_down,blue_sw_up pos=.7,1.6,0. size=.65,1.2,1
switch SW_14 type=object operate=toggle objects=blue_sw_down,blue_sw_up pos=1.37,1.6,0. size=.65,1.2,1
switch SW_13 type=object operate=toggle objects=blue_sw_down,blue_sw_up pos=2.02,1.6,0. size=.65,1.2,1
switch SW_12 type=object operate=toggle objects=blue_sw_down,blue_sw_up pos=2.67,1.6,0. size=.65,1.2,1

switch SW_11 type=object operate=toggle objects=red_sw_down,red_sw_up pos=3.32,1.6,0. size=.65,1.2,1
switch SW_10 type=object operate=toggle objects=red_sw_down,red_sw_up pos=3.97,1.6,0. size=.65,1.2,1
switch SW_09 type=object operate=toggle objects=red_sw_down,red_sw_up pos=4.64,1.6,0. size=.65,1.2,1
switch SW_08 type=object operate=toggle objects=red_sw_down,red_sw_up pos=5.31,1.6,0. size=.65,1.2,1

switch SW_07 type=object  operate=toggle objects=blue_sw_down,blue_sw_up pos=6.65,1.6,0. size=.65,1.2,1
switch SW_06 type=object operate=toggle objects=blue_sw_down,blue_sw_up pos=7.33,1.6,0. size=.65,1.2,1
switch SW_05 type=object operate=toggle objects=blue_sw_down,blue_sw_up pos=7.98,1.6,0. size=.65,1.2,1
switch SW_04 type=object operate=toggle objects=blue_sw_down,blue_sw_up pos=8.63,1.6,0. size=.65,1.2,1

switch SW_03 type=object operate=toggle objects=red_sw_down,red_sw_up pos=9.28,1.6,0. size=.65,1.2,1
switch SW_02 type=object operate=toggle objects=red_sw_down,red_sw_up pos=9.95,1.6,0. size=.65,1.2,1
switch SW_01 type=object operate=toggle objects=red_sw_down,red_sw_up pos=10.62,1.6,0. size=.65,1.2,1
switch SW_00 type=object operate=toggle objects=red_sw_down,red_sw_up pos=11.28,1.6,0. size=.65,1.2,1

switch SW_EXAMINE type=object  operate=mom_off_mom objects=blue_sw_down,blue_sw_up,blue_sw_center pos=12.65,1.6,0. size=.6,1.2,1
switch SW_DEPOSIT type=object  operate=mom_off_mom objects=red_sw_down,red_sw_up,red_sw_center pos=13.30,1.6,0. size=.6,1.2,1
switch SW_RESET   type=object  operate=mom_off_mom objects=blue_sw_down,blue_sw_up,blue_sw_center pos=13.95,1.6,0. size=.6,1.2,1
switch SW_RUN     type=object  operate=mom_off_mom objects=red_sw_down,red_sw_up,red_sw_center pos=14.60,1.6,0. size=.6,1.2,1
switch SW_STEP type=object  operate=mom_off_mom objects=blue_sw_down,blue_sw_up,blue_sw_center pos=15.25,1.6,0. size=.6,1.2,1
switch SW_PWR  type=object  operate=toggle objects=pwr_sw_dn,pwr_sw_up pos=15.90,1.6,0. size=.7,1.2,1

#address lights

light LED_ADDR_00 pos=11.56,3.80
light LED_ADDR_01 pos=10.90,3.80
light LED_ADDR_02 pos=10.25,3.80
light LED_ADDR_03 pos=9.56,3.80
light LED_ADDR_04 pos=8.95,3.80
light LED_ADDR_05 pos=8.30,3.80
light LED_ADDR_06 pos=7.60,3.80
light LED_ADDR_07 pos=6.95,3.80

light LED_ADDR_08 pos=5.60,3.80
light LED_ADDR_09 pos=4.95,3.80
light LED_ADDR_10 pos=4.30,3.80
light LED_ADDR_11 pos=3.60,3.80
light LED_ADDR_12 pos=2.99,3.80
light LED_ADDR_13 pos=2.34,3.80
light LED_ADDR_14 pos=1.68,3.80
light LED_ADDR_15 pos=1.05,3.80

# data lights

light LED_DATA_00 pos=11.56,4.85
light LED_DATA_01 pos=10.90,4.85
light LED_DATA_02 pos=10.25,4.85
light LED_DATA_03 pos=9.56,4.85
light LED_DATA_04 pos=8.95,4.85
light LED_DATA_05 pos=8.30,4.85
light LED_DATA_06 pos=7.60,4.85
light LED_DATA_07 pos=6.95,4.85

# cpu status lights 

light LED_STATUS_00 pos=5.60,4.85 group=0
light LED_STATUS_01 pos=4.95,4.85 group=0
light LED_STATUS_02 pos=4.30,4.85
light LED_STATUS_03 pos=3.60,4.85 group=0
light LED_STATUS_04 pos=2.99,4.85 group=0
light LED_STATUS_05 pos=2.34,4.85 group=0
light LED_STATUS_06 pos=1.68,4.85 group=0
light LED_STATUS_07 pos=1.05,4.85 group=0

# programmed output lights

light LED_DATOUT_00 pos=5.60,6.00
light LED_DATOUT_01 pos=4.95,6.00
light LED_DATOUT_02 pos=4.30,6.00
light LED_DATOUT_03 pos=3.60,6.00
light LED_DATOUT_04 pos=2.99,6.00
light LED_DATOUT_05 pos=2.34,6.00
light LED_DATOUT_06 pos=1.68,6.00
light LED_DATOUT_07 pos=1.05,6.00

# other status lights

light LED_RUN pos=14.95,3.85
light LED_INTEN pos=14.30,3.85
light LED_WAIT pos=15.50,3.85
light LED_HOLD pos=16.10,3.85
