Skip to content

Instantly share code, notes, and snippets.

@JeremyLikness
Created March 19, 2016 21:02
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 JeremyLikness/47a5f9c8c8c51654799b to your computer and use it in GitHub Desktop.
Save JeremyLikness/47a5f9c8c8c51654799b to your computer and use it in GitHub Desktop.
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