Is there any function in QBMS script to copy from file some bits and paste them to other place or other file? Something like 838286568 copy "28" or copy 0x4-0x5 if not, it would be really useful, thanks
set VAR string "838286568" string VAR << 3 string VAR >> 4 print "%VAR%"
log MEMORY_FILE 0 0 # initialize putct VAR string -1 MEMORY_FILE # because put string adds also a 0x00 byte put 0x0d byte MEMORY_FILE # carriage-return (optional) put 0x0a byte MEMORY_FILE # line-feed (optional)
get SIZE asize MEMORY_FILE log "dump.txt" 0 SIZE MEMORY_FILE