diff --git a/docs/at.md b/docs/at.md index 52471ba1e..42c98682a 100644 --- a/docs/at.md +++ b/docs/at.md @@ -15,5 +15,5 @@ It can be used both as a [PRINT modifier](print#modifiers.md) and a [variable de * [PRINT](print.md) * [DIM](dim.md) - Variable Declarations -* [POS](pos.md) -* [CSRLIN](csrlin.md) +* [POS](library/pos.md) +* [CSRLIN](library/csrlin.md) diff --git a/docs/library.md b/docs/library.md index 34626c77b..f92ede9f4 100644 --- a/docs/library.md +++ b/docs/library.md @@ -40,7 +40,7 @@ Here are some alternative functions using faster integer and fixed output. * [clearBox.bas](library/clearbox.md)
Sub to clear a subset of the screen - a window defined with a character box. -* [crslin.bas](csrlin.md) +* [crslin.bas](library/csrlin.md)
Function to get the current cursor vertical co-ordinate. * [fastPlot.bas](library/fastplot.md) @@ -58,7 +58,7 @@ instead of just character positions. (20% faster per character, but much larger
Function to mirror the bits in a byte - the basis of printing, say a left facing sprite, if all you have are right facing graphics stored. -* [pos.bas](pos.md) +* [pos.bas](library/pos.md)
Function to get the current cursor horizontal co-ordinate. * [windowPaint.bas](library/windowpaint.md) diff --git a/docs/library/attr.md b/docs/library/attr.md new file mode 100644 index 000000000..3171f6bb8 --- /dev/null +++ b/docs/library/attr.md @@ -0,0 +1,35 @@ +##Requirements + +ATTR is a library function to be included with the following command: + +``` +#include +``` + +##Description +`ATTR(row, col)` + +Returns the ATTR (color attribute) of the given screen coordinate at the given row and column. + + +##Sample usage + +``` +#include + +PRINT AT 9, 10;PAPER 4; "A" +LET s = ATTR$(9, 10) +PRINT AT 0, 0; "The attribute of screen position 9, 10 is "; s +``` + +##Remarks + +* This function extends the one in Sinclair BASIC (and it's compatible with it) since it also allows rows 22 and 23. + + + +##See also + +* [ CSRLIN ](csrlin.md) +* [ POS](pos.md) +* [ AT ](../at.md) diff --git a/docs/csrlin.md b/docs/library/csrlin.md similarity index 94% rename from docs/csrlin.md rename to docs/library/csrlin.md index 0fb9ccec5..2dedc0da1 100644 --- a/docs/csrlin.md +++ b/docs/library/csrlin.md @@ -25,4 +25,4 @@ CSRLIN is a library function to be included with the following command: ##See also * [ POS](pos.md) -* [ AT ](at.md) +* [ AT ](../at.md) diff --git a/docs/pos.md b/docs/library/pos.md similarity index 94% rename from docs/pos.md rename to docs/library/pos.md index fb4852375..5d5d83f97 100644 --- a/docs/pos.md +++ b/docs/library/pos.md @@ -16,5 +16,5 @@ POS is a library function to be included with the following directive: ##See also -* [ AT ](at.md) +* [ AT ](../at.md) * [ CSRLIN](csrlin.md) diff --git a/docs/screen.md b/docs/library/screen.md similarity index 100% rename from docs/screen.md rename to docs/library/screen.md