mirror of
https://github.com/sxpert/hp-saturn
synced 2024-11-16 19:50:19 +01:00
optimize SETDEC
This commit is contained in:
parent
0f456bf0af
commit
a56f472a45
4 changed files with 4 additions and 17 deletions
|
@ -6,10 +6,8 @@
|
|||
|
||||
`include "decstates.v"
|
||||
|
||||
//`DEC_SETHEX:
|
||||
begin
|
||||
hex_dec <= `MODE_HEX;
|
||||
// execute_cycle <= 0;
|
||||
decstate <= `DEC_START;
|
||||
`ifdef SIM
|
||||
$display("%05h SETHEX", inst_start_PC);
|
||||
|
|
|
@ -7,9 +7,8 @@
|
|||
|
||||
`include "decstates.v"
|
||||
|
||||
`DEC_SETDEC: begin
|
||||
begin
|
||||
hex_dec <= `MODE_DEC;
|
||||
execute_cycle <= 0;
|
||||
decstate <= `DEC_START;
|
||||
`ifdef SIM
|
||||
$display("%05h SETDEC", inst_start_PC);
|
||||
|
|
13
opcodes/0x.v
13
opcodes/0x.v
|
@ -8,17 +8,10 @@
|
|||
case (nibble)
|
||||
4'h3:
|
||||
`include "opcodes/03_RTNCC.v"
|
||||
// execute_cycle <= 1;
|
||||
// decstate <= `DEC_RTNCC;
|
||||
4'h4: begin
|
||||
4'h4:
|
||||
`include "opcodes/04_SETHEX.v"
|
||||
// execute_cycle <= 1;
|
||||
// decstate <= `DEC_SETHEX;
|
||||
end
|
||||
4'h5: begin
|
||||
execute_cycle <= 1;
|
||||
decstate <= `DEC_SETDEC;
|
||||
end
|
||||
4'h5:
|
||||
`include "opcodes/05_SETDEC.v"
|
||||
default: begin
|
||||
$display("ERROR : DEC_0X");
|
||||
decode_error <= 1;
|
||||
|
|
|
@ -327,9 +327,6 @@ always @(posedge dec_strobe) begin
|
|||
endcase
|
||||
end
|
||||
`include "opcodes/0x.v"
|
||||
// `include "opcodes/03_RTNCC.v"
|
||||
//`include "opcodes/04_SETHEX.v"
|
||||
`include "opcodes/05_SETDEC.v"
|
||||
`include "opcodes/2n_P_EQ_n.v"
|
||||
`include "opcodes/3n[x...]_LC.v"
|
||||
`include "opcodes/6xxx_GOTO.v"
|
||||
|
|
Loading…
Reference in a new issue