Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

Latest commit

 

History

History
9 lines (8 loc) · 317 Bytes

SUB.md

File metadata and controls

9 lines (8 loc) · 317 Bytes

SUB

The SUB instruction allows the application to get values of registers and return the subtraction to a register.

LOAD 01 00 02 # load 2 to register 1
LOAD 02 00 01 # pointer to register 1

LOAD 04 00 03 # save location pointer
SUB 02 02 04 # will save the subtraction of the 2 numbers to register 3