Alu - Arithmetic logic unit
(C) C.c 2011 // i8051 project - IFMO, Spb. Russia


General:
-------------------------------------------------------------------------------------
BusB - Source for A
BusC - Source for B

Microcode map:
-------------------------------------------------------------------------------------
Bit Description
0 Write A from BusB
1 Write B from BusC
2 Use Psw[7] in addiction/sub
3 Result -> BusB
4 AluPSW -> BusB
5-7 Alu operation
000 res (???)
001 suba (B - A (- C))
010 subb (A - B (- C))
011 add (A + B (+ C))
100 xor (A xor B)
101 or (A or B)
110 and (A and B)
111 set (???)
Соседние файлы в папке Docs