Skip to content

Instantly share code, notes, and snippets.

@ErnestoBorio
Last active April 14, 2020 11:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ErnestoBorio/175e1e86fd0f50ed686653bce7cd3f7a to your computer and use it in GitHub Desktop.
Save ErnestoBorio/175e1e86fd0f50ed686653bce7cd3f7a to your computer and use it in GitHub Desktop.
import "./instructions.mjs";
export class Cpu6502 {
A = 0xFF
lda = lda
#rts = function() {
return "RTS";
}
ldx() {
return this.lda();
}
}
export function lda() {
return this.#rts();
}
import "./cpu6502.mjs";
console.log((new Cpu6502).ldx());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment