Skip to content

Instantly share code, notes, and snippets.

@leandromoreira
Created December 20, 2015 23:56
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save leandromoreira/7ec97be16e1d119a5b66 to your computer and use it in GitHub Desktop.
class LR35902 {
init() {
this.pc = this.sp = 0x0000
this.a = this.b = this.c = this.d = this.e = this.f = this.f = this.h = this.l = 0x00
}
execute() {
var opCode = memory.read(this.pc)
this.perform(opCode)
this.pc += 2
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment