Talk:SmileBASIC (Petit Computer 3)/@comment-5539101-20141003100939/@comment-15296152-20141003180427

Now with a clear picture, we (those who don't read Japanese) can use OCR/translation software to get an idea of what many of hte commands do. For instance...

PUSH/POP/SHIFT/UNSHIFT are array functions. PUSH adds an element to the back. POP extracts from the back. SHIFT extracts from the front, and UNSHIFT adds to the front.

VAR may actually be the SmileBASIC form of a variable array that you can adjust. CHKVAR would be to see if the array exists. Not sure about VAR though, as it seems to be like CHKVAR, but with something else.

WAVSET - index, ASDR, "string containing the data" [, pitch]

WAVSETA - index, ASDR, array holding the data [,pitch][,top index][,terminating index]

WAVSET looks like BGMPRG, but includes pitch control (likely used for fine tuning). From what I understand, strings are up to 1024 characters long. WAVSETA uses a numerical array instead. This is just my assumption, but the top index and terminating index may be the loop area and not a validation range, allowing for a unique intro to the instrument, like with those built-in ones in PTC. This is mainly because PTC3 internally knows the size of the arrays and how to deal with them, much like how we have PUSH/POP now, so it doesn't need those checks manually.