ARC-stuff
/
loda-rust
/rust_project
/arc-competition
/payload
/loda-arc-challenge
/programs
/623ea044-1.asm
| ; 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 | |
| ; draw diagonal line - down right | |
| mov , ; neighbour_up_left | |
| mov , | |
| f31 ,102101 ; Set pixel where the image has a pixel value different than the color parameter. | |
| ; draw diagonal line - down left | |
| mov , ; neighbour_up_right | |
| mov , | |
| f31 ,102101 ; Set pixel where the image has a pixel value different than the color parameter. | |
| ; draw diagonal line - up right | |
| mov , ; neighbour_down_left | |
| mov , | |
| f31 ,102101 ; Set pixel where the image has a pixel value different than the color parameter. | |
| ; draw diagonal line - up left | |
| mov , ; neighbour_down_right | |
| mov , | |
| f31 ,102101 ; Set pixel where the image has a pixel value different than the color parameter. | |
| mov , | |