mirror of
https://gitlab.com/camelot/kickc.git
synced 2025-01-11 20:30:08 +00:00
Optimized fragment. Thanks @IcePic. #513
This commit is contained in:
parent
bce8af7d66
commit
c45e992aef
@ -1,4 +1,4 @@
|
|||||||
//KICKC FRAGMENT CACHE 17a386c46b 17a386dcb0
|
//KICKC FRAGMENT CACHE 17a386c45a 17a386dc9c
|
||||||
//FRAGMENT vbuz1=vbuc1
|
//FRAGMENT vbuz1=vbuc1
|
||||||
lda #{c1}
|
lda #{c1}
|
||||||
sta {z1}
|
sta {z1}
|
||||||
|
1315
src/main/fragment/cache/fragment-cache-mega45gs02.asm
vendored
1315
src/main/fragment/cache/fragment-cache-mega45gs02.asm
vendored
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,4 @@
|
|||||||
//KICKC FRAGMENT CACHE 17a386c46b 17a386dcb0
|
//KICKC FRAGMENT CACHE 17a386c45a 17a386dc9c
|
||||||
//FRAGMENT vbuz1=vbuc1
|
//FRAGMENT vbuz1=vbuc1
|
||||||
lda #{c1}
|
lda #{c1}
|
||||||
sta {z1}
|
sta {z1}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
//KICKC FRAGMENT CACHE 17a386c46b 17a386dcb0
|
//KICKC FRAGMENT CACHE 17a386c45a 17a386dc9c
|
||||||
//FRAGMENT vbuz1=vbuc1
|
//FRAGMENT vbuz1=vbuc1
|
||||||
lda #{c1}
|
lda #{c1}
|
||||||
sta {z1}
|
sta {z1}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
//KICKC FRAGMENT CACHE 17a386c46b 17a386dcb0
|
//KICKC FRAGMENT CACHE 17a386c45a 17a386dc9c
|
||||||
//FRAGMENT vbuz1=_deref_pbuc1
|
//FRAGMENT vbuz1=_deref_pbuc1
|
||||||
lda {c1}
|
lda {c1}
|
||||||
sta {z1}
|
sta {z1}
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
lda {c1},y
|
lda {c1},y
|
||||||
|
ora {c1}+1,y
|
||||||
cmp #0
|
cmp #0
|
||||||
bne !+
|
beq {la1}
|
||||||
lda {c1}+1,y
|
|
||||||
cmp #0
|
|
||||||
beq {la1}
|
|
||||||
!:
|
|
@ -8,6 +8,7 @@
|
|||||||
#include <mega65.h>
|
#include <mega65.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
// The screen address
|
||||||
char * const SCREEN = 0x0400;
|
char * const SCREEN = 0x0400;
|
||||||
|
|
||||||
// Logo y-position (char row on screen)
|
// Logo y-position (char row on screen)
|
||||||
|
@ -72,6 +72,7 @@
|
|||||||
.label CIA1 = $dc00
|
.label CIA1 = $dc00
|
||||||
// The vector used when the HARDWARE serves IRQ interrupts
|
// The vector used when the HARDWARE serves IRQ interrupts
|
||||||
.label HARDWARE_IRQ = $fffe
|
.label HARDWARE_IRQ = $fffe
|
||||||
|
// The screen address
|
||||||
.label SCREEN = $400
|
.label SCREEN = $400
|
||||||
// Pointer to the song init routine
|
// Pointer to the song init routine
|
||||||
.label songInit = SONG
|
.label songInit = SONG
|
||||||
|
@ -2236,6 +2236,7 @@ Target platform is mega65_c64 / MEGA45GS02
|
|||||||
.label CIA1 = $dc00
|
.label CIA1 = $dc00
|
||||||
// The vector used when the HARDWARE serves IRQ interrupts
|
// The vector used when the HARDWARE serves IRQ interrupts
|
||||||
.label HARDWARE_IRQ = $fffe
|
.label HARDWARE_IRQ = $fffe
|
||||||
|
// The screen address
|
||||||
.label SCREEN = $400
|
.label SCREEN = $400
|
||||||
// Pointer to the song init routine
|
// Pointer to the song init routine
|
||||||
.label songInit = SONG
|
.label songInit = SONG
|
||||||
@ -3289,6 +3290,7 @@ ASSEMBLER BEFORE OPTIMIZATION
|
|||||||
.label CIA1 = $dc00
|
.label CIA1 = $dc00
|
||||||
// The vector used when the HARDWARE serves IRQ interrupts
|
// The vector used when the HARDWARE serves IRQ interrupts
|
||||||
.label HARDWARE_IRQ = $fffe
|
.label HARDWARE_IRQ = $fffe
|
||||||
|
// The screen address
|
||||||
.label SCREEN = $400
|
.label SCREEN = $400
|
||||||
// Pointer to the song init routine
|
// Pointer to the song init routine
|
||||||
.label songInit = SONG
|
.label songInit = SONG
|
||||||
@ -4054,7 +4056,7 @@ Removing instruction __b1_from___b2:
|
|||||||
Succesful ASM optimization Pass5UnusedLabelElimination
|
Succesful ASM optimization Pass5UnusedLabelElimination
|
||||||
Removing instruction jmp __b5
|
Removing instruction jmp __b5
|
||||||
Succesful ASM optimization Pass5NextJumpElimination
|
Succesful ASM optimization Pass5NextJumpElimination
|
||||||
Fixing long branch [128] bne __b2 to beq
|
Fixing long branch [129] bne __b2 to beq
|
||||||
|
|
||||||
FINAL SYMBOL TABLE
|
FINAL SYMBOL TABLE
|
||||||
(const nomodify struct MOS6526_CIA*) CIA1 = (struct MOS6526_CIA*) 56320
|
(const nomodify struct MOS6526_CIA*) CIA1 = (struct MOS6526_CIA*) 56320
|
||||||
@ -4635,6 +4637,7 @@ Score: 9456
|
|||||||
.label CIA1 = $dc00
|
.label CIA1 = $dc00
|
||||||
// The vector used when the HARDWARE serves IRQ interrupts
|
// The vector used when the HARDWARE serves IRQ interrupts
|
||||||
.label HARDWARE_IRQ = $fffe
|
.label HARDWARE_IRQ = $fffe
|
||||||
|
// The screen address
|
||||||
.label SCREEN = $400
|
.label SCREEN = $400
|
||||||
// Pointer to the song init routine
|
// Pointer to the song init routine
|
||||||
.label songInit = SONG
|
.label songInit = SONG
|
||||||
|
Loading…
x
Reference in New Issue
Block a user