intrinsic_statements
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
intrinsic_statements [2020/02/15 23:14] – adminz | intrinsic_statements [2020/03/03 21:35] (current) – [Implementation] jtwine | ||
---|---|---|---|
Line 26: | Line 26: | ||
<code c> | <code c> | ||
- | __Fill From Reg1 To Reg2 With 0xAA | + | __Fill From Reg1 To Reg2 With 0xAA; |
</ | </ | ||
Line 36: | Line 36: | ||
<code c> | <code c> | ||
- | __FillRamp From Reg1 To Reg2 With 0x42 | + | __FillRamp From Reg1 To Reg2 With 0x42; |
</ | </ | ||
==== Implementation ==== | ==== Implementation ==== | ||
- | The intrinsic statements are implemented via a custom program (Program #99, '' | + | The intrinsic statements are implemented via a custom program (Program #99, '' |
<code c> | <code c> | ||
Program __IP__P99; | Program __IP__P99; | ||
- | Alias Command=RegF; | + | Alias Command=RegF; |
Alias FromOrDelay=RegE; | Alias FromOrDelay=RegE; | ||
- | Alias To=RegD; | + | Alias To=RegD; |
Alias FillChar=RegC; | Alias FillChar=RegC; | ||
Line 77: | Line 77: | ||
Goto FillReturn; | Goto FillReturn; | ||
- | :End // End Of Program 99 | + | |
+ | EndProgram; | ||
</ | </ | ||
- | When a intrinsic statement is encountered, | + | When a intrinsic statement is encountered, |
+ | |||
+ | <code c> | ||
+ | __Delay 50; | ||
+ | </ | ||
+ | |||
+ | -Is replaced with the equivalent of the following code: | ||
+ | |||
+ | <code c> | ||
+ | RegF = 1; | ||
+ | RegE = 50; | ||
+ | Execute 99; | ||
+ | </ |
intrinsic_statements.1581830063.txt.gz · Last modified: 2020/02/15 23:14 by adminz