User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
useful_programs [2019/09/16 15:10]
emozolyak [Bit functions]
useful_programs [2019/09/17 08:23] (current)
emozolyak [Bit functions]
Line 57: Line 57:
 function outBit(condition,​ alias, b) -- output bool condition as 0 /1 into a bit of a internal register ​ function outBit(condition,​ alias, b) -- output bool condition as 0 /1 into a bit of a internal register ​
      local new_value = outbit(condition,​ R(alias), b)      local new_value = outbit(condition,​ R(alias), b)
-     return ​new_value+     W(alias, ​new_value)
 end  end 
    

Page Tools