48 lines
2.4 KiB
HTML
48 lines
2.4 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta charset="utf-8"></meta>
|
||
|
<!-- TODO probably use something else that doesn't use Cloudflare -->
|
||
|
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/brython@3.12.2/brython.min.js"></script>
|
||
|
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/brython@3.12.2/brython_stdlib.js"></script>
|
||
|
<script type="text/python" src="./dis.py" id="unspdis"></script>
|
||
|
<title>unsp-dasm</title>
|
||
|
|
||
|
<script type="text/python">
|
||
|
import browser
|
||
|
import unspdis
|
||
|
|
||
|
dis_input = browser.document['disassemble-input']
|
||
|
dis_output = browser.document['disassemble-output']
|
||
|
def hello(ev):
|
||
|
args = []
|
||
|
for value in dis_input.value.split(' '):
|
||
|
args.append(int(value, 16))
|
||
|
|
||
|
if len(args) == 1:
|
||
|
args.append(0)
|
||
|
|
||
|
dis_output.value = unspdis.disassemble(args)
|
||
|
|
||
|
browser.document['disassemble-button'].bind('click', hello)
|
||
|
</script>
|
||
|
</head>
|
||
|
|
||
|
<body style="font-family: sans-serif;">
|
||
|
<h1>unsp-das</h1>
|
||
|
<noscript>You seem to have JavaScript disabled. If you don't want to enable it, feel free to download the program below.</noscript>
|
||
|
<div class="disassembler">
|
||
|
<textarea id="disassemble-input" cols="20" rows="3" placeholder="93FF"></textarea>
|
||
|
<textarea id="disassemble-output" cols="20" rows="3" disabled></textarea>
|
||
|
<button id="disassemble-button">Disassemble</button>
|
||
|
</div>
|
||
|
|
||
|
<div class="info">
|
||
|
<h2>What is this?</h2>
|
||
|
<p>This is an personal attempt at creating a disassembler for the µ'nSP ISA created by Sunplus Technology.</p>
|
||
|
<p>The µ'nSP architecture is an 16-bit CPU architecture that was used on microcontrollers and some plug-and-play video game devices (Such as the various Jakks Pacific GameKey-board consoles and the VTech V.Smile).</p>
|
||
|
<p>This disassembler was written in Python and runs on the web using <a href="https://brython.info">Brython</a>.</p>
|
||
|
<p>Source is available at <a href="https://git.nadeko.net/Serg2/unsp-dasm">git.nadeko.net/Serg2/unsp-dasm</a> and is licensed under the MIT No Attribution license.</p>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|