memory pack question


Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 11842
Posted: 03:08pm 15 Jan 2025      

Yes, it's a manual omission. I've asked Geoff to update.

You could also do what Harm wants with an UNPACK from char to integer and then a pack from integer to word. Bit clunkier but works fine.

s$="1234567890"
a%=Peek(varaddr s$)+1
Dim o%(9),oo%(4)
Memory unpack a%,o%(),10,8
Memory pack o%(),oo%(),10,32
For i=0 To 4
Print Hex$(oo%(i))
Next