Produkte


dd

Beispielskripts: Kategorien

Produkte » Produkte

Beispiel-Scripts

Kategorie: Data Manipulation

example_CopyIndex
 
this command copies a number of bytes from a source to a destination. A Source is given by a variable identifier and an offset within the source buffer. The destination is also given by a variable identifier and the offset is given in a variable too.
Download  example_CopyIndex.dss
Example_copy_data
 
Copy a number of bytes from one variable to another. The number of bytes is a variable containing the number of bytes, Source and Destination are meant to be Buffer variables; it is also possible to use an ordinal variable as a byte, word or long instead. If necessary it is possible to indicate an ordinal variable.
Download  Example_copy_data.dss
example_define_memory
 
A constant value is transfered into the memory used by the given variable. This command is used to predefine a variable with a constant value.
Download  example_define_memory.dss
example_MemoryCharPos
 
This procedure seaches a buffer variable for the appearance of a single character (given in variable b_SearchChar). w_Length is a In-Out-Variable and must contain the number of bytes to be searched and returns the index of the first appearance of the character. If the character is not part of the searchstring the MaxBytes variable contains value 0xFFFF after execution. You may optionally give a dynamic start index where the search should start from (the variable w_Index of type word).
Download  example_MemoryCharPos.dss
example_MemoryCompare
 
The purpose of this command is to find a difference in two buffers. You must give a length (how many bytes should be compared), which must be a word value. a_Source1 and a_Source2 are the buffers to be compared. You may optionally give two word variables as start indices where comparison should start in the buffer ( using a variable here means this values may be dynamically, instead of using a static, fixed index for the buffer variable. After the execution of this command the variable w_length holds the result, so any value previously contained in this variable may be modified. The result is 0, if both buffers are identical for the given length, 0 : B1=B2 ; The result is 1, if buffer B1 are greater B2 for the given length, 1 : B1>B2 ; The result is 2, if buffer B2 are greater B1 for the given length, 2 : B1<B2 ;
Download  example_MemoryCompare.dss
example_MemorySearchString
 
This procedure searches a buffer a_Source1 for the appearance of a string (given in buffer a_Source2 with the lenght w_Length2). w_Length1 is a In-Out-Variable and must contain the number of bytes to be searched and returns the index of the first appearance of the string from the main buffer (a_source1) , independent if you use an otional parameter.. If the string is not part of the searchstring the w_Length1 variable contains value 0xFFFF after execution. Optional parameter [w_index1, w_index2]: You may optionally give a dynamic start index where the search should start from (the variable w_Index1/w_Index2 is type word).
Download  example_MemorySearchString.dss

 

« Zurück