SML Language

Each SML instruction contains four digits.The first two digits represent the operation code; the second digit pair is the RAM address.

Simpletron 3 has a 100 word memory (00...99). All arithmetic instructions leave their results in the accumulator.

SML Instructions

OP CODE

         MEANING

10##
Read into ram location
11##
Write from ram to screen
20##
Load from ram to acc
21##
Store from acc to ram
30##
Add ram to acc
31##
Subtract ram from acc
32##
Multiply acc by ram
33##
Divide acc by ram
34##
Raise acc to ram power
40##
Branch to location in ram
41##
Branch to location if acc negative
42##
Branch to location if acc zero
4300
Halt
RAM

back arrowSample Programs next