There's no way to do that directly using ARRAYWRITE (perhaps there is, by preloading system variables, but I'm not going to research that). But if you have some RAM to spare you can:
Code:
ActualArray VAR BYTE[32]
TempArray VAR BYTE[16]
Start VAR BYTE
idx VAR BYTE
Main:
ArrayWrite TempArray,["Hello World!", 0] ' What you want written, note the null at the end = important!
Start = 10 ' Where you want it written in the main array, make sure to not go out of bounds.
GOSUB WriteArray
END
WriteArray:
idx = 0
WHILE TempArray[idx] <> 0
ActualArray[Start + idx] = TempArray[idx]
idx = idx + 1
WEND
RETURN
Bookmarks