mirror of
https://github.com/pskupinski/65816.js.git
synced 2024-06-25 03:29:31 +00:00
use a self executing function to hide as much from global scope as possible
This commit is contained in:
parent
3bbe3c9999
commit
ad4f9e3c76
6
cpu.js
6
cpu.js
|
@ -14,7 +14,9 @@
|
||||||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function CPU_65816() {
|
(function(window) {
|
||||||
|
|
||||||
|
window.CPU_65816 = function() {
|
||||||
// Registers
|
// Registers
|
||||||
this.r = {
|
this.r = {
|
||||||
a:0, // Accumulator
|
a:0, // Accumulator
|
||||||
|
@ -7535,3 +7537,5 @@ var XBA = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
})(window);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user