Politehica din Bucuresti proiect de diplomă Facultatea transporturi


ICALL - Indirect Call to Subroutine



Yüklə 1,46 Mb.
səhifə90/104
tarix09.01.2022
ölçüsü1,46 Mb.
#91958
1   ...   86   87   88   89   90   91   92   93   ...   104
ICALL - Indirect Call to Subroutine
Descriere:

Cheamă indirect o subrutină indicată de către registrul pointer Z în registrul fişier. Registrul pointer Z este de 16 biţi şi permite apelarea unei subrutine ce se află în primele 64k cuvinte din memoria programului. Pointerul stivei scade cu 2 la introducerea lui PC.



Operation:

(i) PC(15:0) Z(15:0) Devices with 16 bits PC, 128k bytes program memory maximum

(ii) PC(15:0) Z(15:0) Devices with 22 bits PC, 8M bytes program memory maximum

PC(21:16)0



Syntax: Operands: Program Counter: Stack:

(i) ICALL None See Operation STACK  PC + 1

SP  SP - 2 (2 bytes, 16 bits)



(ii) ICALL None See Operation STACK  PC + 1

SP  SP - 3 (3 bytes, 22 bits)



16-bit Opcode:


1001

0101

0000

1001

Status Register (SREG) and Boolean Formula:


I T H S V N Z C

-

-

-

-

-

-

-

-


Exemplu:

mov r30,r0 ; Set offset to call table

icall ; Call routine pointed to by r31:r30


Yüklə 1,46 Mb.

Dostları ilə paylaş:
1   ...   86   87   88   89   90   91   92   93   ...   104




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©muhaz.org 2024
rəhbərliyinə müraciət

gir | qeydiyyatdan keç
    Ana səhifə


yükləyin