Created
March 19, 2016 21:02
-
-
Save JeremyLikness/47a5f9c8c8c51654799b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {OpCodes} from './opsCodes'; | |
import {IOperation, ICpu} from '../emulator/interfaces'; | |
export class BaseOpCode implements IOperation { | |
constructor( | |
public opName: string, | |
public sizeBytes: number, | |
public addressingMode: number, | |
public opCode: number) { | |
} | |
public decompile (address: number, bytes: number[]): string { | |
return OpCodes.ProcessLine(address, this, bytes); | |
} | |
public execute(cpu: ICpu): void { | |
return; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment