ARC-stuff
/
loda-rust
/rust_project
/arc-competition
/payload
/loda-arc-challenge
/programs
/27f8ce4f-1.asm
| ; Submitted by Simon Strandgaard | |
| ; Program Type: simple | |
| mov , | |
| f11 ,101060 ; most popular color | |
| ; tile_width | |
| mov , | |
| f11 ,101000 ; Get width of image | |
| mov ,5 | |
| f20 ,1033 ; Assert input[0] is less than or equal to input[1]. | |
| ; tile_height | |
| mov , | |
| f11 ,101001 ; Get height of image | |
| mov ,5 | |
| f20 ,1033 ; Assert input[0] is less than or equal to input[1]. | |
| ; tile | |
| mov ,0 ; color | |
| mov , ; height | |
| mov , ; width | |
| f31 ,101010 ; Create new image with size (x, y) and filled with color z | |
| ; mask | |
| mov , ; image | |
| mov , ; color | |
| f21 ,101251 ; Convert to a mask image by converting `color` to 0 and converting anything else to to 1. | |
| mov , ; tile0 | |
| mov , ; tile1 | |
| f31 ,102110 ; Create a big composition of tiles. | |
| mov , | |