MicroChip Floating Point Format?
请教:
下面是一个把浮点数转变成整数的函数说明,请问转变以后的整数的格式究竟是怎样的?还有: 24 bit 2's complement integer right justified in AARG+B0, AARG+B1, AARG+B2是什么意思?它是说24位的2的补码整数,右对齐放在AARG+B0, AARG+B1, AARG+B2地方吗?2's complement 指的是什么?我在MicroChip技术文档花了些工夫,还是没弄懂是怎么回事。
;-------------------------------------------------------------------------------
;
; Float to integer conversion
; Input: 32 bit floating point number in AEXP, AARG+B0, AARG+B1, AARG+B2
; Use: CALL INT32
; Output: 24 bit 2's complement integer right justified in AARG+B0, AARG+B1,
; AARG+B2
; Result: AARG <-- INT( AARG )
; Timing: 26+6*7+6+16 = 90 clks RND = 0
; 26+6*7+6+24 = 98 clks RND = 1, SAT = 0
; 26+6*7+6+26 = 100 clks RND = 1, SAT = 1
;
;-------------------------------------------------------------------------------
发表时间:2003年4月12日15:41:06