Re: [理工] 計組
※ 引述《Byzantin (拜占庭)》之銘言:
: Suppose that all of conditional branch instructions except
: beq and bne were removed from MIPS instruction set along with
: slt and all of its variants.
: Show how to perform
: slt $t0,$s0,$s1
我的答案,再改一次XD
可以參考一下:)
sub $t3, $s0, $s1
sll $t4, $t3, 1
srl $t4, $t4, 1
xor $t2, $t3, t4
add $t0, $zero, $zero
beq $t2, $zero, NOT_SET
addi $t0, $t0, 1
NOT_SET:add $t0, $t0, $zero
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.30.141
※ 編輯: wheels 來自: 140.112.30.141 (01/31 17:11)
→
01/31 17:15, , 1F
01/31 17:15, 1F
→
01/31 17:20, , 2F
01/31 17:20, 2F
→
01/31 17:22, , 3F
01/31 17:22, 3F
→
01/31 17:23, , 4F
01/31 17:23, 4F
討論串 (同標題文章)