Created
January 3, 2022 07:31
-
-
Save podstawek/0027227613121455b8ce3771c5589a3e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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