intrinsic_statements
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
intrinsic_statements [2020/02/15 23:08] – created adminz | intrinsic_statements [2020/03/03 21:35] (current) – [Implementation] jtwine | ||
---|---|---|---|
Line 16: | Line 16: | ||
<code c> | <code c> | ||
__Delay 50; // Delay For About 2 Seconds | __Delay 50; // Delay For About 2 Seconds | ||
+ | __Delay Reg2; // Delay For Whatever Value Is In REG2 | ||
</ | </ | ||
- | ==== __Delay ==== | ||
- | The '' | ||
- | The syntax of the statement is: '' | + | ==== __Fill ==== |
+ | The '' | ||
- | The counter value is a 32-bit value and a value of 25 is about 1 second. | + | The syntax |
<code c> | <code c> | ||
- | __Delay 50; // Delay For About 2 Seconds | + | __Fill From Reg1 To Reg2 With 0xAA; |
+ | </code> | ||
+ | |||
+ | |||
+ | ==== __FillRamp ==== | ||
+ | The '' | ||
+ | |||
+ | The syntax of the statement is: '' | ||
+ | |||
+ | <code c> | ||
+ | __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 67: | Line 77: | ||
Goto FillReturn; | Goto FillReturn; | ||
- | :End // End Of Program 99 | + | |
+ | EndProgram; | ||
</ | </ | ||
+ | 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.1581829692.txt.gz · Last modified: 2020/02/15 23:08 by adminz