Skip to content

Instantly share code, notes, and snippets.

@ThomasTheSpaceFox
Created February 2, 2018 19:07
Show Gist options
  • Save ThomasTheSpaceFox/0e623cb5b799cdf988705230a39b851d to your computer and use it in GitHub Desktop.
Save ThomasTheSpaceFox/0e623cb5b799cdf988705230a39b851d to your computer and use it in GitHub Desktop.
#this is a short example of how offsetlen acts like a mask.
setreg1|---------
#set mem20 to an arbitrary value to read
setreg2|+0+---++0
IOwrite2|>mem20
#dump register 1 in its full negative state
dumpreg1
#set offset len to radix offset 1, trit length 1
offsetlen|off,1,1
#read memory and dump new state of register 1
IOread1|>mem20
dumpreg1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment