Generate lower case ASCII alphabet: Difference between revisions

Content added Content deleted
(Added EasyLang implementation)
m (Fix highlighting, comment spacing.)
Line 1,384: Line 1,384:
Two methods are demonstrated below
Two methods are demonstrated below


<syntaxhighlight lang="text">create lalpha 27 chars allot \ create a string in memory for 26 letters and count byte
<syntaxhighlight lang="forth">create lalpha 27 chars allot \ create a string in memory for 26 letters and count byte


: ]lalpha ( index -- addr ) \ index the string like an array (return an address)
: ]lalpha ( index -- addr ) \ index the string like an array (return an address)
lalpha char+ + ;
lalpha char+ + ;