mirror of
https://github.com/cc65/cc65.git
synced 2025-01-11 11:30:13 +00:00
Merge remote-tracking branch 'upstream/master' into cassette
This commit is contained in:
commit
701c59900d
@ -61,7 +61,7 @@ __heapmaxavail:
|
|||||||
|
|
||||||
; F = F->next;
|
; F = F->next;
|
||||||
|
|
||||||
@L2: iny ; Points to F->next
|
@L2: iny ; Points to F->next
|
||||||
lda (ptr1),y
|
lda (ptr1),y
|
||||||
tax
|
tax
|
||||||
iny
|
iny
|
||||||
@ -69,8 +69,17 @@ __heapmaxavail:
|
|||||||
stx ptr1
|
stx ptr1
|
||||||
jmp @L1
|
jmp @L1
|
||||||
|
|
||||||
; return Size;
|
; if (Size < HEAP_ADMIN_SPACE) return 0;
|
||||||
|
|
||||||
@L3: lda ptr2
|
@L3: lda ptr2
|
||||||
|
sub #HEAP_ADMIN_SPACE
|
||||||
ldx ptr2+1
|
ldx ptr2+1
|
||||||
|
bcs @L5
|
||||||
|
bne @L4
|
||||||
|
txa
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
; return Size - HEAP_ADMIN_SPACE;
|
||||||
|
|
||||||
|
@L4: dex
|
||||||
|
@L5: rts
|
||||||
|
@ -150,7 +150,7 @@ void GetEA (EffAddr* A)
|
|||||||
A->AddrModeSet = AM65_DIR_IND_Y;
|
A->AddrModeSet = AM65_DIR_IND_Y;
|
||||||
} else {
|
} else {
|
||||||
/* (adr) */
|
/* (adr) */
|
||||||
A->AddrModeSet = AM65_ABS_IND | AM65_DIR_IND;
|
A->AddrModeSet = AM65_ABS_IND | AM65_ABS_IND_LONG | AM65_DIR_IND;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -796,7 +796,7 @@ static unsigned char EATab[10][AM65I_COUNT] = {
|
|||||||
0x08, 0x08, 0x04, 0x0C, 0x00, 0x14, 0x1C, 0x00,
|
0x08, 0x08, 0x04, 0x0C, 0x00, 0x14, 0x1C, 0x00,
|
||||||
0x14, 0x1C, 0x00, 0x80, 0x00, 0x10, 0x00, 0x00,
|
0x14, 0x1C, 0x00, 0x80, 0x00, 0x10, 0x00, 0x00,
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||||
0x00, 0x00, 0x70
|
0x00, 0x00, 0x80
|
||||||
},
|
},
|
||||||
{ /* Table 2 */
|
{ /* Table 2 */
|
||||||
0x00, 0x00, 0x24, 0x2C, 0x0F, 0x34, 0x3C, 0x00,
|
0x00, 0x00, 0x24, 0x2C, 0x0F, 0x34, 0x3C, 0x00,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user