Skip to content

Commit

Permalink
Keywords Other is finished.
Browse files Browse the repository at this point in the history
  • Loading branch information
NormanDunbar committed Oct 7, 2016
1 parent 0647b54 commit 0048b2e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 9 deletions.
38 changes: 29 additions & 9 deletions sphinx/source/Keywords_.clean.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
==============
Keywords Other
==============

TODO
====

- _DEF% and _DEF$ have the same URL. Needs to be fixed.
- URLs generated replace '_' with '-', but, in the index they have no leading '-'. So cross references don't actually work in this file.

\_DEF%
======

Expand All @@ -7,7 +17,7 @@
| Location | DEFS (DIY Toolkit - Vol A) |
+----------+-------------------------------------------------------------------+

This function creates a table of all of the SuperBASIC PROCedures and
This function creates a table of all of the SuperBASIC PROCedures and
FuNctions used within the program currently in memory. The table appears
in the specified CONsole channel, if any (default #2). You can use the
cursor keys to highlight the required PROCedure or FuNction name and
Expand All @@ -19,7 +29,9 @@ error is reported.

**Example**

ED \_DEF%
::

ED _DEF%

**CROSS-REFERENCE**

Expand All @@ -39,7 +51,7 @@ address of a Machine Code Procedure or Funtion.
| Location | DEFS (DIY Toolkit - Vol A) |
+----------+-------------------------------------------------------------------+

This function is similar to \_DEF% in that it creates a table of all of
This function is similar to \_DEF% in that it creates a table of all of
the SuperBASIC PROCedures and FuNctions used within the program
currently in memory. The table appears in the specified CONsole channel
(if any - default #2). You can use the cursor keys to highlight the
Expand All @@ -64,19 +76,27 @@ See `\_DEF% <Keywords_.clean.html#-def>`__
| Location | DEFS (DIY Toolkit - Vol A) |
+----------+-------------------------------------------------------------------+

This function can be used to examine the SuperBASIC name list, which
This function can be used to examine the SuperBASIC name list, which
contains the names of all machine code Procedures, Functions, variables,
SuperBASIC PROCedures and SuperBASIC FuNctions which are available to
SuperBASIC.

**Example**

A program to print out the full name list (this only works on Minerva
and SMSQ/E): 100 nlist\_start=PEEK\_L (\\\\ HEX('20')) 110
nlist\_end=PEEK\_L (\\\\ HEX('24')) 120
nlist\_len=nlist\_end-nlist\_start 125 names=0 130 FOR i=0 TO nlist\_len
140 x$=\_NAME$(i) 150 names=names+1+LEN(x$) 155 IF names>nlist\_len:EXIT
i 160 PRINT i,x$ 165 PAUSE 170 END FOR i
and SMSQ/E)::

100 nlist_start=PEEK_L (\\ HEX('20'))
110 nlist_end=PEEK_L (\\ HEX('24'))
120 nlist_len=nlist_end-nlist_start
125 names=0
130 FOR i=0 TO nlist_len
140 x$=_NAME$(i)
150 names=names+1+LEN(x$)
155 IF names>nlist_len: EXIT i
160 PRINT i,x$
165 PAUSE
170 END FOR i

**CROSS-REFERENCE**

Expand Down
4 changes: 4 additions & 0 deletions sphinx/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ Contents:
Keywords U <KeywordsU.clean>
Keywords V <KeywordsV.clean>
Keywords W <KeywordsW.clean>
Keywords X <KeywordsX.clean>
Keywords Y <KeywordsY.clean>
Keywords Z <KeywordsZ.clean>
Keywords Other <Keywords_.clean>


Appendices Introduction <AppendicesIntro.clean>
Expand Down

0 comments on commit 0048b2e

Please sign in to comment.