Skip to content

Layout for tek4404 #13534

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions src/mame/layout/tek4404.lay
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0"?>
<!--
license:CC0-1.0
authors: Elektraglide

Tektronix 4404 Artificial Intelligence System.
-->
<mamelayout version="2">
<element name="static_black"><rect><color red="0.0" green="0.0" blue="0.0" /></rect></element>
<element name="led_round" defstate="1">
<disk state="1">
<color red="0.2" green="0.0" blue="0.0" />
</disk>
<disk state="0">
<color red="1.0" green="0.0" blue="0.0" />
</disk>
</element>
<element name="led_rect" defstate="1">
<rect state="1">
<color red="0.2" green="0.0" blue="0.0" />
</rect>
<rect state="0">
<color red="1.0" green="0.1" blue="0.1" />
</rect>
</element>
<view name="Graphics">
<bounds x="0" y="0" width="640" height="496" />

<screen index="0">
<bounds x="0" y="0" width="640" height="480" />
</screen>
<element name="spacer" ref="static_black">
<bounds x="0" y="480" width="640" height="16" />
</element>
Comment on lines +32 to +34
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don’t really need this thing as you’ve got explicit bounds for the view, and the LEDs will draw on top of the black background anyway. But if you insist on using it, you’re better off putting it behind the screen rather than on top to ensure it doesn’t slightly crop the bottom of the screen when the floating point view coordinates are quantised to whole pixel values.


<element name="led_1" ref="led_round">
<bounds x="46" y="484" width="8" height="8" />
</element>
<element name="led_2" ref="led_round">
<bounds x="34" y="484" width="8" height="8" />
</element>
<element name="led_4" ref="led_round">
<bounds x="22" y="484" width="8" height="8" />
</element>
<element name="led_8" ref="led_round">
<bounds x="10" y="484" width="8" height="8" />
</element>
<element name="led_disk" ref="led_rect">
<bounds x="614" y="485" width="16" height="6" />
</element>
Comment on lines +36 to +50
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be a good idea to add text labels for the LEDs? As it is, there are three identical-looking round LEDs, the function of which won’t be clear without examining the source. Also, the outputs corresponding to these don’t appear to actually be hooked up?

</view>
</mamelayout>
4 changes: 4 additions & 0 deletions src/mame/tektronix/tek440x.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@
#include "screen.h"
#include "speaker.h"

#include "tek4404.lh"

#include "logmacro.h"

namespace {
Expand Down Expand Up @@ -467,6 +469,8 @@ void tek440x_state::tek4404(machine_config &config)
SPEAKER(config, "mono").front_center();

SN76496(config, m_snsnd, 25.2_MHz_XTAL / 8).add_route(ALL_OUTPUTS, "mono", 0.80);

config.set_default_layout(layout_tek4404);
}


Expand Down
Loading