No cache version.

Caching disabled. Default setting for this page:enabled (code LNG204)
If the display is too slow, you can disable the user mode to view the cached version.

P-Code

Autre jeu d'instructions p-code

Steven Pemberton et Martin Danielsref 3 proposent une implémentation Pascal du P-code comme le montre le tableau suivant :

InstructionOpération sur la pileParamDescription
AvantAprès
ABI(i)i Absolute value of integer
ABR(r)r Absolute value of real
ADI(i,i)i Adds two integers on the top of the stack and leaves an integer result
ADR(r,r)r Adds two reals on the top of the stack and leaves a real result
CHKcNo changePQChecks value is between upper and lower bounds
CHR(i)c Converts integer to character
CSPSpecialQCall standard procedure
CUPSpecialPQCall user procedure
DECc(x)xQDecrement
DIF(s, s)s Set difference
DVI(i,i)i Integer division
DVR(r,r)r Real division
ENTSpecialPQEnter block
EOF(a)b Test on end of file
EQUc(x,x)bQCompare on equal
FJP(b)  False jump
FLO(i,r)r,r Float next to the top
FLT(i)r Float top of the stack
GEQc(x,x)bQCompare on greater or equal
INCc(x)xQIncrement
INDc(a)xQIndexed fetch
INN(i,s)b Test set membership
INT(s,s)s Set intersection
IOR(b,b)b Boolean inciusive OR
IXA(a,i)aQCompute indexed address
LAO aQLoad base level address
LCA aQLoad address of constant
LCI xPQLoad constant indirect - assembler generated
LDA aPQLoad address with level P
LDCc xQLoad constant
LDOc xQLoad contents of base level address
LEQc(x,x)bQCompare on less than or equal
LESc(x,x)bQCompare on less than
LODc xPQLoad contents of address
MOD(i,i)i Modulo
MOV(a,a) QMove
MPI(i,i)i Integer multiplication
MPR(r,r)r Real multiplication
MSTSpecialPMark stack
NEQc(x,x)bQCompare on not equal
NGI(i)i Integer sign inversion
NGR(r)r Real sign inversion
NOT(b)b Boolean not
ODD(i)b Test on odd
ORDc(x)i Convert to integer
RETcSpecial Return from block
SBI(i,i)i Integer subtraction
SBR(r,r)r Real subtraction
SGS(i)s Generate singleton set
SQI(i)i Squareinteger
SQR(r)r Square real
SROc(x) QStore at base level address
STOc(a,x)  Store at base level address
STPNo effect Stop
STRc(x) PQStore at level P
TRC(r)i Truncate
UJCNo effect Error in case statement
UJPNo effectQUnconditional jump
UNI(s, s)s Set union
XJP(i) QIndexed jump

Types à utiliser dans la pile:

a address
b boolean
c character
i integer
r real
s set
x un des types qui précèdent

Contents Haut

Retour à la page sur le p-code.Error Infobrol

Can not display this page of the Infobrol website

Type of error (18-01)

Unknown format specifier "&"

Please try again in a few minutes…

Return to the home page




Steph