Politehica din Bucuresti proiect de diplomă Facultatea transporturi
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ş: |