2019-02-07 22:54:06 +01:00
|
|
|
/******************************************************************************
|
|
|
|
* 0X
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2019-02-08 00:02:55 +01:00
|
|
|
`DEC_0X: begin
|
|
|
|
case (nibble)
|
2019-02-08 11:06:19 +01:00
|
|
|
4'h3:
|
|
|
|
`include "opcodes/03_RTNCC.v"
|
|
|
|
// execute_cycle <= 1;
|
|
|
|
// decstate <= `DEC_RTNCC;
|
2019-02-08 00:02:55 +01:00
|
|
|
4'h4: begin
|
2019-02-08 11:06:19 +01:00
|
|
|
`include "opcodes/04_SETHEX.v"
|
|
|
|
// execute_cycle <= 1;
|
|
|
|
// decstate <= `DEC_SETHEX;
|
2019-02-08 00:02:55 +01:00
|
|
|
end
|
|
|
|
4'h5: begin
|
|
|
|
execute_cycle <= 1;
|
|
|
|
decstate <= `DEC_SETDEC;
|
|
|
|
end
|
|
|
|
default: begin
|
|
|
|
$display("ERROR : DEC_0X");
|
|
|
|
decode_error <= 1;
|
|
|
|
end
|
|
|
|
endcase
|
|
|
|
end
|
|
|
|
|