Skip to content

Instantly share code, notes, and snippets.

@podstawek
Created January 3, 2022 07:31
Show Gist options
  • Save podstawek/0027227613121455b8ce3771c5589a3e to your computer and use it in GitHub Desktop.
Save podstawek/0027227613121455b8ce3771c5589a3e to your computer and use it in GitHub Desktop.
org $8000
start: ld a,%00010000 ; load accumulator with any value that sets the 4th bit
out (&fe),a ; send that value to port 254, i.e. hexadecimal FE
xor %00010000 ; flip the 4th bit to the opposite of what it was before
out (&fe),a ; send that value to port 254 again
end start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment