.rlemode

.rlemode run_indicator [, value_first]

Sets the current RLE mode - first, the byte value used to represent a run (defaults to $91), followed by a flag to set whether the value or the length is written first after the run indicator (defaults to true).

; FILE.BIN contains the string "ABCDDDDDEFG"
.rlemode $91, 1
.incbin "file.bin" ; .db 'A','B','C',$91,'D',5,'E','F','G'
.rlemode $F0, 0
.incbin "file.bin" ; .db 'A','B','C',$F0,5,'D','E','F','G'
.rlemode $00
.incbin "file.bin" ; .db 'A','B','C',$00,'D',5,'E','F','G'