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 Fri Jun 12 2026 23:36:44 GMT-0700 (Pacific Daylight Time)