# n = 6909045637428952499 # bin = n.to_s(2).rjust(64, '0') # ds = bin.each_char.each_slice(8).map(&:join) # # puts n # 8.times { |i| puts "[#{i}] = #{ds[i]}" } # puts # 8.times { |i| puts "[#{i}] = #{ds[8-i-1]}" } # puts # puts imm s"8" $nowrite sbsl $lm0v $aluf $lr0v imm i"16" $nowrite ibsl $r0v $aluf $n[1,0,2,3]