Added MOV Immidiate to REG/MEM

This commit is contained in:
(Tim) Efthimis Kritikos 2023-02-24 15:25:45 +00:00
parent 5af6d720c3
commit 6ea34a3525
2 changed files with 21 additions and 0 deletions

Binary file not shown.

View File

@ -539,6 +539,27 @@ always @( CIR or SIMPLE_MICRO or seq_addr_input ) begin
ALU_1OP=`ALU_OP_ADD;
OUT_MOD=3'b101;
end
11'b1100_011x_000:begin
/* MOV - Move immediate to register/memory */
/* 1 1 0 0 0 1 1 W | MOD 0 0 0 R/M | < DISP-LO > | < DISP-HI > | DATA | DATA if W */
Wbit=CIR[8:8];
opcode_size=1;
has_operands=1;
in_alu1_sel1=2'b00;
in_alu1_sel2=2'b11;
if(Wbit==1)begin
`start_aligning_instruction;
next_state=`PROC_DE_LOAD_16_PARAM;
end else begin
`start_unaligning_instruction;
next_state=`PROC_DE_LOAD_8_PARAM;
end
OUT_MOD={1'b0,CIR[7:6]};
IN_MOD=3'b011;
RM=CIR[2:0];
end
default:begin
`invalid_instruction
end