FIRST STEPS IN MACHINE CODE

OPCODES

hbar

RST COMMANDS

RST 00 (opcode C7) -  When you first switch on your computer, this is where it starts. The routine carries out some tests, then wipes RAM clean. You can use RST 00 to make sure the computer has completely reset.
RST 08 (opcode CF) -  The error trapping routine - it causes the error messages to be generated, and stops BASIC. The error number is the value in A minus 1 when the restart routine is called.
RST 10 (opcode D7) -  The print routine - it prints on the active device a character, or print control character.
RST 18 (opcode DF) -  Collects a character addressed by the system variable CH_ADD, and checks whether it is printable.
RST 20 (opcode E8) -  Used in the BASIC translator to check collect the next character, and translate it.
RST 28 (opcode EF) -  Calls the floating point calculator routine.
RST 30 (opcode F8) -  Creates a space in RAM in the workspace; the size of the space is governed by the value in BC.
RST 38 (opcode FF) -  The Maskable Interupt routine - some details on that in the next part of the series.

hbar
Go To Referring Page