<commit_before>package net.katsuster.semu;

/**
 * カラー LCD コントローラ
 *
 * 参考: ARM PrimeCell Color LCD Controller (PL110)
 * ARM DDI0161E
 *
 * @author katsuhiro
 */
public class LCDC extends Controller64Reg32 {
    public static final int REG_LCDTiming0       = 0x000;
    public static final int REG_LCDTiming1       = 0x004;
    public static final int REG_LCDTiming2       = 0x008;
    public static final int REG_LCDTiming3       = 0x00c;
    public static final int REG_LCDUPBASE        = 0x010;
    public static final int REG_LCDLPBASE        = 0x014;
    public static final int REG_LCDControl       = 0x018;
    public static final int REG_LCDIMSC          = 0x01c;
    public static final int REG_LCDRIS           = 0x020;
    public static final int REG_LCDMIS           = 0x024;
    public static final int REG_LCDICR           = 0x028;
    public static final int REG_LCDUPCURR        = 0x02c;
    public static final int REG_LCDLPCURR        = 0x030;

    //0x200-0x3FC: LCDPalette
    //0x800-0xBFC: CursorImage

    public static final int REG_ClcdCrsrCtrl     = 0xc00;
    public static final int REG_ClcdCrsrConfig   = 0xc04;
    public static final int REG_ClcdCrsrPalette0 = 0xc08;
    public static final int REG_ClcdCrsrPalette1 = 0xc0c;
    public static final int REG_ClcdCrsrXY       = 0xc10;
    public static final int REG_ClcdCrsrClip     = 0xc14;

    public static final int REG_ClcdCrsrIMSC     = 0xc20;
    public static final int REG_ClcdCrsrICR      = 0xc24;
    public static final int REG_ClcdCrsrRIS      = 0xc28;
    public static final int REG_ClcdCrsrMIS      = 0xc2c;

    public static final int REG_CLCDPERIPHID0    = 0xfe0;
    public static final int REG_CLCDPERIPHID1    = 0xfe4;
    public static final int REG_CLCDPERIPHID2    = 0xfe8;
    public static final int REG_CLCDPERIPHID3    = 0xfec;
    public static final int REG_CLCDPCELLID0     = 0xff0;
    public static final int REG_CLCDPCELLID1     = 0xff4;
    public static final int REG_CLCDPCELLID2     = 0xff8;
    public static final int REG_CLCDPCELLID3     = 0xffc;

    public LCDC() {
        //addReg(REG_LCDTiming0, "LCDTiming0", 0x00000000);
        //addReg(REG_LCDTiming1, "LCDTiming1", 0x00000000);
        //addReg(REG_LCDTiming2, "LCDTiming2", 0x00000000);
        //addReg(REG_LCDTiming3, "LCDTiming3", 0x00000);
        //addReg(REG_LCDUPBASE, "LCDUPBASE", 0x0000000);
        //addReg(REG_LCDLPBASE, "LCDLPBASE", 0x00000000);
        //addReg(REG_LCDControl, "LCDControl", 0x0000);
        //addReg(REG_LCDIMSC, "LCDIMSC", 0x00);
        //addReg(REG_LCDRIS, "LCDRIS", 0x00);
        //addReg(REG_LCDMIS, "LCDMIS", 0x00);
        //addReg(REG_LCDICR, "LCDICR", 0x00);
        //addReg(REG_LCDUPCURR, "LCDUPCURR", X);
        //addReg(REG_LCDLPCURR, "LCDLPCURR", X);

        //0x200-0x3FC: LCDPalette
        //0x800-0xBFC: CursorImage

        //addReg(REG_ClcdCrsrCtrl, "ClcdCrsrCtrl", 0x00000000);
        //addReg(REG_ClcdCrsrConfig, "ClcdCrsrConfig", 0x00000000);
        //addReg(REG_ClcdCrsrPalette0, "ClcdCrsrPalette0", 0x00000000);
        //addReg(REG_ClcdCrsrPalette1, "ClcdCrsrPalette1", 0x00000000);
        //addReg(REG_ClcdCrsrXY, "ClcdCrsrXY", 0x00000000);
        //addReg(REG_ClcdCrsrClip, "ClcdCrsrClip", 0x00000000);

        //addReg(REG_ClcdCrsrIMSC, "ClcdCrsrIMSC", 0x00000000);
        //addReg(REG_ClcdCrsrICR, "ClcdCrsrICR", 0x00000000);
        //addReg(REG_ClcdCrsrRIS, "ClcdCrsrRIS", 0x00000000);
        //addReg(REG_ClcdCrsrMIS, "ClcdCrsrMIS", 0x00000000);

        addReg(REG_CLCDPERIPHID0, "CLCDPERIPHID0", 0x10);
        addReg(REG_CLCDPERIPHID1, "CLCDPERIPHID1", 0x11);
        addReg(REG_CLCDPERIPHID2, "CLCDPERIPHID2", 0x04);
        addReg(REG_CLCDPERIPHID3, "CLCDPERIPHID3", 0x00);
        addReg(REG_CLCDPCELLID0, "CLCDPCELLID0", 0x0d);
        addReg(REG_CLCDPCELLID1, "CLCDPCELLID1", 0xf0);
        addReg(REG_CLCDPCELLID2, "CLCDPCELLID2", 0x05);
        addReg(REG_CLCDPCELLID3, "CLCDPCELLID3", 0xb1);
    }
<commit_msg>remove PL111 registers from the color LCD controller.<commit_after>package net.katsuster.semu;

/**
 * カラー LCD コントローラ
 *
 * 参考: ARM PrimeCell Color LCD Controller (PL110)
 * ARM DDI0161E
 *
 * @author katsuhiro
 */
public class LCDC extends Controller64Reg32 {
    public static final int REG_LCDTiming0       = 0x000;
    public static final int REG_LCDTiming1       = 0x004;
    public static final int REG_LCDTiming2       = 0x008;
    public static final int REG_LCDTiming3       = 0x00c;
    public static final int REG_LCDUPBASE        = 0x010;
    public static final int REG_LCDLPBASE        = 0x014;
    public static final int REG_LCDIMSC          = 0x018;
    public static final int REG_LCDControl       = 0x01c;
    public static final int REG_LCDRIS           = 0x020;
    public static final int REG_LCDMIS           = 0x024;
    public static final int REG_LCDICR           = 0x028;
    public static final int REG_LCDUPCURR        = 0x02c;
    public static final int REG_LCDLPCURR        = 0x030;

    //0x200-0x3FC: LCDPalette

    public static final int REG_CLCDPERIPHID0    = 0xfe0;
    public static final int REG_CLCDPERIPHID1    = 0xfe4;
    public static final int REG_CLCDPERIPHID2    = 0xfe8;
    public static final int REG_CLCDPERIPHID3    = 0xfec;
    public static final int REG_CLCDPCELLID0     = 0xff0;
    public static final int REG_CLCDPCELLID1     = 0xff4;
    public static final int REG_CLCDPCELLID2     = 0xff8;
    public static final int REG_CLCDPCELLID3     = 0xffc;

    public LCDC() {
        //addReg(REG_LCDTiming0, "LCDTiming0", 0x00000000);
        //addReg(REG_LCDTiming1, "LCDTiming1", 0x00000000);
        //addReg(REG_LCDTiming2, "LCDTiming2", 0x00000000);
        //addReg(REG_LCDTiming3, "LCDTiming3", 0x00000);
        //addReg(REG_LCDUPBASE, "LCDUPBASE", 0x0000000);
        //addReg(REG_LCDLPBASE, "LCDLPBASE", 0x00000000);
        //addReg(REG_LCDControl, "LCDControl", 0x0000);
        //addReg(REG_LCDIMSC, "LCDIMSC", 0x00);
        //addReg(REG_LCDRIS, "LCDRIS", 0x00);
        //addReg(REG_LCDMIS, "LCDMIS", 0x00);
        //addReg(REG_LCDICR, "LCDICR", 0x00);
        //addReg(REG_LCDUPCURR, "LCDUPCURR", X);
        //addReg(REG_LCDLPCURR, "LCDLPCURR", X);

        //0x200-0x3FC: LCDPalette

        addReg(REG_CLCDPERIPHID0, "CLCDPERIPHID0", 0x10);
        addReg(REG_CLCDPERIPHID1, "CLCDPERIPHID1", 0x11);
        addReg(REG_CLCDPERIPHID2, "CLCDPERIPHID2", 0x04);
        addReg(REG_CLCDPERIPHID3, "CLCDPERIPHID3", 0x00);
        addReg(REG_CLCDPCELLID0, "CLCDPCELLID0", 0x0d);
        addReg(REG_CLCDPCELLID1, "CLCDPCELLID1", 0xf0);
        addReg(REG_CLCDPCELLID2, "CLCDPCELLID2", 0x05);
        addReg(REG_CLCDPCELLID3, "CLCDPCELLID3", 0xb1);
    }

{'fraction_non_alphanumeric': 0.0920346062052506, 'fraction_numerical': 0.08308472553699284, 'mean_word_length': 2.9487632508833923, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 20, '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': '3809076', 'n_tokens_mistral': 3038, 'n_tokens_neox': 2678, 'n_words': 533}