Added MOV Immidiate to REG/MEM
This commit is contained in:
parent
5af6d720c3
commit
6ea34a3525
BIN
boot_code/brainfuck_mandelbrot.stage
Normal file
BIN
boot_code/brainfuck_mandelbrot.stage
Normal file
Binary file not shown.
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user