Use structs
git-svn-id: svn://svn.cc65.org/cc65/trunk@2707 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
; size_t __fastcall__ _heapmaxavail (void);
|
||||
;
|
||||
;
|
||||
|
||||
|
||||
.importzp ptr1, ptr2
|
||||
.export __heapmaxavail
|
||||
|
||||
@@ -42,7 +42,7 @@ __heapmaxavail:
|
||||
|
||||
; if (Size < F->size) {
|
||||
|
||||
ldy #freeblock_size
|
||||
ldy #freeblock::size
|
||||
lda ptr2
|
||||
sub (ptr1),y
|
||||
iny
|
||||
@@ -52,7 +52,7 @@ __heapmaxavail:
|
||||
|
||||
; Size = F->size;
|
||||
|
||||
ldy #freeblock_size
|
||||
ldy #freeblock::size
|
||||
lda (ptr1),y
|
||||
sta ptr2
|
||||
iny
|
||||
|
||||
Reference in New Issue
Block a user