Class: LBrack

LBrack(locationIndex, pairedLocationIndex)

The left bracket instruction which starts a while loop. This is paired with the right bracket instruction to close the loop.

Constructor

new LBrack(locationIndex, pairedLocationIndex)

Constructor for the Left Bracket instruction
Parameters:
Name Type Description
locationIndex Number The location of the instruction within the unoptimised source code
pairedLocationIndex Number The location of the jump instruction within the unoptimised source code
Source:
See:

Methods

operation(cpu)

Applies the Left bracket instruction to the cpu. Only jumps to the close bracket if the value at the current data cell is zero.
Parameters:
Name Type Description
cpu BFCpu The cpu to apply the operation on.
Source:

Documentation generated by JSDoc 4.0.2 on Sun Feb 08 2026 18:39:25 GMT-0800 (Pacific Standard Time)