X-Git-Url: http://cloudbase.mooo.com/gitweb/avrcpm.git/blobdiff_plain/825ecc9d1df4b7b39bbbcbc6461d0407dd7d9d22..HEAD:/avr/heap.asm diff --git a/avr/heap.asm b/avr/heap.asm index e144369..a1c8000 100644 --- a/avr/heap.asm +++ b/avr/heap.asm @@ -48,7 +48,7 @@ hp_print_free: pop r14 pop r15 ret -.endif +.endif ; Init heap @@ -59,19 +59,19 @@ heap_init: printnewline printstring "Heap init: Start: " rjmp hp_dbg1 -.endif +.endif heap_release: .if HEAP_DEBUG printnewline printstring "Heap release: Start: " hp_dbg1: -.endif +.endif sts hp_top,temp sts hp_top+1,temp2 .if HEAP_DEBUG rcall printhexw rcall hp_print_free -.endif +.endif ret ; Get memory block from heap. @@ -91,14 +91,14 @@ heap_get: clr r15 rcall print_ultoa pop temp - pop temp2 -.endif + pop temp2 +.endif lds r14,hp_top lds r15,hp_top+1 add temp,r14 adc temp2,r15 brcs hp_full - + ; zero flag clear here sts hp_top,temp @@ -123,4 +123,3 @@ hp_get_dbg1: ; vim:set ts=8 noet nowrap -