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 Sun Feb 08 2026 18:39:25 GMT-0800 (Pacific Standard Time)