sh4: fix FLDS/FMOV/FMOV.S/FNEG/FRCHG/FSTS documentation typos

This commit is contained in:
Zack Buhman 2024-04-23 15:58:37 +08:00
parent ea3c389944
commit 367079adbd
20 changed files with 14 additions and 25 deletions

View File

@ -5,5 +5,5 @@ IF (FpuIsDisabled(sr) AND IsDelaySlot())
THROW SLOTFPUDIS; THROW SLOTFPUDIS;
IF (FpuIsDisabled(sr)) IF (FpuIsDisabled(sr))
THROW FPUDIS; THROW FPUDIS;
fpul ← op1; fpul ← FloatRegister32(op1);
FPUL ← ZeroExtend32(fpul); FPUL ← ZeroExtend32(fpul);

View File

@ -1,7 +1,6 @@
1111nnn0mmmm1001 1111nnn0mmmm1001
Available only when PR=0 and SZ=1 Available only when PR=0 and SZ=1
sr ← ZeroExtend32(SR); sr ← ZeroExtend32(SR);
fps ← ZeroExtend32(FPSCR);
op1 ← SignExtend32(Rm); op1 ← SignExtend32(Rm);
IF (FpuIsDisabled(sr) AND IsDelaySlot()) IF (FpuIsDisabled(sr) AND IsDelaySlot())
THROW SLOTFPUDIS; THROW SLOTFPUDIS;

View File

@ -1,7 +1,6 @@
1111nnn1mmmm1001 1111nnn1mmmm1001
Available only when PR=0 and SZ=1 Available only when PR=0 and SZ=1
sr ← ZeroExtend32(SR); sr ← ZeroExtend32(SR);
fps ← ZeroExtend32(FPSCR);
op1 ← SignExtend32(Rm); op1 ← SignExtend32(Rm);
IF (FpuIsDisabled(sr) AND IsDelaySlot()) IF (FpuIsDisabled(sr) AND IsDelaySlot())
THROW SLOTFPUDIS; THROW SLOTFPUDIS;

View File

@ -1,7 +1,6 @@
1111nnn1mmmm1000 1111nnn1mmmm1000
Available only when PR=0 and SZ=1 Available only when PR=0 and SZ=1
sr ← ZeroExtend32(SR); sr ← ZeroExtend32(SR);
fps ← ZeroExtend32(FPSCR);
op1 ← SignExtend32(Rm); op1 ← SignExtend32(Rm);
IF (FpuIsDisabled(sr) AND IsDelaySlot()) IF (FpuIsDisabled(sr) AND IsDelaySlot())
THROW SLOTFPUDIS; THROW SLOTFPUDIS;

View File

@ -1,7 +1,6 @@
1111nnnnmmm01011 1111nnnnmmm01011
Available only when PR=0 and SZ=1 Available only when PR=0 and SZ=1
sr ← ZeroExtend32(SR); sr ← ZeroExtend32(SR);
fps ← ZeroExtend32(FPSCR);
op1 ← FloatValuePair32(FP2m); op1 ← FloatValuePair32(FP2m);
op2 ← SignExtend32(Rn); op2 ← SignExtend32(Rn);
IF (FpuIsDisabled(sr) AND IsDelaySlot()) IF (FpuIsDisabled(sr) AND IsDelaySlot())

View File

@ -1,7 +1,6 @@
1111nnnnmmm01010 1111nnnnmmm01010
Available only when PR=0 and SZ=1 Available only when PR=0 and SZ=1
sr ← ZeroExtend32(SR); sr ← ZeroExtend32(SR);
fps ← ZeroExtend32(FPSCR);
op1 ← FloatValuePair32(FP2m); op1 ← FloatValuePair32(FP2m);
op2 ← SignExtend32(Rn); op2 ← SignExtend32(Rn);
IF (FpuIsDisabled(sr) AND IsDelaySlot()) IF (FpuIsDisabled(sr) AND IsDelaySlot())

View File

@ -1,7 +1,6 @@
1111nnnnmmmm1100 1111nnnnmmmm1100
Available only when SZ=0 Available only when SZ=0
sr ← ZeroExtend32(SR); sr ← ZeroExtend32(SR);
fps ← ZeroExtend32(FPSCR);
op1 ← FloatValue32(FRm); op1 ← FloatValue32(FRm);
IF (FpuIsDisabled(sr) AND IsDelaySlot()) IF (FpuIsDisabled(sr) AND IsDelaySlot())
THROW SLOTFPUDIS; THROW SLOTFPUDIS;

View File

@ -1,7 +1,6 @@
1111nnnnmmm11011 1111nnnnmmm11011
Available only when PR=0 and SZ=1 Available only when PR=0 and SZ=1
sr ← ZeroExtend32(SR); sr ← ZeroExtend32(SR);
fps ← ZeroExtend32(FPSCR);
op1 ← FloatValuePair32(XD2m); op1 ← FloatValuePair32(XD2m);
op2 ← SignExtend32(Rn); op2 ← SignExtend32(Rn);
IF (FpuIsDisabled(sr) AND IsDelaySlot()) IF (FpuIsDisabled(sr) AND IsDelaySlot())
@ -12,4 +11,4 @@ address ← ZeroExtend32(op2 - 8);
WriteMemoryPair32(address, op1); WriteMemoryPair32(address, op1);
op2 ← address; op2 ← address;
Rn ← Register(op2); Rn ← Register(op2);
FPSCR ← ZeroExtend32(fps);

View File

@ -1,7 +1,6 @@
1111nnnnmmm11010 1111nnnnmmm11010
Available only when PR=0 and SZ=1 Available only when PR=0 and SZ=1
sr ← ZeroExtend32(SR); sr ← ZeroExtend32(SR);
fps ← ZeroExtend32(FPSCR);
op1 ← FloatValuePair32(XD2m); op1 ← FloatValuePair32(XD2m);
op2 ← SignExtend32(Rn); op2 ← SignExtend32(Rn);
IF (FpuIsDisabled(sr) AND IsDelaySlot()) IF (FpuIsDisabled(sr) AND IsDelaySlot())

View File

@ -1,7 +1,6 @@
1111nnn0mmm11100 1111nnn0mmm11100
Available only when PR=0 and SZ=1 Available only when PR=0 and SZ=1
sr ← ZeroExtend32(SR); sr ← ZeroExtend32(SR);
fps ← ZeroExtend32(FPSCR);
op1 ← FloatValuePair32(XD2m); op1 ← FloatValuePair32(XD2m);
IF (FpuIsDisabled(sr) AND IsDelaySlot()) IF (FpuIsDisabled(sr) AND IsDelaySlot())
THROW SLOTFPUDIS; THROW SLOTFPUDIS;

View File

@ -1,7 +1,6 @@
1111nnn1mmm11100 1111nnn1mmm11100
Available only when PR=0 and SZ=1 Available only when PR=0 and SZ=1
sr ← ZeroExtend32(SR); sr ← ZeroExtend32(SR);
fps ← ZeroExtend32(FPSCR);
op1 ← FloatValue64(XD2m); op1 ← FloatValue64(XD2m);
IF (FpuIsDisabled(sr) AND IsDelaySlot()) IF (FpuIsDisabled(sr) AND IsDelaySlot())
THROW SLOTFPUDIS; THROW SLOTFPUDIS;

View File

@ -8,5 +8,5 @@ THROW SLOTFPUDIS;
IF (FpuIsDisabled(sr)) IF (FpuIsDisabled(sr))
THROW FPUDIS; THROW FPUDIS;
address ← ZeroExtend32(r0 + op1); address ← ZeroExtend32(r0 + op1);
op2 ← ReadMemory32(address); op2 ← FloatValue32(ReadMemory32(address));
FRn ← FloatRegister32(op2); FRn ← FloatRegister32(op2);

View File

@ -7,7 +7,7 @@ THROW SLOTFPUDIS;
IF (FpuIsDisabled(sr)) IF (FpuIsDisabled(sr))
THROW FPUDIS; THROW FPUDIS;
address ← ZeroExtend32(op1); address ← ZeroExtend32(op1);
op2 ← ReadMemory32(address); op2 ← FloatValue32(ReadMemory32(address));
op1 ← op1 + 4; op1 ← op1 + 4;
Rm ← Register(op1); Rm ← Register(op1);
FRn ← FloatRegister32(op2); FRn ← FloatRegister32(op2);

View File

@ -1,12 +1,11 @@
1111nnnnmmmm1000 1111nnnnmmmm1000
Available only when SZ=0 Available only when SZ=0
sr ← ZeroExtend32(SR); sr ← ZeroExtend32(SR);
fps ← ZeroExtend32(FPSCR);
op1 ← SignExtend32(Rm); op1 ← SignExtend32(Rm);
IF (FpuIsDisabled(sr) AND IsDelaySlot()) IF (FpuIsDisabled(sr) AND IsDelaySlot())
THROW SLOTFPUDIS; THROW SLOTFPUDIS;
IF (FpuIsDisabled(sr)) IF (FpuIsDisabled(sr))
THROW FPUDIS; THROW FPUDIS;
address ← ZeroExtend32(op1); address ← ZeroExtend32(op1);
op2 ← ReadMemory32(address); op2 ← FloatValue32(ReadMemory32(address));
FRn ← FloatRegister32(op2); FRn ← FloatRegister32(op2);

View File

@ -9,4 +9,5 @@ THROW SLOTFPUDIS;
IF (FpuIsDisabled(sr)) IF (FpuIsDisabled(sr))
THROW FPUDIS; THROW FPUDIS;
address ← ZeroExtend32(r0 + op2); address ← ZeroExtend32(r0 + op2);
WriteMemory32(address, op1); value ← FloatRegister32(op1);
WriteMemory32(address, value);

View File

@ -1,7 +1,6 @@
1111nnnnmmmm1011 1111nnnnmmmm1011
Available only when SZ=0 Available only when SZ=0
sr ← ZeroExtend32(SR); sr ← ZeroExtend32(SR);
fps ← ZeroExtend32(FPSCR);
op1 ← FloatValue32(FRm); op1 ← FloatValue32(FRm);
op2 ← SignExtend32(Rn); op2 ← SignExtend32(Rn);
IF (FpuIsDisabled(sr) AND IsDelaySlot()) IF (FpuIsDisabled(sr) AND IsDelaySlot())
@ -9,6 +8,7 @@ THROW SLOTFPUDIS;
IF (FpuIsDisabled(sr)) IF (FpuIsDisabled(sr))
THROW FPUDIS; THROW FPUDIS;
address ← ZeroExtend32(op2 - 4); address ← ZeroExtend32(op2 - 4);
WriteMemory32(address, op1); value ← FloatRegister32(op1);
WriteMemory32(address, value);
op2 ← address; op2 ← address;
Rn ← Register(op2); Rn ← Register(op2);

View File

@ -1,7 +1,6 @@
1111nnnnmmmm1010 1111nnnnmmmm1010
Available only when SZ=0 Available only when SZ=0
sr ← ZeroExtend32(SR); sr ← ZeroExtend32(SR);
fps ← ZeroExtend32(FPSCR);
op1 ← FloatValue32(FRm); op1 ← FloatValue32(FRm);
op2 ← SignExtend32(Rn); op2 ← SignExtend32(Rn);
IF (FpuIsDisabled(sr) AND IsDelaySlot()) IF (FpuIsDisabled(sr) AND IsDelaySlot())
@ -9,4 +8,5 @@ THROW SLOTFPUDIS;
IF (FpuIsDisabled(sr)) IF (FpuIsDisabled(sr))
THROW FPUDIS; THROW FPUDIS;
address ← ZeroExtend32(op2); address ← ZeroExtend32(op2);
WriteMemory32(address, op1); value ← FloatRegister32(op1);
WriteMemory32(address, value);

View File

@ -1,7 +1,6 @@
1111nnnn01001101 1111nnnn01001101
Available only when PR=0 Available only when PR=0
sr ← ZeroExtend32(SR); sr ← ZeroExtend32(SR);
fps ← ZeroExtend32(FPSCR);
op1 ← FloatValue32(FRn); op1 ← FloatValue32(FRn);
IF (FpuIsDisabled(sr) AND IsDelaySlot()) IF (FpuIsDisabled(sr) AND IsDelaySlot())
THROW SLOTFPUDIS; THROW SLOTFPUDIS;

View File

@ -1,10 +1,10 @@
1111101111111101 1111101111111101
Available only when PR=0 Available only when PR=0
sr ← ZeroExtend32(SR); sr ← ZeroExtend32(SR);
fr ← ZeroExtend1(SR.FR); fr ← ZeroExtend1(FPSCR.FR);
IF (FpuIsDisabled(sr) AND IsDelaySlot()) IF (FpuIsDisabled(sr) AND IsDelaySlot())
THROW SLOTFPUDIS; THROW SLOTFPUDIS;
IF (FpuIsDisabled(sr)) IF (FpuIsDisabled(sr))
THROW FPUDIS; THROW FPUDIS;
fr ← fr ⊕ 1; fr ← fr ⊕ 1;
SR.FR ← Bit(fr); FPSCR.FR ← Bit(fr);

View File

@ -5,5 +5,5 @@ IF (FpuIsDisabled(sr) AND IsDelaySlot())
THROW SLOTFPUDIS; THROW SLOTFPUDIS;
IF (FpuIsDisabled(sr)) IF (FpuIsDisabled(sr))
THROW FPUDIS; THROW FPUDIS;
op1 ← fpul; op1 ← FloatValue32(fpul);
FRn ← FloatRegister32(op1); FRn ← FloatRegister32(op1);