Made the processor actually little-endian
This commit is contained in:
parent
19fcf11f63
commit
6561018206
@ -1,4 +1,4 @@
|
||||
ADD AX,#0x55AA
|
||||
ADD CX,#0xEFBE
|
||||
ADD CX,#0x1141
|
||||
ADD AX,#0x1111
|
||||
ADD AX,#0xDEAD
|
||||
ADD CX,#0xBEEF
|
||||
ADD CX,#0x4111
|
||||
ADD AX,#0x2200
|
||||
|
@ -219,17 +219,18 @@ always @(posedge clock) begin
|
||||
end
|
||||
`PROC_DE_LOAD_16_PARAM:begin
|
||||
if(unaligned_access==1)begin
|
||||
PARAM1[15:8] = external_data_bus[7:0];
|
||||
PARAM1[7:0] = external_data_bus[7:0];
|
||||
ProgCount=ProgCount+1;
|
||||
state=`PROC_DE_LOAD_16_EXTRA_FETCH_SET;
|
||||
end else begin
|
||||
PARAM1 <= external_data_bus;
|
||||
PARAM1[7:0] = external_data_bus[15:8];
|
||||
PARAM1[15:8] = external_data_bus[7:0];
|
||||
ProgCount=ProgCount+1;
|
||||
state=`PROC_EX_STATE_ENTRY;
|
||||
end
|
||||
end
|
||||
`PROC_DE_LOAD_16_EXTRA_FETCH:begin
|
||||
PARAM1[7:0] = external_data_bus[15:8];
|
||||
PARAM1[15:8] = external_data_bus[15:8];
|
||||
state=`PROC_EX_STATE_ENTRY;
|
||||
end
|
||||
`PROC_EX_STATE_ENTRY:begin
|
||||
|
Loading…
Reference in New Issue
Block a user