From 89deb50e231c15f3021c52102067fdbac95151d8 Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Sun, 17 Dec 2017 16:09:47 +0000 Subject: [PATCH] Add litp This instruction prepares a vector for vs_3_0-style lighting by clamping to certain bounds. --- Manual.md | 1 + source/maestro_opcodes.h | 2 +- source/picasso_assembler.cpp | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Manual.md b/Manual.md index 59a156f..a30da01 100644 --- a/Manual.md +++ b/Manual.md @@ -310,6 +310,7 @@ Syntax | Description `min rDest, rSrc1, rSrc2` | `ex2 rDest, rSrc1` | `lg2 rDest, rSrc1` | +`litp rDest, rSrc1` | `flr rDest, rSrc1` | `rcp rDest, rSrc1` | `rsq rDest, rSrc1` | diff --git a/source/maestro_opcodes.h b/source/maestro_opcodes.h index 75b9177..67981c2 100644 --- a/source/maestro_opcodes.h +++ b/source/maestro_opcodes.h @@ -8,7 +8,7 @@ enum MAESTRO_DST, MAESTRO_EX2, MAESTRO_LG2, - MAESTRO_unk7, + MAESTRO_LITP, MAESTRO_MUL, MAESTRO_SGE, MAESTRO_SLT, diff --git a/source/picasso_assembler.cpp b/source/picasso_assembler.cpp index 9460178..bb6360d 100644 --- a/source/picasso_assembler.cpp +++ b/source/picasso_assembler.cpp @@ -1256,6 +1256,7 @@ static const cmdTableType cmdTable[] = DEC_COMMAND(EX2, format1u), DEC_COMMAND(LG2, format1u), + DEC_COMMAND(LITP, format1u), DEC_COMMAND(FLR, format1u), DEC_COMMAND(RCP, format1u), DEC_COMMAND(RSQ, format1u),