Microcode/code.eda
Edvard Thörnros 89cb4d2197 First 2 labbs.
2019-04-03 16:04:23 +02:00

32 lines
347 B
Plaintext
Executable File

AND GR1, 0
LOAD GR0, *0xFE
AND GR0, 0xF
STORE GR0, *0xFF
ADD GR1, *0xFF
LOAD GR0, *0xFE
LSR GR0, *4
AND GR0, 0xF
STORE GR0, *0xFF
ADD GR1, *0xFF
LOAD GR0, *0xFE
LSR GR0, *8
AND GR0, 0xF
STORE GR0, *0xFF
ADD GR1, *0xFF
LOAD GR0, *0xFE
LSR GR0, *12
AND GR0, 0xF
STORE GR0, *0xFF
ADD GR1, *0xFF
STORE GR1, *0xFF
HALT GR0, *0
STORE GR1, *0xFF