taocp

taocp sandbox.
git clone git://git.ricketyspace.net/taocp.git
Log | Files | Refs

commit bd1b8c7b14f1f636c261cfd05c711ab3d0872ddf
parent 522559167afd0ff4818cf7929d209063e3baae68
Author: rsiddharth <s@ricketyspace.net>
Date:   Fri,  5 Jan 2018 00:56:15 +0000

mix: Add good-bad.mixal.

* mix/1.3.2/good-bad.mixal: New file. Work in progress.

Diffstat:
mix/1.3.2/good-bad.mixal | 24++++++++++++++++++++++++
1 file changed, 24 insertions(+), 0 deletions(-)

diff --git a/mix/1.3.2/good-bad.mixal b/mix/1.3.2/good-bad.mixal @@ -0,0 +1,24 @@ +INST EQU 1000 +GOOD EQU 1001 +BAD EQU 1002 +TABLE EQU 200 + ORIG 0 +START LD1 INST(5:5) Load C field into I1. + LD1 TABLE,1 + JMP 0,1 + HLT +* Start switching table. + ORIG 300 +* A, I, F field validation groups. +G01 LD1 INST(4:4) + CMP1 =45= + JG BAD + JMP GOOD + ORIG 200 +* EXX -> Entry for instruction with C = XX. +E00 CON GOOD +E01 CON G01 +E02 CON G01 +E03 CON G01 +E04 CON G01 + END START