madisp
val bytes = byteArrayOf(-0x01, -0x02) // prints 0000fffe println(String.format("%08x", BigInteger(1, bytes)))