File size: 671 Bytes
d5bfab8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
; Submitted by Simon Strandgaard
; Program Type: advanced
mov $80,$99
mov $81,100
mov $82,102
lps $80
mov $0,$$81
mov $1,$0
f11 $1,101000 ; Get width of image
mov $2,5
f20 $1,1033 ; Assert input[0] is less than or equal to input[1].
mov $2,$0
f11 $2,101001 ; Get height of image
mov $3,5
f20 $2,1033 ; Assert input[0] is less than or equal to input[1].
mov $5,$0
f11 $5,101240 ; Number of unique colors in image.
sub $5,1
mul $1,$5
mul $2,$5
f31 $0,101200 ; Resize image to size width x height
mov $$82,$0
add $81,100
add $82,100
lpe
; template: "b91ae062-1.asm"
; mutate: ReplaceLineWithHistogram
; mutate: ReplaceLineWithHistogram
|