You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/spin.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -420,7 +420,7 @@ Unlike the "official" Spin2 compiler, flexspin does not accept an address for th
420
420
421
421
(3) The area set aside for inline assembly is smaller by default in flexspin than in Parallax's Spin2. This may be changed with the --fcache parameter to flexspin.
422
422
423
-
(4) In PNut/PropTool only the first 16 local variables may be accessed in inline assembly; flexspin has this restriction only for bytecode output, for assembly output other locals may be accessed as well.
423
+
(4) In PNut/PropTool only the first 16 local variables may be accessed in inline assembly; flexspin has this restriction only for bytecode output. For assembly output other locals may be accessed as well.
424
424
425
425
### Method pointers
426
426
@@ -807,15 +807,15 @@ There are some work-arounds to reduce the impact of this, so it probably will on
807
807
808
808
Many Spin1 programs may be ported from the Propeller 1 to the Propeller 2, but there are some important exceptions:
809
809
810
-
- PASM must be translated to P2ASM. The assembly language for the Propeller 1 and Propeller 2 are different; there are some similarities, but in general any assembly language code will have to be translated to work on the different processor.
810
+
- PASM must be converted to P2ASM. The assembly language for the Propeller 1 and Propeller 2 are different; there are some similarities, but in general any assembly language code will have to be translated ``by hand'' to work on the different processor.
811
811
812
812
- WAITPEQ, WAITPNE, and WAITVID are not implemented on P2
813
813
814
814
- The hardware register set is different; the P2 does not have the CTRx, FRQx, PHSx, VCFG, or VSCL registers.
815
815
816
816
## Compatibility with PropTool
817
817
818
-
flexspin is mostly, but not completely, compatible with the standard Spin2 compiler. Not all Spin2 builtin functions are available on the P1; only the ones listed in the "New intrinsics for both P1 and P2" are available on all platforms. But when compiling for P2 all of the Spin2 builtin functions should be available.
818
+
flexspin is mostly, but not completely, compatible with the standard Spin2 compiler. Not all Spin2 builtin functions are available on the P1; only the ones listed in the "New intrinsics for both P1 and P2" are available on all platforms. But when compiling for P2 all of the Spin2 builtin functions should be available, unless otherwise noted.
819
819
820
820
### Layout of variables in memory
821
821
@@ -833,7 +833,7 @@ The flexspin parser works differently from the PNut parser, and in complicated n
833
833
834
834
- In general try not to nest expressions involving `:`
835
835
- Do not use `:` in `lookup`/`lookdown` type expressions except as the separator between the selection expression and the list of results
836
-
- Make liberal use of parentheses to resolve ambiguity, e.g. write `a ? (b()) : 1` or `a ? (b():1) : 2` to distinguish between `:1` as an indirect method marker nad `:1` as the "else" part of the `?` operator.
836
+
- Make liberal use of parentheses to resolve ambiguity, e.g. write `a ? (b()) : 1` or `a ? (b():1) : 2` to distinguish between `:1` as an indirect method marker and `:1` as the "else" part of the `?` operator.
837
837
838
838
### ORG/END
839
839
@@ -857,7 +857,7 @@ Debug statements are output only when some variant of the `-g` flag (e.g. `-g` o
857
857
858
858
Only a subset of the Spin2 `DEBUG` directives are accepted in normal `-g` mode:
Other debug directives are ignored, with a warning.
863
863
@@ -877,4 +877,4 @@ The `REGLOAD` and `REGEXEC` Spin2 instructions are not supported at this time, m
877
877
878
878
### Detecting FlexSpin versus PNut
879
879
880
-
FlexSpin understands a special comments that start with `{$flexspin` and treats these as regular code. PNut will ignore these comments, so this provides a way to mix FlexSpin specific code and PNut specific code. See the preprocessor section above ("Special Preprocessor Comments") for further details and an example.
880
+
FlexSpin understands special comments that start with `{$flexspin` and treats these as regular code. PNut will ignore these comments, so this provides a way to mix FlexSpin specific code and PNut specific code. See the preprocessor section above ("Special Preprocessor Comments") for further details and an example.
0 commit comments