+1 arrow 6s Legacy Doomfletch, 3T1 Hysteria Rustic Base, Foe Bites

hyggeliscious
"You have great power. You're right to be proud. It's unfortunate you have to die now, but I will honor you with 45% of my strength."
leg pen vinktar vs attack leg vinktar comparison added to description
"You have great power. You're right to be proud. It's unfortunate you have to die now, but I will honor you with 45% of my strength."
Raybamn
"You have great power. You're right to be proud. It's unfortunate you have to die now, but I will honor you with 45% of my strength."
8 bit guy
"You have great power. You're right to be proud. It's unfortunate you have to die now, but I will honor you with 45% of my strength."
def temp = r16


.org 0x000
rjmp init
.org 0x100


init:
ldi temp, high(RAMEND) ; initializing the stack pointer
out SPH, temp ; since we are going to call a subroutine
ldi temp, low(RAMEND) ; and use the stack for input parameters
out SPL, temp ; and return values.
; The call site
; ----------------------------------------------



clr temp ; clearing register and pushing it to the stack,
push temp ; making room for a return value.
ldi temp, 4 ; saving the 1st input parameter to a register
push temp ; and pushing it to the stack.
ldi temp, 2 ; saving the 2nd input parameter to a register
push temp ; and pushing it to the stack.
call add_numbers ; calling the subroutine.
pop temp ; popping items of the stack
pop temp ; until we eventually get to where we made
pop temp ; space for the return value. (3x push = 3x pop)
end:
rjmp end



; The callee
; ----------------------------------------------
add_numbers: ; Add Numbers "function"
push r16 ; pushing all working registers to the stack
push r17 ; so hat we can restore the current state.
push XH
push XL
in XH, SPH ; Setting the X pointer to point to the same
in XL, SPL ; place in memory as the stack pointer.
adiw XL, 3 + 1 + 4 ; calculating a pointer to the last input



; parameter on the stack.
ld r16, X+ ; loading 2nd input parameter.
ld r17, X+ ; loading 1st input parameter.
add r16, r17 ; adding values.
st X, r16 ; storing the return value.
pop XL ; restoring woring registers
pop XH ; assuring that our subroutine
pop r17 ; don't have any side effects.
pop r16
ret
"You have great power. You're right to be proud. It's unfortunate you have to die now, but I will honor you with 45% of my strength."
fffvvqwew
"You have great power. You're right to be proud. It's unfortunate you have to die now, but I will honor you with 45% of my strength."

"You have great power. You're right to be proud. It's unfortunate you have to die now, but I will honor you with 45% of my strength."
standard is full of players nowadays.
"You have great power. You're right to be proud. It's unfortunate you have to die now, but I will honor you with 45% of my strength."
virtual board
"You have great power. You're right to be proud. It's unfortunate you have to die now, but I will honor you with 45% of my strength."
If 2 vegans are arguing, is it still considered a beef?
"You have great power. You're right to be proud. It's unfortunate you have to die now, but I will honor you with 45% of my strength."

Report Forum Post

Report Account:

Report Type

Additional Info