搜尋此網誌

[TTL] teraterm 16進位相加

; convert hex to integer, do addition and convert integer back to hex
for step 1 32
  hexnum = '0xabc12300'
  str2int num hexnum
  num = num + step
  sprintf2 var "0x%x" num
  sendln var
  mpause 200
next
; output should be 0xabc12301 to 0xabc12320

沒有留言:

張貼留言