ARC-stuff
/
loda-rust
/rust_project
/arc-competition
/payload
/loda-arc-challenge
/programs
/1f876c06-1.asm
| ; ARC:1f876c06 | |
| ; Submitted by Simon Strandgaard | |
| ; Program Type: simple | |
| mov ,255 ; color when there is no neighbour | |
| ; ignore mask | |
| mov , | |
| mov , | |
| f11 ,101060 ; most popular color | |
| f21 ,101250 ; mask where color is | |
| ; is most popular color | |
| ; is the ignore mask | |
| ; neighbour_up_left | |
| mov , | |
| mov , | |
| mov , | |
| f31 ,102064 ; neighbour 'UpLeft' | |
| mov , | |
| ; neighbour_up_right | |
| mov , | |
| mov , | |
| mov , | |
| f31 ,102065 ; neighbour 'UpRight' | |
| mov , | |
| ; neighbour_down_left | |
| mov , | |
| mov , | |
| mov , | |
| f31 ,102066 ; neighbour 'DownLeft' | |
| mov , | |
| ; neighbour_down_right | |
| mov , | |
| mov , | |
| mov , | |
| f31 ,102067 ; neighbour 'DownRight' | |
| mov , | |
| ; prepare the output image | |
| mov , ; clone input image | |
| ; set pixel where the two images agree | |
| mov , ; color to ignore | |
| mov , ; neighbour_down_left | |
| mov , ; neighbour_up_right | |
| f41 ,102100 ; set pixel where two images agree | |
| ; set pixel where the two images agree | |
| mov , ; color to ignore | |
| mov , ; neighbour_down_right | |
| mov , ; neighbour_up_left | |
| f41 ,102100 ; set pixel where two images agree | |
| mov , | |