SPL to HP C/XL Migration Guide (30231-90001)

7- 1
Chapter 7 Machine Level Constructs
This chapter discusses conversion issues related to sections in Chapter
6 of the
Systems Programming Language Reference Manual
.
ASSEMBLE Statement
Table 7-1. ASSEMBLE Statement
---------------------------------------------------------------------------------------------
|||
| SPL | HP C/XL Equivalent |
|||
---------------------------------------------------------------------------------------------
|||
|
assemble-statement
: | No equivalent. |
|||
| ASSEMBLE | |
|||
|({[
label-id
:]
instruction
}[;...] )| |
|||
---------------------------------------------------------------------------------------------
|||
| Allows direct access to MPE V machine | Many of the instructions have functional |
| instructions. | equivalents in HP C/XL. See the example |
| | below. |
|||
| | In general, register manipulation |
| | instructions will have to be redesigned and |
| | rewritten, whereas memory reference |
| | instructions frequently have |
| | straightforward replacements. |
|||
---------------------------------------------------------------------------------------------
|||
| Example: | HP C/XL version: |
|||
| ASSEMBLE(INCM ivar);
increment memory
| ++ivar;
same operation
|
|||
---------------------------------------------------------------------------------------------
DELETE, PUSH, SET, and WITH Statements
The SPL DELETE, PUSH, SET, and WITH statements directly manipulate the
MPE V hardware stack and registers.
In the absence of any assumed stack environment, HP C/XL has no direct
equivalent constructs. A stack could be emulated in an array, but, in
most cases, a simple redesign is preferable.