summaryrefslogtreecommitdiffstats
path: root/PIC/common.vhd
diff options
context:
space:
mode:
Diffstat (limited to 'PIC/common.vhd')
-rw-r--r--PIC/common.vhd10
1 files changed, 10 insertions, 0 deletions
diff --git a/PIC/common.vhd b/PIC/common.vhd
new file mode 100644
index 0000000..c986ec5
--- /dev/null
+++ b/PIC/common.vhd
@@ -0,0 +1,10 @@
+package alu_types is
+ type alu_op is (ADDWF, ANDWF, ADDLW, ANDLW, BCF, BTFSC,
+ BSF, BTFSS, CLRF, CLRW, COMF, DECF,
+ DECFSZ, INCF, INCFSZ, IORLW, MOVF, MOVWF, CALL,
+ GOTO, MOVLW, RETLW, RETUR, IORWF, NOP,
+ RLF, RRF, SUBLW, SUBWF, SWAPF, XORLW, XORWF);
+
+ -- Status register bits: Z=2, DC=1, C=0
+ type alu_flag is (FLAG_Z, FLAG_DC, FLAG_C);
+end package;