X-Git-Url: http://git.joshuawise.com/firearm.git/blobdiff_plain/35c2aa5eb94e1ed39b6bfc120424f0b208b1a62c..03cf736e2c85ee881927ceef1fae0542c85077da:/ARM_Constants.v diff --git a/ARM_Constants.v b/ARM_Constants.v index 6a54819..2398e8d 100644 --- a/ARM_Constants.v +++ b/ARM_Constants.v @@ -69,3 +69,11 @@ `define DECODE_CDP 32'b????1110???????????????????0???? /* Coprocessor data op */ `define DECODE_MRCMCR 32'b????1110???????????????????1???? /* Coprocessor register transfer */ `define DECODE_SWI 32'b????1111???????????????????????? /* SWI */ + +`define MODE_USR 5'b10000 +`define MODE_FIQ 5'b10001 +`define MODE_IRQ 5'b10010 +`define MODE_SVC 5'b10011 +`define MODE_ABT 5'b10111 +`define MODE_UND 5'b11011 +`define MODE_SYS 5'b11111