Class: BFInstruction

BFInstruction(symbol, locationIndex)

A class which is the interface for CPU Instructions.

Constructor

new BFInstruction(symbol, locationIndex)

Constructor for the BFInstructor Abstract Interface class.
Parameters:
Name Type Description
symbol String The symbol for the instruction
locationIndex Number The location of the instruction within the unoptimised source code
Source:
See:
Throws:
Abstract class BFInstruction can't be instantiated
Type
Error

Methods

operation(cpu)

Applies the Instruction operation to the CPU.
Parameters:
Name Type Description
cpu BFCpu The cpu to apply the operation on.
Source:
Throws:
Method Operation() must be implemented.
Type
Error

Documentation generated by JSDoc 4.0.2 on Fri Jun 12 2026 23:36:44 GMT-0700 (Pacific Daylight Time)