R0 = pointer to template string
R1 = pointer to buffer to hold resulting string
R2 = pointer to string %0
R3 = pointer to string %1
R4 = pointer to string %2
R5 = pointer to string %3
R6 = pointer to string %4
Exit:
R0 = pointer to zero-byte terminator of substituted string
Takes a string of the form 'This is an %0 of the %1 of %2_%3'
and substitutes the given strings when %0,%1,%2,%3 or %4 is
encountered. eg:
SYS "WimpExt_SubstituteArgs","This is an %0 of the %1 of %2_%3", q%, "example", "use", "WimpExt", "SubstituteArgs" TO ,string$
would give 'This is an example of the use of
WimpExt_SubstituteArgs'. Any strings not used in the template do
not need to have sensible values in the corresponding register,
although you may like to make the register zero, in which case
WimpExtension will fault that string's use. To include a % in
the template, use %%.
|
|
|