Merge remote-tracking branch 'upstream/master' into cassette

This commit is contained in:
Christian Groessler
2014-02-21 21:02:54 +01:00
3 changed files with 13 additions and 4 deletions

View File

@@ -61,7 +61,7 @@ __heapmaxavail:
; F = F->next;
@L2: iny ; Points to F->next
@L2: iny ; Points to F->next
lda (ptr1),y
tax
iny
@@ -69,8 +69,17 @@ __heapmaxavail:
stx ptr1
jmp @L1
; return Size;
; if (Size < HEAP_ADMIN_SPACE) return 0;
@L3: lda ptr2
sub #HEAP_ADMIN_SPACE
ldx ptr2+1
bcs @L5
bne @L4
txa
rts
; return Size - HEAP_ADMIN_SPACE;
@L4: dex
@L5: rts