mirror of
https://github.com/badvision/lawless-legends.git
synced 2024-12-27 10:29:40 +00:00
Update README.md
This commit is contained in:
parent
4f68415d59
commit
67ad5ec115
@ -170,9 +170,15 @@ Values can be treated as pointers by preceding them with a ‘^’ for byte poin
|
|||||||
|
|
||||||
Addresses of variables and functions can be taken with a preceding ‘@’, address-of operator. Parenthesis can surround an expression to be used as a pointer, but not address-of.
|
Addresses of variables and functions can be taken with a preceding ‘@’, address-of operator. Parenthesis can surround an expression to be used as a pointer, but not address-of.
|
||||||
|
|
||||||
Functions can have optional parameters when called. Defined functions without parameters can be called simply:
|
Functions can have optional parameters when called and local variables. Defined functions without parameters can be called simply, without any paranthesis.
|
||||||
|
|
||||||
```
|
```
|
||||||
|
def drawscrn(topline, leftpos)
|
||||||
|
byte i
|
||||||
|
for i = 0 to 23
|
||||||
|
drawline(textbuff[i + topline], leftpos)
|
||||||
|
next
|
||||||
|
end
|
||||||
def redraw
|
def redraw
|
||||||
cursoff
|
cursoff
|
||||||
drawscrn(scrntop, scrnleft)
|
drawscrn(scrntop, scrnleft)
|
||||||
|
Loading…
Reference in New Issue
Block a user