auswendig20241111.txt

ret
reti

rjmp
rcall
ret

ret gegenspieler Return

Stack: LIFO - Last in First Out

AVR: 256 RAM oder mehr
Atmega8: Mehr als 256 Byte
Stack:
SPL Low
SPH High

HIGH (RAMEND)
LOW (RAMEND)

AT90S4433
.include "4433def.inc"

HIGH (RAMEND)
LOW (RAMEND)
SPL
SPH
SP
ZH
ZL

.include "m8def.inc"

ldi r16, HIGH (RAMEND)
out SPH, r16
ldi r16, LOW (RAMEND)
out SPH, r16

ldi r16, 0xff
out PORTB, r16

rcall routine1

end: rjmp end

routine1:
ldi r16, 0b01010101
out PORTD, r16
ret

...

ldi r16, HIGH (LABEL1)
push r16
ldi r16, LOW (LABEL1)
push r16
ret

LABEL1:

rjmp
rcall
ret
ijmp
icall
reti
push
pop