Class: Sub

Sub(locationIndex, N)

The Add instruction that decrements the current data cell by N

Constructor

new Sub(locationIndex, N)

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

Methods

operation(cpu)

Applies the sub 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:45 GMT-0700 (Pacific Daylight Time)