PIANO PIANO

TERRA TERRA
This commit is contained in:
Alec Obradovich 2015-01-23 13:46:23 -06:00
parent a98b4bb92b
commit 4691e5ee08
12 changed files with 69 additions and 5 deletions

BIN
img/pixel.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 B

View file

@ -2,11 +2,15 @@
<html> <html>
<head lang="en"> <head lang="en">
<meta charset="UTF-8"> <meta charset="UTF-8">
<title></title> <title>Basilio</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/Byte.js"></script> <script type="text/javascript" src="js/Byte.js"></script>
<script type="text/javascript" src="js/LCD.js"></script>
<script type="text/javascript" src="js/Memory.js"></script>
<script type="text/javascript" src="js/TI.js"></script> <script type="text/javascript" src="js/TI.js"></script>
</head> </head>
<body onload="TI.Init();"> <body onload="TI.Init();">
<table id="lcd" border="0">
</table>
</body> </body>
</html> </html>

View file

@ -44,6 +44,10 @@ var Byte = (function () {
pos = pos % 8; pos = pos % 8;
this.Set(val ? (this.value | Math.pow(2, pos)) : (this.value & ~Math.pow(2, pos))); this.Set(val ? (this.value | Math.pow(2, pos)) : (this.value & ~Math.pow(2, pos)));
}; };
Byte.prototype.Test = function (pos) {
pos = pos % 8;
return (this.value & Math.pow(2, pos)) != 0;
};
Byte.prototype.ShiftLeft = function (carry, value) { Byte.prototype.ShiftLeft = function (carry, value) {
if (carry === void 0) { carry = false; } if (carry === void 0) { carry = false; }
if (value === void 0) { value = false; } if (value === void 0) { value = false; }

View file

@ -1 +1 @@
{"version":3,"file":"Byte.js","sourceRoot":"","sources":["Byte.ts"],"names":["Byte","Byte.constructor","Byte.Add","Byte.Sub","Byte.Get","Byte.Set","Byte.Neg","Byte.And","Byte.Or","Byte.Xor","Byte.Not","Byte.Bit","Byte.ShiftLeft","Byte.ShiftRight","Word","Word.constructor"],"mappings":"AAAA,IAAM,IAAI;IAGNA,SAHEA,IAAIA,CAGaA,IAAgBA;QAAhBC,oBAAgBA,GAAhBA,QAAgBA;QAC/BA,IA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GAAGA,CAACA,IAAIA,IAAIA,CAACA,CAACA,IAAIA,GAAGA,CAACA,IAAIA,CAACA,IAAIA,CAACA,CAACA,EAAEA,IAAIA,IAAIA,CAACA,IAAIA,GAAGA,IAAIA,CAACA,CAACA,CAACA;IACxEA,CAACA;IACLD,WAACA;AAADA,CAACA,AAPD,IAOC"} {"version":3,"file":"Byte.js","sourceRoot":"","sources":["Byte.ts"],"names":["Byte","Byte.constructor","Byte.Add","Byte.Sub","Byte.Get","Byte.Set","Byte.Neg","Byte.And","Byte.Or","Byte.Xor","Byte.Not","Byte.Bit","Byte.Test","Byte.ShiftLeft","Byte.ShiftRight","Word","Word.constructor"],"mappings":"AAAA,IAAM,IAAI;IAGNA,SAHEA,IAAIA,CAGaA,IAAgBA;QAAhBC,oBAAgBA,GAAhBA,QAAgBA;QAC/BA,IAAIA,CAACA,KAAKA,GAAGA,IAAIA,GAAGA,IAAIA,GAAGA,CAACA,IAAIA,GAAGA,CAACA,GAAGA,IAAIA,GAAGA,CAACA,CAACA,CAACA;IACrDA,CAACA;IAIMD,kBAAGA,GAAVA,UAAWA,GAAQA;QACfE,GAAGA,GAAGA,OAAOA,GAAGA,IAAIA,QAAQA,GAAGA,IAAIA,IAAIA,CAACA,GAAGA,CAACA,GAAGA,GAAGA,CAACA;QACnDA,IAAIA,IAAIA,GAAGA,IAAIA,CAACA,KAAKA,GAAGA,GAAGA,CAACA,GAAGA,EAAEA,CAACA;QAClCA,IAAIA,CAACA,KAAKA,GAAGA,IAAIA,GAAGA,IAAIA,CAACA;QACzBA,MAAMA,CAACA,IAAIA,IAAIA,CAACA,IAAIA,GAAGA,GAAGA,GAAGA,IAAIA,GAAGA,GAAGA,GAAGA,CAACA,CAACA,CAACA;IACjDA,CAACA;IAIMF,kBAAGA,GAAVA,UAAWA,GAAQA;QACfG,GAAGA,GAAGA,OAAOA,GAAGA,IAAIA,QAAQA,GAAGA,IAAIA,IAAIA,CAACA,GAAGA,CAACA,GAAGA,GAAGA,CAACA;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ACA,CAACA;QAC1BA,IAAIA,CAACA,GAAGA,CAACA,CAACA,EAAEA,KAAKA,GAAGA,GAAGA,GAAGA,KAAKA,CAACA,CAACA;QACjCA,MAAMA,CAACA,GAAGA,CAACA;IACfA,CAACA;IAEMb,yBAAUA,GAAjBA,UAAkBA,KAAsBA,EAAEA,KAAsBA;QAA9Cc,qBAAsBA,GAAtBA,aAAsBA;QAAEA,qBAAsBA,GAAtBA,aAAsBA;QAC5DA,IAAIA,GAAGA,GAAGA,CAACA,IAAIA,CAACA,KAAKA,GAAGA,IAAIA,CAACA,IAAIA,CAACA,CAACA;QACnCA,IAAIA,CAACA,GAAGA,CAACA,IAAIA,CAACA,KAAKA,KAAKA,CAACA,CAACA,CAACA;QAC3BA,IAAIA,CAACA,GAAGA,CAACA,CAACA,EAAEA,KAAKA,GAAGA,GAAGA,GAAGA,KAAKA,CAACA,CAACA;QACjCA,MAAMA,CAACA,GAAGA,CAACA;IACfA,CAACA;IACLd,WAACA;AAADA,CAACA,AAvFD,IAuFC;AAED,IAAM,IAAI;IAINe,SAJEA,IAAIA,CAIaA,IAAgBA;QAAhBC,oBAAgBA,GAAhBA,QAAgBA;QAC/BA,IAAIA,CAACA,KAAKA,GAAGA,CAACA,IAAIA,IAAIA,CAACA,CAACA,IAAIA,GAAGA,CAACA,IAAIA,CAACA,IAAIA,CAACA,CAACA,EAAEA,IAAIA,IAAIA,CAACA,IAAIA,GAAGA,IAAIA,CAACA,CAACA,CAACA;IACxEA,CAACA;IACLD,WAACA;AAADA,CAACA,AAPD,IAOC"}

View file

@ -67,6 +67,11 @@ class Byte {
this.Set(val ? (this.value | Math.pow(2, pos)) : (this.value & ~Math.pow(2, pos))); this.Set(val ? (this.value | Math.pow(2, pos)) : (this.value & ~Math.pow(2, pos)));
} }
public Test(pos: number) {
pos = pos % 8;
return (this.value & Math.pow(2, pos)) != 0;
}
public ShiftLeft(carry: boolean = false, value: boolean = false): boolean { public ShiftLeft(carry: boolean = false, value: boolean = false): boolean {
var ret = (this.value & 0x80) != 0; var ret = (this.value & 0x80) != 0;
this.Set(this.value << 1); this.Set(this.value << 1);

14
js/LCD.js Normal file
View file

@ -0,0 +1,14 @@
var LCD = (function () {
function LCD() {
}
LCD.Init = function () {
LCD.screen = document.getElementById("lcd");
for (var y = 0; y < 64; y++) {
var row = LCD.screen.insertRow(0);
for (var x = 0; x < 96; x++)
row.insertCell(0).innerHTML = "";
}
};
return LCD;
})();
//# sourceMappingURL=LCD.js.map

1
js/LCD.js.map Normal file
View file

@ -0,0 +1 @@
{"version":3,"file":"LCD.js","sourceRoot":"","sources":["LCD.ts"],"names":["LCD","LCD.constructor","LCD.Init"],"mappings":"AAAA,IAAM,GAAG;IAATA,SAAMA,GAAGA;IAYTC,CAACA;IARUD,QAAIA,GAAXA;QACIE,GAAGA,CAACA,MAAMA,GAAqBA,QAAQA,CAACA,cAAcA,CAACA,KAAKA,CAACA,CAACA;QAC9DA,GAAGA,CAAAA,CAACA,GAAGA,CAACA,CAACA,GAAGA,CAACA,EAAEA,CAACA,GAAGA,EAAEA,EAAEA,CAACA,EAAEA,EAAEA,CAACA;YACzBA,IAAIA,GAAGA,GAAwBA,GAAGA,CAACA,MAAMA,CAACA,SAASA,CAACA,CAACA,CAACA,CAACA;YACvDA,GAAGA,CAAAA,CAACA,GAAGA,CAACA,CAACA,GAAGA,CAACA,EAAEA,CAACA,GAAGA,EAAEA,EAAEA,CAACA,EAAEA;gBACtBA,GAAGA,CAACA,UAAUA,CAACA,CAACA,CAACA,CAACA,SAASA,GAAGA,EAAEA,CAACA;QACzCA,CAACA;IACLA,CAACA;IACLF,UAACA;AAADA,CAACA,AAZD,IAYC"}

13
js/LCD.ts Normal file
View file

@ -0,0 +1,13 @@
class LCD {
private static screen: HTMLTableElement;
static Init() {
LCD.screen = <HTMLTableElement>document.getElementById("lcd");
for(var y = 0; y < 64; y++) {
var row = <HTMLTableRowElement>LCD.screen.insertRow(0);
for(var x = 0; x < 96; x++)
row.insertCell(0).innerHTML = "";
}
}
}

View file

@ -1,8 +1,10 @@
/// <reference path="Byte.ts" /> /// <reference path="Byte.ts" />
/// <reference path="LCD.ts" />
var TI = (function () { var TI = (function () {
function TI() { function TI() {
} }
TI.Init = function () { TI.Init = function () {
LCD.Init();
var a = new Byte(10); var a = new Byte(10);
var b = new Byte(40); var b = new Byte(40);
//a.Add(b); //a.Add(b);

View file

@ -1 +1 @@
{"version":3,"file":"TI.js","sourceRoot":"","sources":["TI.ts"],"names":["TI","TI.constructor","TI.Init"],"mappings":"AAAA,gCAAgC;AAEhC,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAWRC,CAACA;IAPUD,OAAIA,GAAXA;QACIE,IAAIA,CAACA,GAAGA,IAAIA,IAAIA,CAACA,EAAEA,CAACA,CAACA;QACrBA,IAAIA,CAACA,GAAGA,IAAIA,IAAIA,CAACA,EAAEA,CAACA,CAACA;QAGrBA,AAFAA,WAAWA;QACXA,WAAWA;QACXA,KAAKA,CAACA,CAACA,CAACA,GAAGA,EAAEA,CAACA,GAAGA,EAAEA,CAACA,CAACA;IACzBA,CAACA;IACLF,SAACA;AAADA,CAACA,AAXD,IAWC"} {"version":3,"file":"TI.js","sourceRoot":"","sources":["TI.ts"],"names":["TI","TI.constructor","TI.Init"],"mappings":"AAAA,gCAAgC;AAChC,+BAA+B;AAE/B,IAAM,EAAE;IAARA,SAAMA,EAAEA;IAWRC,CAACA;IARUD,OAAIA,GAAXA;QACIE,GAAGA,CAACA,IAAIA,EAAEA,CAACA;QACXA,IAAIA,CAACA,GAAGA,IAAIA,IAAIA,CAACA,EAAEA,CAACA,CAACA;QACrBA,IAAIA,CAACA,GAAGA,IAAIA,IAAIA,CAACA,EAAEA,CAACA,CAACA;QAGrBA,AAFAA,WAAWA;QACXA,WAAWA;QACXA,KAAKA,CAACA,CAACA,CAACA,GAAGA,EAAEA,CAACA,GAAGA,EAAEA,CAACA,CAACA;IACzBA,CAACA;IACLF,SAACA;AAADA,CAACA,AAXD,IAWC"}

View file

@ -1,10 +1,11 @@
/// <reference path="Byte.ts" /> /// <reference path="Byte.ts" />
/// <reference path="LCD.ts" />
class TI { class TI {
static registers: any[]; static registers: any[];
static Init() { static Init() {
LCD.Init();
var a = new Byte(10); var a = new Byte(10);
var b = new Byte(40); var b = new Byte(40);
//a.Add(b); //a.Add(b);

20
style.css Normal file
View file

@ -0,0 +1,20 @@
#lcd {
border-spacing: 0;
border-collapse: collapse;
}
#lcd tr {
height: 2px;
padding: 0;
margin: 0;
border: 0;
}
#lcd td {
width: 2px;
height: 2px;
padding: 0;
margin: 0;
border: 0;
background: url(img/pixel.png);
}