Source Program Coding
4-10
4
An ASCII string which contains spaces may not be used as an
argument to the WORD directive, even if the string is enclosed
inside single quotes. In this case, the mm command may be used in
place of the assembler's WORD directive. Note that to use mm, the
one-line assembler must be exited.
The following example illustrates the Assembler Error which will
occur if the user attempts to enter a string containing spaces using
the WORD directive. Following the error is an example of the use
of the mm command to put the string into memory instead.
PPC1-Bug>as 80000
user enters WORD 'abcd', which works Þne
00080000 61626364 ORI R2,R11,$6364
user enters WORD 'ab d', which is invalid
00080004 00000000 WORD $00000000? WORD 'ab d'
Assembler Error: Operand Conversion
exit the one-line assembler
00080004 00000000 WORD $00000000? .
use mm command instead
PPC1-Bug>mm 80004
00080004 00000000? 'ab d'
00080008 00000000? .
verify this using md command
PPC1-Bug>md 80000:4
00080000 61626364 61622064 00000000 00000000 abcdab d........
SYSCALL System Call Directive
The function of this directive is to aid you in making the
appropriate system call entry to the debugger system call routines.
The format for this directive is:
SYSCALL <.ROUTINE>
This is assembled as:
ADDI R10,R0,
$XXXX
SC
Where
$XXXX
is the 16-bit code for the system call routine.
Comments to this Manuals