Generate lower case ASCII alphabet: Difference between revisions
Content added Content deleted
Jazzedpineda (talk | contribs) (Added EasyLang implementation) |
Hendursaga (talk | contribs) m (Fix highlighting, comment spacing.) |
||
Line 1,384: | Line 1,384: | ||
Two methods are demonstrated below |
Two methods are demonstrated below |
||
<syntaxhighlight lang=" |
<syntaxhighlight lang="forth">create lalpha 27 chars allot \ create a string in memory for 26 letters and count byte |
||
: ]lalpha ( index -- addr ) |
: ]lalpha ( index -- addr ) \ index the string like an array (return an address) |
||
lalpha char+ + ; |
lalpha char+ + ; |
||