forked from skilldrick/easy6502
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path6502.html
96 lines (80 loc) · 3.01 KB
/
6502.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>Easy 6502 by skilldrick, modified by misterbee</title>
<link rel="stylesheet" href="./stylesheets/styles.css">
<link rel="stylesheet" href="./simulator/style.css">
<link rel="stylesheet" href="./stylesheets/pygment_trac.css">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div class="wrapper">
Click <strong>Assemble</strong> then <strong>Run</strong> to assemble and run the snippet of assembly language.</p>
<div class="widget">
<div class=codearea>
<div class="buttons">
<input type="button" value="Assemble" class="assembleButton" disabled="disabled">
<input type="button" value="Run" class="runButton">
<input type="button" value="Reset" class="resetButton">
<input type="button" value="Hexdump" class="hexdumpButton">
<input type="button" value="Disassemble" class="disassembleButton">
<input type="button" value="Notes" class="notesButton">
</div>
<textarea class="code">
</textarea>
</div>
<div class=sidepanel>
<canvas class="screen" width="160" height="160"></canvas>
<div class="debugger">
<input type="checkbox" class="debug" name="debug">
<label for="debug">Debugger</label>
<div class="minidebugger">A=$00 X=$00 Y=$00<br>SP=$fb PC=$06ee<br>NV-BDIZC<br>00110010</div>
<div class="buttons">
<input type="button" value="Step" class="stepButton" disabled="disabled">
<input type="button" value="Jump to..." class="gotoButton" disabled="disabled">
</div>
</div>
<div class="monitorControls">
<label for="monitoring">Monitor</label>
<input type="checkbox" class="monitoring" name="monitoring">
<label for="start">Start: $</label>
<input type="text" value="0" class="start" name="start">
<label for="length">Length: $</label>
<input type="text" value="ff" class="length" name="length">
</div>
<div class="monitor"><pre><code></code></pre></div>
<div class="messages"><pre><code>Indexing labels..
</code></pre></div>
<div class="notes" style="display: none">Notes:
Memory location $fe contains a new random byte on every instruction.
Memory location $ff contains the ascii code of the last key pressed.
Memory locations $200 to $5ff map to the screen pixels. Different values will
draw different colour pixels. The colours are:
$0: Black
$1: White
$2: Red
$3: Cyan
$4: Purple
$5: Green
$6: Blue
$7: Yellow
$8: Orange
$9: Brown
$a: Light red
$b: Dark grey
$c: Grey
$d: Light green
$e: Light blue
$f: Light grey
</div>
</div>
</div>
<script src="./javascripts/jquery.min.js"></script>
<script src="./simulator/es5-shim.js"></script>
<script src="./simulator/assembler.js"></script>
<script src="./javascripts/scale.fix.js"></script>
</body></html>