Professional Documents
Culture Documents
Block: subFill
Author:
Created: 08/02/2010 09:53:15 pm
Last Modified: 08/09/2010 03:47:00 pm
1/3
ScannerAndTechniforFreeportv6 / subFill (SBR4)
This function is used to fill a specified data area(srcByte to srcByte + TotalBytes) with a specified Byte(FillWith).
IN:
SrceByte - Starting Byte of array to fill
TotalBytes - How many Bytes to fill
FillWith - What to fill the area with
Temp:
Counter - Used for loop
Pointer - Pointer incremented in the loop for the area to put the "FillWith" data
Example:
IN:
SrcByte = 100
TotalBytes = 10
Fillwith = 'M'
AlwaysON MOV_DW
EN ENO
ADD_DI
EN ENO
MOV_DW
EN ENO
+0 IN OUT #Counter
2/3
ScannerAndTechniforFreeportv6 / subFill (SBR4)
Network 2
LABEL 99
Jump here until all data has been cleared from previous scanned data
99
LBL
AlwaysON MOV_B
EN ENO
INC_DW
EN ENO
INC_DW
EN ENO
Network 4
If COUNTER < TotalBytes then jump to 99
#Counter 99
<D JMP
#TotalBytes
3/3