diff --git a/.gitignore b/.gitignore
index 3c3629e..528645a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
node_modules
+js8080simBundle.js
diff --git a/README.md b/README.md
index e648f9f..f730148 100644
--- a/README.md
+++ b/README.md
@@ -1 +1,6 @@
# js-8080-sim
+
+## Bundling for the browser
+
+We use `browserify`; see `Makefile` for the invocation.
+
diff --git a/index.html b/index.html
index ab42ab7..12ca962 100644
--- a/index.html
+++ b/index.html
@@ -14,7 +14,6 @@
width: 240px;
}
-
@@ -32,5 +31,10 @@
Result |
+
+
+
+
+
diff --git a/package.json b/package.json
index 4e83706..0ccd88b 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,7 @@
"name": "js-8080-sim",
"version": "1.0.0",
"description": "8080 assembler and simulator",
- "main": "src/assembler.js",
+ "main": "src/bundleMain.js",
"scripts": {
"test": "mocha"
},
diff --git a/ui.js b/ui.js
new file mode 100644
index 0000000..3540f25
--- /dev/null
+++ b/ui.js
@@ -0,0 +1,6 @@
+// Expects the global js8080sim to be available.
+let asm = new js8080sim.Assembler();
+
+let st = document.querySelector("#status");
+st.textContent = "SUCCESS";
+st.style.color = "green";