ARC-stuff
/
loda-rust
/rust_project
/arc-competition
/payload
/loda-arc-challenge
/programs
/50cb2852-1.asm
; Submitted by Simon Strandgaard | |
; Program Type: simple | |
mov | ,|
f11 102140 ; Traverse all pixels in the 3x3 convolution and count how many have the same color as the center. | ,|
mov 8 | ,|
f21 101253 ; Convert to a mask image by converting `pixel_color >= threshold_color` to 1 and converting anything else to to 0. | ,|
mov | ,|
mov 0 | ,|
f21 101251 ; Convert to a mask image by converting `color` to 0 and converting anything else to to 1. | ,|
f21 101255 ; AND between two masks | ,|
mov 42 | ,|
mov | ,|
f31 102131 ; Pick pixels from image and color. When the mask is 0 then pick from the image. When the mask is [1..255] then use the `default_color`. | ,|
mov | ,|