Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Custom type name, total bytes, and function name
- typename="Val*8"
- bytecount=4
- functionbasename="valueTimesEight"
- --Function that reads custom value to display properly
- function valueTimesEight_bytestovalue(b1,b2,b3,b4,address)
- return (byteTableToDword({b1,b2,b3,b4}) / 8)
- end
- --Function that writes custom value to display properly
- function valueTimesEight_valuetobytes(i,address)
- return unpack(dwordToByteTable(i * 8)) --Thanks FreeER for the unpack() idea.
- end
- --Return for CE use
- return typename,bytecount,functionbasename
Advertisement
Add Comment
Please, Sign In to add comment