Refactor perl code to write file header
[emu8051.git] / src / app-config.h
index f6c27b9..1c418b5 100644 (file)
 #ifndef APP_CONFIG_H
 #define APP_CONFIG_H 1
 
+/*
+ *    Layout1:              Layout2:
+ *
+ * REGS | PROGRAM           |         | IRAM
+ * --------------      REGS | PROGRAM | ----
+ *     IRAM                 |         | XRAM
+ * --------------
+ *     XRAM
+ */
+enum layout_t {
+       UI_LAYOUT1 = 1,
+       UI_LAYOUT2,
+};
+
 struct app_config_t
 {
        /* Emulation options */
@@ -29,9 +43,16 @@ struct app_config_t
        /* UI settings */
        int win_width;
        int win_height;
-       int hpane_pos;
-       int vpane_pos;     /* Registers and memory windows. */
-       int vpane_mem_pos; /* Internal and external memory windows. */
+       int hpane_pos;     /* For registers and program windows. */
+       int vpane_pos; /* For internal and external memory windows. */
+       int main_pane_pos; /* Between hpane and vpane. */
+
+       /* View menu options */
+       int layout; /* UI Layout 1 or 2 */
+       int view_int_memory;
+       int view_sfr_memory;
+       int view_ext_memory;
+       int bits_per_row; /* 8 or 16 */
 };
 
 int