-
Notifications
You must be signed in to change notification settings - Fork 1
/
follow9.html
executable file
·63 lines (62 loc) · 4.25 KB
/
follow9.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>follow9</title>
<script type="text/javascript" src="follow9.js"></script>
</head>
<body>
<div style="float:left;width:40%;">
<h2>follow9 - Javascript 6x09 Disassembler</h2>
<label for="datafile">File:</label>
<input onclick="newFile()" type="file" id="datafile" name="datafile" required minlength="4" maxlength="8" size="10" />
<div style="margin-top:12px;"><label for="file_type">File Type:</label><input type="radio" id="raw" name="file_type" value="raw" checked="checked" onchange="disassemble()"><label for="html">Raw</label><input type="radio" id="decb" name="file_type" value="decb" onchange="disassemble()"></label><label for="css">DECB</label><input type="radio" id="os9" name="file_type" value="os9" onchange="disassemble()"><label for="javascript">OS-9</label></div>
<div style="margin-top:12px;"><label for="offset">Load offset:</label>
<input type="text" id="offset" name="offset" value="0" onchange="disassemble()">
<font size="-1">Use '$' for hexadecimal.</font></div>
<div style="margin-top:12px;"><label for="transferList">Transfer Addresses:</label><br />
<textarea id="transferList" name="transferList" rows="2" cols="55" onchange="disassemble()" spellcheck="false" placeholder="address1,address2,…"></textarea>
<font size="-1">List of addresses to start disassembly.</font></div>
<div style="margin-top:12px;"><label for="transferTable">Transfer Tables:</label><br />
<textarea id="transferTable" name="transferTable" rows="2" cols="55" onchange="disassemble()" spellcheck="false" placeholder="address1;length1,address2;length2,…"></textarea>
<font size="-1">List of addresses and lengths for embedded jump tables.</font></div>
<div style="margin-top:12px;"><label for="noFollow">No Follow Addresses:</label><br />
<textarea id="noFollow" name="noFollow" rows="2" cols="55" onchange="disassemble()" spellcheck="false" placeholder="address1,address2,…"></textarea>
<font size="-1">List of addressed that won't disassemble.</font></div>
<div style="margin-top:12px;"><label for="labelList"">Assembler Equates:</label><br />
<textarea id="labelList" name="labelList" rows="8" cols="55" onchange="disassemble()" spellcheck="false" placeholder="label equ address…"></textarea>
<font size="-1">Any valid equates.</font></div>
<div style="margin-top:12px;"><input type="checkbox" id="hd6309" name="hd6309" value="hd6309" onchange="disassemble()"><label for="hd6309">Support HD6309 opcodes</label>
<br>
<input type="checkbox" id="allCaps" name="allCaps" value="allCaps" onchange="disassemble()"><label for="allCaps">Capitalize disassembly</label>
<br>
<input type="checkbox" id="listOpcodes" name="listOpcodes" value="listOpcodes" onchange="disassemble()" checked="true"><label for="listOpcodes">List opcodes</label>
<br>
<input type="checkbox" id="printAddress" name="printAddress" value="printAddress" onchange="disassemble()" checked="true"><label for="printAddress">List address</label>
<br>
<input type="checkbox" id="genLabel" name="genLabel" value="genLabel" onchange="disassemble()" checked="true"><label for="genLabel">Generate labels</label>
<br>
<input type="checkbox" id="absIndPC" name="absIndPC" value="absIndPC" onchange="disassemble()"><label for="absIndPC">Absolute indexed PC offset</label>
<br>
<input type="checkbox" id="hexOffset" name="hexOffset" value="hexOffset" onchange="disassemble()"><label for="hexOffset">Hexadecimal indexed register offsets</label>
<br>
<input type="checkbox" id="os9SWI2" name="os9SWI2" value="os9SWI2" onchange="disassemble()"><label for="os9SWI2">SWI2 and postbyte becomes OS9 pseudo-operation</label>
<br>
<input type="checkbox" id="json" name="json" value="json" onchange="disassemble()"><label for="json">Include configuration in output</label>
<br>
<button style="margin-top:12px;" onclick="paste_config()">Paste Configuration</button></div>
<div style="margin-top:12px;">Copyright 2024 by tim lindner
<br>
Derived from dasm09 by Arto Salmi
<hr>
https://www.macmess.org/follow9.html
<br>
https://github.com/tlindner/follow9
</div></div>
<div style="float:right;width:60%;">
<label for="disassembly">Disassembly:</label><br />
<textarea id="disassembly" name="disassembly" rows="42" cols="80" spellcheck="false">
This is where the disassembly will go.
</textarea>
</div>
<br>