mirror of
https://gitlab.com/camelot/kickc.git
synced 2025-04-07 06:37:31 +00:00
A bit more inlining
This commit is contained in:
parent
5fe09eefde
commit
2a5cdfb064
@ -55,20 +55,21 @@ void render_logo(signed word xpos) {
|
||||
byte screen_idx;
|
||||
*D016 = VIC_MCM|((byte)xpos&7);
|
||||
signed byte x_char = (signed byte)(xpos>>3);
|
||||
byte line = 0;
|
||||
if(xpos<0) {
|
||||
// Render right side of the logo and some spaces
|
||||
logo_idx = (byte)(-x_char);
|
||||
screen_idx = 0;
|
||||
while(logo_idx!=40) {
|
||||
inline for(byte line1: 0..5) {
|
||||
(SCREEN+40*line1)[screen_idx] = logo_idx+40*line1;
|
||||
inline for(line: 0..5) {
|
||||
(SCREEN+40*line)[screen_idx] = logo_idx+40*line;
|
||||
}
|
||||
screen_idx++;
|
||||
logo_idx++;
|
||||
}
|
||||
while(screen_idx!=40) {
|
||||
inline for(byte line2: 0..5) {
|
||||
(SCREEN+40*line2)[screen_idx] = $00;
|
||||
inline for(line: 0..5) {
|
||||
(SCREEN+40*line)[screen_idx] = $00;
|
||||
}
|
||||
screen_idx++;
|
||||
}
|
||||
@ -77,15 +78,15 @@ void render_logo(signed word xpos) {
|
||||
byte logo_start = (byte)x_char;
|
||||
screen_idx = 0;
|
||||
while(screen_idx!=logo_start) {
|
||||
inline for(byte line3: 0..5) {
|
||||
(SCREEN+40*line3)[screen_idx] = $00;
|
||||
inline for(line: 0..5) {
|
||||
(SCREEN+40*line)[screen_idx] = $00;
|
||||
}
|
||||
screen_idx++;
|
||||
}
|
||||
logo_idx = 0;
|
||||
while(screen_idx!=40) {
|
||||
inline for(byte line4: 0..5) {
|
||||
(SCREEN+40*line4)[screen_idx] = logo_idx+40*line4;
|
||||
inline for(line: 0..5) {
|
||||
(SCREEN+40*line)[screen_idx] = logo_idx+40*line;
|
||||
}
|
||||
screen_idx++;
|
||||
logo_idx++;
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -260,10 +260,7 @@
|
||||
(label) render_logo::@9_4
|
||||
(label) render_logo::@9_5
|
||||
(label) render_logo::@return
|
||||
(byte) render_logo::line1
|
||||
(byte) render_logo::line2
|
||||
(byte) render_logo::line3
|
||||
(byte) render_logo::line4
|
||||
(byte) render_logo::line
|
||||
(byte) render_logo::logo_idx
|
||||
(byte) render_logo::logo_idx#10 reg byte y 60.73333333333334
|
||||
(byte) render_logo::logo_idx#11 reg byte y 53.86666666666667
|
||||
|
Loading…
x
Reference in New Issue
Block a user