2024-02-15 05:32:54 +00:00
|
|
|
* {
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
#memory {
|
2024-02-15 03:54:23 +00:00
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
|
|
|
|
grid-gap: 5px;
|
|
|
|
padding: 10px;
|
2024-02-15 05:32:54 +00:00
|
|
|
border: 5px solid yellow;
|
2024-02-16 05:17:23 +00:00
|
|
|
/* color: lightgray; */
|
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
|
|
|
font-size: 0.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
#memory .instruction {
|
|
|
|
color: greenyellow;
|
|
|
|
}
|
|
|
|
#memory .constant {
|
|
|
|
color: purple;
|
|
|
|
}
|
|
|
|
#memory .register {
|
|
|
|
color: orange;
|
|
|
|
}
|
|
|
|
#memory .memory {
|
|
|
|
color: pink;
|
|
|
|
}
|
|
|
|
#memory .invalid_instruction {
|
|
|
|
color: maroon;
|
2024-02-15 03:54:23 +00:00
|
|
|
}
|
|
|
|
|
2024-02-15 05:32:54 +00:00
|
|
|
#memory div {
|
2024-02-15 03:54:23 +00:00
|
|
|
aspect-ratio: 1;
|
|
|
|
text-align: center;
|
|
|
|
margin: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
color: gray;
|
|
|
|
background-color: black;
|
|
|
|
font-size: 2.5em;
|
|
|
|
font-family: monospace;
|
|
|
|
}
|
|
|
|
|
2024-02-15 05:32:54 +00:00
|
|
|
#registers div {
|
|
|
|
max-height: min-content;
|
|
|
|
margin-block: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
#subcontainer {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
column-gap: 15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#labelcontainer {
|
|
|
|
column-gap: 18px;
|
|
|
|
font-size: 0.85em;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
2024-02-15 03:54:23 +00:00
|
|
|
#main {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
}
|
|
|
|
|
2024-02-15 05:32:54 +00:00
|
|
|
#title {
|
2024-02-16 05:17:23 +00:00
|
|
|
writing-mode: vertical-lr;
|
|
|
|
text-align: left;
|
2024-02-15 05:32:54 +00:00
|
|
|
user-select: none;
|
2024-02-16 05:17:23 +00:00
|
|
|
transform: scale(-1, -1);
|
2024-02-15 05:32:54 +00:00
|
|
|
}
|
|
|
|
|
2024-02-15 03:54:23 +00:00
|
|
|
#printout {
|
|
|
|
border: 4px dashed yellow;
|
|
|
|
width: 1000px;
|
|
|
|
padding: 10px;
|
|
|
|
margin-left: 20px;
|
|
|
|
word-wrap: break-word;
|
2024-02-15 04:05:22 +00:00
|
|
|
word-break: break-all;
|
2024-02-15 03:54:23 +00:00
|
|
|
}
|
|
|
|
|
2024-02-15 05:32:54 +00:00
|
|
|
#memory div.program_counter {
|
2024-02-15 03:54:23 +00:00
|
|
|
outline: 3px solid orange;
|
|
|
|
}
|
|
|
|
|
2024-02-15 05:32:54 +00:00
|
|
|
#memory div.instruction_argument {
|
2024-02-15 03:54:23 +00:00
|
|
|
outline: 3px dashed purple;
|
|
|
|
}
|
2024-02-15 05:32:54 +00:00
|
|
|
#memory div.current_instruction {
|
2024-02-15 03:54:23 +00:00
|
|
|
outline: 3px dashed greenyellow;
|
|
|
|
}
|
|
|
|
|
|
|
|
#registers {
|
|
|
|
border: 5px solid yellow;
|
2024-02-15 05:32:54 +00:00
|
|
|
border-bottom: none;
|
|
|
|
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
|
2024-02-15 03:54:23 +00:00
|
|
|
max-width: fit-content;
|
2024-02-15 05:32:54 +00:00
|
|
|
display: grid;
|
2024-02-15 03:54:23 +00:00
|
|
|
column-gap: 5px;
|
2024-02-15 05:32:54 +00:00
|
|
|
color: lightgray;
|
2024-02-15 03:54:23 +00:00
|
|
|
padding: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#container {
|
|
|
|
font-family: monospace;
|
|
|
|
max-width: min-content;
|
|
|
|
max-height: min-content;
|
|
|
|
}
|
2024-02-15 05:32:54 +00:00
|
|
|
|
|
|
|
button,
|
|
|
|
label.button {
|
|
|
|
border: 4px solid yellow;
|
|
|
|
color: gray;
|
|
|
|
margin: 10px;
|
|
|
|
margin-inline: 8px;
|
|
|
|
padding: 10px;
|
|
|
|
font-size: 0.8em;
|
|
|
|
font-family: monospace;
|
|
|
|
background-color: transparent;
|
|
|
|
cursor: pointer;
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
button:hover,
|
|
|
|
label.button:hover {
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
#controls_bar {
|
|
|
|
margin-left: 1.12em;
|
|
|
|
display: flex;
|
|
|
|
}
|