User Tools

Site Tools


intrinsic_statements

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision Both sides next revision
intrinsic_statements [2020/02/15 23:08]
adminz created
intrinsic_statements [2020/02/15 23:14]
adminz
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
 </​code>​ </​code>​
  
-==== __Delay ==== 
-The ''​%%__%%Delay''​ statement is causes execution to pause for a specified amount of time.  Internally, a counter value is decremented and tested against zero.  If the value is greater than zero, the value is decremented and tested again, etc. until the value reaches zero and processing resumes. 
  
-The syntax of the statement is: ''​%%__%%Delay <​count>;​''​+==== __Fill ==== 
 +The ''​%%__%%Fill'' ​statement fills a range of memory with a specific byte.  During the fill operation, the byte value remains static.
  
-The counter value is a 32-bit value and a value of 25 is about 1 second.+The syntax ​of the statement ​is: ''​%%__%%Fill From <​address>​ To <​address>​ With <​byte>;''​
  
 <code c> <code c>
-__Delay 50   // Delay For About 2 Seconds+__Fill From Reg1 To Reg2 With 0xAA 
 +</​code>​ 
 + 
 + 
 +==== __FillRamp ==== 
 +The ''​%%__%%FillRamp''​ statement fills a range of memory with a byte value, and increments the byte value during the fill operation. ​ After the byte reaches 0xFF (255) it is reset back to zero. 
 + 
 +The syntax of the statement is: ''​%%__%%FillRamp From <​address>​ To <​address>​ With <​byte>​;''​ 
 + 
 +<code c> 
 +__FillRamp From Reg1 To Reg2 With 0x42
 </​code>​ </​code>​
  
Line 70: Line 80:
 </​code>​ </​code>​
  
 +When a intrinsic statement is encountered,​ the statement is replaced with code to populate the necessary registers with the necessary parameters and a call to Program 99 is made.
intrinsic_statements.txt · Last modified: 2020/03/03 21:35 by jtwine