| |
20 Bytes for Ukraine [2022] |
Released At :
Anti (Ukraine) War Demo Diskbox
Credits :
Download :
Look for downloads on external sites:
Pokefinder.org
User Comment Submitted by Mindcooler on 8 March 2022 User Comment Submitted by MuZZa on 7 March 2022
Thank you both for the free lesson! | User Comment Submitted by Frostbyte on 7 March 2022
That EOR masking is elegant. I've used it before for simple colour switching, it just didn't occur to me to use it for rasterline as well. I kept staring at the several branches in my code, shuffling them around with the pain of having to cater for $7a and $7b getting corrupted and also timing, and thought that "this doesn't need to be this complicated". As you proved, it didn't. :D | User Comment Submitted by wil on 7 March 2022
@frostbyte: very elegant solution! | User Comment Submitted by Frostbyte on 6 March 2022
This seems equally stable as the original $a7 version, and brings it down to 19 bytes:
*=$7c
sei
lda #$a7
sta ($83,x)
!: cmp $d011,y
bne !-
sta $d020
eor #$a7^$26
bne !- | User Comment Submitted by wil on 6 March 2022
Version where the flag is symmetric:
*=$7c
sei
lda #$97
sty $d011
:
cmp $d012
bne :-
sta $d020
eor #$97^$26
bne :-
| User Comment Submitted by Frostbyte on 6 March 2022
Holy f**k dude. Mind blown. |
|
|
|
| Search CSDb |
| Navigate | |
|
| Detailed Info | |
|
| Fun Stuff | |
· Goofs · Hidden Parts · Trivia
|
|
| Forum | |
|
| Support CSDb | |
|
| |
|