Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SET A, 0x8000 ; Set the register A to 0x8000
- SET B, [0x9000] ; Set B to 0x9000, beginning of the cycle
- IFE B, 0x0000 ; If B is equal to the value of 0x0000, aka check the input. If there's no input go to the next operation and go back to the beginning of the cycle
- SET PC, 0x0002 ; Set the PC register to 0x0002
- BOR B, 0x7000 ; Bitwise OR operation
- SET [A], B ; Set [A] as B.
- SET [0x9000], 0x0000 ; Set the val of 0x0000 to [0x9000]
- ADD A, 0x0001 ; Add A + 0x0001
- SET PC, 0x0002 ; End and go back to the beginning of the cycle
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement