use a self executing function to hide as much from global scope as possible

This commit is contained in:
Preston Skupinski 2011-12-15 00:00:20 -05:00
parent 3bbe3c9999
commit ad4f9e3c76
1 changed files with 5 additions and 1 deletions

6
cpu.js
View File

@ -14,7 +14,9 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
function CPU_65816() {
(function(window) {
window.CPU_65816 = function() {
// Registers
this.r = {
a:0, // Accumulator
@ -7535,3 +7537,5 @@ var XBA = {
}
}
};
})(window);