logic.tsk
592 Bytes
# load logic program:
load logic 0x0
# start pc at 0:
dep pc 0x0
dep ctl 0x0
#
# When finished, at memory location 0x3000 there will be:
#
# aaaaaaaa aaaaaaaa ........ ........ (vector a)
# bbbbbbbb bbbbbbbb ........ ........ (vector b)
# &&&&&&&& &&&&&&&& ........ ........ (a AND b)
# ~&&&&&&&& ~&&&&&&&& ........ ........ (a NAND b)
# |||||||| |||||||| ........ ........ (a OR b)
# ~|||||||| ~|||||||| ........ ........ (a NOR b)
# ^^^^^^^^ ^^^^^^^^ ........ ........ (a XOR b)
# ~^^^^^^^^ ~^^^^^^^^ ........ ........ (a NXOR b)
#
#