Doc fixes
This commit is contained in:
parent
c6b3e619c3
commit
834548d7b9
1 changed files with 4 additions and 3 deletions
|
|
@ -233,6 +233,7 @@ Sets compiler pragmas (options).
|
|||
```
|
||||
#PRAGMA _P_USE_LONG_JUMP 1
|
||||
#PRAGMA _P_USE_IMMUTABLE_CODE 1
|
||||
#PRAGMA _P_USE_IMMUTABLE_CODE 0 //turn off pragma
|
||||
#PRAGMA _P_USE_CBM_STRINGS 1
|
||||
```
|
||||
|
||||
|
|
@ -306,7 +307,7 @@ ENDSCRIPT
|
|||
```
|
||||
SCRIPT
|
||||
for i in range(256):
|
||||
print(" !byte %d" % i)
|
||||
print(" !8 %d" % i)
|
||||
ENDSCRIPT
|
||||
```
|
||||
|
||||
|
|
@ -319,7 +320,7 @@ SCRIPT
|
|||
angle = (i * 2.0 * math.pi) / 256.0
|
||||
sine = math.sin(angle)
|
||||
value = int((sine + 1.0) * 127.5)
|
||||
print(" !byte %d" % value)
|
||||
print(" !8 %d" % value)
|
||||
ENDSCRIPT
|
||||
```
|
||||
|
||||
|
|
@ -331,7 +332,7 @@ SCRIPT
|
|||
# Reference variables in generated assembly
|
||||
print("lookup:")
|
||||
for i in range(64):
|
||||
print(" !byte %d" % (i * 2))
|
||||
print(" !8 %d" % (i * 2))
|
||||
print(" ; Table size is stored in |tableSize|")
|
||||
ENDSCRIPT
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue