2.3.12 print

Concatenates the results of one or more expressions.

Syntax

print [%printing_formatexpression...

Where:

printing_format

Specifies either [ascii | binary | decimal | hex]. If none specified then the default is decimal format.

expression

Specifies an expression that is evaluated and the result is returned.

Example 2-12 Examples

print %h r(R0)                  ; Display R0 register in hexadecimal
print %d r(PC)                  ; Display PC register in decimal
print 4+4                       ; Display result of expression in decimal
print "Result is " 4+4          ; Display string and result of expression
print "Value is: " myVar        ; Display string and variable value
print v.value(myVar)            ; Display variable value
Non-ConfidentialPDF file icon PDF versionARM DUI0452Z
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.