TIS Advanced
TIS Advanced 包含两个新模块,以及执行模块中的若干新指令。
新模块
执行模块的新指令
浮点算术指令
ADDF、SUBF、MULF 和 DIVF 的行为类似于其整数对应指令,但它们将 ACC 中的数据视为符合 IEEE-754 标准的半精度浮点数进行操作。
请注意,可以将整数值存储在 ACC 中并尝试对其进行浮点计算,反之亦然。这可能会导致产生错误的值。用户有责任确保仅对正确的数据表示执行操作。
浮点流程控制指令
JEZF、JNZF、JGZF 和 JLZF 指令的行为类似于其整数对应指令 JEZ、JNZ、JGZ 和 JLZ,但如上所述的浮点算术运算一样,它们将 ACC 中的值视为 IEEE-754 半精度浮点数进行操作。
浮点转换指令
FLT 指令会将存储在 ACC 中的整数值转换为 IEEE-754 半精度浮点表示形式。INT 指令会将存储在 ACC 中的浮点值转换为 16 位有符号补码整数表示形式;这与标准 TIS-3D 算术运算所使用的表示形式相同。转换为整数表示时,浮点值将四舍五入到最接近的整数,平局时向上取整。
MOV 指令变更
MOV 指令已扩展以支持处理浮点字面量。例如,指令 MOV 0.25 ACC 将不再导致编译器报错,而是会按预期将浮点值 0.25 加载到 ACC 寄存器中。
TIS Advanced
TIS Advanced features include two new modules, and several new instructions for the Execution Module.
New Modules
New Instructions for Execution Module
Floating Point Arithmetic Instructions
ADDF, SUBF, MULF, and DIVF behave like their integer counterparts, however, they operate on ACC as though the data contained within represents an IEEE-754 compliant half-precision floating point number.
Note that it is possible to store an integer value in ACC and attempt floating point calculations on it, and vice versa. This is likely to produce incorrect values. It is the user's responsibility to ensure that operations are only performed on the correct data representation.
Floating Point Flow Control Instructions
The JEZF, JNZF, JGZF, and JLZF instructions behave like their integer counterparts JEZ, JNZ, JGZ, and JLZ, however, like the floating point arithmetic operations above, they operate on ACC as though the value contained within is an IEEE-754 half-precision float.
Floating Point Conversion Instructions
The FLT instruction will convert an integer value stored in ACC to a IEEE-754 half-precision floating point representation. The INT instruction will convert a floating point value stored in ACC to a 16-bit signed two's complement integer representation; the same representation used by standard TIS-3D arithmetic operations. Converting to integer representation will round the floating point value to the nearest whole number, with ties rounding upwards.
MOV Instruction Changes
The MOV instruction has been extended to support handling floating point literals. For example, the instruction MOV 0.25 ACC will no longer be a compiler error, and will now load the floating point value 0.25 into the ACC register as expected.
下载 TIS Advanced
下载 TIS Advanced
下载 TIS Advanced
下载 TIS Advanced
下载 TIS Advanced
下载 TIS Advanced
下载 TIS Advanced
下载 TIS Advanced
移植到 1.20.1 并修复磁带存储模块中的错误
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
AE2:一款流行的自动化与存储模组
模组
基于 GTCEu 1.12.2 的现代 GregTech
模组
让你能够在世界中的任何位置定位结构。
模组
高科技机械、强大的能量生成、炫酷的小工具以及更多内容。现已登陆 Modrinth!
模组
一款轻量级模组,允许服务器管理员对抗透视作弊者。
评论 0
登录后参与评分
还没有评论,来抢沙发吧