-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.pug
135 lines (135 loc) · 4.92 KB
/
index.pug
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
doctype html
html
head
meta(charset="utf-8")
link(rel="stylesheet" href="./style.css")
link(rel="modulepreload" href="src/cpu.js")
link(rel="modulepreload" href="src/dmg.js")
link(rel="modulepreload" href="src/mmu.js")
link(rel="modulepreload" href="src/opcodes.js")
link(rel="modulepreload" href="src/ppu.js")
body
div#gameboy
div#screen-bg
div#parallax
canvas.screen-layer#screen-bg-back
canvas.screen-layer#screen-obj-back
canvas.screen-layer#screen-bg-font
canvas.screen-layer#screen-obj-front
img#frame(src="img/gb_annotated.png")
div.button#button-a
div.button#button-b
div.button#button-start
div.button#button-select
div.button#button-up
div.button#button-down
div.button#button-left
div.button#button-right
div#other
div#rom
select#rom-select(name="rom")
optgroup(label="Games")
option(value="Tetris" selected) Tetris
option(value="Dr. Mario") Dr. Mario
option(value="Kirby's Dream Land") Kirby's Dream Land
option(value="Super Mario Land") Super Mario Land
//option(value="Super Mario Land 2") Super Mario Land 2
option(value="The Legend of Zelda - Link's Awakening") The Legend of Zelda - Link's Awakening
option(value="Batman") Batman
option(value="Bubble Ghost") Bubble Ghost
//option(value="Gargoyle's Quest") Gargoyle's Quest
//option(value="Golf") Golf
option(value="Tennis") Tennis
option(value="Hyper Lode Runner") Hyper Lode Runner
option(value="Mega Man") Mega Man
option(value="Marble Madness") Marble Madness
//option(value="Pokemon Blue") Pokemon Blue
//option(value="Pokemon Red") Pokemon Red
//option(value="Pokemon TCG") Pokemon TCG
option(value="Robocop") Robocop
option(value="Robocop 2") Robocop 2
option(value="Teenage Mutant Ninja Turtles") Teenage Mutant Ninja Turtles
option(value="Teenage Mutant Ninja Turtles 2") Teenage Mutant Ninja Turtles 2
option(value="The Simpsons") The Simpsons
optgroup(label="Tests")
option(value="blargg/cputest") Blargg CPU Test
option(value="blargg/interrupt_test") Blargg Interrupt Test
option(value="blargg/instr_timing_test") Blargg Instruction Timing Test
option(value="blargg/mem_timing_test") Blargg Memory Timing Test
option(value="blargg/mem_timing_test2") Blargg Memory Timing Test 2
option(value="misc/merken") Merken Demo
option(value="misc/dmg-acid2") Acid2 PPU Test
input#skip-boot(type="checkbox" name="skip-boot" checked=true)
label(for="skip-boot") Skip boot
div#buttons
button#start-button Start
button#frame-button Frame
button#step-button Step
button#reset-button Reset
button#refresh-button Refresh
button#savestate-button Save State
button#loadstate-button Load State
button#remake-button ???
div#debug
input#update-each-frame(type="checkbox" name="update-each-frame")
label(for="update-each-frame") Update each frame
div#cpu-info
span#cpu-clock clk: 0
table#registers-table
tr
th AF
th BC
th DE
th HL
th SP
th PC
th ZNHC
tr#registers-row
td 0000
td 0000
td 0000
td 0000
td 0000
td 0000
td 0000
div#previous-asm
div#asm
canvas#tiles
canvas#background0
canvas#background1
div
input#address(type="text" value="0000")
button#address-up-button ↑
button#address-down-button ↓
button(onclick="gb.setViewAddress(0x0000);") Bank 0
button(onclick="gb.setViewAddress(0x4000);") Bank 1
button(onclick="gb.setViewAddress(0x8000);") VRAM
button(onclick="gb.setViewAddress(0xA000);") ExtRAM
button(onclick="gb.setViewAddress(0xC000);") WRAM 0
button(onclick="gb.setViewAddress(0xD000);") WRAM 1
button(onclick="gb.setViewAddress(0xFE00);") OAM
button(onclick="gb.setViewAddress(0xFF80);") HRAM
table#memory
thead
tr
td
td 0
td 1
td 2
td 3
td 4
td 5
td 6
td 7
td 8
td 9
td A
td B
td C
td D
td E
td F
tbody#memory-tbody
div#serial-output
script(src="localforage.min.js")
script(src="index.js" type="module")