mirror of
https://github.com/sxpert/hp-saturn
synced 2025-01-19 10:26:58 +01:00
implement a couple mode opcodes
This commit is contained in:
parent
bb298832ff
commit
ccd373243f
1 changed files with 27 additions and 0 deletions
27
opcodes/Dx_regs_field_A.v
Normal file
27
opcodes/Dx_regs_field_A.v
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* Dx
|
||||||
|
* register manipulation field A
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
`include "decstates.v"
|
||||||
|
|
||||||
|
`DEC_DX: begin
|
||||||
|
case (nibble)
|
||||||
|
4'hA: begin
|
||||||
|
A[19:0] <= C[19:0];
|
||||||
|
$display("%5h A=C\tA", inst_start_PC);
|
||||||
|
end
|
||||||
|
4'hE: begin
|
||||||
|
A[19:0] <= C[19:0];
|
||||||
|
C[19:0] <= A[19:0];
|
||||||
|
$display("%5h ACEX\tA", inst_start_PC);
|
||||||
|
end
|
||||||
|
default: begin
|
||||||
|
$display("ERROR : DEC_DX");
|
||||||
|
decode_error <= 1;
|
||||||
|
end
|
||||||
|
endcase
|
||||||
|
decstate <= `DEC_START;
|
||||||
|
end
|
Loading…
Reference in a new issue