Skip to content

Instantly share code, notes, and snippets.

@nimaid
Created August 22, 2023 01:41
Show Gist options
  • Save nimaid/80d26ebc2483d41acb4c7f549bef6d13 to your computer and use it in GitHub Desktop.
Save nimaid/80d26ebc2483d41acb4c7f549bef6d13 to your computer and use it in GitHub Desktop.
Minecraft "Redstone Pen" RLC Code - Shift Register
# A simple shift register
#
# U is clock
# D is data in
# R, B, Y, G is out (in order)
G=IF(U.RE, Y, G)
Y=IF(U.RE, B, Y)
B=IF(U.RE, R, B)
R=IF(U.RE, D, R)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment