]> cloudbase.mooo.com Git - avrcpm.git/blobdiff - avr/heap.asm
SVN --> GIT
[avrcpm.git] / avr / heap.asm
index e144369a0c4ab6118c877d32a1d0bab34798c139..a1c8000bc68651eb33603e17b8efeaf235c66496 100644 (file)
@@ -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
-