-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Sys68k cpu20 #14876
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
JoakimLarsson
wants to merge
3
commits into
mamedev:master
Choose a base branch
from
JoakimLarsson:sys68k-cpu20
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Sys68k cpu20 #14876
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,158 @@ | ||
| <?xml version="1.0"?> | ||
| <!-- | ||
| license:CC0-1.0 | ||
| copyright-holders:Joakim Larsson Edstrom | ||
|
|
||
| Force Computers SYS68K/CPU-21 front panel layout | ||
| --> | ||
| <mamelayout version="2"> | ||
|
|
||
| <!-- Background colors --> | ||
| <element name="panel_bg"> | ||
| <rect><color red="0.15" green="0.15" blue="0.15" /></rect> | ||
| </element> | ||
| <element name="silver"> | ||
| <rect><color red="0.75" green="0.75" blue="0.75" /></rect> | ||
| </element> | ||
|
|
||
| <!-- LED element (green, active high) --> | ||
| <element name="led_green" defstate="0"> | ||
| <disk state="0"><color red="0.1" green="0.2" blue="0.1" /></disk> | ||
| <disk state="1"><color red="0.0" green="1.0" blue="0.0" /></disk> | ||
| </element> | ||
|
|
||
| <!-- Text labels (white on dark) --> | ||
| <element name="txt_cpu21"><text string="CPU-21"><color red="0.9" green="0.9" blue="0.9" /></text></element> | ||
| <element name="txt_run"><text string="RUN"><color red="0.9" green="0.9" blue="0.9" /></text></element> | ||
| <element name="txt_hlt"><text string="HLT"><color red="0.9" green="0.9" blue="0.9" /></text></element> | ||
| <element name="txt_bm"><text string="BM"><color red="0.9" green="0.9" blue="0.9" /></text></element> | ||
| <element name="txt_flm"><text string="FLM"><color red="0.9" green="0.9" blue="0.9" /></text></element> | ||
| <element name="txt_epr"><text string="EPR"><color red="0.9" green="0.9" blue="0.9" /></text></element> | ||
| <element name="txt_2ws"><text string="2WS"><color red="0.9" green="0.9" blue="0.9" /></text></element> | ||
| <element name="txt_4ws"><text string="4WS"><color red="0.9" green="0.9" blue="0.9" /></text></element> | ||
| <element name="txt_6ws"><text string="6WS"><color red="0.9" green="0.9" blue="0.9" /></text></element> | ||
| <element name="txt_8ws"><text string="8WS"><color red="0.9" green="0.9" blue="0.9" /></text></element> | ||
| <element name="txt_12ws"><text string="12WS"><color red="0.9" green="0.9" blue="0.9" /></text></element> | ||
| <element name="txt_14ws"><text string="14WS"><color red="0.9" green="0.9" blue="0.9" /></text></element> | ||
| <element name="txt_csh"><text string="CSH"><color red="0.9" green="0.9" blue="0.9" /></text></element> | ||
| <element name="txt_rm"><text string="R/M"><color red="0.9" green="0.9" blue="0.9" /></text></element> | ||
| <element name="txt_rs232"><text string="RS232"><color red="0.9" green="0.9" blue="0.9" /></text></element> | ||
| <element name="txt_p4"><text string="P4"><color red="0.9" green="0.9" blue="0.9" /></text></element> | ||
| <element name="txt_p3"><text string="P3"><color red="0.9" green="0.9" blue="0.9" /></text></element> | ||
|
|
||
| <!-- Interactive button elements (two-state for press feedback) --> | ||
| <element name="btn_rst" defstate="0"> | ||
| <rect state="0"><color red="0.25" green="0.25" blue="0.25" /></rect> | ||
| <rect state="1"><color red="0.40" green="0.40" blue="0.40" /></rect> | ||
| <text string="RST"><color red="0.9" green="0.9" blue="0.9" /></text> | ||
| </element> | ||
| <element name="btn_abt" defstate="0"> | ||
| <rect state="0"><color red="0.25" green="0.25" blue="0.25" /></rect> | ||
| <rect state="1"><color red="0.40" green="0.40" blue="0.40" /></rect> | ||
| <text string="ABT"><color red="0.9" green="0.9" blue="0.9" /></text> | ||
| </element> | ||
|
|
||
| <!-- Non-interactive button elements --> | ||
| <element name="btn_dark"> | ||
| <rect><color red="0.25" green="0.25" blue="0.25" /></rect> | ||
| </element> | ||
|
|
||
| <!-- DB25 connector rectangle --> | ||
| <element name="db25"> | ||
| <rect><color red="0.60" green="0.60" blue="0.60" /></rect> | ||
| </element> | ||
|
|
||
| <!-- Connection status (4-state output) --> | ||
| <element name="conn_status" defstate="0"> | ||
| <text state="0" string="--"><color red="0.5" green="0.5" blue="0.5" /></text> | ||
| <text state="1" string="TERMINAL"><color red="0.0" green="1.0" blue="0.0" /></text> | ||
| <text state="2" string="NULL MODEM"><color red="0.0" green="1.0" blue="0.0" /></text> | ||
| <text state="3" string="PRINTER"><color red="0.0" green="1.0" blue="0.0" /></text> | ||
| </element> | ||
|
|
||
| <!-- Front panel group (reusable across views) --> | ||
| <group name="panel"> | ||
| <!-- Dark panel background --> | ||
| <element ref="panel_bg"><bounds x="0" y="0" width="46" height="345" /></element> | ||
| <!-- Silver accent strip --> | ||
| <element ref="silver"><bounds x="46" y="0" width="2" height="345" /></element> | ||
|
|
||
| <!-- Title --> | ||
| <element ref="txt_cpu21"><bounds x="3" y="5" width="40" height="14" /></element> | ||
|
|
||
| <!-- RST button (interactive) --> | ||
| <element ref="btn_rst" inputtag="PANEL" inputmask="0x01"><bounds x="8" y="30" width="30" height="16" /></element> | ||
|
|
||
| <!-- ABT button (interactive) --> | ||
| <element ref="btn_abt" inputtag="PANEL" inputmask="0x02"><bounds x="8" y="50" width="30" height="16" /></element> | ||
|
|
||
| <!-- LEDs with labels --> | ||
| <!-- RUN --> | ||
| <element name="led_run" ref="led_green"><bounds x="6" y="82" width="8" height="8" /></element> | ||
| <element ref="txt_run"><bounds x="16" y="81" width="26" height="10" /></element> | ||
| <!-- HLT --> | ||
| <element name="led_hlt" ref="led_green"><bounds x="6" y="96" width="8" height="8" /></element> | ||
| <element ref="txt_hlt"><bounds x="16" y="95" width="26" height="10" /></element> | ||
| <!-- BM --> | ||
| <element name="led_bm" ref="led_green"><bounds x="6" y="110" width="8" height="8" /></element> | ||
| <element ref="txt_bm"><bounds x="16" y="109" width="26" height="10" /></element> | ||
|
|
||
| <!-- FLM --> | ||
| <element name="led_flm" ref="led_green"><bounds x="6" y="132" width="8" height="8" /></element> | ||
| <element ref="txt_flm"><bounds x="16" y="131" width="26" height="10" /></element> | ||
| <!-- EPR --> | ||
| <element name="led_epr" ref="led_green"><bounds x="6" y="146" width="8" height="8" /></element> | ||
| <element ref="txt_epr"><bounds x="16" y="145" width="26" height="10" /></element> | ||
| <!-- 2WS --> | ||
| <element name="led_2ws" ref="led_green"><bounds x="6" y="160" width="8" height="8" /></element> | ||
| <element ref="txt_2ws"><bounds x="16" y="159" width="26" height="10" /></element> | ||
| <!-- 4WS --> | ||
| <element name="led_4ws" ref="led_green"><bounds x="6" y="174" width="8" height="8" /></element> | ||
| <element ref="txt_4ws"><bounds x="16" y="173" width="26" height="10" /></element> | ||
| <!-- 6WS --> | ||
| <element name="led_6ws" ref="led_green"><bounds x="6" y="188" width="8" height="8" /></element> | ||
| <element ref="txt_6ws"><bounds x="16" y="187" width="26" height="10" /></element> | ||
| <!-- 8WS --> | ||
| <element name="led_8ws" ref="led_green"><bounds x="6" y="202" width="8" height="8" /></element> | ||
| <element ref="txt_8ws"><bounds x="16" y="201" width="26" height="10" /></element> | ||
| <!-- 12WS --> | ||
| <element name="led_12ws" ref="led_green"><bounds x="6" y="216" width="8" height="8" /></element> | ||
| <element ref="txt_12ws"><bounds x="16" y="215" width="26" height="10" /></element> | ||
| <!-- 14WS --> | ||
| <element name="led_14ws" ref="led_green"><bounds x="6" y="230" width="8" height="8" /></element> | ||
| <element ref="txt_14ws"><bounds x="16" y="229" width="26" height="10" /></element> | ||
|
|
||
| <!-- CSH button --> | ||
| <element ref="btn_dark"><bounds x="8" y="254" width="30" height="16" /></element> | ||
| <element ref="txt_csh"><bounds x="8" y="256" width="30" height="12" /></element> | ||
|
|
||
| <!-- R/M button --> | ||
| <element ref="btn_dark"><bounds x="8" y="274" width="30" height="16" /></element> | ||
| <element ref="txt_rm"><bounds x="8" y="276" width="30" height="12" /></element> | ||
|
|
||
| <!-- Serial port area --> | ||
| <element ref="txt_rs232"><bounds x="3" y="298" width="40" height="10" /></element> | ||
|
|
||
| <!-- P4 connector (rs232p1 - terminal) --> | ||
| <element ref="txt_p4"><bounds x="3" y="312" width="18" height="8" /></element> | ||
| <element ref="db25"><bounds x="5" y="321" width="14" height="7" /></element> | ||
| <element name="p4_conn" ref="conn_status"><bounds x="1" y="330" width="22" height="8" /></element> | ||
|
|
||
| <!-- P3 connector (rs232p2) --> | ||
| <element ref="txt_p3"><bounds x="25" y="312" width="18" height="8" /></element> | ||
| <element ref="db25"><bounds x="27" y="321" width="14" height="7" /></element> | ||
| <element name="p3_conn" ref="conn_status"><bounds x="23" y="330" width="22" height="8" /></element> | ||
| </group> | ||
|
|
||
| <!-- Front Panel: standalone panel strip (always available) --> | ||
| <view name="Front Panel"> | ||
| <group ref="panel"><bounds x="0" y="0" width="48" height="345" /></group> | ||
| </view> | ||
|
|
||
| <!-- Front Panel with Terminal: panel strip + terminal side by side (dropped if no terminal) --> | ||
| <view name="Front Panel with Terminal"> | ||
| <group ref="panel"><bounds x="0" y="0" width="48" height="345" /></group> | ||
| <screen tag="rs232p1:terminal:terminal_screen"><bounds x="52" y="0" width="460" height="345" /></screen> | ||
| </view> | ||
|
|
||
| </mamelayout> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That looks hacky IMO. Why does it need to know this? Is it only for aesthetics? I saw the same thing in your previous commit.
edit: maybe can be done with luascript in the .lay file? Still hacky, but better there than in the device.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be, since there are no possibility to view any cables when plugged in it is helpful to know what device is plugged in where so I just added some text to indicate that. Manuals usually talk about plugin the terminal in port p2 and printer in p4 or whatever. But there might be a better way to know that, apart from remember it