Class: Add

Add(locationIndex, N)

The Add instruction that increments the current data cell by N

Constructor

new Add(locationIndex, N)

Constructor for the add instruction
Parameters:
Name Type Description
locationIndex Number The location of the instruction within the unoptimised source code
N Number Positive Integer to add to current data cell
Source:

Methods

operation(cpu)

Applies the add N instruction to the cpu
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:43 GMT-0700 (Pacific Daylight Time)