-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from rbaker26/gui_work_emulator
GUI Work and Link Fixes
- Loading branch information
Showing
8 changed files
with
121 additions
and
38 deletions.
There are no files selected for viewing
This file contains 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 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 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 |
---|---|---|
@@ -1,7 +1,59 @@ | ||
|
||
<script src="/js/CodeMirror/lib/codemirror.js"></script> | ||
<script src="/js/CodeMirror/mode/gas/gas_sap1.js" type="text/javascript"></script> | ||
<link href="/js/CodeMirror/lib/codemirror.css" rel="stylesheet" type="text/css" /> | ||
|
||
<script src="/lib/jquery/dist/jquery.js" type="text/javascript"></script> | ||
<script src="/js/Views/EmulatorView.js" type="text/javascript"></script> | ||
|
||
@{ | ||
ViewData["Title"] = "Emulator"; | ||
} | ||
|
||
<h1>Emulator</h1> | ||
|
||
<div class="row"> | ||
<div class="column2"> | ||
<h3>Assembly</h3> | ||
<br /> | ||
|
||
<form id="asm_form" method="post" action="AssembleCode"> | ||
@Html.TextArea("CodeList", null, new { rows = "20", cols = "80", @class = "codebox", id = "asm_code" }) | ||
<input type="button" name="CodeList" value="Assemble" onclick="AssembleCode(this)" /> | ||
<input type="button" value="Load from File" /> | ||
</form> | ||
<br /> | ||
<br /> | ||
</div> | ||
<div class="column2"> | ||
<div class="vbox_sap"> | ||
<div> | ||
<h3>SAP1</h3> | ||
</div> | ||
<div class="hbox_sap"> | ||
<div> | ||
<h3>RAM</h3> | ||
@Html.TextArea("ram_dump", null, new { rows = "16", cols = "20", @class = "codebox", id = "ram_dump" }) | ||
</div> | ||
<div vbox_sap> | ||
<div> | ||
<h3>Controls</h3> | ||
<button></button> <button></button> <br /> | ||
<button></button> <br /> | ||
</div> | ||
<div> | ||
<h3>Flags</h3> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<br /> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="column1"> | ||
<h4>Emulator Output</h4> | ||
<code class="emulator-out" id="emulator-out"><br /></code> | ||
</div> | ||
<div>@*This blank div is req to trick the row::after or else the margins get screwed up*@</div> | ||
</div> |
This file contains 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 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 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,12 @@ | ||
| ||
|
||
function openGithub() { | ||
const { ipcRenderer } = require("electron"); | ||
ipcRenderer.send("open-github-profile"); | ||
} | ||
|
||
|
||
function openBenEater() { | ||
const { ipcRenderer } = require("electron"); | ||
ipcRenderer.send("open-ben-eater"); | ||
} |
This file contains 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,22 @@ | ||
var asm_editor; | ||
var ram_dump; | ||
|
||
window.onload = function () { | ||
asm_editor = CodeMirror.fromTextArea(document.getElementById("asm_code"), { | ||
lineNumbers: true, | ||
matchBrackets: true, | ||
mode: { name: "gas_sap1", architecture: "x86" }, | ||
}); | ||
|
||
ram_dump = CodeMirror.fromTextArea(document.getElementById("ram_dump"), { | ||
lineNumbers: true, | ||
matchBrackets: true, | ||
mode: { name: "gas_sap1", architecture: "x86" }, | ||
readOnly: true, | ||
firstLineNumber: 0, | ||
lineNumberFormatter: function (line) { return "0x" + line.toString(16).toLocaleUpperCase();}, | ||
}); | ||
|
||
// Init RAM Box | ||
ram_dump.setValue("0000 0000\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"); | ||
} |
This file contains 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,6 @@ | ||
| ||
|
||
function openWiki() { | ||
const { ipcRenderer } = require("electron"); | ||
ipcRenderer.send("open-wiki"); | ||
} |