ARC-stuff
/
loda-rust
/rust_project
/arc-competition
/payload
/loda-arc-challenge
/programs
/80af3007-1.asm
; Submitted by Simon Strandgaard | |
; Program Type: simple | |
mov | ,|
f11 101060 ; most popular color | ,|
; is background_color | |
; remove space around the object | |
mov | ,|
f11 101160 ; trim | ,|
; scaled down to 3x3 | |
mov | ,|
mov 3 | ,|
mov 3 | ,|
f31 101200 ; resize | ,|
; mask | |
mov | , ; image|
mov | , ; color|
f21 101251 ; Convert to a mask image by converting `color` to 0 and converting anything else to to 1. | ,|
; an empty tile | |
mov | , ; color|
mov 3 ; height | ,|
mov 3 ; width | ,|
f31 101010 ; Create new image with size (x, y) and filled with color z | ,|
; Layout tiles | |
mov | ,|
mov | , ; tile0|
mov | , ; tile1|
f31 102110 ; Create a big composition of tiles. | ,|
mov | ,|