<commit_before>
const unsigned char scrolltext[] = ". .. ...   . .. Hello world, let's do this thing..  ";
unsigned char scrolltext_idx = 0;
unsigned char scrollcycle = 0;
unsigned char nextdata;
unsigned char vloop;

void scroller(unsigned char y, unsigned char nextglyph)
{   
    data_ptr = (unsigned char*)(15616 - 32 * 8 + nextglyph * 8);
    for (vloop = 0; vloop < 8; vloop++)
    {
        screen_ptr = (unsigned char*)(yofs[y] + 31);
        nextdata = *data_ptr;
        data_ptr++;
        nextdata = (nextdata >> scrollcycle) & 3;
        for (fbcopy_idx = 0; fbcopy_idx < 4; fbcopy_idx++)
        {
            // a bc de hl
            __asm
                ld bc, (_screen_ptr)
                ld hl, #_nextdata
                
                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,(hl)
                ld (bc), a
                ld l, e
                dec bc
                
                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc

                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc

                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc

                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc
                
                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc

                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc

                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld hl, #_nextdata
                ld (hl), e

            __endasm;
            /*
            unsigned char carry = *screen_ptr >> 7;
            *screen_ptr = (*screen_ptr << 1) | nextdata;
            nextdata = carry;
            */
            screen_ptr-=8;
        }
        y++;
    }
    scrollcycle--;
}<commit_msg>more unrolling<commit_after>
const unsigned char scrolltext[] = ". .. ...   . .. Hello world, let's do this thing..  ";
unsigned char scrolltext_idx = 0;
unsigned char scrollcycle = 0;
unsigned char nextdata;
unsigned char vloop;

void scroller(unsigned char y, unsigned char nextglyph)
{   
    data_ptr = (unsigned char*)(15616 - 32 * 8 + nextglyph * 8);
    for (vloop = 0; vloop < 8; vloop++)
    {
        screen_ptr = (unsigned char*)(yofs[y] + 31);
        nextdata = *data_ptr;
        data_ptr++;
        nextdata = (nextdata >> scrollcycle) & 3;
        for (fbcopy_idx = 0; fbcopy_idx < 1; fbcopy_idx++)
        {
            // a bc de hl
            __asm
                ld bc, (_screen_ptr)
                ld hl, #_nextdata
                
                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,(hl)
                ld (bc), a
                ld l, e
                dec bc
                
                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc
                
                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc
                
                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc
                
                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc
                
                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc
                
                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc
                
                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc
                
                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc
                
                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc
                
                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc
                
                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc
                
                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc
                
                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc
                
                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc
                
                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc
                
                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc
                
                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc

                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc

                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc

                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc
                
                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc

                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc

                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc

                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc

                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc

                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc

                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc

                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc

                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc

                ld a,(bc)
                rlca
                rlca
                ld d, a
                and a, #0x03
                ld e, a
                ld a, d
                and a, #0xfc
                or a,l
                ld (bc), a
                ld l, e
                dec bc

                ld a,(bc)
                rlca
                rlca
                and a, #0xfc
                or a,l
                ld (bc), a

            __endasm;
            /*
            unsigned char carry = *screen_ptr >> 7;
            *screen_ptr = (*screen_ptr << 1) | nextdata;
            nextdata = carry;
            */
            screen_ptr -= 32;
        }        
        
        y++;
    }
    scrollcycle--;
}
{'fraction_non_alphanumeric': 0.060287963685367756, 'fraction_numerical': 0.014185403220086532, 'mean_word_length': 0.4249621020717534, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4892060', 'n_tokens_mistral': 4503, 'n_tokens_neox': 3595, 'n_words': 1322}