Post Reply 
newRPL: [UPDATED April 27-2017] Firmware for testing available for download
07-15-2016, 02:47 AM
Post: #326
RE: newRPL: [UPDATED July-14-16] Firmware for testing available for download
(07-15-2016 02:40 AM)Claudio L. Wrote:  [quote='Guenter Schink' pid='58548' dateline='1468533108']
Is there a description of the SD commands, function/syntax, anywhere?

Günter

A few quick examples:

Code:

<< "/MYDIR" SDMKDIR
 "/MYDIR" SDCHDIR
"HelloWorld.txt" SDOPENWR
DUP "Hello World!" SWAP SDWRITETEXT
SDCLOSE
"Hello World!" 'HWORLD' SDSTO
>>

This example creates a directory, changes to it, opens "HelloWorld.txt" for writing in the current directory, writes the text "Hello World!" inside it and closes the file (notice the DUP and SWAP are there to keep the handle number on the stack, you'd normally want to LSTO this number to a 'handle' variable).
Finally, it stores the string "Hello World!" again into a file named 'HWORLD', but in this case not as plain text but as a newRPL string object that can be RCL'd.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: newRPL: [UPDATED July-14-16] Firmware for testing available for download - Claudio L. - 07-15-2016 02:47 AM



User(s) browsing this thread: 6 Guest(s)