Microcode/code.eda
2019-04-05 16:24:26 +02:00

40 lines
429 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
#
LOAD GR0, *0x00
LOAD GR1, *0x00
CMP GR0, GR1
BEQ @TEST
LOAD GR0, *0xFF
TEST:
HALT