1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2025-01-01 13:30:50 +00:00

Optimized fragment. Thanks @IcePic. #513

This commit is contained in:
jespergravgaard 2020-09-15 20:13:46 +02:00
parent bce8af7d66
commit c45e992aef
9 changed files with 1003 additions and 334 deletions

View File

@ -1,4 +1,4 @@
//KICKC FRAGMENT CACHE 17a386c46b 17a386dcb0
//KICKC FRAGMENT CACHE 17a386c45a 17a386dc9c
//FRAGMENT vbuz1=vbuc1
lda #{c1}
sta {z1}

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
//KICKC FRAGMENT CACHE 17a386c46b 17a386dcb0
//KICKC FRAGMENT CACHE 17a386c45a 17a386dc9c
//FRAGMENT vbuz1=vbuc1
lda #{c1}
sta {z1}

View File

@ -1,4 +1,4 @@
//KICKC FRAGMENT CACHE 17a386c46b 17a386dcb0
//KICKC FRAGMENT CACHE 17a386c45a 17a386dc9c
//FRAGMENT vbuz1=vbuc1
lda #{c1}
sta {z1}

View File

@ -1,4 +1,4 @@
//KICKC FRAGMENT CACHE 17a386c46b 17a386dcb0
//KICKC FRAGMENT CACHE 17a386c45a 17a386dc9c
//FRAGMENT vbuz1=_deref_pbuc1
lda {c1}
sta {z1}

View File

@ -1,7 +1,4 @@
lda {c1},y
ora {c1}+1,y
cmp #0
bne !+
lda {c1}+1,y
cmp #0
beq {la1}
!:
beq {la1}

View File

@ -8,6 +8,7 @@
#include <mega65.h>
#include <string.h>
// The screen address
char * const SCREEN = 0x0400;
// Logo y-position (char row on screen)

View File

@ -72,6 +72,7 @@
.label CIA1 = $dc00
// The vector used when the HARDWARE serves IRQ interrupts
.label HARDWARE_IRQ = $fffe
// The screen address
.label SCREEN = $400
// Pointer to the song init routine
.label songInit = SONG

View File

@ -2236,6 +2236,7 @@ Target platform is mega65_c64 / MEGA45GS02
.label CIA1 = $dc00
// The vector used when the HARDWARE serves IRQ interrupts
.label HARDWARE_IRQ = $fffe
// The screen address
.label SCREEN = $400
// Pointer to the song init routine
.label songInit = SONG
@ -3289,6 +3290,7 @@ ASSEMBLER BEFORE OPTIMIZATION
.label CIA1 = $dc00
// The vector used when the HARDWARE serves IRQ interrupts
.label HARDWARE_IRQ = $fffe
// The screen address
.label SCREEN = $400
// Pointer to the song init routine
.label songInit = SONG
@ -4054,7 +4056,7 @@ Removing instruction __b1_from___b2:
Succesful ASM optimization Pass5UnusedLabelElimination
Removing instruction jmp __b5
Succesful ASM optimization Pass5NextJumpElimination
Fixing long branch [128] bne __b2 to beq
Fixing long branch [129] bne __b2 to beq
FINAL SYMBOL TABLE
(const nomodify struct MOS6526_CIA*) CIA1 = (struct MOS6526_CIA*) 56320
@ -4635,6 +4637,7 @@ Score: 9456
.label CIA1 = $dc00
// The vector used when the HARDWARE serves IRQ interrupts
.label HARDWARE_IRQ = $fffe
// The screen address
.label SCREEN = $400
// Pointer to the song init routine
.label songInit = SONG