Politehica din Bucuresti proiect de diplomă Facultatea transporturi



Yüklə 1,46 Mb.
səhifə92/104
tarix09.01.2022
ölçüsü1,46 Mb.
#91958
1   ...   88   89   90   91   92   93   94   95   ...   104
-

-

-

-

-

-

-

-


Exemplu:

mov r16,r0 ; Copy r0 to r16

call check ; Call subroutine

nop ; Continue (do nothing)

check: cpi r16,$42 ; Check if r16 has a special value



breq error ; Branch if equal

ret ; Return from subroutine

error: rjmp error ; Infinite loop


RET - Return from Subroutine
Descriere:

Întoarcerea din subrutină. Adresa returnată este încarcată din stiva. Pointerul stivei creste.


Operation:

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

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


Yüklə 1,46 Mb.

Dostları ilə paylaş:
1   ...   88   89   90   91   92   93   94   95   ...   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