diff --git a/index.html b/index.html
index 71ce692..777e68a 100644
--- a/index.html
+++ b/index.html
@@ -3,8 +3,10 @@
+
+
-
+
\ No newline at end of file
diff --git a/js/Byte.js b/js/Byte.js
new file mode 100644
index 0000000..8a91f50
--- /dev/null
+++ b/js/Byte.js
@@ -0,0 +1,32 @@
+var Byte = (function () {
+ function Byte(init) {
+ if (typeof init === "undefined") { init = 0; }
+ this.value = init & 0xFF;
+ }
+ Byte.prototype.Add = function (val) {
+ var ret = new Byte(((this.value + val.Get()) & ~0xFF) >> 8);
+ this.value = (this.value + val.Get()) & 0xFF;
+ alert(this.value + val.Get());
+ return ret;
+ };
+
+ Byte.prototype.Sub = function (val) {
+ return this.Add(new Byte(-val.Get()));
+ };
+
+ Byte.prototype.Get = function () {
+ return this.value;
+ };
+
+ Byte.prototype.Set = function (val) {
+ this.value = val & 0xFF;
+ };
+ return Byte;
+})();
+
+var Word = (function () {
+ function Word() {
+ }
+ return Word;
+})();
+//# sourceMappingURL=Byte.js.map
diff --git a/js/Byte.js.map b/js/Byte.js.map
new file mode 100644
index 0000000..4836c46
--- /dev/null
+++ b/js/Byte.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"Byte.js","sourceRoot":"","sources":["Byte.ts"],"names":["Byte","Byte.constructor","Byte.Add","Byte.Sub","Byte.Get","Byte.Set","Word","Word.constructor"],"mappings":"AAAA;IAGIA,cAAmBA,IAAgBA;QAAhBC,mCAAAA,IAAIA,GAAWA,CAACA;AAAAA,QAC/BA,IAAIA,CAACA,KAAKA,GAAGA,IAAIA,GAAGA,IAAIA;IAC5BA,CAACA;IAEDD,qBAAAA,UAAWA,GAASA;QAChBE,IAAIA,GAAGA,GAAGA,IAAIA,IAAIA,CAACA,CAACA,CAACA,IAAIA,CAACA,KAAKA,GAAGA,GAAGA,CAACA,GAAGA,CAACA,CAACA,CAACA,GAAGA,CAACA,IAAIA,CAACA,IAAIA,CAACA,CAACA;QAC3DA,IAAIA,CAACA,KAAKA,GAAGA,CAACA,IAAIA,CAACA,KAAKA,GAAGA,GAAGA,CAACA,GAAGA,CAACA,CAACA,CAACA,GAAGA,IAAIA;QAC5CA,KAAKA,CAACA,IAAIA,CAACA,KAAKA,GAAGA,GAAGA,CAACA,GAAGA,CAACA,CAACA,CAACA;QAC7BA,OAAOA,GAAGA;IACdA,CAACA;;IAEDF,qBAAAA,UAAWA,GAASA;QAChBG,OAAOA,IAAIA,CAACA,GAAGA,CAACA,IAAIA,IAAIA,CAACA,CAACA,GAAGA,CAACA,GAAGA,CAACA,CAACA,CAACA,CAACA;IACzCA,CAACA;;IAEDH,qBAAAA;QACII,OAAOA,IAAIA,CAACA,KAAKA;IACrBA,CAACA;;IAEDJ,qBAAAA,UAAWA,GAAWA;QAClBK,IAAIA,CAACA,KAAKA,GAAGA,GAAGA,GAAGA,IAAIA;IAC3BA,CAACA;IACLL,YAACA;AAADA,CAACA,IAAA;;AAED;IAAAM;IAIAC,CAACA;AAAAD,IAADA,YAACA;AAADA,CAACA,IAAA"}
\ No newline at end of file
diff --git a/js/Byte.ts b/js/Byte.ts
new file mode 100644
index 0000000..bdf2bdd
--- /dev/null
+++ b/js/Byte.ts
@@ -0,0 +1,32 @@
+class Byte {
+ private value: number;
+
+ public constructor(init: number = 0) {
+ this.value = init & 0xFF;
+ }
+
+ public Add(val: Byte): Byte {
+ var ret = new Byte(((this.value + val.Get()) & ~0xFF) >> 8);
+ this.value = (this.value + val.Get()) & 0xFF;
+ alert(this.value + val.Get());
+ return ret;
+ }
+
+ public Sub(val: Byte): Byte {
+ return this.Add(new Byte(-val.Get()));
+ }
+
+ public Get(): number {
+ return this.value;
+ }
+
+ public Set(val: number) {
+ this.value = val & 0xFF;
+ }
+}
+
+class Word {
+ private value: Byte[];
+
+
+}
\ No newline at end of file
diff --git a/js/TI.js b/js/TI.js
new file mode 100644
index 0000000..387392a
--- /dev/null
+++ b/js/TI.js
@@ -0,0 +1,12 @@
+///
+var TI = (function () {
+ function TI() {
+ }
+ TI.Init = function () {
+ var a = new Byte(40);
+ var b = new Byte(40);
+ alert(a.Get());
+ };
+ return TI;
+})();
+//# sourceMappingURL=TI.js.map
diff --git a/js/TI.js.map b/js/TI.js.map
new file mode 100644
index 0000000..6d9cc67
--- /dev/null
+++ b/js/TI.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"TI.js","sourceRoot":"","sources":["TI.ts"],"names":["TI","TI.constructor","TI.Init"],"mappings":"AAAA,gCAAgC;AAEhC;IAAAA;IAYAC,CAACA;AAAAD,IALGA,UAAAA;QACIE,IAAIA,CAACA,GAAGA,IAAIA,IAAIA,CAACA,EAAEA,CAACA;QACpBA,IAAIA,CAACA,GAAGA,IAAIA,IAAIA,CAACA,EAAEA,CAACA;QACpBA,KAAKA,CAACA,CAACA,CAACA,GAAGA,CAACA,CAACA,CAACA;IAClBA,CAACA;IACLF,UAACA;AAADA,CAACA,IAAA"}
\ No newline at end of file
diff --git a/js/TI.ts b/js/TI.ts
new file mode 100644
index 0000000..1705e2d
--- /dev/null
+++ b/js/TI.ts
@@ -0,0 +1,15 @@
+///
+
+class TI {
+ static rom: Byte[][];
+ static ram: Byte[][];
+ static mmap: any[];
+
+ static registers: any[];
+
+ static Init() {
+ var a = new Byte(40);
+ var b = new Byte(40);
+ alert(a.Get());
+ }
+}
\ No newline at end of file