From cc0b41dfcc6f78cf218073f9ca3d245d1e5431b0 Mon Sep 17 00:00:00 2001 From: Spitzbube Date: Sat, 13 Feb 2021 19:59:03 +0100 Subject: [PATCH] freertos_app: cleanup menus --- applications/freertos_app/DisplayMainScreen.c | 413 +++ applications/freertos_app/HandleDownKey.c | 45 +- applications/freertos_app/HandleEnterKey.c | 24 +- applications/freertos_app/HandleLeftKey.c | 8 + applications/freertos_app/HandleMinusKey.c | 36 +- applications/freertos_app/HandleReset.c | 175 + applications/freertos_app/HandleRightKey.c | 8 + applications/freertos_app/HandleUpKey.c | 59 +- applications/freertos_app/HelpScreen.c | 4 +- applications/freertos_app/Makefile | 21 +- applications/freertos_app/ascom.c | 36 +- applications/freertos_app/data.c | 192 +- applications/freertos_app/data.h | 166 +- applications/freertos_app/file_1f30.c | 650 +--- applications/freertos_app/file_5099c.c | 61 - applications/freertos_app/func_23130.c | 717 ++-- applications/freertos_app/func_27844.c | 3023 +++++++++-------- applications/freertos_app/func_3d72c.c | 2632 +++++++------- applications/freertos_app/language.c | 159 +- applications/freertos_app/led.c | 59 + applications/freertos_app/led.h | 7 + applications/freertos_app/main.c | 461 +-- applications/freertos_app/periph.h | 39 + applications/freertos_app/uart.c | 12 +- .../v2.3/{file_5099c.c => HandleReset.c} | 0 v2.3.dump | 34 +- 26 files changed, 4649 insertions(+), 4392 deletions(-) create mode 100644 applications/freertos_app/DisplayMainScreen.c create mode 100644 applications/freertos_app/HandleReset.c delete mode 100644 applications/freertos_app/file_5099c.c create mode 100644 applications/freertos_app/led.c create mode 100644 applications/freertos_app/led.h create mode 100644 applications/freertos_app/periph.h rename applications/v2.3/{file_5099c.c => HandleReset.c} (100%) diff --git a/applications/freertos_app/DisplayMainScreen.c b/applications/freertos_app/DisplayMainScreen.c new file mode 100644 index 0000000..9d45abc --- /dev/null +++ b/applications/freertos_app/DisplayMainScreen.c @@ -0,0 +1,413 @@ + +/* 20b94 - todo */ +void DisplayMainScreen(void) +{ + lcd_display_string(0, 1, 1, strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 1, 14, strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + + if (g_bTargetSyncOpen == TRUE) + { + if (bData_400031eb == 0) + { + //20c18 + lcd_display_string(0, 2, 1, 22, ">>>>synchronizing<<<<"); + + bData_400031eb = 1; + } + else + { + //0x20c44 + lcd_display_string(0, 2, 1, 22, " "); + + bData_400031eb = 0; + } + } + else + { + //0x20c70 + lcd_display_string(0, 2, 1, 22, " "); + } + //0x20c8c + lcd_display_string(0, 3, 1, strlen(g_pcstrMenuLine5), g_pcstrMenuLine5); + lcd_display_string(0, 3, 6, 9, g_pcstrMenuLine6); + lcd_display_string(0, 3, 16, 2, g_pcstrMenuLine6 + 10); + lcd_display_string(0, 3, 19, 2, g_pcstrMenuLine6 + 13); + + lcd_display_bitmap(0, 3, 15, (unsigned char*)cBitmapDegree); + lcd_display_bitmap(0, 3, 18, (unsigned char*)cBitmapMinute); + lcd_display_bitmap(0, 3, 21, (unsigned char*)cBitmapSecond); + + if (abs(Data_40002e18_SiteLongitudeDegrees) < 100) + { + lcd_display_string(0, 3, 12, 1, " "); + } + + if (abs(Data_40002e18_SiteLongitudeDegrees) < 10) + { + lcd_display_string(0, 3, 13, 1, " "); + } + + if (abs(Data_40002e1c_SiteLongitudeMinutes) < 10) + { + lcd_display_string(0, 3, 16, 1, " "); + } + + if (abs(fData_40002e20_SiteLongitudeSeconds) < 10) + { + lcd_display_string(0, 3, 19, 1, " "); + } + + lcd_display_string(0, 4, 1, strlen(g_pcstrMenuLine7), g_pcstrMenuLine7); + lcd_display_string(0, 4, 6, 9, g_pcstrMenuLine8); + lcd_display_string(0, 4, 16, 2, g_pcstrMenuLine8 + 10); + lcd_display_string(0, 4, 19, 2, g_pcstrMenuLine8 + 13); + + lcd_display_bitmap(0, 4, 15, (unsigned char*)cBitmapDegree); + lcd_display_bitmap(0, 4, 18, (unsigned char*)cBitmapMinute); + lcd_display_bitmap(0, 4, 21, (unsigned char*)cBitmapSecond); + + if (abs(Data_40002e38_SiteLatitudeDegrees) < 100) + { + lcd_display_string(0, 4, 12, 1, " "); + } + + if (abs(Data_40002e38_SiteLatitudeDegrees) < 10) + { + lcd_display_string(0, 4, 13, 1, " "); + } + + if (abs(Data_40002e3c_SiteLatitudeMinutes) < 10) + { + lcd_display_string(0, 4, 16, 1, " "); + } + + if (abs(fData_40002e40_SiteLatitudeSeconds) < 10) + { + lcd_display_string(0, 4, 19, 1, " "); + } + + lcd_display_string(0, 5, 1, strlen(g_pcstrMenuLine9), g_pcstrMenuLine9); + lcd_display_string(0, 5, 6, 9, g_pcstrMenuLine10); + lcd_display_string(0, 5, 16, 2, g_pcstrMenuLine10 + 10); + lcd_display_string(0, 5, 19, 2, g_pcstrMenuLine10 + 13); + + if (bData_40002e7a_MountType == MENU_MOUNT_TYPE_AZ) //0) + { +#if 0 + //21138 + lcd_display_bitmap(0, 5, 15, (unsigned char*)cBitmapDegree); + lcd_display_bitmap(0, 5, 18, (unsigned char*)cBitmapMinute); + lcd_display_bitmap(0, 5, 21, (unsigned char*)cBitmapSecond); + + if (abs(Data_40002d20) < 100) + { + lcd_display_string(0, 5, 12, 1, " "); + } + + if (abs(Data_40002d20) < 10) + { + lcd_display_string(0, 5, 13, 1, " "); + } + + if (abs(Data_40002d24) < 10) + { + lcd_display_string(0, 5, 16, 1, " "); + } + + if (abs(fData_40002d28) < 10) + { + lcd_display_string(0, 5, 19, 1, " "); + } +#endif + } //if (bData_40002e7a_MountType == MENU_MOUNT_TYPE_AZ) + else + { + //0x2127c + lcd_display_string(0, 5, 15, 1, "h"); + lcd_display_string(0, 5, 18, 1, "m"); + lcd_display_string(0, 5, 21, 1, "s"); + + if (Data_40002cd8_ObjectRightAscensionHours < 100) + { + lcd_display_string(0, 5, 12, 1, " "); + } + + if (Data_40002cd8_ObjectRightAscensionHours < 10) + { + lcd_display_string(0, 5, 13, 1, " "); + } + + if (Data_40002cdc_ObjectRightAscensionMinutes < 10) + { + lcd_display_string(0, 5, 16, 1, " "); + } + + if (fData_40002ce0_ObjectRightAscensionSeconds < 10) + { + lcd_display_string(0, 5, 19, 1, " "); + } + } + //0x213c8 + lcd_display_string(0, 6, 1, strlen(g_pcstrMenuLine11), g_pcstrMenuLine11); + lcd_display_string(0, 6, 6, 9, g_pcstrMenuLine12); + lcd_display_string(0, 6, 16, 2, g_pcstrMenuLine12 + 10); + lcd_display_string(0, 6, 19, 2, g_pcstrMenuLine12 + 13); + + lcd_display_bitmap(0, 6, 15, (unsigned char*)cBitmapDegree); + lcd_display_bitmap(0, 6, 18, (unsigned char*)cBitmapMinute); + lcd_display_bitmap(0, 6, 21, (unsigned char*)cBitmapSecond); + + if (bData_40002e7a_MountType == MENU_MOUNT_TYPE_AZ) //0) + { +#if 0 + //214ac + if (abs(Data_40002d48) < 10) + { + lcd_display_string(0, 6, 13, 1, " "); + } + + if (abs(Data_40002d4c) < 10) + { + lcd_display_string(0, 6, 16, 1, " "); + } + + if (abs(fData_40002d50) < 10) + { + lcd_display_string(0, 6, 19, 1, " "); + } +#endif + } //if (bData_40002e7a_MountType == MENU_MOUNT_TYPE_AZ) + else + { + //0x21574 + if (abs(Data_40002d00_ObjectDeclinationDegrees) < 10) + { + lcd_display_string(0, 6, 13, 1, " "); + } + + if (abs(Data_40002d04_ObjectDeclinationMinutes) < 10) + { + lcd_display_string(0, 6, 16, 1, " "); + } + + if (abs(fData_40002d08_ObjectDeclinationSeconds) < 10) + { + lcd_display_string(0, 6, 19, 1, " "); + } + } + //0x21638 + lcd_display_string(0, 7, 1, strlen(g_pcstrMenuLine13), g_pcstrMenuLine13); + lcd_display_string(0, 7, 6, 9, g_pcstrMenuLine14); + lcd_display_string(0, 7, 16, 2, g_pcstrMenuLine14 + 10); + lcd_display_string(0, 7, 19, 2, g_pcstrMenuLine14 + 13); + + if ((bData_400034b4 == 1) && + (bTrackingMode == MENU_TRACKING_MODE_TRACKING)) //2)) + { + //216f0 + if (bData_40002e7a_MountType == MENU_MOUNT_TYPE_AZ) //0) + { +#if 0 + lcd_display_bitmap(0, 7, 15, (unsigned char*)cBitmapDegree); + lcd_display_bitmap(0, 7, 18, (unsigned char*)cBitmapMinute); + lcd_display_bitmap(0, 7, 21, (unsigned char*)cBitmapSecond); + + if (abs(Data_40002d20) < 100) + { + lcd_display_string(0, 7, 12, 1, " "); + } + + if (abs(Data_40002d20) < 10) + { + lcd_display_string(0, 7, 13, 1, " "); + } + + if (abs(Data_40002d24) < 10) + { + lcd_display_string(0, 7, 16, 1, " "); + } + + if (abs(fData_40002d28) < 10) + { + lcd_display_string(0, 7, 19, 1, " "); + } +#endif + } //if (bData_40002e7a_MountType == MENU_MOUNT_TYPE_AZ) + else + { + //0x21844 + lcd_display_string(0, 7, 15, 1, "h"); + lcd_display_string(0, 7, 18, 1, "m"); + lcd_display_string(0, 7, 21, 1, "s"); + + if (Data_40002cd8_ObjectRightAscensionHours < 100) + { + lcd_display_string(0, 7, 12, 1, " "); + } + + if (Data_40002cd8_ObjectRightAscensionHours < 10) + { + lcd_display_string(0, 7, 13, 1, " "); + } + + if (Data_40002cdc_ObjectRightAscensionMinutes < 10) + { + lcd_display_string(0, 7, 16, 1, " "); + } + + if (fData_40002ce0_ObjectRightAscensionSeconds < 10) + { + lcd_display_string(0, 7, 19, 1, " "); + } + } + } + else + { + //0x21950 + if (bData_40002e7a_MountType == MENU_MOUNT_TYPE_AZ) //0) + { + //21960 + lcd_display_bitmap(0, 7, 15, (unsigned char*)cBitmapDegree); + lcd_display_bitmap(0, 7, 18, (unsigned char*)cBitmapMinute); + lcd_display_bitmap(0, 7, 21, (unsigned char*)cBitmapSecond); + + if (abs(Data_40002dac) < 100) + { + lcd_display_string(0, 7, 12, 1, " "); + } + + if (abs(Data_40002dac) < 10) + { + lcd_display_string(0, 7, 13, 1, " "); + } + + if (abs(Data_40002db0) < 10) + { + lcd_display_string(0, 7, 16, 1, " "); + } + + if (abs(fData_40002db4) < 10) + { + lcd_display_string(0, 7, 19, 1, " "); + } + } //if (bData_40002e7a_MountType == MENU_MOUNT_TYPE_AZ) + else + { + //0x21aec + lcd_display_string(0, 7, 15, 1, "h"); + lcd_display_string(0, 7, 18, 1, "m"); + lcd_display_string(0, 7, 21, 1, "s"); + + if (Data_40002d68_OTARightAscensionHours < 100) + { + lcd_display_string(0, 7, 12, 1, " "); + } + + if (Data_40002d68_OTARightAscensionHours < 10) + { + lcd_display_string(0, 7, 13, 1, " "); + } + + if (Data_40002d6c_OTARightAscensionMinutes < 10) + { + lcd_display_string(0, 7, 16, 1, " "); + } + + if (fData_40002d70_OTARightAscensionSeconds < 10) + { + lcd_display_string(0, 7, 19, 1, " "); + } + } + } + //0x21bf4 + lcd_display_string(0, 8, 1, strlen(g_pcstrMenuLine15), g_pcstrMenuLine15); + lcd_display_string(0, 8, 6, 9, g_pcstrMenuLine16); + lcd_display_string(0, 8, 16, 2, g_pcstrMenuLine16 + 10); + lcd_display_string(0, 8, 19, 2, g_pcstrMenuLine16 + 13); + + lcd_display_bitmap(0, 8, 15, (unsigned char*)cBitmapDegree); + lcd_display_bitmap(0, 8, 18, (unsigned char*)cBitmapMinute); + lcd_display_bitmap(0, 8, 21, (unsigned char*)cBitmapSecond); + + if ((bData_400034b4 == 1) && + (bTrackingMode == MENU_TRACKING_MODE_TRACKING)) //2)) + { + if (bData_40002e7a_MountType == MENU_MOUNT_TYPE_AZ) //0) + { +#if 0 + if (abs(Data_40002d48) < 10) + { + lcd_display_string(0, 8, 13, 1, " "); + } + + if (abs(Data_40002d4c) < 10) + { + lcd_display_string(0, 8, 16, 1, " "); + } + + if (abs(fData_40002d50) < 10) + { + lcd_display_string(0, 8, 19, 1, " "); + } +#endif + } //if (bData_40002e7a_MountType == MENU_MOUNT_TYPE_AZ) + else + { + //0x21dc0 + if (abs(Data_40002d00_ObjectDeclinationDegrees) < 10) + { + lcd_display_string(0, 8, 13, 1, " "); + } + + if (abs(Data_40002d04_ObjectDeclinationMinutes) < 10) + { + lcd_display_string(0, 8, 16, 1, " "); + } + + if (abs(fData_40002d08_ObjectDeclinationSeconds) < 10) + { + lcd_display_string(0, 8, 19, 1, " "); + } + } + } + else + { + //0x21e88 + if (bData_40002e7a_MountType == MENU_MOUNT_TYPE_AZ) //0) + { + if (abs(Data_40002de0) < 10) + { + lcd_display_string(0, 8, 13, 1, " "); + } + + if (abs(Data_40002de4) < 10) + { + lcd_display_string(0, 8, 16, 1, " "); + } + + if (abs(fData_40002de8) < 10) + { + lcd_display_string(0, 8, 19, 1, " "); + } + } //if (bData_40002e7a_MountType == MENU_MOUNT_TYPE_AZ) + else + { + //0x21f60 + if (abs(Data_40002d8c_OTADeclinationDegrees) < 10) + { + lcd_display_string(0, 8, 13, 1, " "); + } + + if (abs(Data_40002d90_OTADeclinationMinutes) < 10) + { + lcd_display_string(0, 8, 16, 1, " "); + } + + if (abs(fData_40002d94_OTADeclinationSeconds) < 10) + { + lcd_display_string(0, 8, 19, 1, " "); + } + } + } +} + diff --git a/applications/freertos_app/HandleDownKey.c b/applications/freertos_app/HandleDownKey.c index ab4594b..8a250fe 100644 --- a/applications/freertos_app/HandleDownKey.c +++ b/applications/freertos_app/HandleDownKey.c @@ -93,10 +93,10 @@ void HandleDownKey(void) case MENU_CONTEXT_DEC_BKLASH_CORR: //1700: //0x5b410: DEC Bklash Correction - bData_40003173 = 1; - bData_40003171 = 1; - bData_40003172 = 1; - bData_40003170 = 1; + g_bAlignmentFourLineMenuFocusItem = 1; + g_bAlignmentFourLineMenuTopItem = 1; + g_bAlignmentEightLineMenuFocusItem = 1; + g_bAlignmentEightLineMenuTopItem = 1; Data_40002c64_MenuContextId = MENU_CONTEXT_ONE_STAR_ALIGN; //1100; break; @@ -235,22 +235,23 @@ void HandleDownKey(void) case MENU_CONTEXT_TIME_DATE: //4100: //0x5b718 HandleLongListScroll(1, 14); - Data_40002c64_MenuContextId = 4200; + Data_40002c64_MenuContextId = MENU_CONTEXT_DAYLIGHT_SAVING; //4200; break; - case 4200: + case MENU_CONTEXT_DAYLIGHT_SAVING: //4200: //0x5b738 HandleLongListScroll(1, 14); Data_40002c64_MenuContextId = MENU_CONTEXT_SITE_SETTING; //4300; break; +#if 0 case MENU_CONTEXT_SITE_SETTING: //4300: //0x5b758 HandleLongListScroll(1, 14); - Data_40002c64_MenuContextId = 4400; + Data_40002c64_MenuContextId = MENU_CONTEXT_SKY_LAND; //4400; break; - case 4400: + case MENU_CONTEXT_SKY_LAND: //4400: //0x5b778 HandleLongListScroll(1, 14); Data_40002c64_MenuContextId = MENU_CONTEXT_AZ_EQU; //4500; @@ -261,6 +262,13 @@ void HandleDownKey(void) HandleLongListScroll(1, 14); Data_40002c64_MenuContextId = MENU_CONTEXT_TELESCOPE_MOUNT; //4600; break; +#else + case MENU_CONTEXT_SITE_SETTING: //4300: + //0x5b758 + HandleLongListScroll(1, 14); + Data_40002c64_MenuContextId = MENU_CONTEXT_TELESCOPE_MOUNT; + break; +#endif case MENU_CONTEXT_TELESCOPE_MOUNT: //4600: //0x5b7b8 @@ -284,8 +292,8 @@ void HandleDownKey(void) //0x5b818 bData_4000317f = 1; bData_4000317d = 1; - bData_4000317e = 1; - bData_4000317c = 1; + g_bSetupEightLineMenuFocusItem = 1; + g_bSetupEightLineMenuTopItem = 1; Data_40002c64_MenuContextId = MENU_CONTEXT_TIME_DATE; //4100; break; @@ -544,8 +552,10 @@ void HandleDownKey(void) } else { +#if 0 //0x5bd90 SlewAxis(4, 2, g_eSlewRateIndex); +#endif } } } @@ -559,8 +569,10 @@ void HandleDownKey(void) } else { +#if 0 //0x5bdd0 SlewAxis(4, 2, g_eSlewRateIndex); +#endif } } //->0x5ca8c @@ -577,9 +589,11 @@ void HandleDownKey(void) } else { +#if 0 //0x5be2c SlewAxis(4, 2, SLEW_RATE_8X); bData_40002edd = 1; +#endif } iBacklashCorrectionSlewing = 1; bDecBacklashCorrectionDirection = 1; @@ -597,8 +611,10 @@ void HandleDownKey(void) } else { +#if 0 //0x5bea4 SlewAxis(4, 2, SLEW_RATE_8X); +#endif } } //5beb4 -> 0x5ca8c @@ -624,11 +640,19 @@ void HandleDownKey(void) Data_40002c64_MenuContextId = MENU_CONTEXT_MOUNT_AZ; //46001; break; +#if 0 case MENU_CONTEXT_ENGLISH: //49001: //0x5bf08: Language -> English Data_40002c64_MenuContextId = MENU_CONTEXT_GERMAN; //49002; break; +#else + case MENU_CONTEXT_ENGLISH: //49001: + //0x5bf08: Language -> English + Data_40002c64_MenuContextId = MENU_CONTEXT_ENGLISH; + break; +#endif +#if 0 case MENU_CONTEXT_GERMAN: //49002: //0x5bf1c Data_40002c64_MenuContextId = MENU_CONTEXT_FRENCH; //49003; @@ -648,6 +672,7 @@ void HandleDownKey(void) //0x5bf58 Data_40002c64_MenuContextId = MENU_CONTEXT_ENGLISH; //49001; break; +#endif case 21001: //0x5bf6c diff --git a/applications/freertos_app/HandleEnterKey.c b/applications/freertos_app/HandleEnterKey.c index d1bf376..a7db3f0 100644 --- a/applications/freertos_app/HandleEnterKey.c +++ b/applications/freertos_app/HandleEnterKey.c @@ -295,10 +295,10 @@ void HandleEnterKey(void) case MENU_CONTEXT_ALIGNMENT: //1000: //0x53698 - bData_40003173 = 1; - bData_40003171 = 1; - bData_40003172 = 1; - bData_40003170 = 1; + g_bAlignmentFourLineMenuFocusItem = 1; + g_bAlignmentFourLineMenuTopItem = 1; + g_bAlignmentEightLineMenuFocusItem = 1; + g_bAlignmentEightLineMenuTopItem = 1; Data_40002c64_MenuContextId = MENU_CONTEXT_ONE_STAR_ALIGN; //1100; break; @@ -324,8 +324,8 @@ void HandleEnterKey(void) //0x53740 bData_4000317f = 1; bData_4000317d = 1; - bData_4000317e = 1; - bData_4000317c = 1; + g_bSetupEightLineMenuFocusItem = 1; + g_bSetupEightLineMenuTopItem = 1; Data_40002c64_MenuContextId = MENU_CONTEXT_TIME_DATE; //4100; break; @@ -359,12 +359,12 @@ void HandleEnterKey(void) bCharacterInputPosition = 5; bData_400032a4_OTAZeroDataErrorCount = 0; - flash_get_ota_zero_data(&fData_4000329c, &fData_400032a0); + flash_get_ota_zero_data(&g_fOtaZeroAzimuth, &g_fOtaZeroAltitude); - sprintf(Data_400028d7, "Azi:%03d", (unsigned short)fData_4000329c); - sprintf(Data_400028e1, "Alt: %02d", (unsigned short)fData_400032a0); - sprintf(Data_40002789, "Azi:%03d", (unsigned short)fData_4000329c); - sprintf(Data_40002792, "Alt: %02d", (unsigned short)fData_400032a0); + sprintf(Data_400028d7, "Azi:%03d", (unsigned short)g_fOtaZeroAzimuth); + sprintf(Data_400028e1, "Alt: %02d", (unsigned short)g_fOtaZeroAltitude); + sprintf(Data_40002789, "Azi:%03d", (unsigned short)g_fOtaZeroAzimuth); + sprintf(Data_40002792, "Alt: %02d", (unsigned short)g_fOtaZeroAltitude); break; case MENU_CONTEXT_TRACKING_RATE: //4700: @@ -1123,6 +1123,7 @@ void HandleEnterKey(void) Data_40002c64_MenuContextId = MENU_CONTEXT_LANGUAGE; //4800; break; +#if 0 case MENU_CONTEXT_GERMAN: //49002: //0x55084 bData_40003196_CurrentLanguage = MENU_LANGUAGE_GERMAN; //2; @@ -1158,6 +1159,7 @@ void HandleEnterKey(void) flash_write(0xdcb, 0, 528, Data_400035bc); Data_40002c64_MenuContextId = MENU_CONTEXT_LANGUAGE; //4800; break; +#endif case MENU_CONTEXT_TRACKING_RATE_STAR_SPEED: //4801: //0x551e4: Tracking Rate -> "Star Speed" diff --git a/applications/freertos_app/HandleLeftKey.c b/applications/freertos_app/HandleLeftKey.c index bcd558a..65b49ee 100644 --- a/applications/freertos_app/HandleLeftKey.c +++ b/applications/freertos_app/HandleLeftKey.c @@ -948,9 +948,11 @@ void HandleLeftKey(void) } else { +#if 0 //0x599c8 SlewAxis(3, 3, g_eSlewRateIndex); //->0x59a1c +#endif } } } @@ -964,8 +966,10 @@ void HandleLeftKey(void) } else { +#if 0 //0x59a08 SlewAxis(3, 3, g_eSlewRateIndex); +#endif } } //-> 0x59dc4 @@ -995,10 +999,12 @@ void HandleLeftKey(void) } else { +#if 0 //0x59a94 SlewAxis(3, 3, SLEW_RATE_8X); //3); bData_40002edd = 0; +#endif } //0x59ab0 iBacklashCorrectionSlewing = 1; @@ -1018,8 +1024,10 @@ void HandleLeftKey(void) } else { +#if 0 //0x59b14 SlewAxis(3, 3, g_eSlewRateIndex); +#endif } } //0x59b28 -> 0x59dc4 diff --git a/applications/freertos_app/HandleMinusKey.c b/applications/freertos_app/HandleMinusKey.c index 35fa277..be0116f 100644 --- a/applications/freertos_app/HandleMinusKey.c +++ b/applications/freertos_app/HandleMinusKey.c @@ -203,49 +203,49 @@ void HandleMinusKey(void) Data_40002c64_MenuContextId = MENU_CONTEXT_NAVIGATION; //2000; break; - case 3100: + case MENU_CONTEXT_CURRENT_OBJECTS: //3100: //0x5fe14 - Data_40002c64_MenuContextId = 3000; + Data_40002c64_MenuContextId = MENU_CONTEXT_UTILITIES; break; case MENU_CONTEXT_OBJECT_RISE_SET: //3200: //0x5fe28 - Data_40002c64_MenuContextId = 3000; + Data_40002c64_MenuContextId = MENU_CONTEXT_UTILITIES; break; - case 3300: + case MENU_CONTEXT_LUNAR_PHASE: //3300: //0x5fe3c - Data_40002c64_MenuContextId = 3000; + Data_40002c64_MenuContextId = MENU_CONTEXT_UTILITIES; break; case MENU_CONTEXT_TIMER: //3400: //0x5fe50 - Data_40002c64_MenuContextId = 3000; + Data_40002c64_MenuContextId = MENU_CONTEXT_UTILITIES; break; - case 3500: + case MENU_CONTEXT_ALARM: //3500: //0x5fe64 - Data_40002c64_MenuContextId = 3000; + Data_40002c64_MenuContextId = MENU_CONTEXT_UTILITIES; break; - case 3600: + case MENU_CONTEXT_EYEPIECE_FOV: //3600: //0x5fe78 - Data_40002c64_MenuContextId = 3000; + Data_40002c64_MenuContextId = MENU_CONTEXT_UTILITIES; break; - case 3700: + case MENU_CONTEXT_EYEPIECE_MAGN: //3700: //0x5fe8c - Data_40002c64_MenuContextId = 3000; + Data_40002c64_MenuContextId = MENU_CONTEXT_UTILITIES; break; - case 3800: + case MENU_CONTEXT_DISPLAY_ILLUMINATION: //3800: //0x5fea0 - Data_40002c64_MenuContextId = 3000; + Data_40002c64_MenuContextId = MENU_CONTEXT_UTILITIES; break; - case 3900: + case MENU_CONTEXT_PARK_POSITION: //3900: //0x5feb4 - Data_40002c64_MenuContextId = 3000; + Data_40002c64_MenuContextId = MENU_CONTEXT_UTILITIES; break; case 4100: @@ -381,12 +381,12 @@ void HandleMinusKey(void) case 3801: //0x600c8 - Data_40002c64_MenuContextId = 3800; + Data_40002c64_MenuContextId = MENU_CONTEXT_DISPLAY_ILLUMINATION; //3800; break; case 3802: //0x600dc - Data_40002c64_MenuContextId = 3800; + Data_40002c64_MenuContextId = MENU_CONTEXT_DISPLAY_ILLUMINATION; //3800; break; case 4301: diff --git a/applications/freertos_app/HandleReset.c b/applications/freertos_app/HandleReset.c new file mode 100644 index 0000000..8710fa8 --- /dev/null +++ b/applications/freertos_app/HandleReset.c @@ -0,0 +1,175 @@ + +#if 0 +#include +#include "my_types.h" +#include "data.h" + +extern void func_2df8(int a, int b, int c, int d, unsigned char* e); +extern void initialize_variables(void); +#endif + + +/* 5099c - todo */ +void func_5099c(void) +{ + initialize_variables(); + + bData_4000316e_FocusLineOn8LineDisplay = 0; + g_iMenuContextIdNew = MENU_CONTEXT_MAIN; //0 + g_iMenuContextIdOld = MENU_CONTEXT_RECENT_TARGETS; //1; + bData_40003194 = 0; + bData_40003196_CurrentLanguage = MENU_LANGUAGE_ENGLISH; //1; + g_bSingleSlewActive = 0; + g_bCombinedSlewActive = 0; + bCapsLock = 0; + bMapKeyToCharIndex = 0; + bData_40002c1a = 0; + bGotoParkPosition = 0; + bData_40003210 = 0; + bData_40003211 = 0; + bData_400031bf = 0x42; + bData_400031be = 0; + fData_400031c0 = 10.6; + fData_400031c4 = 63.25; + bData_400031e0 = 1; + bRaBacklashCorrectionDirection = 0; + bDecBacklashCorrectionDirection = 0; + g_iLedTorchLevel = 0; + bData_400031e1 = 0; + bData_400032a4_OTAZeroDataErrorCount = 0; + bData_4000319b = 0; + bData_400031e9 = 0; + g_bMaxSlewRampActive = 0; + bData_400031b9 = 0; + Data_40002e80 = 0; + Data_40002e84 = 0; + bData_4000322d_AlarmTimeElapsed = 0; + g_bTargetSyncOpen = 0; + bData_400031eb = 0; + bData_400031ec = 1; + bSystemInitialized = 1; + dData_400031f0 = 0.0; + dData_400031f8 = 0.0; + bData_40003200 = 0; + bData_40003201 = 0; + iMountAutoguideRa = 0; + iMountAutoguideDec = 0; + bData_40002d88 = 0; + bData_40002da8 = 0; +} + + +/* 50b40 - todo */ +void HandleReset(void) +{ + char sp40[528]; + unsigned char customSiteName[20]; + float lon; + float lat; + int zone; + unsigned short i; + + lcd_display_clear(); + lcd_display_string(0, 4, 1, 21, "System resetting... "); + + i = 0; + for (i = 0; i < 16; i++) + { + //0x50b74 + flash_read((unsigned short)(0xddd + i), 0, sizeof(sp40), sp40); + flash_write((unsigned short)(0xdc9 + i), 0, sizeof(sp40), sp40); + } + + func_d2cc(); + func_5099c(); + + UART1_WRITE_HEADER(1); + uart1_write_byte(0x44); + + UART1_WRITE_HEADER(1); + uart1_write_byte(0x64); + + UART1_WRITE_HEADER(1); + uart1_write_byte(0x04); + + UART1_WRITE_HEADER(1); + uart1_write_byte(0x24); + + func_659c(10); + + if (bData_40002c1a == 1) + { + bData_40002e7a_MountType = MENU_MOUNT_TYPE_EQU; //1; + } + else + { + bData_40002e7a_MountType = MENU_MOUNT_TYPE_AZ; //0; + } + //50c98 + Data_400034d0 = 0.05; + Data_400034d8 = 0.045; + + flash_get_ota_zero_data(&g_fOtaZeroAzimuth, &g_fOtaZeroAltitude); + + Data_40004128.dData_192 = g_fOtaZeroAzimuth; + Data_40004128.dData_200 = g_fOtaZeroAltitude; + + flash_get_custom_site_data(customSiteName, &lon, &lat, &zone); + + Data_40004128.geographicLongitude = lon; + Data_40004128.geographicLatitude = lat; + + Data_40002e54_Zone = zone; + + strCustomSiteName[6] = customSiteName[0]; + strCustomSiteName[7] = customSiteName[1]; + strCustomSiteName[8] = customSiteName[2]; + strCustomSiteName[9] = customSiteName[3]; + strCustomSiteName[10] = customSiteName[4]; + strCustomSiteName[11] = customSiteName[5]; + strCustomSiteName[12] = customSiteName[6]; + strCustomSiteName[13] = customSiteName[7]; + + if (lon > 0) //BUG? East is negative! + { + //50d90 + sprintf(strCustomSiteLongitude, " Lon:E%03dd%02df ", + DEGREES_MINUTES(lon)); + } + else + { + //0x50edc + sprintf(strCustomSiteLongitude, " Lon:W%03dd%02df ", + DEGREES_MINUTES(lon)); //Bug: abs()? + } + //0x50f30 + if (lat > 0) + { + //50f40 + sprintf(strCustomSiteLatitude, " Lat:N%02dd%02df ", + DEGREES_MINUTES(lat)); + } + else + { + //0x50f98 + sprintf(strCustomSiteLatitude, " Lat:S%02dd%02df ", + DEGREES_MINUTES(lat)); //Bug: abs() + } + //0x50fec + if (zone > 0) + { + sprintf(strCustomSiteTimezone, " Zone:E%02d", zone); + } + else + { + //0x5100c + sprintf(strCustomSiteTimezone, " Zone:W%02d", zone); + } + + func_659c(2000); + beep1(2); + func_659c(100); + + Data_40002c64_MenuContextId = MENU_CONTEXT_MAIN; //0; +} + diff --git a/applications/freertos_app/HandleRightKey.c b/applications/freertos_app/HandleRightKey.c index 6708fbc..34f0ce4 100644 --- a/applications/freertos_app/HandleRightKey.c +++ b/applications/freertos_app/HandleRightKey.c @@ -1017,8 +1017,10 @@ void HandleRightKey(void) } else { +#if 0 //0x57f44 SlewAxis(3, 4, g_eSlewRateIndex); +#endif } } } @@ -1032,8 +1034,10 @@ void HandleRightKey(void) } else { +#if 0 //0x57f84 SlewAxis(3, 4, g_eSlewRateIndex); +#endif } } //0x57f98 -> 0x583d0 @@ -1061,10 +1065,12 @@ void HandleRightKey(void) } else { +#if 0 //0x58010 SlewAxis(3, 4, SLEW_RATE_8X); //3); bData_40002edd = 0; +#endif } //0x5802c iBacklashCorrectionSlewing = 1; @@ -1084,8 +1090,10 @@ void HandleRightKey(void) } else { +#if 0 //0x58120 SlewAxis(3, 4, g_eSlewRateIndex); +#endif } } //0x58134 diff --git a/applications/freertos_app/HandleUpKey.c b/applications/freertos_app/HandleUpKey.c index e91a50f..5f6137b 100644 --- a/applications/freertos_app/HandleUpKey.c +++ b/applications/freertos_app/HandleUpKey.c @@ -344,10 +344,10 @@ void HandleUpKey(void) case MENU_CONTEXT_ONE_STAR_ALIGN: //1100: //0x5d9a4 - bData_40003173 = 4; - bData_40003171 = 4; - bData_40003172 = 7; - bData_40003170 = 8; + g_bAlignmentFourLineMenuFocusItem = 4; + g_bAlignmentFourLineMenuTopItem = 4; + g_bAlignmentEightLineMenuFocusItem = 7; + g_bAlignmentEightLineMenuTopItem = 8; Data_40002c64_MenuContextId = MENU_CONTEXT_DEC_BKLASH_CORR; break; @@ -519,17 +519,29 @@ void HandleUpKey(void) HandleLongListScroll(0, 13); Data_40002c64_MenuContextId = MENU_CONTEXT_DISPLAY_ILLUMINATION; break; - + +#if 0 case MENU_CONTEXT_TIME_DATE: //4100: //0x5dd8c bData_4000317f = 4; bData_4000317d = 6; - bData_4000317e = 8; - bData_4000317c = 2; + g_bSetupEightLineMenuFocusItem = 8; + g_bSetupEightLineMenuTopItem = 2; + Data_40002c64_MenuContextId = MENU_CONTEXT_RESET; + break; +#else + case MENU_CONTEXT_TIME_DATE: //4100: + //0x5dd8c + bData_4000317f = 4; + bData_4000317d = 6; + g_bSetupEightLineMenuFocusItem = 7; + g_bSetupEightLineMenuTopItem = 1; Data_40002c64_MenuContextId = MENU_CONTEXT_RESET; break; - case 4200: +#endif + + case MENU_CONTEXT_DAYLIGHT_SAVING: //4200: //0x5ddd0 HandleLongListScroll(0, 14); Data_40002c64_MenuContextId = MENU_CONTEXT_TIME_DATE; @@ -538,10 +550,11 @@ void HandleUpKey(void) case MENU_CONTEXT_SITE_SETTING: //4300: //0x5ddf0 HandleLongListScroll(0, 14); - Data_40002c64_MenuContextId = 4200; + Data_40002c64_MenuContextId = MENU_CONTEXT_DAYLIGHT_SAVING; //4200; break; - case 4400: +#if 0 + case MENU_CONTEXT_SKY_LAND: //4400: //0x5de10 HandleLongListScroll(0, 14); Data_40002c64_MenuContextId = MENU_CONTEXT_SITE_SETTING; @@ -550,7 +563,7 @@ void HandleUpKey(void) case MENU_CONTEXT_AZ_EQU: //4500: //0x5de30 HandleLongListScroll(0, 14); - Data_40002c64_MenuContextId = 4400; + Data_40002c64_MenuContextId = MENU_CONTEXT_SKY_LAND; //4400; break; case MENU_CONTEXT_TELESCOPE_MOUNT: //4600: @@ -558,6 +571,13 @@ void HandleUpKey(void) HandleLongListScroll(0, 14); Data_40002c64_MenuContextId = MENU_CONTEXT_AZ_EQU; break; +#else + case MENU_CONTEXT_TELESCOPE_MOUNT: //4600: + //0x5de50 + HandleLongListScroll(0, 14); + Data_40002c64_MenuContextId = MENU_CONTEXT_SITE_SETTING; + break; +#endif case MENU_CONTEXT_TRACKING_RATE: //4700: //0x5de70 @@ -824,8 +844,10 @@ void HandleUpKey(void) } else { +#if 0 //0x5e3ec SlewAxis(4, 1, g_eSlewRateIndex); +#endif } } } @@ -839,8 +861,10 @@ void HandleUpKey(void) } else { +#if 0 //0x5e42c SlewAxis(4, 1, g_eSlewRateIndex); +#endif } } //0x5e440 -> 0x5f0b4 @@ -859,10 +883,12 @@ void HandleUpKey(void) } else { +#if 0 //0x5e488 SlewAxis(4, 1, SLEW_RATE_8X); bData_40002edd = 1; +#endif } //0x5e4a4 iBacklashCorrectionSlewing = 1; @@ -882,8 +908,10 @@ void HandleUpKey(void) } else { +#if 0 //0x5e504 SlewAxis(4, 1, SLEW_RATE_8X); +#endif } } //0x5e514 @@ -921,11 +949,19 @@ void HandleUpKey(void) bCharacterInputPosition = 6; break; +#if 0 case MENU_CONTEXT_ENGLISH: //49001: //0x5e5a8 Data_40002c64_MenuContextId = MENU_CONTEXT_SPANISH; //49005; break; +#else + case MENU_CONTEXT_ENGLISH: //49001: + //0x5e5a8 + Data_40002c64_MenuContextId = MENU_CONTEXT_ENGLISH; + break; +#endif +#if 0 case MENU_CONTEXT_SPANISH: //49005: //0x5e5bc Data_40002c64_MenuContextId = MENU_CONTEXT_ITALIAN; //49004; @@ -945,6 +981,7 @@ void HandleUpKey(void) //0x5e5f8 Data_40002c64_MenuContextId = MENU_CONTEXT_ENGLISH; //49001; break; +#endif case 21001: //0x5e60c diff --git a/applications/freertos_app/HelpScreen.c b/applications/freertos_app/HelpScreen.c index c33ff01..3745b96 100644 --- a/applications/freertos_app/HelpScreen.c +++ b/applications/freertos_app/HelpScreen.c @@ -2,9 +2,9 @@ /* 1e228 - todo */ void DisplayHelpScreen(void) { - if (Data_4000318c != Data_40003190) + if (g_iMenuContextIdNew != g_iMenuContextIdOld) { - Data_40003190 = Data_4000318c; + g_iMenuContextIdOld = g_iMenuContextIdNew; } switch (Data_40002c64_MenuContextId - 500) diff --git a/applications/freertos_app/Makefile b/applications/freertos_app/Makefile index 70ce953..8de2682 100644 --- a/applications/freertos_app/Makefile +++ b/applications/freertos_app/Makefile @@ -20,6 +20,25 @@ include $(TOPDIR)/env/make/Makefile.config # source files ################################################################################ +#SOURCES += file_1f30.c +#SOURCES += object_database.c +#SOURCES += align_stars.c +#SOURCES += alignment.c +#SOURCES += earth.c +#SOURCES += mercury.c +#SOURCES += venus.c +#SOURCES += mars.c +#SOURCES += jupiter.c +#SOURCES += saturn.c +#SOURCES += uranus.c +#SOURCES += neptun.c +#SOURCES += pluto.c +#SOURCES += HelpScreen.c +#SOURCES += func_23130.c +#SOURCES += language.c +#SOURCES += func_27844.c +#SOURCES += func_3d72c.c +SOURCES += led.c SOURCES += main.c SOURCES += uart.c SOURCES += data.c @@ -29,7 +48,7 @@ SOURCES += Startup.s # define define user cc flags ################################################################################ - +CCFLAGS += -DINCLUDE_ALL_C_FILES ################################################################################ # define define user ld flags diff --git a/applications/freertos_app/ascom.c b/applications/freertos_app/ascom.c index c2ee181..b2841b3 100644 --- a/applications/freertos_app/ascom.c +++ b/applications/freertos_app/ascom.c @@ -25,13 +25,13 @@ unsigned char ProcessUart0ReceiverData(void) Data_40002c28.bData[1] = uart0ReceiveDataBuffer[2]; Data_40002c28.bData[2] = uart0ReceiveDataBuffer[3]; Data_40002c28.bData[3] = uart0ReceiveDataBuffer[4]; - fData_40003510 = Data_40002c28.fData; + g_fReceiveExternalRightAscension = Data_40002c28.fData; Data_40002c28.bData[0] = uart0ReceiveDataBuffer[5]; Data_40002c28.bData[1] = uart0ReceiveDataBuffer[6]; Data_40002c28.bData[2] = uart0ReceiveDataBuffer[7]; Data_40002c28.bData[3] = uart0ReceiveDataBuffer[8]; - fData_40003514 = Data_40002c28.fData; + g_fReceiveExternalDeclination = Data_40002c28.fData; //->6ca60 break; @@ -60,7 +60,7 @@ unsigned char ProcessUart0ReceiverData(void) bData_4000352a_ReceiveExternalHours = uart0ReceiveDataBuffer[5]; bData_4000352b_ReceiveExternalMinutes = uart0ReceiveDataBuffer[6]; bData_4000352c_ReceiveExternalSeconds = uart0ReceiveDataBuffer[7]; - fData_40003520 = (float)uart0ReceiveDataBuffer[8] - 12; + g_fReceiveExternalTimezone = (float)uart0ReceiveDataBuffer[8] - 12; #ifdef OLIMEX_LPC2148 { static char buf[105]; @@ -78,8 +78,8 @@ unsigned char ProcessUart0ReceiverData(void) uart1_send((unsigned char*)buf, strlen(buf)); snprintf(buf, 100, "%d.%d\n\r", - (int)fData_40003520, - (fData_40003520 - (int)fData_40003520) * 1000); + (int)g_fReceiveExternalTimezone, + (g_fReceiveExternalTimezone - (int)g_fReceiveExternalTimezone) * 1000); uart1_send((unsigned char*)buf, strlen(buf)); } #endif @@ -187,7 +187,7 @@ void ProcessAscomCommands(void) case 35: //6cd14: Goto - GotoEQCoordinates(fData_40003510, fData_40003514); + GotoEQCoordinates(g_fReceiveExternalRightAscension, g_fReceiveExternalDeclination); dData_400031f0 = 0; dData_400031f8 = 0; @@ -225,8 +225,8 @@ void ProcessAscomCommands(void) StopSlewing(); - Data_40002e54_Zone = fData_40003520; - Data_40004128.timeZone = fData_40003520; + Data_40002e54_Zone = g_fReceiveExternalTimezone; + Data_40004128.timeZone = g_fReceiveExternalTimezone; CCR = (1 << 4); //clock from the 32 kHz oscillator that�s connected to the RTCX1 and RTCX2 pins YEAR = Data_40003524_ReceiveExternalYear; @@ -243,22 +243,24 @@ void ProcessAscomCommands(void) case 1: //6cef8 - if (bData_4000352e > 2) + if (g_bSendToExternalCoordCount > 2) { //6cf0c if (bData_40002c1a == 2) { +#if 0 //6cf1c double sp32, sp24; - convert_horizontal_to_equatorial(fData_40003508, fData_4000350c, &sp32, &sp24); - fData_40003508 = sp32; - fData_4000350c = sp24; + convert_horizontal_to_equatorial(g_fSendToExternalRightAscension, g_fSendToExternalDeclination, &sp32, &sp24); + g_fSendToExternalRightAscension = sp32; + g_fSendToExternalDeclination = sp24; dData_40003448 = sp32; dData_40003450 = sp24; +#endif } //6cfa8 - sp60.fData = fData_40003508; - sp56.fData = fData_4000350c; + sp60.fData = g_fSendToExternalRightAscension; + sp56.fData = g_fSendToExternalDeclination; sp40[4] = 0xff; //Ra & Dec ---Tracked sp40[5] = sp60.bData[0]; @@ -272,13 +274,13 @@ void ProcessAscomCommands(void) uart0_send(sp40, 13); - bData_4000352e = 0; + g_bSendToExternalCoordCount = 0; //->6d038 - } + } //if (g_bSendToExternalCoordCount > 2) else { //6d024 - bData_4000352e++; + g_bSendToExternalCoordCount++; } //6d038 -> 6d044 break; diff --git a/applications/freertos_app/data.c b/applications/freertos_app/data.c index 233bec8..faef67b 100644 --- a/applications/freertos_app/data.c +++ b/applications/freertos_app/data.c @@ -25,10 +25,11 @@ unsigned char bData_40002c14_uart1ReceiveStep; //40002c14 unsigned char bData_40002c15_uart1ReceiveHeader[4]; //40002c15 unsigned char uart1_bRxData; //40002c19 unsigned char bData_40002c1a; //40002c1a // V2.2: 40002c1e -int Data_40002c1c; //40002c1c -int Data_40002c20; //40002c20 +int g_iUart0GuideValueRa; //40002c1c +int g_iUart0GuideValueDec; //40002c20 Union_40002c24 Data_40002c24; //40002c24 Union_40002c28 Data_40002c28; //40002c28 +#if 0 int fill_40002c2c; //40002c2c int fill_40002c30; //40002c30 int fill_40002c34; //40002c34 @@ -40,6 +41,7 @@ int fill_40002c48; //40002c48 int fill_40002c4c; //40002c4c int fill_40002c50; //40002c50 int fill_40002c54; //40002c54 +#endif char bHelpActive; //40002c58 unsigned char bData_40002c59_MainScreenHelpPage; //40002c59 char bData_40002c5a; //40002c5a @@ -79,21 +81,38 @@ int Data_40002d04_ObjectDeclinationMinutes; //40002d04 float fData_40002d08_ObjectDeclinationSeconds; //40002d08 double dData_40002d10; //40002d10 float fData_40002d18_ObjectDeclination; //40002d18 + +#if 0 int fill_40002d1c; //40002d1c +#endif + +#if 0 //(bData_40002c1a == 2) && (bData_40002e7a_MountType == MENU_MOUNT_TYPE_AZ) int Data_40002d20; //40002d20 int Data_40002d24; //40002d24 float fData_40002d28; //40002d28 double dData_40002d30; //40002d30 +#endif + +#if 0 int fill_40002d38; //40002d38 int fill_40002d3c; //40002d3c +#endif + int Data_40002d40; //40002d40 int g_iObjectDeclinationSign; //40002d44 + +#if 0 //(bData_40002c1a == 2) && (bData_40002e7a_MountType == MENU_MOUNT_TYPE_AZ) int Data_40002d48; //40002d48 int Data_40002d4c; //40002d4c float fData_40002d50; //40002d50 double dData_40002d58; //40002d58 +#endif + +#if 0 int fill_40002d60; //40002d60 int fill_40002d64; //40002d64 +#endif + int Data_40002d68_OTARightAscensionHours; //40002d68 int Data_40002d6c_OTARightAscensionMinutes; //40002d6c float fData_40002d70_OTARightAscensionSeconds; //40002d70 @@ -145,10 +164,12 @@ unsigned char bData_40002e62_Hours; //40002e62 unsigned char bData_40002e63_Minutes; //40002e63 unsigned char bData_40002e64_Seconds; //40002e64 unsigned short wRtcMilliSeconds; //40002e66 +#if 0 int fill_40002e68; //40002e68 int fill_40002e6c; //40002e6c int fill_40002e70; //40002e70 int fill_40002e74; //40002e74 +#endif unsigned char bDateTimeInputMode; //40002e78 unsigned char bData_40002e79_SkyLandTargetSeletion; //40002e79 unsigned char bData_40002e7a_MountType; //40002e7a @@ -194,12 +215,14 @@ unsigned char bData_40002edc; //40002edc unsigned char bData_40002edd; //40002edd char bData_40002ede; //40002ede char bData_40002edf; //40002edf +#if 0 int fill_40002ee0; //40002ee0 int fill_40002ee4; //40002ee4 int fill_40002ee8; //40002ee8 int fill_40002eec; //40002eec int fill_40002ef0; //40002ef0 unsigned short fill_40002ef4; //40002ef4 +#endif char bData_40002ef6; //40002ef6 char bData_40002ef7; //40002ef7 int Data_40002ef8; //40002ef8 @@ -226,22 +249,22 @@ char* strTargetSync; //40002f3c char* strPoleAxisDev; //40002f40 char* strRaBklashCorr; //40002f44 char* strDecBklashCorr; //40002f48 -char* Data_40002f4c; //40002f4c -char* Data_40002f50; //40002f50 -char* Data_40002f54; //40002f54 -char* Data_40002f58; //40002f58 +char* strAlignmentSpare1; //40002f4c +char* strAlignmentSpare2; //40002f50 +char* strAlignmentSpare3; //40002f54 +char* strAlignmentSpare4; //40002f58 char* strSolarSystem; //40002f5c char* strConstellation; //40002f60 char* strFamousStar; //40002f64 -char* Data_40002f68; //40002f68 -char* Data_40002f6c; //40002f6c -char* Data_40002f70; //40002f70 -char* Data_40002f74; //40002f74 -char* Data_40002f78; //40002f78 -char* Data_40002f7c; //40002f7c -char* Data_40002f80; //40002f80 -char* Data_40002f84; //40002f84 -char* Data_40002f88; //40002f88 +char* g_pcstrMessierCatalogue; //40002f68 +char* g_pcstrNGCCatalogue; //40002f6c +char* g_pcstrICCatalogue; //40002f70 +char* g_pcstrSh2Catalogue; //40002f74 +char* g_pcstrBrightStarCatalogue; //40002f78 +char* g_pcstrSAOStarCatalogue; //40002f7c +char* g_pcstrCustomerObjects; //40002f80 +char* g_pcstrInputRAandDEC; //40002f84 +char* g_pcstrCustomLandGoal; //40002f88 char* strCurrentObjects; //40002f8c char* Data_40002f90; //40002f90 char* Data_40002f94; //40002f94 @@ -253,15 +276,19 @@ char* Data_40002fa8; //40002fa8 char* strParkposition; //40002fac char* Data_40002fb0; //40002fb0 char* strTimeAndDate; //40002fb4 -char* Data_40002fb8; //40002fb8 -char* Data_40002fbc; //40002fbc -char* Data_40002fc0; //40002fc0 -char* Data_40002fc4; //40002fc4 +char* g_pcstrDaylightSaving; //40002fb8 +char* g_pcstrEngSiteSetting; //40002fbc +char* g_pcstrSkyLand; //40002fc0 +char* g_pcstrAzEqu; //40002fc4 char* strTelescopeMount; //40002fc8 char* strTrackingRate; //40002fcc -char* Data_40002fd0; //40002fd0 +char* g_pcstrLanguage; //40002fd0 char* strReset; //40002fd4 -char* Data_40002fd8; //40002fd8 +char* g_pcstrSetupSpare1; //40002fd8 +#if 1 +char* g_pcstrSetupSpare2; +char* g_pcstrSetupSpare3; +#endif char* Data_40002fdc; //40002fdc char* Data_40002fe0; //40002fe0 char* Data_40002fe4; //40002fe4 @@ -341,6 +368,7 @@ char* Data_40003108; char* Data_4000310c; char* Data_40003110; char* Data_40003114; //40003114 +#if 0 int fill_40003118; //40003118 int fill_4000311c; //4000311c int fill_40003120; //40003120 @@ -351,6 +379,7 @@ int fill_40003130; //40003130 int fill_40003134; //40003134 int fill_40003138; //40003138 int fill_4000313c; //4000313c +#endif char* Data_40003140; //40003140 unsigned char bCurrentCustomSiteInputLine; //40003144 int fill_40003148; //40003148 @@ -366,10 +395,10 @@ char fill_4000316c; //4000316c unsigned char bData_4000316d; //4000316d unsigned char bData_4000316e_FocusLineOn8LineDisplay; //4000316e unsigned char bData_4000316f_FocusLineOn4LineDisplay; //4000316f -unsigned char bData_40003170; //40003170 -unsigned char bData_40003171; //40003171 -unsigned char bData_40003172; //40003172 -unsigned char bData_40003173; //40003173 +unsigned char g_bAlignmentEightLineMenuTopItem; //40003170 +unsigned char g_bAlignmentFourLineMenuTopItem; //40003171 +unsigned char g_bAlignmentEightLineMenuFocusItem; //40003172 +unsigned char g_bAlignmentFourLineMenuFocusItem; //40003173 unsigned char bData_40003174; //40003174 unsigned char bData_40003175; //40003175 unsigned char bData_40003176; //40003176 @@ -378,9 +407,9 @@ unsigned char bData_40003178; //40003178 unsigned char bData_40003179; //40003179 unsigned char bData_4000317a; //4000317a unsigned char bData_4000317b; //4000317b -unsigned char bData_4000317c; //4000317c +unsigned char g_bSetupEightLineMenuTopItem; //4000317c unsigned char bData_4000317d; //4000317d -unsigned char bData_4000317e; //4000317e +unsigned char g_bSetupEightLineMenuFocusItem; //4000317e unsigned char bData_4000317f; //4000317f unsigned char bData_40003180; //40003180 char fill_40003181; //40003181 @@ -393,10 +422,10 @@ char fill_40003187; //40003187 char bRaBacklashCorrectionDirection; //40003188 char bDecBacklashCorrectionDirection; //40003189 unsigned char bCharacterInputPosition; //4000318a -int Data_4000318c; //4000318c -int Data_40003190; //40003190 +int g_iMenuContextIdNew; //4000318c +int g_iMenuContextIdOld; //40003190 char bData_40003194; //40003194 -unsigned char bData_40003195; //40003195 +//unsigned char g_iLedTorchLevel; //40003195 unsigned char bData_40003196_CurrentLanguage; //40003196 unsigned char bData_40003197_DisplayLinesPerMenuLine; //40003197 char bCapsLock; //40003198 @@ -421,12 +450,14 @@ char bData_400031be; //400031be unsigned char bData_400031bf; //400031bf float fData_400031c0; //400031c0 float fData_400031c4; //400031c4 +#if 0 int fill_400031c8; //400031c8 int fill_400031cc; //400031cc int fill_400031d0; //400031d0 int fill_400031d4; //400031d4 int fill_400031d8; //400031d8 int fill_400031dc; //400031dc +#endif char bData_400031e0; //400031e0 char bData_400031e1; //400031e1 int Data_400031e4; //400031e4 @@ -477,6 +508,7 @@ unsigned char bData_40003262; //40003262 unsigned char bData_40003263; //40003263 char fill_40003264; //40003264 unsigned char bData_40003265; //40003265 +#if 0 int fill_40003268; //40003268 int fill_4000326c; //4000326c int fill_40003270; //40003270 @@ -484,13 +516,14 @@ int fill_40003274; //40003274 int fill_40003278; //40003278 unsigned short fill_4000327c; //4000327c char fill_4000327e; //4000327e +#endif unsigned char Data_4000327f[8]; //4000327f, size??? float fData_40003288; //40003288 float fData_4000328c; //4000328c Struct_40003290 Data_40003290; //40003290 Struct_40003296 Data_40003296; //40003296 -float fData_4000329c; //4000329c -float fData_400032a0; //400032a0 +float g_fOtaZeroAzimuth; //4000329c +float g_fOtaZeroAltitude; //400032a0 unsigned char bData_400032a4_OTAZeroDataErrorCount; //400032a4 double fill_400032a8; //400032a8 double dData_400032b0_SunRightAscension; //400032b0 @@ -515,32 +548,37 @@ double dData_40003340; //40003340 double dData_40003348; //40003348 Struct_Sh2Data Data_40003350_FlashSh2Data; //40003350 Struct_SAOData Data_40003358_SAORecord; //40003358 -char* Data_40003360; //40003360 -char* Data_40003364; //40003364 -unsigned char* Data_40003368; //40003368 -char* Data_4000336c; //4000336c -char* Data_40003370; //40003370 -char* Data_40003374; //40003374 -char* Data_40003378; //40003378 -char* Data_4000337c; //4000337c -char* Data_40003380; //40003380 -char* Data_40003384; //40003384 -char* Data_40003388; //40003388 -char* Data_4000338c; //4000338c -char* Data_40003390; //40003390 -char* Data_40003394; //40003394 -char* Data_40003398; //40003398 -char* Data_4000339c; //4000339c + +char* g_pcstrMenuLine1; //40003360 +char* g_pcstrMenuLine2; //40003364 +unsigned char* g_pcstrMenuLine3; //40003368 +char* g_pcstrMenuLine4; //4000336c +char* g_pcstrMenuLine5; //40003370 +char* g_pcstrMenuLine6; //40003374 +char* g_pcstrMenuLine7; //40003378 +char* g_pcstrMenuLine8; //4000337c +char* g_pcstrMenuLine9; //40003380 +char* g_pcstrMenuLine10; //40003384 +char* g_pcstrMenuLine11; //40003388 +char* g_pcstrMenuLine12; //4000338c +char* g_pcstrMenuLine13; //40003390 +char* g_pcstrMenuLine14; //40003394 +char* g_pcstrMenuLine15; //40003398 +char* g_pcstrMenuLine16; //4000339c char* Data_400033a0; //400033a0 +#if 0 char* Data_400033a4; //400033a4 -char* Data_400033a8; //400033a8 -char* Data_400033ac; //400033ac -char* Data_400033b0; //400033b0 -char* Data_400033b4; //400033b4 +#endif +char* g_pcstrBigMenuLine1; //400033a8 +char* g_pcstrBigMenuLine2; //400033ac +char* g_pcstrBigMenuLine3; //400033b0 +char* g_pcstrBigMenuLine4; //400033b4 +#if 0 int fill_400033b8; //400033b8 int fill_400033bc; //400033bc int fill_400033c0; //400033c0 int fill_400033c4; //400033c4 +#endif Union_400033c8 Data_400033c8; //400033c8 Union_400033cc Data_400033cc; //400033cc double fill_400033d0; //400033d0 @@ -559,18 +597,22 @@ double dData_40003428; //40003428 char bData_40003430; //40003430 char bGotoParkPosition; //40003431 char bData_40003432; //40003432 +#if 0 double fill_40003438; //40003438 double fill_40003440; //40003440 +#endif double dData_40003448; //40003448 double dData_40003450; //40003450 double dData_40003458; //40003458 double dData_40003460; //40003460 +#if 0 double fill_40003468; //40003468 double fill_40003470; //40003470 double fill_40003478; //40003478 double fill_40003480; //40003480 -int Data_40003488; //40003488 -int Data_4000348c; //4000348c +#endif +int g_iAscomGuideValueRa; //40003488 +int g_iAscomGuideValueDec; //4000348c double dData_40003490; //40003490 char bData_40003498; //40003498 double dData_400034a0_SiderealTimeGreenwich0UT; //400034a0 @@ -585,7 +627,7 @@ float fData_400034b8; //400034b8 float fData_400034bc; //400034bc float fData_400034c0; //400034c0 float fData_400034c4; //400034c4 -float fData_400034c8; //400034c8 +float g_fLocalSiderealTimerDuringTracking; //400034c8 char bData_400034cc; //400034cc char bData_400034cd; //400034cd double Data_400034d0; //400034d0 @@ -597,13 +639,13 @@ double dData_400034f8; //400034f8 Union_40003500 Data_40003500; //40003500 unsigned char bData_40003504; //40003504 char bData_40003505; //40003505 -float fData_40003508; //40003508 -float fData_4000350c; //4000350c -float fData_40003510; //40003510 -float fData_40003514; //40003514 +float g_fSendToExternalRightAscension; //40003508 +float g_fSendToExternalDeclination; //4000350c +float g_fReceiveExternalRightAscension; //40003510 +float g_fReceiveExternalDeclination; //40003514 float fData_40003518_ReceiveExternalSiteLongitude; //40003518 float fData_4000351c_ReceiveExternalSiteLatitude; //4000351c -float fData_40003520; //40003520 +float g_fReceiveExternalTimezone; //40003520 int Data_40003524_ReceiveExternalYear; //40003524 unsigned char bData_40003528_ReceiveExternalMonth; //40003528 unsigned char bData_40003529_ReceiveExternalDay; //40003529 @@ -611,14 +653,17 @@ unsigned char bData_4000352a_ReceiveExternalHours; //4000352a unsigned char bData_4000352b_ReceiveExternalMinutes; //4000352b unsigned char bData_4000352c_ReceiveExternalSeconds; //4000352c unsigned char bAscomCmd; //4000352d -unsigned char bData_4000352e; //4000352e +unsigned char g_bSendToExternalCoordCount; //4000352e +#if 0 int fill_40003530; //40003530 int fill_40003534; //40003534 int fill_40003538; //40003538 int fill_4000353c; //4000353c +#endif float fInitialCustomSiteLongitude; //40003540 float fInitialCustomSiteLatitude; //40003544 int iInitialCustomSiteTimezone; //40003548 +#if 0 int fill_4000354c; //4000354c int fill_40003550; //40003550 int fill_40003554; //40003554 @@ -634,6 +679,7 @@ int fill_40003578; //40003578 int fill_4000357c; //4000357c int fill_40003580; //40003580 int fill_40003584; //40003584 +#endif unsigned char uart0ReceiveDataBuffer[10]; //40003588 unsigned char Data_40003592_uart1ReceiveDataBuffer[10]; //40003592 int Data_4000359c_RecentTargetIdArray[8]; //4000359c, size?? @@ -656,18 +702,18 @@ Struct_5218 Data_40003f50; //40003f50 Struct_54e0 Data_40003f64; //40003f64 unsigned char Data_40003f78[24]; //40003f78 unsigned char Data_40003f90[25]; //40003f90, size??? -char Data_40003fa9[21]; //40003fa9, size??? -char Data_40003fbe[21]; //40003fbe, size??? -char Data_40003fd3[21]; //40003fd3, size??? -char Data_40003fe8[21]; //40003fe8, size??? -char Data_40003ffd[21]; //40003ffd, size??? -char Data_40004012[21]; //40004012, size??? -char Data_40004027[21]; //40004027, size??? -char Data_4000403c[42]; //4000403c, size??? -char Data_40004066[42]; //40004066, size??? -char Data_40004090[42]; //40004090, size??? -char Data_400040ba[42]; //400040ba, size??? -char Data_400040e4[42]; //400040e4, size??? +char g_MenuStringBuffer1[21]; //40003fa9 +char g_MenuStringBuffer2[21]; //40003fbe +char g_MenuStringBuffer3[21]; //40003fd3 +char g_MenuStringBuffer4[21]; //40003fe8 +char g_MenuStringBuffer5[21]; //40003ffd +char g_MenuStringBuffer6[21]; //40004012 +char g_MenuStringBuffer7[21]; //40004027 +char g_MenuStringBuffer8[42]; //4000403c, size??? +char g_MenuStringBuffer9[42]; //40004066, size??? +char g_MenuStringBuffer10[42]; //40004090, size??? +char g_MenuStringBuffer11[42]; //400040ba, size??? +char g_MenuStringBuffer12[42]; //400040e4, size??? /*unsigned*/ char Data_4000410e[21]; //4000410e, size??? Struct_40004128 Data_40004128; //40004128 Struct_40004380 Data_40004380; //40004380 diff --git a/applications/freertos_app/data.h b/applications/freertos_app/data.h index dfab5c3..f47fb96 100644 --- a/applications/freertos_app/data.h +++ b/applications/freertos_app/data.h @@ -186,8 +186,8 @@ extern unsigned char strCustomSiteTimezone[]; //40002856 extern unsigned char strCustomSiteAltitude[]; //40002861 extern char strSkyTarget[]; //4000288e extern char strLandTarget[]; //40002899 -extern char Data_400028a5[]; //400028a5 -extern char Data_400028b3[]; //400028b3 +extern char strAltTelescope[]; //400028a5 +extern char strEquTelescope[]; //400028b3 extern char strEngPleaseSetupOtaZero[]; //400028c1 extern unsigned char Data_400028d7[]; //400028d7 extern unsigned char Data_400028e1[]; //400028e1 @@ -250,8 +250,8 @@ extern unsigned char bData_40002c14_uart1ReceiveStep; //40002c14 extern unsigned char bData_40002c15_uart1ReceiveHeader[4]; //40002c15 extern unsigned char uart1_bRxData; //40002c19 extern unsigned char bData_40002c1a; //40002c1a // V2.2: 40002c1e -extern int Data_40002c1c; //40002c1c -extern int Data_40002c20; //40002c20 +extern int g_iUart0GuideValueRa; //40002c1c +extern int g_iUart0GuideValueDec; //40002c20 extern Union_40002c24 Data_40002c24; //40002c24 extern Union_40002c28 Data_40002c28; //40002c28 extern char bHelpActive; //40002c58 @@ -291,16 +291,24 @@ extern int Data_40002d04_ObjectDeclinationMinutes; //40002d04 extern float fData_40002d08_ObjectDeclinationSeconds; //40002d08 extern double dData_40002d10; //40002d10 extern float fData_40002d18_ObjectDeclination; //40002d18 + +#if 0 //(bData_40002c1a == 2) && (bData_40002e7a_MountType == MENU_MOUNT_TYPE_AZ) extern int Data_40002d20; //40002d20 extern int Data_40002d24; //40002d24 extern float fData_40002d28; //40002d28 extern double dData_40002d30; //40002d30 +#endif + extern int Data_40002d40; //40002d40 extern int g_iObjectDeclinationSign; //40002d44 + +#if 0 //(bData_40002c1a == 2) && (bData_40002e7a_MountType == MENU_MOUNT_TYPE_AZ) extern int Data_40002d48; //40002d48 extern int Data_40002d4c; //40002d4c extern float fData_40002d50; //40002d50 extern double dData_40002d58; //40002d58 +#endif + extern int Data_40002d68_OTARightAscensionHours; //40002d68 extern int Data_40002d6c_OTARightAscensionMinutes; //40002d6c extern float fData_40002d70_OTARightAscensionSeconds; //40002d70 @@ -419,22 +427,22 @@ extern char* strTargetSync; //40002f3c extern char* strPoleAxisDev; //40002f40 extern char* strRaBklashCorr; //40002f44 extern char* strDecBklashCorr; //40002f48 -extern char* Data_40002f4c; //40002f4c -extern char* Data_40002f50; //40002f50 -extern char* Data_40002f54; //40002f54 -extern char* Data_40002f58; //40002f58 +extern char* strAlignmentSpare1; //40002f4c +extern char* strAlignmentSpare2; //40002f50 +extern char* strAlignmentSpare3; //40002f54 +extern char* strAlignmentSpare4; //40002f58 extern char* strSolarSystem; //40002f5c extern char* strConstellation; //40002f60 extern char* strFamousStar; //40002f64 -extern char* Data_40002f68; //40002f68 -extern char* Data_40002f6c; //40002f6c -extern char* Data_40002f70; //40002f70 -extern char* Data_40002f74; //40002f74 -extern char* Data_40002f78; //40002f78 -extern char* Data_40002f7c; //40002f7c -extern char* Data_40002f80; //40002f80 -extern char* Data_40002f84; //40002f84 -extern char* Data_40002f88; //40002f88 +extern char* g_pcstrMessierCatalogue; //40002f68 +extern char* g_pcstrNGCCatalogue; //40002f6c +extern char* g_pcstrICCatalogue; //40002f70 +extern char* g_pcstrSh2Catalogue; //40002f74 +extern char* g_pcstrBrightStarCatalogue; //40002f78 +extern char* g_pcstrSAOStarCatalogue; //40002f7c +extern char* g_pcstrCustomerObjects; //40002f80 +extern char* g_pcstrInputRAandDEC; //40002f84 +extern char* g_pcstrCustomLandGoal; //40002f88 extern char* strCurrentObjects; //40002f8c extern char* Data_40002f90; //40002f90 extern char* Data_40002f94; //40002f94 @@ -446,15 +454,19 @@ extern char* Data_40002fa8; //40002fa8 extern char* strParkposition; //40002fac extern char* Data_40002fb0; //40002fb0 extern char* strTimeAndDate; //40002fb4 -extern char* Data_40002fb8; //40002fb8 -extern char* Data_40002fbc; //40002fbc -extern char* Data_40002fc0; //40002fc0 -extern char* Data_40002fc4; //40002fc4 +extern char* g_pcstrDaylightSaving; //40002fb8 +extern char* g_pcstrEngSiteSetting; //40002fbc +extern char* g_pcstrSkyLand; //40002fc0 +extern char* g_pcstrAzEqu; //40002fc4 extern char* strTelescopeMount; //40002fc8 extern char* strTrackingRate; //40002fcc -extern char* Data_40002fd0; //40002fd0 +extern char* g_pcstrLanguage; //40002fd0 extern char* strReset; //40002fd4 -extern char* Data_40002fd8; //40002fd8 +extern char* g_pcstrSetupSpare1; //40002fd8 +#if 1 +extern char* g_pcstrSetupSpare2; +extern char* g_pcstrSetupSpare3; +#endif extern char* Data_40002fdc; //40002fdc extern char* Data_40002fe0; //40002fe0 extern char* Data_40002fe4; //40002fe4 @@ -546,10 +558,10 @@ extern int Data_40003168_LunarPhaseMonth; //40003168 extern unsigned char bData_4000316d; //4000316d extern unsigned char bData_4000316e_FocusLineOn8LineDisplay; //4000316e extern unsigned char bData_4000316f_FocusLineOn4LineDisplay; //4000316f -extern unsigned char bData_40003170; //40003170 -extern unsigned char bData_40003171; //40003171 -extern unsigned char bData_40003172; //40003172 -extern unsigned char bData_40003173; //40003173 +extern unsigned char g_bAlignmentEightLineMenuTopItem; //40003170 +extern unsigned char g_bAlignmentFourLineMenuTopItem; //40003171 +extern unsigned char g_bAlignmentEightLineMenuFocusItem; //40003172 +extern unsigned char g_bAlignmentFourLineMenuFocusItem; //40003173 extern unsigned char bData_40003174; //40003174 extern unsigned char bData_40003175; //40003175 extern unsigned char bData_40003176; //40003176 @@ -558,9 +570,9 @@ extern unsigned char bData_40003178; //40003178 extern unsigned char bData_40003179; //40003179 extern unsigned char bData_4000317a; //4000317a extern unsigned char bData_4000317b; //4000317b -extern unsigned char bData_4000317c; //4000317c +extern unsigned char g_bSetupEightLineMenuTopItem; //4000317c extern unsigned char bData_4000317d; //4000317d -extern unsigned char bData_4000317e; //4000317e +extern unsigned char g_bSetupEightLineMenuFocusItem; //4000317e extern unsigned char bData_4000317f; //4000317f extern unsigned char bData_40003180; //40003180 extern unsigned char bData_40003182; //40003182 @@ -569,10 +581,10 @@ extern unsigned char bData_40003186; //40003186 extern char bRaBacklashCorrectionDirection; //40003188 extern char bDecBacklashCorrectionDirection; //40003189 extern unsigned char bCharacterInputPosition; //4000318a -extern int Data_4000318c; //4000318c -extern int Data_40003190; //40003190 +extern int g_iMenuContextIdNew; //4000318c +extern int g_iMenuContextIdOld; //40003190 extern char bData_40003194; //40003194 -extern unsigned char bData_40003195; //40003195 +extern unsigned char g_iLedTorchLevel; //40003195 extern unsigned char bData_40003196_CurrentLanguage; //40003196 extern unsigned char bData_40003197_DisplayLinesPerMenuLine; //40003197 extern char bCapsLock; //40003198 @@ -641,8 +653,8 @@ extern float fData_40003288; //40003288 extern float fData_4000328c; //4000328c extern Struct_40003290 Data_40003290; //40003290 extern Struct_40003296 Data_40003296; //40003296 -extern float fData_4000329c; //4000329c -extern float fData_400032a0; //400032a0 +extern float g_fOtaZeroAzimuth; //4000329c +extern float g_fOtaZeroAltitude; //400032a0 extern unsigned char bData_400032a4_OTAZeroDataErrorCount; //400032a4 extern double dData_400032b0_SunRightAscension; //400032b0 extern double dData_400032b8_SunDeclination; //400032b8 @@ -666,28 +678,31 @@ extern double dData_40003340; //40003340 extern double dData_40003348; //40003348 extern Struct_Sh2Data Data_40003350_FlashSh2Data; //40003350 extern Struct_SAOData Data_40003358_SAORecord; //40003358 -extern char* Data_40003360; //40003360 -extern char* Data_40003364; //40003364 -extern unsigned char* Data_40003368; //40003368 -extern char* Data_4000336c; //4000336c -extern char* Data_40003370; //40003370 -extern char* Data_40003374; //40003374 -extern char* Data_40003378; //40003378 -extern char* Data_4000337c; //4000337c -extern char* Data_40003380; //40003380 -extern char* Data_40003384; //40003384 -extern char* Data_40003388; //40003388 -extern char* Data_4000338c; //4000338c -extern char* Data_40003390; //40003390 -extern char* Data_40003394; //40003394 -extern char* Data_40003398; //40003398 -extern char* Data_4000339c; //4000339c + +extern char* g_pcstrMenuLine1; //40003360 +extern char* g_pcstrMenuLine2; //40003364 +extern unsigned char* g_pcstrMenuLine3; //40003368 +extern char* g_pcstrMenuLine4; //4000336c +extern char* g_pcstrMenuLine5; //40003370 +extern char* g_pcstrMenuLine6; //40003374 +extern char* g_pcstrMenuLine7; //40003378 +extern char* g_pcstrMenuLine8; //4000337c +extern char* g_pcstrMenuLine9; //40003380 +extern char* g_pcstrMenuLine10; //40003384 +extern char* g_pcstrMenuLine11; //40003388 +extern char* g_pcstrMenuLine12; //4000338c +extern char* g_pcstrMenuLine13; //40003390 +extern char* g_pcstrMenuLine14; //40003394 +extern char* g_pcstrMenuLine15; //40003398 +extern char* g_pcstrMenuLine16; //4000339c extern char* Data_400033a0; //400033a0 +#if 0 extern char* Data_400033a4; //400033a4 -extern char* Data_400033a8; //400033a8 -extern char* Data_400033ac; //400033ac -extern char* Data_400033b0; //400033b0 -extern char* Data_400033b4; //400033b4 +#endif +extern char* g_pcstrBigMenuLine1; //400033a8 +extern char* g_pcstrBigMenuLine2; //400033ac +extern char* g_pcstrBigMenuLine3; //400033b0 +extern char* g_pcstrBigMenuLine4; //400033b4 extern Union_400033c8 Data_400033c8; //400033c8 extern Union_400033cc Data_400033cc; //400033cc extern double dData_400033d8; //400033d8 @@ -709,8 +724,8 @@ extern double dData_40003448; //40003448 extern double dData_40003450; //40003450 extern double dData_40003458; //40003458 extern double dData_40003460; //40003460 -extern int Data_40003488; //40003488 -extern int Data_4000348c; //4000348c +extern int g_iAscomGuideValueRa; //40003488 +extern int g_iAscomGuideValueDec; //4000348c extern double dData_40003490; //40003490 extern char bData_40003498; //40003498 extern double dData_400034a0_SiderealTimeGreenwich0UT; //400034a0 @@ -725,7 +740,7 @@ extern float fData_400034b8; //400034b8 extern float fData_400034bc; //400034bc extern float fData_400034c0; //400034c0 extern float fData_400034c4; //400034c4 -extern float fData_400034c8; //400034c8 +extern float g_fLocalSiderealTimerDuringTracking; //400034c8 extern char bData_400034cc; //400034cc extern char bData_400034cd; //400034cd extern double Data_400034d0; //400034d0 @@ -737,13 +752,13 @@ extern double dData_400034f8; //400034f8 extern Union_40003500 Data_40003500; //40003500 extern unsigned char bData_40003504; //40003504 extern char bData_40003505; //40003505 -extern float fData_40003508; //40003508 -extern float fData_4000350c; //4000350c -extern float fData_40003510; //40003510 -extern float fData_40003514; //40003514 +extern float g_fSendToExternalRightAscension; //40003508 +extern float g_fSendToExternalDeclination; //4000350c +extern float g_fReceiveExternalRightAscension; //40003510 +extern float g_fReceiveExternalDeclination; //40003514 extern float fData_40003518_ReceiveExternalSiteLongitude; //40003518 extern float fData_4000351c_ReceiveExternalSiteLatitude; //4000351c -extern float fData_40003520; //40003520 +extern float g_fReceiveExternalTimezone; //40003520 extern int Data_40003524_ReceiveExternalYear; //40003524 extern unsigned char bData_40003528_ReceiveExternalMonth; //40003528 extern unsigned char bData_40003529_ReceiveExternalDay; //40003529 @@ -751,7 +766,7 @@ extern unsigned char bData_4000352a_ReceiveExternalHours; //4000352a extern unsigned char bData_4000352b_ReceiveExternalMinutes; //4000352b extern unsigned char bData_4000352c_ReceiveExternalSeconds; //4000352c extern unsigned char bAscomCmd; //4000352d -extern unsigned char bData_4000352e; //4000352e +extern unsigned char g_bSendToExternalCoordCount; //4000352e extern float fInitialCustomSiteLongitude; //40003540 extern float fInitialCustomSiteLatitude; //40003544 extern int iInitialCustomSiteTimezone; //40003548 @@ -777,19 +792,20 @@ extern Struct_5218 Data_40003f50; //40003f50 extern Struct_54e0 Data_40003f64; //40003f64 extern unsigned char Data_40003f78[]; //40003f78 extern unsigned char Data_40003f90[]; //40003f90 -extern char Data_40003fa9[]; //40003fa9 -extern char Data_40003fbe[]; //40003fbe -extern char Data_40003fd3[]; //40003fd3 -extern char Data_40003fe8[]; //40003fe8 -extern char Data_40003ffd[]; //40003ffd -extern char Data_40004012[]; //40004012 -extern char Data_40004027[]; //40004027 -extern char Data_4000403c[]; //4000403c -extern char Data_40004066[]; //40004066 -extern char Data_40004090[]; //40004090 -extern char Data_400040ba[]; //400040ba -extern char Data_400040e4[]; //400040e4 +extern char g_MenuStringBuffer1[]; //40003fa9 +extern char g_MenuStringBuffer2[]; //40003fbe +extern char g_MenuStringBuffer3[]; //40003fd3 +extern char g_MenuStringBuffer4[]; //40003fe8 +extern char g_MenuStringBuffer5[]; //40003ffd +extern char g_MenuStringBuffer6[]; //40004012 +extern char g_MenuStringBuffer7[]; //40004027 +extern char g_MenuStringBuffer8[]; //4000403c +extern char g_MenuStringBuffer9[]; //40004066 +extern char g_MenuStringBuffer10[]; //40004090 +extern char g_MenuStringBuffer11[]; //400040ba +extern char g_MenuStringBuffer12[]; //400040e4 extern /*unsigned*/ char Data_4000410e[]; //4000410e + extern Struct_40004128 Data_40004128; //40004128 extern Struct_40004380 Data_40004380; //40004380 extern Struct_GeographicCoordinates Data_40004ad8; //40004ad8 diff --git a/applications/freertos_app/file_1f30.c b/applications/freertos_app/file_1f30.c index 2d7d349..aeda851 100644 --- a/applications/freertos_app/file_1f30.c +++ b/applications/freertos_app/file_1f30.c @@ -9,6 +9,7 @@ #include "menu.h" #include "file_79080.c" #include "macros.h" +#include "periph.h" // configuration for the Atmel AT45DB161D device #define FLASH_PAGE_BITS 10 @@ -19,30 +20,6 @@ #define FLASH_CMD_BUF1_WRITE 0x84 #define FLASH_CMD_CONT_ARRAY_READ 0xE8 -#define GPIO_FLASH_CS (1 << 24) //P1.24 -#define ENABLE_FLASH_CS (IO1CLR = GPIO_FLASH_CS) -#define DISABLE_FLASH_CS (IO1SET = GPIO_FLASH_CS) - -#define GPIO_FONTROM_CS (1 << 25) //P1.25 -#define ENABLE_FONTROM_CS (IO1CLR = GPIO_FONTROM_CS) -#define DISABLE_FONTROM_CS (IO1SET = GPIO_FONTROM_CS) - -#define GPIO_LCD_CS (1 << 10) //P0.10 -#define ENABLE_LCD_CS (IOCLR0 |= GPIO_LCD_CS) -#define DISABLE_LCD_CS (IOSET0 |= GPIO_LCD_CS) - -#define GPIO_LCD_SCLK (1 << 12) //P0.12 -#define LCD_SCLK_LO (IO0CLR |= GPIO_LCD_SCLK) -#define LCD_SCLK_HI (IO0SET |= GPIO_LCD_SCLK) - -#define GPIO_LCD_SID (1 << 15) //P0.15 -#define LCD_SID_LO (IO0CLR |= GPIO_LCD_SID) -#define LCD_SID_HI (IO0SET |= GPIO_LCD_SID) - -#define GPIO_LCD_RS (1 << 23) //P1.23 -#define LCD_RS_CONTROL (IO1CLR |= GPIO_LCD_RS) -#define LCD_RS_DATA (IO1SET |= GPIO_LCD_RS) - // LCD Display commands #define ST7565_CMD_DISPLAY_ON 0xAF #define ST7565_CMD_SET_PAGE 0xB0 @@ -913,52 +890,27 @@ void timer_isr(void) if (bData_40002c08 == 0) { - IO1SET = (1 << 22); -#ifdef OLIMEX_LPC2148 - // Set LED1 - IOSET0 = (1 << 10); -#endif - + BUZZER_HI; bData_40002c07 = 0; } else if (bData_40002c09 == 0) { - IO1CLR = (1 << 22); -#ifdef OLIMEX_LPC2148 - // Clear LED1 - IOCLR0 = (1 << 10); -#endif - + BUZZER_LO; bData_40002c07 = 0; } else if (bData_40002c07 <= bData_40002c08) { - IO1CLR = (1 << 22); -#ifdef OLIMEX_LPC2148 - // Clear LED1 - IOCLR0 = (1 << 10); -#endif - + BUZZER_LO; bData_40002c07++; } else if (bData_40002c07 <= bData_40002c09) { - IO1SET = (1 << 22); -#ifdef OLIMEX_LPC2148 - // Set LED1 - IOSET0 = (1 << 10); -#endif - + BUZZER_HI; bData_40002c07++; } else if (bData_40002c08 >= bData_40002c09) { - IO1SET = (1 << 22); -#ifdef OLIMEX_LPC2148 - // Set LED1 - IOSET0 = (1 << 10); -#endif - + BUZZER_HI; bData_40002c07 = 0; bData_40002c08 = 0; } @@ -979,8 +931,10 @@ void timer_isr(void) Data_40003214_UserTimerSeconds--; if (Data_40003214_UserTimerSeconds == 0) { +#if 1 //Beep bData_40002c08 = 160; - bData_40002c09 = bData_40002c08 - 1; + bData_40002c09 = bData_40002c08 - 1; +#endif } } } @@ -1025,7 +979,6 @@ void rtc_isr(void) __irq VICVectAddr = 0; } -//#include "uart.c" #ifdef __GNUC__ //void delay_loop(unsigned int a) __attribute__((optimize(-O0))); @@ -1066,6 +1019,7 @@ void delay_loop(unsigned int a) /* 227c - complete */ void lpc_interrupt_init(void) { +#if 0 //See: FreeRTOS::prvSetupTimerInterrupt //Timer0 // Prescale Register T0PR = 0; @@ -1084,6 +1038,7 @@ void lpc_interrupt_init(void) VICVectCntl0 = (1 << 5) | 4; // TIMER0 -> Slot 0 VICVectAddr0 = (unsigned int) timer_isr; VICIntEnable = (1 << 4); // Enable TIMER0 +#endif VICVectCntl3 = (1 << 5) | 13; // RTC -> Slot 3 VICVectAddr3 = (unsigned int) rtc_isr; @@ -1212,8 +1167,8 @@ void lpc_hw_init(void) (1 <<24) | // P1.24 = Out -> Chip Select for SPI Flash (1 <<25); // P1.25 = Out -> Chip Select for SPI Font ROM IO1SET = 1 << 22; //0x00400000; P1.22 = High - IO0SET = 1 << 13; //0x00002000; P0.13 = High - IO0CLR = 1 << 16; //0x00010000; P0.16 = Low + GPIO_LED1_3_OFF; //0x00002000; P0.13 = High + GPIO_LED2_OFF; //0x00010000; P0.16 = Low IO1SET = 1 << 24; //0x01000000; P1.24 = High IO1SET = 1 << 25; //0x02000000; P1.25 = High @@ -1229,13 +1184,16 @@ void lpc_hw_init(void) func_17d0(); +#if 0 bData_40002c08 = 0x10; bData_40002c09 = 0x10; +#else + bData_40002c08 = 0x00; + bData_40002c09 = 0x00; +#endif bData_40002c07 = 0x00; -#if 0 lpc_interrupt_init(); -#endif } @@ -1734,7 +1692,9 @@ int func_33cc(unsigned short a, int* b, int* c) return 1; } +#ifdef INCLUDE_ALL_C_FILES #include "object_database.c" +#endif /* 4dd0 - todo */ int func_4dd0(int a, Struct_4dd0* b) @@ -1954,7 +1914,9 @@ unsigned char flash_get_recent_targets(unsigned char* targetTypes, int* targetId return buf[0]; } +#ifdef INCLUDE_ALL_C_FILES #include "align_stars.c" +#endif /* 5f40 - todo */ void initialize_variables(void) @@ -1983,6 +1945,7 @@ void initialize_variables(void) Data_40002cf8 = 11; fData_40002cfc = 1.9; +#if 0 //(bData_40002c1a == 2) && (bData_40002e7a_MountType == MENU_MOUNT_TYPE_AZ) Data_40002d20 = 1; Data_40002d24 = 3; fData_40002d28 = 5.9; @@ -1990,6 +1953,7 @@ void initialize_variables(void) Data_40002d48 = 6; Data_40002d4c = 3; fData_40002d50 = 5.8; +#endif Data_40002d68_OTARightAscensionHours = 2; Data_40002d6c_OTARightAscensionMinutes = 3; @@ -2134,9 +2098,11 @@ void func_65d4(double sp40, double sp48) } else { +#if 0 //6788 Data_400033c8.dwData = (Data_40004128.dTargetPositionRaAxis - 0.6 * Data_40004128.dData_176 / 3600.0) * 256 / Data_40004128.dData_24; +#endif } //6818 Data_400033cc.dwData = sp40 * 1.0 / Data_40004128.dData_8; @@ -2154,9 +2120,11 @@ void func_65d4(double sp40, double sp48) } else { +#if 0 //6970 Data_400033c8.dwData = (Data_40004128.dTargetPositionRaAxis + 0.6 * Data_40004128.dData_176 / 3600.0) * 256 / Data_40004128.dData_24; +#endif } //6a00 Data_400033cc.dwData = sp40 * 1.0 / Data_40004128.dData_8; @@ -2164,12 +2132,14 @@ void func_65d4(double sp40, double sp48) //6a44 if (bData_40002c1a == 2) { +#if 0 //6a54 if (Data_400033cc.dwData > 980) { Data_400033cc.dwData = 980; } //->6a90 +#endif } else { @@ -2196,9 +2166,9 @@ void func_65d4(double sp40, double sp48) Data_400033cc.dwData = 5; } //6af4 - if ((iMountAutoguideRa != 0) || (Data_40003488 != 0)) + if ((iMountAutoguideRa != 0) || (g_iAscomGuideValueRa != 0)) { - Data_400033cc.dwData = abs(2*((iMountAutoguideRa + 6 * Data_40003488)) + 6); + Data_400033cc.dwData = abs(2*((iMountAutoguideRa + 6 * g_iAscomGuideValueRa)) + 6); if (iMountAutoguideRa == 1) { @@ -2307,6 +2277,7 @@ void func_65d4(double sp40, double sp48) } //if (bData_40002c1a == 1) else { +#if 0 //6dec if (g_iSlewStepRaAxis != 0) { @@ -2377,6 +2348,7 @@ void func_65d4(double sp40, double sp48) uart1_write_byte(Data_400033c8.bData[3]); uart1_write_byte(Data_400033c8.bData[2]); uart1_write_byte(Data_400033c8.bData[1]); +#endif } //6f6c if (bData_40002c1a == 1) @@ -2387,19 +2359,23 @@ void func_65d4(double sp40, double sp48) } else { +#if 0 //7010 Data_400033c8.dwData = (1.0 * Data_40004128.dData_184 / 3600.0 + Data_40004128.dTargetPositionDecAxis) * 256 / Data_40004128.dData_32; +#endif } //70a0 Data_400033cc.dwData = 1.0 * sp48 / Data_40004128.dData_16; if (bData_40002c1a == 2) { +#if 0 if (Data_400033cc.dwData > 980) { Data_400033cc.dwData = 980; } +#endif } else { @@ -2420,7 +2396,7 @@ void func_65d4(double sp40, double sp48) if (bData_40002c1a == 1) { //7164 - if ((Data_40004128.dData_312 == 2) && (Data_4000348c != 0)) + if ((Data_40004128.dData_312 == 2) && (g_iAscomGuideValueDec != 0)) { Data_400033cc.dwData = 32; } @@ -2523,6 +2499,7 @@ void func_65d4(double sp40, double sp48) } //if (bData_40002c1a == 1) else { +#if 0 //73f8 if (g_iSlewStepDecAxis != 0) { @@ -2593,6 +2570,7 @@ void func_65d4(double sp40, double sp48) uart1_write_byte(Data_400033c8.bData[3]); uart1_write_byte(Data_400033c8.bData[2]); uart1_write_byte(Data_400033c8.bData[1]); +#endif } //757c func_659c(10); @@ -2714,8 +2692,10 @@ double func_7654(int a, int b, double sp64, double sp88, double sp96) /* 7950 - todo */ void beep1(int a) { +#if 0 bData_40002c08 = a << 5; bData_40002c09 = bData_40002c08 - 1; +#endif } /* 7978 - todo */ @@ -3215,7 +3195,7 @@ void func_9178(void) theta = get_local_sidereal_time(Data_40004128.Data_40, Data_40004128.bData_44, Data_40004128.geographicLongitude); - fData_400034c8 = theta; + g_fLocalSiderealTimerDuringTracking = theta; convert_equatorial_to_horizontal(geoCoord/*sp256*/, equCoord/*sp224*/, @@ -3316,6 +3296,7 @@ void func_9178(void) //97dc if (bData_40002c1a == 2) { +#if 0 //97ec if (/*sp264*/geoCoord.dLatitude >= 0) { @@ -3346,6 +3327,7 @@ void func_9178(void) //9934 Data_40004128.dData_176 = 3.6; Data_40004128.dData_184 = 3.0; +#endif } //if (bData_40002c1a == 2) //9958 Data_40004128.dObjPositionRaAxis = Data_40004128.dData_112; @@ -4060,8 +4042,9 @@ void func_b7c8(double a, double b) } +#ifdef INCLUDE_ALL_C_FILES #include "alignment.c" - +#endif typedef struct { @@ -4162,8 +4145,8 @@ void func_d2cc(void) Data_40004128.dAutoguideRa = 0.0; Data_40004128.dAutoguideDec = 0.0; - Data_40003488 = 0; - Data_4000348c = 0; + g_iAscomGuideValueRa = 0; + g_iAscomGuideValueDec = 0; } /* d784 - todo */ @@ -4503,6 +4486,7 @@ void lcd_display_lunar_phase_screen(int year, int month) } } +#ifdef INCLUDE_ALL_C_FILES #include "earth.c" #include "mercury.c" #include "venus.c" @@ -4512,6 +4496,7 @@ void lcd_display_lunar_phase_screen(int year, int month) #include "uranus.c" #include "neptun.c" #include "pluto.c" +#endif /* 1af1c - todo */ double func_1af1c(double a) @@ -5067,411 +5052,10 @@ void get_all_solar_system_object_equatorial_coordinates(void) calculate_solar_system_object_equatorial_coordinates(10, &dData_400032c0_MoonRightAscension, &dData_400032c8_MoonDeclination); //Moon } +#ifdef INCLUDE_ALL_C_FILES #include "HelpScreen.c" - -/* 20b94 - todo */ -void DisplayMainScreen(void) -{ - lcd_display_string(0, 1, 1, strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 1, 14, strlen(Data_40003364), (unsigned char*)Data_40003364); - - if (g_bTargetSyncOpen == TRUE) - { - if (bData_400031eb == 0) - { - //20c18 - lcd_display_string(0, 2, 1, 22, ">>>>synchronizing<<<<"); - - bData_400031eb = 1; - } - else - { - //0x20c44 - lcd_display_string(0, 2, 1, 22, " "); - - bData_400031eb = 0; - } - } - else - { - //0x20c70 - lcd_display_string(0, 2, 1, 22, " "); - } - //0x20c8c - lcd_display_string(0, 3, 1, strlen(Data_40003370), Data_40003370); - lcd_display_string(0, 3, 6, 9, Data_40003374); - lcd_display_string(0, 3, 16, 2, Data_40003374 + 10); - lcd_display_string(0, 3, 19, 2, Data_40003374 + 13); - - lcd_display_bitmap(0, 3, 15, (unsigned char*)cBitmapDegree); - lcd_display_bitmap(0, 3, 18, (unsigned char*)cBitmapMinute); - lcd_display_bitmap(0, 3, 21, (unsigned char*)cBitmapSecond); - - if (abs(Data_40002e18_SiteLongitudeDegrees) < 100) - { - lcd_display_string(0, 3, 12, 1, " "); - } - - if (abs(Data_40002e18_SiteLongitudeDegrees) < 10) - { - lcd_display_string(0, 3, 13, 1, " "); - } - - if (abs(Data_40002e1c_SiteLongitudeMinutes) < 10) - { - lcd_display_string(0, 3, 16, 1, " "); - } - - if (abs(fData_40002e20_SiteLongitudeSeconds) < 10) - { - lcd_display_string(0, 3, 19, 1, " "); - } - - lcd_display_string(0, 4, 1, strlen(Data_40003378), Data_40003378); - lcd_display_string(0, 4, 6, 9, Data_4000337c); - lcd_display_string(0, 4, 16, 2, Data_4000337c + 10); - lcd_display_string(0, 4, 19, 2, Data_4000337c + 13); - - lcd_display_bitmap(0, 4, 15, (unsigned char*)cBitmapDegree); - lcd_display_bitmap(0, 4, 18, (unsigned char*)cBitmapMinute); - lcd_display_bitmap(0, 4, 21, (unsigned char*)cBitmapSecond); - - if (abs(Data_40002e38_SiteLatitudeDegrees) < 100) - { - lcd_display_string(0, 4, 12, 1, " "); - } - - if (abs(Data_40002e38_SiteLatitudeDegrees) < 10) - { - lcd_display_string(0, 4, 13, 1, " "); - } - - if (abs(Data_40002e3c_SiteLatitudeMinutes) < 10) - { - lcd_display_string(0, 4, 16, 1, " "); - } - - if (abs(fData_40002e40_SiteLatitudeSeconds) < 10) - { - lcd_display_string(0, 4, 19, 1, " "); - } - - lcd_display_string(0, 5, 1, strlen(Data_40003380), Data_40003380); - lcd_display_string(0, 5, 6, 9, Data_40003384); - lcd_display_string(0, 5, 16, 2, Data_40003384 + 10); - lcd_display_string(0, 5, 19, 2, Data_40003384 + 13); - - if (bData_40002e7a_MountType == MENU_MOUNT_TYPE_AZ) //0) - { - //21138 - lcd_display_bitmap(0, 5, 15, (unsigned char*)cBitmapDegree); - lcd_display_bitmap(0, 5, 18, (unsigned char*)cBitmapMinute); - lcd_display_bitmap(0, 5, 21, (unsigned char*)cBitmapSecond); - - if (abs(Data_40002d20) < 100) - { - lcd_display_string(0, 5, 12, 1, " "); - } - - if (abs(Data_40002d20) < 10) - { - lcd_display_string(0, 5, 13, 1, " "); - } - - if (abs(Data_40002d24) < 10) - { - lcd_display_string(0, 5, 16, 1, " "); - } - - if (abs(fData_40002d28) < 10) - { - lcd_display_string(0, 5, 19, 1, " "); - } - } //if (bData_40002e7a_MountType == MENU_MOUNT_TYPE_AZ) - else - { - //0x2127c - lcd_display_string(0, 5, 15, 1, "h"); - lcd_display_string(0, 5, 18, 1, "m"); - lcd_display_string(0, 5, 21, 1, "s"); - - if (Data_40002cd8_ObjectRightAscensionHours < 100) - { - lcd_display_string(0, 5, 12, 1, " "); - } - - if (Data_40002cd8_ObjectRightAscensionHours < 10) - { - lcd_display_string(0, 5, 13, 1, " "); - } - - if (Data_40002cdc_ObjectRightAscensionMinutes < 10) - { - lcd_display_string(0, 5, 16, 1, " "); - } - - if (fData_40002ce0_ObjectRightAscensionSeconds < 10) - { - lcd_display_string(0, 5, 19, 1, " "); - } - } - //0x213c8 - lcd_display_string(0, 6, 1, strlen(Data_40003388), Data_40003388); - lcd_display_string(0, 6, 6, 9, Data_4000338c); - lcd_display_string(0, 6, 16, 2, Data_4000338c + 10); - lcd_display_string(0, 6, 19, 2, Data_4000338c + 13); - - lcd_display_bitmap(0, 6, 15, (unsigned char*)cBitmapDegree); - lcd_display_bitmap(0, 6, 18, (unsigned char*)cBitmapMinute); - lcd_display_bitmap(0, 6, 21, (unsigned char*)cBitmapSecond); - - if (bData_40002e7a_MountType == MENU_MOUNT_TYPE_AZ) //0) - { - //214ac - if (abs(Data_40002d48) < 10) - { - lcd_display_string(0, 6, 13, 1, " "); - } - - if (abs(Data_40002d4c) < 10) - { - lcd_display_string(0, 6, 16, 1, " "); - } - - if (abs(fData_40002d50) < 10) - { - lcd_display_string(0, 6, 19, 1, " "); - } - } //if (bData_40002e7a_MountType == MENU_MOUNT_TYPE_AZ) - else - { - //0x21574 - if (abs(Data_40002d00_ObjectDeclinationDegrees) < 10) - { - lcd_display_string(0, 6, 13, 1, " "); - } - - if (abs(Data_40002d04_ObjectDeclinationMinutes) < 10) - { - lcd_display_string(0, 6, 16, 1, " "); - } - - if (abs(fData_40002d08_ObjectDeclinationSeconds) < 10) - { - lcd_display_string(0, 6, 19, 1, " "); - } - } - //0x21638 - lcd_display_string(0, 7, 1, strlen(Data_40003390), Data_40003390); - lcd_display_string(0, 7, 6, 9, Data_40003394); - lcd_display_string(0, 7, 16, 2, Data_40003394 + 10); - lcd_display_string(0, 7, 19, 2, Data_40003394 + 13); - - if ((bData_400034b4 == 1) && - (bTrackingMode == MENU_TRACKING_MODE_TRACKING)) //2)) - { - //216f0 - if (bData_40002e7a_MountType == MENU_MOUNT_TYPE_AZ) //0) - { - lcd_display_bitmap(0, 7, 15, (unsigned char*)cBitmapDegree); - lcd_display_bitmap(0, 7, 18, (unsigned char*)cBitmapMinute); - lcd_display_bitmap(0, 7, 21, (unsigned char*)cBitmapSecond); - - if (abs(Data_40002d20) < 100) - { - lcd_display_string(0, 7, 12, 1, " "); - } - - if (abs(Data_40002d20) < 10) - { - lcd_display_string(0, 7, 13, 1, " "); - } - - if (abs(Data_40002d24) < 10) - { - lcd_display_string(0, 7, 16, 1, " "); - } - - if (abs(fData_40002d28) < 10) - { - lcd_display_string(0, 7, 19, 1, " "); - } - } //if (bData_40002e7a_MountType == MENU_MOUNT_TYPE_AZ) - else - { - //0x21844 - lcd_display_string(0, 7, 15, 1, "h"); - lcd_display_string(0, 7, 18, 1, "m"); - lcd_display_string(0, 7, 21, 1, "s"); - - if (Data_40002cd8_ObjectRightAscensionHours < 100) - { - lcd_display_string(0, 7, 12, 1, " "); - } - - if (Data_40002cd8_ObjectRightAscensionHours < 10) - { - lcd_display_string(0, 7, 13, 1, " "); - } - - if (Data_40002cdc_ObjectRightAscensionMinutes < 10) - { - lcd_display_string(0, 7, 16, 1, " "); - } - - if (fData_40002ce0_ObjectRightAscensionSeconds < 10) - { - lcd_display_string(0, 7, 19, 1, " "); - } - } - } - else - { - //0x21950 - if (bData_40002e7a_MountType == MENU_MOUNT_TYPE_AZ) //0) - { - //21960 - lcd_display_bitmap(0, 7, 15, (unsigned char*)cBitmapDegree); - lcd_display_bitmap(0, 7, 18, (unsigned char*)cBitmapMinute); - lcd_display_bitmap(0, 7, 21, (unsigned char*)cBitmapSecond); - - if (abs(Data_40002dac) < 100) - { - lcd_display_string(0, 7, 12, 1, " "); - } - - if (abs(Data_40002dac) < 10) - { - lcd_display_string(0, 7, 13, 1, " "); - } - - if (abs(Data_40002db0) < 10) - { - lcd_display_string(0, 7, 16, 1, " "); - } - - if (abs(fData_40002db4) < 10) - { - lcd_display_string(0, 7, 19, 1, " "); - } - } //if (bData_40002e7a_MountType == MENU_MOUNT_TYPE_AZ) - else - { - //0x21aec - lcd_display_string(0, 7, 15, 1, "h"); - lcd_display_string(0, 7, 18, 1, "m"); - lcd_display_string(0, 7, 21, 1, "s"); - - if (Data_40002d68_OTARightAscensionHours < 100) - { - lcd_display_string(0, 7, 12, 1, " "); - } - - if (Data_40002d68_OTARightAscensionHours < 10) - { - lcd_display_string(0, 7, 13, 1, " "); - } - - if (Data_40002d6c_OTARightAscensionMinutes < 10) - { - lcd_display_string(0, 7, 16, 1, " "); - } - - if (fData_40002d70_OTARightAscensionSeconds < 10) - { - lcd_display_string(0, 7, 19, 1, " "); - } - } - } - //0x21bf4 - lcd_display_string(0, 8, 1, strlen(Data_40003398), Data_40003398); - lcd_display_string(0, 8, 6, 9, Data_4000339c); - lcd_display_string(0, 8, 16, 2, Data_4000339c + 10); - lcd_display_string(0, 8, 19, 2, Data_4000339c + 13); - - lcd_display_bitmap(0, 8, 15, (unsigned char*)cBitmapDegree); - lcd_display_bitmap(0, 8, 18, (unsigned char*)cBitmapMinute); - lcd_display_bitmap(0, 8, 21, (unsigned char*)cBitmapSecond); - - if ((bData_400034b4 == 1) && - (bTrackingMode == MENU_TRACKING_MODE_TRACKING)) //2)) - { - if (bData_40002e7a_MountType == MENU_MOUNT_TYPE_AZ) //0) - { - if (abs(Data_40002d48) < 10) - { - lcd_display_string(0, 8, 13, 1, " "); - } - - if (abs(Data_40002d4c) < 10) - { - lcd_display_string(0, 8, 16, 1, " "); - } - - if (abs(fData_40002d50) < 10) - { - lcd_display_string(0, 8, 19, 1, " "); - } - } //if (bData_40002e7a_MountType == MENU_MOUNT_TYPE_AZ) - else - { - //0x21dc0 - if (abs(Data_40002d00_ObjectDeclinationDegrees) < 10) - { - lcd_display_string(0, 8, 13, 1, " "); - } - - if (abs(Data_40002d04_ObjectDeclinationMinutes) < 10) - { - lcd_display_string(0, 8, 16, 1, " "); - } - - if (abs(fData_40002d08_ObjectDeclinationSeconds) < 10) - { - lcd_display_string(0, 8, 19, 1, " "); - } - } - } - else - { - //0x21e88 - if (bData_40002e7a_MountType == MENU_MOUNT_TYPE_AZ) //0) - { - if (abs(Data_40002de0) < 10) - { - lcd_display_string(0, 8, 13, 1, " "); - } - - if (abs(Data_40002de4) < 10) - { - lcd_display_string(0, 8, 16, 1, " "); - } - - if (abs(fData_40002de8) < 10) - { - lcd_display_string(0, 8, 19, 1, " "); - } - } //if (bData_40002e7a_MountType == MENU_MOUNT_TYPE_AZ) - else - { - //0x21f60 - if (abs(Data_40002d8c_OTADeclinationDegrees) < 10) - { - lcd_display_string(0, 8, 13, 1, " "); - } - - if (abs(Data_40002d90_OTADeclinationMinutes) < 10) - { - lcd_display_string(0, 8, 16, 1, " "); - } - - if (abs(fData_40002d94_OTADeclinationSeconds) < 10) - { - lcd_display_string(0, 8, 19, 1, " "); - } - } - } -} +#include "DisplayMainScreen.c" +#endif char Data_40000380[10] = " "; //40000380, size??? char Data_4000038a[10] = " "; //4000038a, size??? @@ -5585,7 +5169,9 @@ void get_solar_system_object_data(int a, float* pRightAscension, float* pDeclina } } +#ifdef INCLUDE_ALL_C_FILES #include "func_23130.c" +#endif /* 24574 - todo */ void PrepareMainScreenItems(void) @@ -5602,24 +5188,24 @@ void PrepareMainScreenItems(void) Data_40002e3c_SiteLatitudeMinutes = (dData_40002e48_SiteLatitude - Data_40002e38_SiteLatitudeDegrees) * 60.0; fData_40002e40_SiteLatitudeSeconds = (dData_40002e48_SiteLatitude * 60.0 - Data_40002e38_SiteLatitudeDegrees * 60.0 - Data_40002e3c_SiteLatitudeMinutes) * 60.0; - sprintf(Data_40003fa9, "%04d-%02d-%02d", + sprintf(g_MenuStringBuffer1, "%04d-%02d-%02d", Data_40002e5c_Year, bData_40002e60_Month, bData_40002e61_Day); - Data_40003360 = Data_40003fa9; + g_pcstrMenuLine1 = g_MenuStringBuffer1; - sprintf(Data_40003fbe, "%02d:%02d:%02d", + sprintf(g_MenuStringBuffer2, "%02d:%02d:%02d", bData_40002e62_Hours, bData_40002e63_Minutes, bData_40002e64_Seconds); - Data_40003364 = Data_40003fbe; + g_pcstrMenuLine2 = g_MenuStringBuffer2; switch (bData_40002e79_SkyLandTargetSeletion) { case 0: //0x24950 - Data_40003370 = "Sky "; + g_pcstrMenuLine5 = "Sky "; break; case 1: //0x24964 - Data_40003370 = "Land"; + g_pcstrMenuLine5 = "Land"; break; default: @@ -5630,7 +5216,7 @@ void PrepareMainScreenItems(void) if (dData_40002e28_SiteLongitude < 0) { //2499c - sprintf(Data_40004012, "Site:W%03d?%02d'%02d^", + sprintf(g_MenuStringBuffer6, "Site:W%03d?%02d'%02d^", abs(Data_40002e18_SiteLongitudeDegrees), abs(Data_40002e1c_SiteLongitudeMinutes), abs(fData_40002e20_SiteLongitudeSeconds) & 0xff); @@ -5638,24 +5224,24 @@ void PrepareMainScreenItems(void) else { //0x24a14 - sprintf(Data_40004012, "Site:E%03d?%02d'%02d^", + sprintf(g_MenuStringBuffer6, "Site:E%03d?%02d'%02d^", abs(Data_40002e18_SiteLongitudeDegrees), abs(Data_40002e1c_SiteLongitudeMinutes), abs(fData_40002e20_SiteLongitudeSeconds) & 0xff); } //0x24a88 - Data_40003374 = Data_40004012; + g_pcstrMenuLine6 = g_MenuStringBuffer6; switch (bData_40002e7a_MountType) { case MENU_MOUNT_TYPE_AZ: //0: //0x24ab0 - Data_40003378 = "AZ"; + g_pcstrMenuLine7 = "AZ"; break; case MENU_MOUNT_TYPE_EQU: //1: //0x24ac4 - Data_40003378 = "EQ"; + g_pcstrMenuLine7 = "EQ"; break; default: @@ -5666,7 +5252,7 @@ void PrepareMainScreenItems(void) if (dData_40002e48_SiteLatitude < 0) { //24afc - sprintf(Data_4000403c, " S%03d?%02d'%02d^", + sprintf(g_MenuStringBuffer8, " S%03d?%02d'%02d^", abs(Data_40002e38_SiteLatitudeDegrees), abs(Data_40002e3c_SiteLatitudeMinutes), abs(fData_40002e40_SiteLatitudeSeconds) & 0xff); @@ -5674,24 +5260,24 @@ void PrepareMainScreenItems(void) else { //0x24b74 - sprintf(Data_4000403c, " N%03d?%02d'%02d^", + sprintf(g_MenuStringBuffer8, " N%03d?%02d'%02d^", abs(Data_40002e38_SiteLatitudeDegrees), abs(Data_40002e3c_SiteLatitudeMinutes), abs(fData_40002e40_SiteLatitudeSeconds) & 0xff); } //0x24be8 - Data_4000337c = Data_4000403c; + g_pcstrMenuLine8 = g_MenuStringBuffer8; switch (bData_40002e7b_GpsAvailable) { case 0: //0x24c10 - Data_40003380 = " "; + g_pcstrMenuLine9 = " "; break; case 1: //0x24c24 - Data_40003380 = "GPS!"; + g_pcstrMenuLine9 = "GPS!"; break; default: @@ -5702,14 +5288,16 @@ void PrepareMainScreenItems(void) switch (bData_40002e7a_MountType) { case MENU_MOUNT_TYPE_AZ: //0: +#if 0 //0x24d0c - sprintf(Data_40004066, " OBJ: %03d?%02d'%02.0f^", + sprintf(g_MenuStringBuffer9, " OBJ: %03d?%02d'%02.0f^", abs(Data_40002d20), abs(Data_40002d24), fabs(fData_40002d28)); +#endif break; case MENU_MOUNT_TYPE_EQU: //1: //0x24d88 - sprintf(Data_40004066, " OBJ: %03dh%02dm%02ds", + sprintf(g_MenuStringBuffer9, " OBJ: %03dh%02dm%02ds", Data_40002cd8_ObjectRightAscensionHours, Data_40002cdc_ObjectRightAscensionMinutes, (unsigned int)fData_40002ce0_ObjectRightAscensionSeconds & 0xFF); @@ -5720,28 +5308,28 @@ void PrepareMainScreenItems(void) break; } //24dcc - Data_40003384 = Data_40004066; + g_pcstrMenuLine10 = g_MenuStringBuffer9; switch (bData_40002e7c_TrackingRateType) { case MENU_TRACKING_RATE_STAR_SPEED: //0: //0x24e04 - Data_40003388 = "Cel"; + g_pcstrMenuLine11 = "Cel"; break; case MENU_TRACKING_RATE_SOLAR_SPEED: //1: //0x24e18 - Data_40003388 = "Sun"; + g_pcstrMenuLine11 = "Sun"; break; case MENU_TRACKING_RATE_MOON_SPEED: //2: //0x24e2c - Data_40003388 = "Lun"; + g_pcstrMenuLine11 = "Lun"; break; case MENU_TRACKING_RATE_CUST_SPEED: //3: //0x24e40 - Data_40003388 = "Def"; + g_pcstrMenuLine11 = "Def"; break; default: @@ -5752,20 +5340,22 @@ void PrepareMainScreenItems(void) switch (bData_40002e7a_MountType) { case MENU_MOUNT_TYPE_AZ: //0: +#if 0 //0x24e7c if (Data_40004128.dData_120 > 90) { //24e9c - sprintf(Data_40004090, " -%02d?%02d'%02d^", + sprintf(g_MenuStringBuffer10, " -%02d?%02d'%02d^", abs(Data_40002d48), abs(Data_40002d4c), abs(fData_40002d50)); } else { //0x24f10 - sprintf(Data_40004090, " +%02d?%02d'%02d^", + sprintf(g_MenuStringBuffer10, " +%02d?%02d'%02d^", abs(Data_40002d48), abs(Data_40002d4c), abs(fData_40002d50)); } //->0x25048 +#endif break; case MENU_MOUNT_TYPE_EQU: //1: @@ -5773,7 +5363,7 @@ void PrepareMainScreenItems(void) if (g_iObjectDeclinationSign == -1) { //24f98 - sprintf(Data_40004090, " -%02d?%02d'%02d^", + sprintf(g_MenuStringBuffer10, " -%02d?%02d'%02d^", abs(Data_40002d00_ObjectDeclinationDegrees), abs(Data_40002d04_ObjectDeclinationMinutes), abs(fData_40002d08_ObjectDeclinationSeconds)); @@ -5781,7 +5371,7 @@ void PrepareMainScreenItems(void) else { //0x2500c - sprintf(Data_40004090, " +%02d?%02d'%02d^", + sprintf(g_MenuStringBuffer10, " +%02d?%02d'%02d^", Data_40002d00_ObjectDeclinationDegrees, Data_40002d04_ObjectDeclinationMinutes, ((unsigned int)fData_40002d08_ObjectDeclinationSeconds) & 0xff); @@ -5793,53 +5383,53 @@ void PrepareMainScreenItems(void) break; } //2504c - Data_4000338c = Data_40004090; + g_pcstrMenuLine12 = g_MenuStringBuffer10; //25058 switch (g_eSlewRateIndex) { case SLEW_RATE_1X: //1: //0x25158 - Data_40003390 = "1X "; + g_pcstrMenuLine13 = "1X "; break; case SLEW_RATE_2X: //2: //0x2516c - Data_40003390 = "2X "; + g_pcstrMenuLine13 = "2X "; break; case SLEW_RATE_8X: //3: //0x25180 - Data_40003390 = "8X "; + g_pcstrMenuLine13 = "8X "; break; case SLEW_RATE_16X: //4: //0x25194 - Data_40003390 = "16X "; + g_pcstrMenuLine13 = "16X "; break; case SLEW_RATE_64X: //5: //0x251a8 - Data_40003390 = "64X "; + g_pcstrMenuLine13 = "64X "; break; case SLEW_RATE_128X: //6: //0x251bc - Data_40003390 = "128X"; + g_pcstrMenuLine13 = "128X"; break; case SLEW_RATE_256X: //7: //0x251d0 - Data_40003390 = "256X"; + g_pcstrMenuLine13 = "256X"; break; case SLEW_RATE_512X: //8: //0x251e4 - Data_40003390 = "512X"; + g_pcstrMenuLine13 = "512X"; break; case SLEW_RATE_MAX: //9: //0x251f8 - Data_40003390 = "Max "; + g_pcstrMenuLine13 = "Max "; break; default: @@ -5851,13 +5441,13 @@ void PrepareMainScreenItems(void) { case MENU_MOUNT_TYPE_AZ: //0: //0x25234 - sprintf(Data_400040ba, " OTA: %03d?%02d'%02d^", + sprintf(g_MenuStringBuffer11, " OTA: %03d?%02d'%02d^", abs(Data_40002dac), abs(Data_40002db0), abs(fData_40002db4) & 0xff); break; case MENU_MOUNT_TYPE_EQU: //1: //0x252b0 - sprintf(Data_400040ba, " OTA: %03dh%02dm%02ds", + sprintf(g_MenuStringBuffer11, " OTA: %03dh%02dm%02ds", Data_40002d68_OTARightAscensionHours, Data_40002d6c_OTARightAscensionMinutes, abs(fData_40002d70_OTARightAscensionSeconds) & 0xff); @@ -5868,7 +5458,7 @@ void PrepareMainScreenItems(void) break; } //0x25304 - Data_40003394 = Data_400040ba; + g_pcstrMenuLine14 = g_MenuStringBuffer11; switch (bData_40002e7a_MountType) { @@ -5878,13 +5468,13 @@ void PrepareMainScreenItems(void) (dData_40002df8 < 0)) { //0x25378 - sprintf(Data_400040e4, " -%02d?%02d'%02d^", + sprintf(g_MenuStringBuffer12, " -%02d?%02d'%02d^", abs(Data_40002de0), abs(Data_40002de4), abs(fData_40002de8) & 0xFF); } else { //0x253f0 - sprintf(Data_400040e4, " +%02d?%02d'%02d^", + sprintf(g_MenuStringBuffer12, " +%02d?%02d'%02d^", abs(Data_40002de0), abs(Data_40002de4), abs(fData_40002de8) & 0xFF); } break; @@ -5894,7 +5484,7 @@ void PrepareMainScreenItems(void) if (dData_40002d98 < 0) { //25534 - sprintf(Data_400040e4, " -%02d?%02d'%02d ", + sprintf(g_MenuStringBuffer12, " -%02d?%02d'%02d ", abs(Data_40002d8c_OTADeclinationDegrees), abs(Data_40002d90_OTADeclinationMinutes), abs(fData_40002d94_OTADeclinationSeconds) & 0xFF); @@ -5902,7 +5492,7 @@ void PrepareMainScreenItems(void) else { //0x255ac - sprintf(Data_400040e4, " +%02d?%02d'%02d ", + sprintf(g_MenuStringBuffer12, " +%02d?%02d'%02d ", abs(Data_40002d8c_OTADeclinationDegrees), abs(Data_40002d90_OTADeclinationMinutes), abs(fData_40002d94_OTADeclinationSeconds) & 0xFF); @@ -5914,7 +5504,7 @@ void PrepareMainScreenItems(void) break; } //0x2562c - Data_4000339c = Data_400040e4; + g_pcstrMenuLine16 = g_MenuStringBuffer12; switch (bTrackingMode) { @@ -5922,45 +5512,45 @@ void PrepareMainScreenItems(void) //0x25678 case 100: //0x25680 - Data_40003398 = "Stop"; + g_pcstrMenuLine15 = "Stop"; break; case MENU_TRACKING_MODE_POINTING: //1: //0x25690 - Data_40003398 = "Poin"; + g_pcstrMenuLine15 = "Poin"; break; case MENU_TRACKING_MODE_TRACKING: //2: //0x256a4 - Data_40003398 = "Trac"; + g_pcstrMenuLine15 = "Trac"; break; case MENU_TRACKING_MODE_UNDER_HORIZON: //3: //0x256b8 - Data_40003398 = "UdHn"; + g_pcstrMenuLine15 = "UdHn"; break; default: //0x256cc - Data_40003398 = "Slew"; + g_pcstrMenuLine15 = "Slew"; break; } if ((bData_400034b4 == 1) && (bTrackingMode == MENU_TRACKING_MODE_TRACKING)) //2)) { - Data_40003394 = Data_40004066; - Data_4000339c = Data_40004090; - Data_400040ba[1] = 'O'; - Data_400040ba[2] = 'T'; - Data_400040ba[3] = 'A'; - Data_40003394 = Data_400040ba; - Data_4000339c = Data_400040e4; + g_pcstrMenuLine14 = g_MenuStringBuffer9; + g_pcstrMenuLine16 = g_MenuStringBuffer10; + g_MenuStringBuffer11[1] = 'O'; + g_MenuStringBuffer11[2] = 'T'; + g_MenuStringBuffer11[3] = 'A'; + g_pcstrMenuLine14 = g_MenuStringBuffer11; + g_pcstrMenuLine16 = g_MenuStringBuffer12; } } +#ifdef INCLUDE_ALL_C_FILES #include "language.c" #include "func_27844.c" #include "func_3d72c.c" - - +#endif diff --git a/applications/freertos_app/file_5099c.c b/applications/freertos_app/file_5099c.c deleted file mode 100644 index 7a6b572..0000000 --- a/applications/freertos_app/file_5099c.c +++ /dev/null @@ -1,61 +0,0 @@ - -#if 0 -#include -#include "my_types.h" -#include "data.h" - -extern void func_2df8(int a, int b, int c, int d, unsigned char* e); -extern void initialize_variables(void); -#endif - - -/* 5099c - todo */ -void func_5099c(void) -{ - initialize_variables(); - - bData_4000316e_FocusLineOn8LineDisplay = 0; - Data_4000318c = 0; - Data_40003190 = 1; - bData_40003194 = 0; - bData_40003196_CurrentLanguage = MENU_LANGUAGE_ENGLISH; //1; - g_bSingleSlewActive = 0; - g_bCombinedSlewActive = 0; - bCapsLock = 0; - bMapKeyToCharIndex = 0; - bData_40002c1a = 0; - bGotoParkPosition = 0; - bData_40003210 = 0; - bData_40003211 = 0; - bData_400031bf = 0x42; - bData_400031be = 0; - fData_400031c0 = 10.6; - fData_400031c4 = 63.25; - bData_400031e0 = 1; - bRaBacklashCorrectionDirection = 0; - bDecBacklashCorrectionDirection = 0; - bData_40003195 = 0; - bData_400031e1 = 0; - bData_400032a4_OTAZeroDataErrorCount = 0; - bData_4000319b = 0; - bData_400031e9 = 0; - g_bMaxSlewRampActive = 0; - bData_400031b9 = 0; - Data_40002e80 = 0; - Data_40002e84 = 0; - bData_4000322d_AlarmTimeElapsed = 0; - g_bTargetSyncOpen = 0; - bData_400031eb = 0; - bData_400031ec = 1; - bSystemInitialized = 1; - dData_400031f0 = 0.0; - dData_400031f8 = 0.0; - bData_40003200 = 0; - bData_40003201 = 0; - iMountAutoguideRa = 0; - iMountAutoguideDec = 0; - bData_40002d88 = 0; - bData_40002da8 = 0; -} - - diff --git a/applications/freertos_app/func_23130.c b/applications/freertos_app/func_23130.c index d2d5bde..b4c5386 100644 --- a/applications/freertos_app/func_23130.c +++ b/applications/freertos_app/func_23130.c @@ -1,7 +1,7 @@ /* 2245c - todo */ -void func_2245c(int a, int b) +void PrepareEightLineMenuScroll(int a, int b) { switch (a) { @@ -11,53 +11,53 @@ void func_2245c(int a, int b) { case 1: //0x224c0 - Data_40003360 = strOneStarAlign; - Data_40003364 = strTwoStarAlign; - Data_40003368 = strThreeStarAlign; - Data_4000336c = strTargetSync; - Data_40003370 = strPoleAxisDev; - Data_40003374 = strRaBklashCorr; - Data_40003378 = strDecBklashCorr; - Data_4000337c = Data_40002f4c; + g_pcstrMenuLine1 = strOneStarAlign; + g_pcstrMenuLine2 = strTwoStarAlign; + g_pcstrMenuLine3 = strThreeStarAlign; + g_pcstrMenuLine4 = strTargetSync; + g_pcstrMenuLine5 = strPoleAxisDev; + g_pcstrMenuLine6 = strRaBklashCorr; + g_pcstrMenuLine7 = strDecBklashCorr; + g_pcstrMenuLine8 = strAlignmentSpare1; //->0x227ac break; case 2: //0x22548 - Data_40003360 = strTwoStarAlign; - Data_40003364 = strThreeStarAlign; - Data_40003368 = strTargetSync; - Data_4000336c = strPoleAxisDev; - Data_40003370 = strRaBklashCorr; - Data_40003374 = strDecBklashCorr; - Data_40003378 = Data_40002f4c; - Data_4000337c = Data_40002f50; + g_pcstrMenuLine1 = strTwoStarAlign; + g_pcstrMenuLine2 = strThreeStarAlign; + g_pcstrMenuLine3 = strTargetSync; + g_pcstrMenuLine4 = strPoleAxisDev; + g_pcstrMenuLine5 = strRaBklashCorr; + g_pcstrMenuLine6 = strDecBklashCorr; + g_pcstrMenuLine7 = strAlignmentSpare1; + g_pcstrMenuLine8 = strAlignmentSpare2; //->0x227ac break; case 3: //0x225d0 - Data_40003360 = strThreeStarAlign; - Data_40003364 = strTargetSync; - Data_40003368 = strPoleAxisDev; - Data_4000336c = strRaBklashCorr; - Data_40003370 = strDecBklashCorr; - Data_40003374 = Data_40002f4c; - Data_40003378 = Data_40002f50; - Data_4000337c = Data_40002f54; + g_pcstrMenuLine1 = strThreeStarAlign; + g_pcstrMenuLine2 = strTargetSync; + g_pcstrMenuLine3 = strPoleAxisDev; + g_pcstrMenuLine4 = strRaBklashCorr; + g_pcstrMenuLine5 = strDecBklashCorr; + g_pcstrMenuLine6 = strAlignmentSpare1; + g_pcstrMenuLine7 = strAlignmentSpare2; + g_pcstrMenuLine8 = strAlignmentSpare3; //->0x227ac break; case 4: //0x22658 - Data_40003360 = strTargetSync; - Data_40003364 = strPoleAxisDev; - Data_40003368 = strRaBklashCorr; - Data_4000336c = strDecBklashCorr; - Data_40003370 = Data_40002f4c; - Data_40003374 = Data_40002f50; - Data_40003378 = Data_40002f54; - Data_4000337c = Data_40002f58; + g_pcstrMenuLine1 = strTargetSync; + g_pcstrMenuLine2 = strPoleAxisDev; + g_pcstrMenuLine3 = strRaBklashCorr; + g_pcstrMenuLine4 = strDecBklashCorr; + g_pcstrMenuLine5 = strAlignmentSpare1; + g_pcstrMenuLine6 = strAlignmentSpare2; + g_pcstrMenuLine7 = strAlignmentSpare3; + g_pcstrMenuLine8 = strAlignmentSpare4; //->0x227ac break; @@ -74,66 +74,66 @@ void func_2245c(int a, int b) { case 1: //0x227dc - Data_40003360 = strSolarSystem; - Data_40003364 = strConstellation; - Data_40003368 = strFamousStar; - Data_4000336c = Data_40002f68; - Data_40003370 = Data_40002f6c; - Data_40003374 = Data_40002f70; - Data_40003378 = Data_40002f74; - Data_4000337c = Data_40002f78; + g_pcstrMenuLine1 = strSolarSystem; + g_pcstrMenuLine2 = strConstellation; + g_pcstrMenuLine3 = strFamousStar; + g_pcstrMenuLine4 = g_pcstrMessierCatalogue; + g_pcstrMenuLine5 = g_pcstrNGCCatalogue; + g_pcstrMenuLine6 = g_pcstrICCatalogue; + g_pcstrMenuLine7 = g_pcstrSh2Catalogue; + g_pcstrMenuLine8 = g_pcstrBrightStarCatalogue; //->0x22a8c break; case 2: //0x22864 - Data_40003360 = strConstellation; - Data_40003364 = strFamousStar; - Data_40003368 = Data_40002f68; - Data_4000336c = Data_40002f6c; - Data_40003370 = Data_40002f70; - Data_40003374 = Data_40002f74; - Data_40003378 = Data_40002f78; - Data_4000337c = Data_40002f7c; + g_pcstrMenuLine1 = strConstellation; + g_pcstrMenuLine2 = strFamousStar; + g_pcstrMenuLine3 = g_pcstrMessierCatalogue; + g_pcstrMenuLine4 = g_pcstrNGCCatalogue; + g_pcstrMenuLine5 = g_pcstrICCatalogue; + g_pcstrMenuLine6 = g_pcstrSh2Catalogue; + g_pcstrMenuLine7 = g_pcstrBrightStarCatalogue; + g_pcstrMenuLine8 = g_pcstrSAOStarCatalogue; //->0x22a8c break; case 3: //0x228ec - Data_40003360 = strFamousStar; - Data_40003364 = Data_40002f68; - Data_40003368 = Data_40002f6c; - Data_4000336c = Data_40002f70; - Data_40003370 = Data_40002f74; - Data_40003374 = Data_40002f78; - Data_40003378 = Data_40002f7c; - Data_4000337c = Data_40002f80; + g_pcstrMenuLine1 = strFamousStar; + g_pcstrMenuLine2 = g_pcstrMessierCatalogue; + g_pcstrMenuLine3 = g_pcstrNGCCatalogue; + g_pcstrMenuLine4 = g_pcstrICCatalogue; + g_pcstrMenuLine5 = g_pcstrSh2Catalogue; + g_pcstrMenuLine6 = g_pcstrBrightStarCatalogue; + g_pcstrMenuLine7 = g_pcstrSAOStarCatalogue; + g_pcstrMenuLine8 = g_pcstrCustomerObjects; //->0x22a8c break; case 4: //0x22974 - Data_40003360 = Data_40002f68; - Data_40003364 = Data_40002f6c; - Data_40003368 = Data_40002f70; - Data_4000336c = Data_40002f74; - Data_40003370 = Data_40002f78; - Data_40003374 = Data_40002f7c; - Data_40003378 = Data_40002f80; - Data_4000337c = Data_40002f84; + g_pcstrMenuLine1 = g_pcstrMessierCatalogue; + g_pcstrMenuLine2 = g_pcstrNGCCatalogue; + g_pcstrMenuLine3 = g_pcstrICCatalogue; + g_pcstrMenuLine4 = g_pcstrSh2Catalogue; + g_pcstrMenuLine5 = g_pcstrBrightStarCatalogue; + g_pcstrMenuLine6 = g_pcstrSAOStarCatalogue; + g_pcstrMenuLine7 = g_pcstrCustomerObjects; + g_pcstrMenuLine8 = g_pcstrInputRAandDEC; //->0x22a8c break; case 5: //0x229fc - Data_40003360 = Data_40002f6c; - Data_40003364 = Data_40002f70; - Data_40003368 = Data_40002f74; - Data_4000336c = Data_40002f78; - Data_40003370 = Data_40002f7c; - Data_40003374 = Data_40002f80; - Data_40003378 = Data_40002f84; - Data_4000337c = Data_40002f88; + g_pcstrMenuLine1 = g_pcstrNGCCatalogue; + g_pcstrMenuLine2 = g_pcstrICCatalogue; + g_pcstrMenuLine3 = g_pcstrSh2Catalogue; + g_pcstrMenuLine4 = g_pcstrBrightStarCatalogue; + g_pcstrMenuLine5 = g_pcstrSAOStarCatalogue; + g_pcstrMenuLine6 = g_pcstrCustomerObjects; + g_pcstrMenuLine7 = g_pcstrInputRAandDEC; + g_pcstrMenuLine8 = g_pcstrCustomLandGoal; //->0x22a8c break; @@ -149,40 +149,40 @@ void func_2245c(int a, int b) { case 1: //0x22ab4 - Data_40003360 = strCurrentObjects; - Data_40003364 = Data_40002f90; - Data_40003368 = Data_40002f94; - Data_4000336c = Data_40002f98; - Data_40003370 = Data_40002f9c; - Data_40003374 = Data_40002fa0; - Data_40003378 = Data_40002fa4; - Data_4000337c = Data_40002fa8; + g_pcstrMenuLine1 = strCurrentObjects; + g_pcstrMenuLine2 = Data_40002f90; + g_pcstrMenuLine3 = Data_40002f94; + g_pcstrMenuLine4 = Data_40002f98; + g_pcstrMenuLine5 = Data_40002f9c; + g_pcstrMenuLine6 = Data_40002fa0; + g_pcstrMenuLine7 = Data_40002fa4; + g_pcstrMenuLine8 = Data_40002fa8; //->0x22c54 break; case 2: //0x22b3c - Data_40003360 = Data_40002f90; - Data_40003364 = Data_40002f94; - Data_40003368 = Data_40002f98; - Data_4000336c = Data_40002f9c; - Data_40003370 = Data_40002fa0; - Data_40003374 = Data_40002fa4; - Data_40003378 = Data_40002fa8; - Data_4000337c = strParkposition; + g_pcstrMenuLine1 = Data_40002f90; + g_pcstrMenuLine2 = Data_40002f94; + g_pcstrMenuLine3 = Data_40002f98; + g_pcstrMenuLine4 = Data_40002f9c; + g_pcstrMenuLine5 = Data_40002fa0; + g_pcstrMenuLine6 = Data_40002fa4; + g_pcstrMenuLine7 = Data_40002fa8; + g_pcstrMenuLine8 = strParkposition; //->0x22c54 break; case 3: //0x22bc4 - Data_40003360 = Data_40002f94; - Data_40003364 = Data_40002f98; - Data_40003368 = Data_40002f9c; - Data_4000336c = Data_40002fa0; - Data_40003370 = Data_40002fa4; - Data_40003374 = Data_40002fa8; - Data_40003378 = strParkposition; - Data_4000337c = Data_40002fb0; + g_pcstrMenuLine1 = Data_40002f94; + g_pcstrMenuLine2 = Data_40002f98; + g_pcstrMenuLine3 = Data_40002f9c; + g_pcstrMenuLine4 = Data_40002fa0; + g_pcstrMenuLine5 = Data_40002fa4; + g_pcstrMenuLine6 = Data_40002fa8; + g_pcstrMenuLine7 = strParkposition; + g_pcstrMenuLine8 = Data_40002fb0; //->0x22c54 break; @@ -196,44 +196,85 @@ void func_2245c(int a, int b) //0x22c5c: Setup switch (b) { +#if 0 case 1: //0x22c7c - Data_40003360 = strTimeAndDate; - Data_40003364 = Data_40002fb8; - Data_40003368 = Data_40002fbc; - Data_4000336c = Data_40002fc0; - Data_40003370 = Data_40002fc4; - Data_40003374 = strTelescopeMount; - Data_40003378 = strTrackingRate; - Data_4000337c = Data_40002fd0; + g_pcstrMenuLine1 = strTimeAndDate; + g_pcstrMenuLine2 = g_pcstrDaylightSaving; + g_pcstrMenuLine3 = g_pcstrEngSiteSetting; + g_pcstrMenuLine4 = g_pcstrSkyLand; + g_pcstrMenuLine5 = g_pcstrAzEqu; + g_pcstrMenuLine6 = strTelescopeMount; + g_pcstrMenuLine7 = strTrackingRate; + g_pcstrMenuLine8 = g_pcstrLanguage; //->0x22e1c break; case 2: //0x22d04 - Data_40003360 = Data_40002fb8; - Data_40003364 = Data_40002fbc; - Data_40003368 = Data_40002fc0; - Data_4000336c = Data_40002fc4; - Data_40003370 = strTelescopeMount; - Data_40003374 = strTrackingRate; - Data_40003378 = Data_40002fd0; - Data_4000337c = strReset; + g_pcstrMenuLine1 = g_pcstrDaylightSaving; + g_pcstrMenuLine2 = g_pcstrEngSiteSetting; + g_pcstrMenuLine3 = g_pcstrSkyLand; + g_pcstrMenuLine4 = g_pcstrAzEqu; + g_pcstrMenuLine5 = strTelescopeMount; + g_pcstrMenuLine6 = strTrackingRate; + g_pcstrMenuLine7 = g_pcstrLanguage; + g_pcstrMenuLine8 = strReset; //->0x22e1c break; case 3: //0x22d8c - Data_40003360 = Data_40002fbc; - Data_40003364 = Data_40002fc0; - Data_40003368 = Data_40002fc4; - Data_4000336c = strTelescopeMount; - Data_40003370 = strTrackingRate; - Data_40003374 = Data_40002fd0; - Data_40003378 = strReset; - Data_4000337c = Data_40002fd8; + g_pcstrMenuLine1 = g_pcstrEngSiteSetting; + g_pcstrMenuLine2 = g_pcstrSkyLand; + g_pcstrMenuLine3 = g_pcstrAzEqu; + g_pcstrMenuLine4 = strTelescopeMount; + g_pcstrMenuLine5 = strTrackingRate; + g_pcstrMenuLine6 = g_pcstrLanguage; + g_pcstrMenuLine7 = strReset; + g_pcstrMenuLine8 = g_pcstrSetupSpare1; //->0x22e1c break; +#else + case 1: + //0x22c7c + g_pcstrMenuLine1 = strTimeAndDate; + g_pcstrMenuLine2 = g_pcstrDaylightSaving; + g_pcstrMenuLine3 = g_pcstrEngSiteSetting; + g_pcstrMenuLine4 = strTelescopeMount; + g_pcstrMenuLine5 = strTrackingRate; + g_pcstrMenuLine6 = g_pcstrLanguage; + g_pcstrMenuLine7 = strReset; + g_pcstrMenuLine8 = g_pcstrSetupSpare1; + //->0x22e1c + break; + + case 2: + //0x22d04 + g_pcstrMenuLine1 = g_pcstrDaylightSaving; + g_pcstrMenuLine2 = g_pcstrEngSiteSetting; + g_pcstrMenuLine3 = strTelescopeMount; + g_pcstrMenuLine4 = strTrackingRate; + g_pcstrMenuLine5 = g_pcstrLanguage; + g_pcstrMenuLine6 = strReset; + g_pcstrMenuLine7 = g_pcstrSetupSpare1; + g_pcstrMenuLine8 = g_pcstrSetupSpare2; + //->0x22e1c + break; + + case 3: + //0x22d8c + g_pcstrMenuLine1 = g_pcstrEngSiteSetting; + g_pcstrMenuLine2 = strTelescopeMount; + g_pcstrMenuLine3 = strTrackingRate; + g_pcstrMenuLine4 = g_pcstrLanguage; + g_pcstrMenuLine5 = strReset; + g_pcstrMenuLine6 = g_pcstrSetupSpare1; + g_pcstrMenuLine7 = g_pcstrSetupSpare2; + g_pcstrMenuLine8 = g_pcstrSetupSpare3; + //->0x22e1c + break; +#endif default: //0x22e14 @@ -247,53 +288,53 @@ void func_2245c(int a, int b) { case 1: //0x22e4c - Data_40003360 = Data_40002fdc; - Data_40003364 = Data_40002fe0; - Data_40003368 = Data_40002fe4; - Data_4000336c = Data_40002fe8; - Data_40003370 = Data_40002fec; - Data_40003374 = Data_40002ff0; - Data_40003378 = Data_40002ff4; - Data_4000337c = Data_40002ff8; + g_pcstrMenuLine1 = Data_40002fdc; + g_pcstrMenuLine2 = Data_40002fe0; + g_pcstrMenuLine3 = Data_40002fe4; + g_pcstrMenuLine4 = Data_40002fe8; + g_pcstrMenuLine5 = Data_40002fec; + g_pcstrMenuLine6 = Data_40002ff0; + g_pcstrMenuLine7 = Data_40002ff4; + g_pcstrMenuLine8 = Data_40002ff8; //->0x23074 break; case 2: //0x22ed4 - Data_40003360 = Data_40002fe0; - Data_40003364 = Data_40002fe4; - Data_40003368 = Data_40002fe8; - Data_4000336c = Data_40002fec; - Data_40003370 = Data_40002ff0; - Data_40003374 = Data_40002ff4; - Data_40003378 = Data_40002ff8; - Data_4000337c = Data_40002ffc; + g_pcstrMenuLine1 = Data_40002fe0; + g_pcstrMenuLine2 = Data_40002fe4; + g_pcstrMenuLine3 = Data_40002fe8; + g_pcstrMenuLine4 = Data_40002fec; + g_pcstrMenuLine5 = Data_40002ff0; + g_pcstrMenuLine6 = Data_40002ff4; + g_pcstrMenuLine7 = Data_40002ff8; + g_pcstrMenuLine8 = Data_40002ffc; //->0x23074 break; case 3: //0x22f5c - Data_40003360 = Data_40002fe4; - Data_40003364 = Data_40002fe8; - Data_40003368 = Data_40002fec; - Data_4000336c = Data_40002ff0; - Data_40003370 = Data_40002ff4; - Data_40003374 = Data_40002ff8; - Data_40003378 = Data_40002ffc; - Data_4000337c = Data_40003000; + g_pcstrMenuLine1 = Data_40002fe4; + g_pcstrMenuLine2 = Data_40002fe8; + g_pcstrMenuLine3 = Data_40002fec; + g_pcstrMenuLine4 = Data_40002ff0; + g_pcstrMenuLine5 = Data_40002ff4; + g_pcstrMenuLine6 = Data_40002ff8; + g_pcstrMenuLine7 = Data_40002ffc; + g_pcstrMenuLine8 = Data_40003000; //->0x23074 break; case 4: //0x22fe4 - Data_40003360 = Data_40002fe8; - Data_40003364 = Data_40002fec; - Data_40003368 = Data_40002ff0; - Data_4000336c = Data_40002ff4; - Data_40003370 = Data_40002ff8; - Data_40003374 = Data_40002ffc; - Data_40003378 = Data_40003000; - Data_4000337c = Data_40003004; + g_pcstrMenuLine1 = Data_40002fe8; + g_pcstrMenuLine2 = Data_40002fec; + g_pcstrMenuLine3 = Data_40002ff0; + g_pcstrMenuLine4 = Data_40002ff4; + g_pcstrMenuLine5 = Data_40002ff8; + g_pcstrMenuLine6 = Data_40002ffc; + g_pcstrMenuLine7 = Data_40003000; + g_pcstrMenuLine8 = Data_40003004; //->0x23074 break; @@ -309,14 +350,14 @@ void func_2245c(int a, int b) { case 1: //23088 - Data_40003360 = Data_40003008; - Data_40003364 = Data_4000300c; - Data_40003368 = Data_40003010; - Data_4000336c = Data_40003014; - Data_40003370 = Data_40003018; - Data_40003374 = Data_4000301c; - Data_40003378 = Data_40003020; - Data_4000337c = Data_40003024; + g_pcstrMenuLine1 = Data_40003008; + g_pcstrMenuLine2 = Data_4000300c; + g_pcstrMenuLine3 = Data_40003010; + g_pcstrMenuLine4 = Data_40003014; + g_pcstrMenuLine5 = Data_40003018; + g_pcstrMenuLine6 = Data_4000301c; + g_pcstrMenuLine7 = Data_40003020; + g_pcstrMenuLine8 = Data_40003024; //->0x23074 break; @@ -369,7 +410,7 @@ void AdaptDisplayLinesPerMenuLine(void) } /* 231d0 - todo */ -void func_231d0(int a, int b) +void PrepareFourLineMenuScroll(int a, int b) { switch (a) { @@ -379,66 +420,66 @@ void func_231d0(int a, int b) { case 1: //0x23240 - Data_400033a8 = strOneStarAlign; - Data_400033ac = strTwoStarAlign; - Data_400033b0 = strThreeStarAlign; - Data_400033b4 = strTargetSync; + g_pcstrBigMenuLine1 = strOneStarAlign; + g_pcstrBigMenuLine2 = strTwoStarAlign; + g_pcstrBigMenuLine3 = strThreeStarAlign; + g_pcstrBigMenuLine4 = strTargetSync; break; case 2: //0x23288 - Data_400033a8 = strTwoStarAlign; - Data_400033ac = strThreeStarAlign; - Data_400033b0 = strTargetSync; - Data_400033b4 = strPoleAxisDev; + g_pcstrBigMenuLine1 = strTwoStarAlign; + g_pcstrBigMenuLine2 = strThreeStarAlign; + g_pcstrBigMenuLine3 = strTargetSync; + g_pcstrBigMenuLine4 = strPoleAxisDev; break; case 3: //0x232d0 - Data_400033a8 = strThreeStarAlign; - Data_400033ac = strTargetSync; - Data_400033b0 = strPoleAxisDev; - Data_400033b4 = strRaBklashCorr; + g_pcstrBigMenuLine1 = strThreeStarAlign; + g_pcstrBigMenuLine2 = strTargetSync; + g_pcstrBigMenuLine3 = strPoleAxisDev; + g_pcstrBigMenuLine4 = strRaBklashCorr; break; case 4: //0x23318 - Data_400033a8 = strTargetSync; - Data_400033ac = strPoleAxisDev; - Data_400033b0 = strRaBklashCorr; - Data_400033b4 = strDecBklashCorr; + g_pcstrBigMenuLine1 = strTargetSync; + g_pcstrBigMenuLine2 = strPoleAxisDev; + g_pcstrBigMenuLine3 = strRaBklashCorr; + g_pcstrBigMenuLine4 = strDecBklashCorr; break; case 5: //0x23360 - Data_400033a8 = strPoleAxisDev; - Data_400033ac = strRaBklashCorr; - Data_400033b0 = strDecBklashCorr; - Data_400033b4 = Data_40002f4c; + g_pcstrBigMenuLine1 = strPoleAxisDev; + g_pcstrBigMenuLine2 = strRaBklashCorr; + g_pcstrBigMenuLine3 = strDecBklashCorr; + g_pcstrBigMenuLine4 = strAlignmentSpare1; break; case 6: //0x233a8 - Data_400033a8 = strRaBklashCorr; - Data_400033ac = strDecBklashCorr; - Data_400033b0 = Data_40002f4c; - Data_400033b4 = Data_40002f50; + g_pcstrBigMenuLine1 = strRaBklashCorr; + g_pcstrBigMenuLine2 = strDecBklashCorr; + g_pcstrBigMenuLine3 = strAlignmentSpare1; + g_pcstrBigMenuLine4 = strAlignmentSpare2; break; case 7: //0x233f0 - Data_400033a8 = strDecBklashCorr; - Data_400033ac = Data_40002f4c; - Data_400033b0 = Data_40002f50; - Data_400033b4 = Data_40002f54; + g_pcstrBigMenuLine1 = strDecBklashCorr; + g_pcstrBigMenuLine2 = strAlignmentSpare1; + g_pcstrBigMenuLine3 = strAlignmentSpare2; + g_pcstrBigMenuLine4 = strAlignmentSpare3; break; case 8: //0x23438 - Data_400033a8 = Data_40002f4c; - Data_400033ac = Data_40002f50; - Data_400033b0 = Data_40002f54; - Data_400033b4 = Data_40002f58; + g_pcstrBigMenuLine1 = strAlignmentSpare1; + g_pcstrBigMenuLine2 = strAlignmentSpare2; + g_pcstrBigMenuLine3 = strAlignmentSpare3; + g_pcstrBigMenuLine4 = strAlignmentSpare4; break; default: @@ -453,74 +494,74 @@ void func_231d0(int a, int b) { case 1: //0x234c8 - Data_400033a8 = strSolarSystem; - Data_400033ac = strConstellation; - Data_400033b0 = strFamousStar; - Data_400033b4 = Data_40002f68; + g_pcstrBigMenuLine1 = strSolarSystem; + g_pcstrBigMenuLine2 = strConstellation; + g_pcstrBigMenuLine3 = strFamousStar; + g_pcstrBigMenuLine4 = g_pcstrMessierCatalogue; break; case 2: //0x23510 - Data_400033a8 = strConstellation; - Data_400033ac = strFamousStar; - Data_400033b0 = Data_40002f68; - Data_400033b4 = Data_40002f6c; + g_pcstrBigMenuLine1 = strConstellation; + g_pcstrBigMenuLine2 = strFamousStar; + g_pcstrBigMenuLine3 = g_pcstrMessierCatalogue; + g_pcstrBigMenuLine4 = g_pcstrNGCCatalogue; break; case 3: //0x23558 - Data_400033a8 = strFamousStar; - Data_400033ac = Data_40002f68; - Data_400033b0 = Data_40002f6c; - Data_400033b4 = Data_40002f70; + g_pcstrBigMenuLine1 = strFamousStar; + g_pcstrBigMenuLine2 = g_pcstrMessierCatalogue; + g_pcstrBigMenuLine3 = g_pcstrNGCCatalogue; + g_pcstrBigMenuLine4 = g_pcstrICCatalogue; break; case 4: //0x235a0 - Data_400033a8 = Data_40002f68; - Data_400033ac = Data_40002f6c; - Data_400033b0 = Data_40002f70; - Data_400033b4 = Data_40002f74; + g_pcstrBigMenuLine1 = g_pcstrMessierCatalogue; + g_pcstrBigMenuLine2 = g_pcstrNGCCatalogue; + g_pcstrBigMenuLine3 = g_pcstrICCatalogue; + g_pcstrBigMenuLine4 = g_pcstrSh2Catalogue; break; case 5: //0x235e8 - Data_400033a8 = Data_40002f6c; - Data_400033ac = Data_40002f70; - Data_400033b0 = Data_40002f74; - Data_400033b4 = Data_40002f78; + g_pcstrBigMenuLine1 = g_pcstrNGCCatalogue; + g_pcstrBigMenuLine2 = g_pcstrICCatalogue; + g_pcstrBigMenuLine3 = g_pcstrSh2Catalogue; + g_pcstrBigMenuLine4 = g_pcstrBrightStarCatalogue; break; case 6: //0x23630 - Data_400033a8 = Data_40002f70; - Data_400033ac = Data_40002f74; - Data_400033b0 = Data_40002f78; - Data_400033b4 = Data_40002f7c; + g_pcstrBigMenuLine1 = g_pcstrICCatalogue; + g_pcstrBigMenuLine2 = g_pcstrSh2Catalogue; + g_pcstrBigMenuLine3 = g_pcstrBrightStarCatalogue; + g_pcstrBigMenuLine4 = g_pcstrSAOStarCatalogue; break; case 7: //0x23678 - Data_400033a8 = Data_40002f74; - Data_400033ac = Data_40002f78; - Data_400033b0 = Data_40002f7c; - Data_400033b4 = Data_40002f80; + g_pcstrBigMenuLine1 = g_pcstrSh2Catalogue; + g_pcstrBigMenuLine2 = g_pcstrBrightStarCatalogue; + g_pcstrBigMenuLine3 = g_pcstrSAOStarCatalogue; + g_pcstrBigMenuLine4 = g_pcstrCustomerObjects; break; case 8: //0x237a4 - Data_400033a8 = Data_40002f78; - Data_400033ac = Data_40002f7c; - Data_400033b0 = Data_40002f80; - Data_400033b4 = Data_40002f84; + g_pcstrBigMenuLine1 = g_pcstrBrightStarCatalogue; + g_pcstrBigMenuLine2 = g_pcstrSAOStarCatalogue; + g_pcstrBigMenuLine3 = g_pcstrCustomerObjects; + g_pcstrBigMenuLine4 = g_pcstrInputRAandDEC; break; case 9: //0x237ec - Data_400033a8 = Data_40002f7c; - Data_400033ac = Data_40002f80; - Data_400033b0 = Data_40002f84; - Data_400033b4 = Data_40002f88; + g_pcstrBigMenuLine1 = g_pcstrSAOStarCatalogue; + g_pcstrBigMenuLine2 = g_pcstrCustomerObjects; + g_pcstrBigMenuLine3 = g_pcstrInputRAandDEC; + g_pcstrBigMenuLine4 = g_pcstrCustomLandGoal; break; default: @@ -535,58 +576,58 @@ void func_231d0(int a, int b) { case 1: //0x23874 - Data_400033a8 = strCurrentObjects; - Data_400033ac = Data_40002f90; - Data_400033b0 = Data_40002f94; - Data_400033b4 = Data_40002f98; + g_pcstrBigMenuLine1 = strCurrentObjects; + g_pcstrBigMenuLine2 = Data_40002f90; + g_pcstrBigMenuLine3 = Data_40002f94; + g_pcstrBigMenuLine4 = Data_40002f98; break; case 2: //0x238bc - Data_400033a8 = Data_40002f90; - Data_400033ac = Data_40002f94; - Data_400033b0 = Data_40002f98; - Data_400033b4 = Data_40002f9c; + g_pcstrBigMenuLine1 = Data_40002f90; + g_pcstrBigMenuLine2 = Data_40002f94; + g_pcstrBigMenuLine3 = Data_40002f98; + g_pcstrBigMenuLine4 = Data_40002f9c; break; case 3: //0x23904 - Data_400033a8 = Data_40002f94; - Data_400033ac = Data_40002f98; - Data_400033b0 = Data_40002f9c; - Data_400033b4 = Data_40002fa0; + g_pcstrBigMenuLine1 = Data_40002f94; + g_pcstrBigMenuLine2 = Data_40002f98; + g_pcstrBigMenuLine3 = Data_40002f9c; + g_pcstrBigMenuLine4 = Data_40002fa0; break; case 4: //0x2394c - Data_400033a8 = Data_40002f98; - Data_400033ac = Data_40002f9c; - Data_400033b0 = Data_40002fa0; - Data_400033b4 = Data_40002fa4; + g_pcstrBigMenuLine1 = Data_40002f98; + g_pcstrBigMenuLine2 = Data_40002f9c; + g_pcstrBigMenuLine3 = Data_40002fa0; + g_pcstrBigMenuLine4 = Data_40002fa4; break; case 5: //0x23994 - Data_400033a8 = Data_40002f9c; - Data_400033ac = Data_40002fa0; - Data_400033b0 = Data_40002fa4; - Data_400033b4 = Data_40002fa8; + g_pcstrBigMenuLine1 = Data_40002f9c; + g_pcstrBigMenuLine2 = Data_40002fa0; + g_pcstrBigMenuLine3 = Data_40002fa4; + g_pcstrBigMenuLine4 = Data_40002fa8; break; case 6: //0x239dc - Data_400033a8 = Data_40002fa0; - Data_400033ac = Data_40002fa4; - Data_400033b0 = Data_40002fa8; - Data_400033b4 = strParkposition; + g_pcstrBigMenuLine1 = Data_40002fa0; + g_pcstrBigMenuLine2 = Data_40002fa4; + g_pcstrBigMenuLine3 = Data_40002fa8; + g_pcstrBigMenuLine4 = strParkposition; break; case 7: //0x23a24 - Data_400033a8 = Data_40002fa4; - Data_400033ac = Data_40002fa8; - Data_400033b0 = strParkposition; - Data_400033b4 = Data_40002fb0; + g_pcstrBigMenuLine1 = Data_40002fa4; + g_pcstrBigMenuLine2 = Data_40002fa8; + g_pcstrBigMenuLine3 = strParkposition; + g_pcstrBigMenuLine4 = Data_40002fb0; break; default: @@ -601,58 +642,58 @@ void func_231d0(int a, int b) { case 1: //0x23aac - Data_400033a8 = strTimeAndDate; - Data_400033ac = Data_40002fb8; - Data_400033b0 = Data_40002fbc; - Data_400033b4 = Data_40002fc0; + g_pcstrBigMenuLine1 = strTimeAndDate; + g_pcstrBigMenuLine2 = g_pcstrDaylightSaving; + g_pcstrBigMenuLine3 = g_pcstrEngSiteSetting; + g_pcstrBigMenuLine4 = g_pcstrSkyLand; break; case 2: //0x23af4 - Data_400033a8 = Data_40002fb8; - Data_400033ac = Data_40002fbc; - Data_400033b0 = Data_40002fc0; - Data_400033b4 = Data_40002fc4; + g_pcstrBigMenuLine1 = g_pcstrDaylightSaving; + g_pcstrBigMenuLine2 = g_pcstrEngSiteSetting; + g_pcstrBigMenuLine3 = g_pcstrSkyLand; + g_pcstrBigMenuLine4 = g_pcstrAzEqu; break; case 3: //0x23b3c - Data_400033a8 = Data_40002fbc; - Data_400033ac = Data_40002fc0; - Data_400033b0 = Data_40002fc4; - Data_400033b4 = strTelescopeMount; + g_pcstrBigMenuLine1 = g_pcstrEngSiteSetting; + g_pcstrBigMenuLine2 = g_pcstrSkyLand; + g_pcstrBigMenuLine3 = g_pcstrAzEqu; + g_pcstrBigMenuLine4 = strTelescopeMount; break; case 4: //0x23b84 - Data_400033a8 = Data_40002fc0; - Data_400033ac = Data_40002fc4; - Data_400033b0 = strTelescopeMount; - Data_400033b4 = strTrackingRate; + g_pcstrBigMenuLine1 = g_pcstrSkyLand; + g_pcstrBigMenuLine2 = g_pcstrAzEqu; + g_pcstrBigMenuLine3 = strTelescopeMount; + g_pcstrBigMenuLine4 = strTrackingRate; break; case 5: //0x23bcc - Data_400033a8 = Data_40002fc4; - Data_400033ac = strTelescopeMount; - Data_400033b0 = strTrackingRate; - Data_400033b4 = Data_40002fd0; + g_pcstrBigMenuLine1 = g_pcstrAzEqu; + g_pcstrBigMenuLine2 = strTelescopeMount; + g_pcstrBigMenuLine3 = strTrackingRate; + g_pcstrBigMenuLine4 = g_pcstrLanguage; break; case 6: //0x23c14 - Data_400033a8 = strTelescopeMount; - Data_400033ac = strTrackingRate; - Data_400033b0 = Data_40002fd0; - Data_400033b4 = strReset; + g_pcstrBigMenuLine1 = strTelescopeMount; + g_pcstrBigMenuLine2 = strTrackingRate; + g_pcstrBigMenuLine3 = g_pcstrLanguage; + g_pcstrBigMenuLine4 = strReset; break; case 7: //0x23c5c - Data_400033a8 = strTrackingRate; - Data_400033ac = Data_40002fd0; - Data_400033b0 = strReset; - Data_400033b4 = Data_40002fd8; + g_pcstrBigMenuLine1 = strTrackingRate; + g_pcstrBigMenuLine2 = g_pcstrLanguage; + g_pcstrBigMenuLine3 = strReset; + g_pcstrBigMenuLine4 = g_pcstrSetupSpare1; break; default: @@ -667,66 +708,66 @@ void func_231d0(int a, int b) { case 1: //0x23ce8 - Data_400033a8 = Data_40002fdc; - Data_400033ac = Data_40002fe0; - Data_400033b0 = Data_40002fe4; - Data_400033b4 = Data_40002fe8; + g_pcstrBigMenuLine1 = Data_40002fdc; + g_pcstrBigMenuLine2 = Data_40002fe0; + g_pcstrBigMenuLine3 = Data_40002fe4; + g_pcstrBigMenuLine4 = Data_40002fe8; break; case 2: //0x23d30 - Data_400033a8 = Data_40002fe0; - Data_400033ac = Data_40002fe4; - Data_400033b0 = Data_40002fe8; - Data_400033b4 = Data_40002fec; + g_pcstrBigMenuLine1 = Data_40002fe0; + g_pcstrBigMenuLine2 = Data_40002fe4; + g_pcstrBigMenuLine3 = Data_40002fe8; + g_pcstrBigMenuLine4 = Data_40002fec; break; case 3: //0x23d78 - Data_400033a8 = Data_40002fe4; - Data_400033ac = Data_40002fe8; - Data_400033b0 = Data_40002fec; - Data_400033b4 = Data_40002ff0; + g_pcstrBigMenuLine1 = Data_40002fe4; + g_pcstrBigMenuLine2 = Data_40002fe8; + g_pcstrBigMenuLine3 = Data_40002fec; + g_pcstrBigMenuLine4 = Data_40002ff0; break; case 4: //0x23dc0 - Data_400033a8 = Data_40002fe8; - Data_400033ac = Data_40002fec; - Data_400033b0 = Data_40002ff0; - Data_400033b4 = Data_40002ff4; + g_pcstrBigMenuLine1 = Data_40002fe8; + g_pcstrBigMenuLine2 = Data_40002fec; + g_pcstrBigMenuLine3 = Data_40002ff0; + g_pcstrBigMenuLine4 = Data_40002ff4; break; case 5: //0x23e08 - Data_400033a8 = Data_40002fec; - Data_400033ac = Data_40002ff0; - Data_400033b0 = Data_40002ff4; - Data_400033b4 = Data_40002ff8; + g_pcstrBigMenuLine1 = Data_40002fec; + g_pcstrBigMenuLine2 = Data_40002ff0; + g_pcstrBigMenuLine3 = Data_40002ff4; + g_pcstrBigMenuLine4 = Data_40002ff8; break; case 6: //0x23e50 - Data_400033a8 = Data_40002ff0; - Data_400033ac = Data_40002ff4; - Data_400033b0 = Data_40002ff8; - Data_400033b4 = Data_40002ffc; + g_pcstrBigMenuLine1 = Data_40002ff0; + g_pcstrBigMenuLine2 = Data_40002ff4; + g_pcstrBigMenuLine3 = Data_40002ff8; + g_pcstrBigMenuLine4 = Data_40002ffc; break; case 7: //0x23e98 - Data_400033a8 = Data_40002ff4; - Data_400033ac = Data_40002ff8; - Data_400033b0 = Data_40002ffc; - Data_400033b4 = Data_40003000; + g_pcstrBigMenuLine1 = Data_40002ff4; + g_pcstrBigMenuLine2 = Data_40002ff8; + g_pcstrBigMenuLine3 = Data_40002ffc; + g_pcstrBigMenuLine4 = Data_40003000; break; case 8: //0x23ee0 - Data_400033a8 = Data_40002ff8; - Data_400033ac = Data_40002ffc; - Data_400033b0 = Data_40003000; - Data_400033b4 = Data_40003004; + g_pcstrBigMenuLine1 = Data_40002ff8; + g_pcstrBigMenuLine2 = Data_40002ffc; + g_pcstrBigMenuLine3 = Data_40003000; + g_pcstrBigMenuLine4 = Data_40003004; break; default: @@ -741,42 +782,42 @@ void func_231d0(int a, int b) { case 1: //0x23f60 - Data_400033a8 = Data_40003008; - Data_400033ac = Data_4000300c; - Data_400033b0 = Data_40003010; - Data_400033b4 = Data_40003014; + g_pcstrBigMenuLine1 = Data_40003008; + g_pcstrBigMenuLine2 = Data_4000300c; + g_pcstrBigMenuLine3 = Data_40003010; + g_pcstrBigMenuLine4 = Data_40003014; break; case 2: //0x23fa8 - Data_400033a8 = Data_4000300c; - Data_400033ac = Data_40003010; - Data_400033b0 = Data_40003014; - Data_400033b4 = Data_40003018; + g_pcstrBigMenuLine1 = Data_4000300c; + g_pcstrBigMenuLine2 = Data_40003010; + g_pcstrBigMenuLine3 = Data_40003014; + g_pcstrBigMenuLine4 = Data_40003018; break; case 3: //0x23ff0 - Data_400033a8 = Data_40003010; - Data_400033ac = Data_40003014; - Data_400033b0 = Data_40003018; - Data_400033b4 = Data_4000301c; + g_pcstrBigMenuLine1 = Data_40003010; + g_pcstrBigMenuLine2 = Data_40003014; + g_pcstrBigMenuLine3 = Data_40003018; + g_pcstrBigMenuLine4 = Data_4000301c; break; case 4: //0x24038 - Data_400033a8 = Data_40003014; - Data_400033ac = Data_40003018; - Data_400033b0 = Data_4000301c; - Data_400033b4 = Data_40003020; + g_pcstrBigMenuLine1 = Data_40003014; + g_pcstrBigMenuLine2 = Data_40003018; + g_pcstrBigMenuLine3 = Data_4000301c; + g_pcstrBigMenuLine4 = Data_40003020; break; case 5: //0x24080 - Data_400033a8 = Data_40003018; - Data_400033ac = Data_4000301c; - Data_400033b0 = Data_40003020; - Data_400033b4 = Data_40003024; + g_pcstrBigMenuLine1 = Data_40003018; + g_pcstrBigMenuLine2 = Data_4000301c; + g_pcstrBigMenuLine3 = Data_40003020; + g_pcstrBigMenuLine4 = Data_40003024; break; default: diff --git a/applications/freertos_app/func_27844.c b/applications/freertos_app/func_27844.c index edb7074..e77c4b9 100644 --- a/applications/freertos_app/func_27844.c +++ b/applications/freertos_app/func_27844.c @@ -26,9 +26,9 @@ void PrepareScreenItems(void) case MENU_CONTEXT_NO_TELESCOPE: //2: //0x28054 - Data_40003364 = strThereIsNoTele; - Data_4000336c = strScopeToConnectThis; - Data_40003374 = strControlTerminal; + g_pcstrMenuLine2 = strThereIsNoTele; + g_pcstrMenuLine4 = strScopeToConnectThis; + g_pcstrMenuLine6 = strControlTerminal; AdaptDisplayLinesPerMenuLine(); //->3d71c @@ -36,26 +36,26 @@ void PrepareScreenItems(void) case 0x65: //101 //0x28090 - Data_40003360 = "F1"; - Data_40003364 = "F2"; - Data_40003368 = "F3"; - Data_4000336c = "F4"; - Data_40003370 = "F5"; - Data_40003374 = "F6"; - Data_40003378 = "F7"; - Data_4000337c = "F8"; - Data_40003380 = "F9"; + g_pcstrMenuLine1 = "F1"; + g_pcstrMenuLine2 = "F2"; + g_pcstrMenuLine3 = "F3"; + g_pcstrMenuLine4 = "F4"; + g_pcstrMenuLine5 = "F5"; + g_pcstrMenuLine6 = "F6"; + g_pcstrMenuLine7 = "F7"; + g_pcstrMenuLine8 = "F8"; + g_pcstrMenuLine9 = "F9"; switch (bData_40002e79_SkyLandTargetSeletion) { case 0: //0x2811c - Data_40003384 = "Select Sky Target No "; + g_pcstrMenuLine10 = "Select Sky Target No "; break; case 1: //0x28130 - Data_40003384 = "Select Land Target No"; + g_pcstrMenuLine10 = "Select Land Target No"; break; default: @@ -88,27 +88,27 @@ void PrepareScreenItems(void) ((Data_40003f50.bData_0 != 1) && (bData_40002e79_SkyLandTargetSeletion == 0))) { //281f0 - Data_40003360 = " "; - Data_40003364 = "Sorry "; - Data_40003368 = " "; + g_pcstrMenuLine1 = " "; + g_pcstrMenuLine2 = "Sorry "; + g_pcstrMenuLine3 = " "; if (bData_40002e79_SkyLandTargetSeletion == 0) { //28224 - sprintf(Data_40003fe8, "Your Sky F%d is Blank ", bData_4000319a_SkyLandTargetId); + sprintf(g_MenuStringBuffer4, "Your Sky F%d is Blank ", bData_4000319a_SkyLandTargetId); } //28238 if (bData_40002e79_SkyLandTargetSeletion == 1) { //28248 - sprintf(Data_40003fe8, "Your Land F%d is Blank ", bData_4000319a_SkyLandTargetId); + sprintf(g_MenuStringBuffer4, "Your Land F%d is Blank ", bData_4000319a_SkyLandTargetId); } //2825c - Data_4000336c = Data_40003fe8; - Data_40003370 = " "; - Data_40003374 = "Please Input Data "; - Data_40003378 = " "; - Data_4000337c = " "; + g_pcstrMenuLine4 = g_MenuStringBuffer4; + g_pcstrMenuLine5 = " "; + g_pcstrMenuLine6 = "Please Input Data "; + g_pcstrMenuLine7 = " "; + g_pcstrMenuLine8 = " "; //->29978 } else @@ -117,12 +117,12 @@ void PrepareScreenItems(void) if (bData_40002e79_SkyLandTargetSeletion == 0) { //2840c - sprintf(Data_40003fa9, "My Sky Target %d ", bData_4000319a_SkyLandTargetId); + sprintf(g_MenuStringBuffer1, "My Sky Target %d ", bData_4000319a_SkyLandTargetId); - Data_40003360 = Data_40003fa9; - Data_40003364 = " "; - Data_40003368 = Data_40003f50.bData_1; - Data_4000336c = " "; + g_pcstrMenuLine1 = g_MenuStringBuffer1; + g_pcstrMenuLine2 = " "; + g_pcstrMenuLine3 = Data_40003f50.bData_1; + g_pcstrMenuLine4 = " "; Data_40004ad8.dLongitude = Data_40004128.geographicLongitude; Data_40004ad8.dLatitude = Data_40004128.geographicLatitude; @@ -134,7 +134,7 @@ void PrepareScreenItems(void) convert_equatorial_to_horizontal(Data_40004ad8, Data_40004ae8, Data_40004128.Data_40, Data_40004128.bData_44, &Data_40004b08); //284f8 - sprintf(Data_40003ffd, "OBJ Azi:%03d %02d %02d ", + sprintf(g_MenuStringBuffer5, "OBJ Azi:%03d %02d %02d ", (int)(Data_40004b08.dAzimuth), (int)((Data_40004b08.dAzimuth - (int)(Data_40004b08.dAzimuth)) * 60.0), (int)(Data_40004b08.dAzimuth * 3600.0) % 60); @@ -142,7 +142,7 @@ void PrepareScreenItems(void) if (Data_40004b08.dAltitude >= 0) { //285d0 - sprintf(Data_40004012, "Alt:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:+%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60.0)), abs((int)(Data_40004b08.dAltitude * 3600.0) % 60)); @@ -150,7 +150,7 @@ void PrepareScreenItems(void) else { //286cc - sprintf(Data_40004012, "Alt:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:-%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60.0)), abs((int)(Data_40004b08.dAltitude * 3600.0) % 60)); @@ -158,68 +158,68 @@ void PrepareScreenItems(void) //2885c if ((int)(Data_40004b08.dAzimuth) < 100) { - Data_40003ffd[11] = ' '; + g_MenuStringBuffer5[11] = ' '; } if ((int)(Data_40004b08.dAzimuth) < 10) { - Data_40003ffd[12] = ' '; + g_MenuStringBuffer5[12] = ' '; } //288a4 if ((int)((Data_40004b08.dAzimuth - (int)Data_40004b08.dAzimuth) * 60.0) < 10) { - Data_40003ffd[15] = ' '; + g_MenuStringBuffer5[15] = ' '; } //28910 if (((int)(Data_40004b08.dAzimuth * 3600.0) % 60) < 10) { - Data_40003ffd[18] = ' '; + g_MenuStringBuffer5[18] = ' '; } //28954 if (abs((int)Data_40004b08.dAltitude) < 10) { - Data_40004012[5] = ' '; + g_MenuStringBuffer6[5] = ' '; } //2898c if (abs((int)((Data_40004b08.dAltitude - (int)Data_40004b08.dAltitude) * 60.0)) < 10) { - Data_40004012[8] = ' '; + g_MenuStringBuffer6[8] = ' '; } //28a0c if (abs(((int)(Data_40004b08.dAltitude * 3600.0)) % 60) < 10) { - Data_40004012[11] = ' '; + g_MenuStringBuffer6[11] = ' '; } //28a64 - Data_40003370 = Data_40003ffd; - Data_40003374 = Data_40004012; + g_pcstrMenuLine5 = g_MenuStringBuffer5; + g_pcstrMenuLine6 = g_MenuStringBuffer6; - sprintf(Data_40004027, "R.a: %02dh%02dm%02ds ", + sprintf(g_MenuStringBuffer7, "R.a: %02dh%02dm%02ds ", (int)fData_40002cd0_ObjectRightAscension, (int)((fData_40002cd0_ObjectRightAscension - (int)fData_40002cd0_ObjectRightAscension) * 60), (int)(fData_40002cd0_ObjectRightAscension * 3600) % 60); if ((int)fData_40002cd0_ObjectRightAscension < 10) { - Data_40004027[5] = ' '; + g_MenuStringBuffer7[5] = ' '; } //28b2c if (((int)((fData_40002cd0_ObjectRightAscension - (int)fData_40002cd0_ObjectRightAscension) * 60)) < 10) { - Data_40004027[8] = ' '; + g_MenuStringBuffer7[8] = ' '; } //28b7c if (((int)(fData_40002cd0_ObjectRightAscension * 3600) % 60) < 10) { - Data_40004027[11] = ' '; + g_MenuStringBuffer7[11] = ' '; } //28bb4 - Data_40003378 = Data_40004027; + g_pcstrMenuLine7 = g_MenuStringBuffer7; if (fData_40002d18_ObjectDeclination >= 0) { //28bd4 - sprintf(Data_4000403c, "Dec:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Dec:+%02d %02d %02d ", abs((int)fData_40002d18_ObjectDeclination), abs((int)((fData_40002d18_ObjectDeclination - (int)(fData_40002d18_ObjectDeclination)) * 60)), abs(((int)(fData_40002d18_ObjectDeclination * 3600) % 60))); @@ -227,7 +227,7 @@ void PrepareScreenItems(void) else { //28cf8 - sprintf(Data_4000403c, "Dec:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Dec:-%02d %02d %02d ", abs((int)fData_40002d18_ObjectDeclination), abs((int)((fData_40002d18_ObjectDeclination - (int)(fData_40002d18_ObjectDeclination)) * 60)), abs(((int)(fData_40002d18_ObjectDeclination * 3600) % 60))); @@ -235,36 +235,36 @@ void PrepareScreenItems(void) //28dc4 if (abs((int)fData_40002d18_ObjectDeclination) < 10) { - Data_4000403c[5] = ' '; + g_MenuStringBuffer8[5] = ' '; } //28df8 if (abs((int)((fData_40002d18_ObjectDeclination - (int)fData_40002d18_ObjectDeclination) * 60)) < 10) { - Data_4000403c[8] = ' '; + g_MenuStringBuffer8[8] = ' '; } //28e5c if (abs((int)(fData_40002d18_ObjectDeclination * 3600) % 60) < 10) { - Data_4000403c[11] = ' '; + g_MenuStringBuffer8[11] = ' '; } //28ea8 - Data_4000337c = Data_4000403c; + g_pcstrMenuLine8 = g_MenuStringBuffer8; //->29978 } else { //28eb8 - sprintf(Data_40003fa9, "My Land Target %d", bData_4000319a_SkyLandTargetId); + sprintf(g_MenuStringBuffer1, "My Land Target %d", bData_4000319a_SkyLandTargetId); - Data_40003360 = Data_40003fa9; - Data_40003364 = " "; - Data_40003368 = Data_40003f64.bData_1; - Data_4000336c = " "; + g_pcstrMenuLine1 = g_MenuStringBuffer1; + g_pcstrMenuLine2 = " "; + g_pcstrMenuLine3 = Data_40003f64.bData_1; + g_pcstrMenuLine4 = " "; Data_40004b08.dAzimuth = Data_40003f64.fData_12; Data_40004b08.dAltitude = Data_40003f64.fData_16; - sprintf(Data_40003ffd, "OBJ Azi:%03d %02d %02d ", + sprintf(g_MenuStringBuffer5, "OBJ Azi:%03d %02d %02d ", (int)Data_40004b08.dAzimuth, (int)((Data_40004b08.dAzimuth - (int)Data_40004b08.dAzimuth) * 60.0), (int)(Data_40004b08.dAzimuth * 3600.0) % 60); @@ -272,7 +272,7 @@ void PrepareScreenItems(void) if (Data_40004b08.dAltitude >= 0) { //29004 - sprintf(Data_40004012, "Alt:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:+%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)Data_40004b08.dAltitude) * 60.0)), abs((int)(Data_40004b08.dAltitude * 3600.0) % 60)); @@ -280,7 +280,7 @@ void PrepareScreenItems(void) else { //2915c - sprintf(Data_40004012, "Alt:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:-%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)Data_40004b08.dAltitude) * 60.0)), abs((int)(Data_40004b08.dAltitude * 3600.0) % 60)); @@ -288,46 +288,46 @@ void PrepareScreenItems(void) //29254 if ((int)Data_40004b08.dAzimuth < 100) { - Data_40003ffd[11] = ' '; + g_MenuStringBuffer5[11] = ' '; } //29278 if ((int)Data_40004b08.dAzimuth < 10) { - Data_40003ffd[12] = ' '; + g_MenuStringBuffer5[12] = ' '; } //2929c if ((int)((Data_40004b08.dAzimuth - (int)Data_40004b08.dAzimuth) * 60.0) < 10) { - Data_40003ffd[15] = ' '; + g_MenuStringBuffer5[15] = ' '; } //29308 if (((int)(Data_40004b08.dAzimuth * 3600.0) % 60) < 10) { - Data_40003ffd[18] = ' '; + g_MenuStringBuffer5[18] = ' '; } //2934c if (abs((int)Data_40004b08.dAltitude) < 10) { - Data_40004012[5] = ' '; + g_MenuStringBuffer6[5] = ' '; } //29384 if (abs((int)((Data_40004b08.dAltitude - (int)Data_40004b08.dAltitude) * 60.0)) < 10) { - Data_40004012[8] = ' '; + g_MenuStringBuffer6[8] = ' '; } //29404 if (abs(((int)(Data_40004b08.dAltitude * 3600.0)) % 60) < 10) { - Data_40004012[11] = ' '; + g_MenuStringBuffer6[11] = ' '; } //2945c - Data_40003370 = Data_40003ffd; - Data_40003374 = Data_40004012; + g_pcstrMenuLine5 = g_MenuStringBuffer5; + g_pcstrMenuLine6 = g_MenuStringBuffer6; dData_40002dd0 = dData_40002dc0_Azimuth; dData_40002e08 = dData_40002df8; - sprintf(Data_40004027, "OTA Azi:%03d %02d %02d ", + sprintf(g_MenuStringBuffer7, "OTA Azi:%03d %02d %02d ", (int)dData_40002dd0, (int)((dData_40002dd0 - (int)dData_40002dd0) * 60), (int)(dData_40002dd0 * 3600) % 60); @@ -335,7 +335,7 @@ void PrepareScreenItems(void) if (dData_40002e08 >= 0) { //29558 - sprintf(Data_4000403c, "Alt:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Alt:+%02d %02d %02d ", abs((int)dData_40002e08), abs((int)((dData_40002e08 - (int)(dData_40002e08)) * 60)), abs(((int)(dData_40002e08 * 3600) % 60))); @@ -344,7 +344,7 @@ void PrepareScreenItems(void) else { //29644 - sprintf(Data_4000403c, "Alt:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Alt:-%02d %02d %02d ", abs((int)dData_40002e08), abs((int)((dData_40002e08 - (int)(dData_40002e08)) * 60)), abs(((int)(dData_40002e08 * 3600) % 60))); @@ -352,41 +352,41 @@ void PrepareScreenItems(void) //2972c if ((int)dData_40002dd0 < 100) { - Data_40004027[11] = ' '; + g_MenuStringBuffer7[11] = ' '; } //2974c if ((int)dData_40002dd0 < 10) { - Data_40004027[12] = ' '; + g_MenuStringBuffer7[12] = ' '; } //2976c if (((int)((dData_40002dd0 - (int)dData_40002dd0) * 60)) < 10) { - Data_40004027[15] = ' '; + g_MenuStringBuffer7[15] = ' '; } //297d0 if (((int)(dData_40002dd0 * 3600) % 60) < 10) { - Data_40004027[18] = ' '; + g_MenuStringBuffer7[18] = ' '; } //29810 if (abs((int)dData_40002e08) < 10) { - Data_4000403c[5] = ' '; + g_MenuStringBuffer8[5] = ' '; } //29894 if (abs((int)((dData_40002e08 - (int)dData_40002e08) * 60.0)) < 10) { - Data_4000403c[8] = ' '; + g_MenuStringBuffer8[8] = ' '; } //2990c if (abs(((int)(dData_40002e08 * 3600.0)) % 60) < 10) { - Data_4000403c[11] = ' '; + g_MenuStringBuffer8[11] = ' '; } //29960 - Data_40003378 = Data_40004027; - Data_4000337c = Data_4000403c; + g_pcstrMenuLine7 = g_MenuStringBuffer7; + g_pcstrMenuLine8 = g_MenuStringBuffer8; } } //29978 @@ -395,47 +395,47 @@ void PrepareScreenItems(void) //->3d71c break; - case 1: + case MENU_CONTEXT_RECENT_TARGETS: //1: //0x29994: Recent Targets bData_40002f14_RecentTargetCount = flash_get_recent_targets(Data_40002f15_RecentTargetTypeArray, Data_4000359c_RecentTargetIdArray, Data_400035bc); - Data_40003360 = " "; - Data_40003364 = " "; - Data_40003368 = " "; - Data_4000336c = " "; - Data_40003370 = " "; - Data_40003374 = " "; - Data_40003378 = " "; - Data_4000337c = " "; - - Data_40003380 = " "; - Data_40003384 = " "; - Data_40003388 = " "; - Data_4000338c = " "; - Data_40003390 = " "; - Data_40003394 = " "; - Data_40003398 = " "; - Data_4000339c = " "; + g_pcstrMenuLine1 = " "; + g_pcstrMenuLine2 = " "; + g_pcstrMenuLine3 = " "; + g_pcstrMenuLine4 = " "; + g_pcstrMenuLine5 = " "; + g_pcstrMenuLine6 = " "; + g_pcstrMenuLine7 = " "; + g_pcstrMenuLine8 = " "; + + g_pcstrMenuLine9 = " "; + g_pcstrMenuLine10 = " "; + g_pcstrMenuLine11 = " "; + g_pcstrMenuLine12 = " "; + g_pcstrMenuLine13 = " "; + g_pcstrMenuLine14 = " "; + g_pcstrMenuLine15 = " "; + g_pcstrMenuLine16 = " "; //29a70 switch (bData_40002f14_RecentTargetCount) { case 0: //0x29aa8 - Data_40003360 = " "; - Data_40003364 = " "; - Data_40003368 = "Sorry "; - Data_4000336c = " "; - Data_40003370 = "No Recent Target "; - Data_40003374 = " "; - Data_40003378 = " "; - Data_4000337c = " "; + g_pcstrMenuLine1 = " "; + g_pcstrMenuLine2 = " "; + g_pcstrMenuLine3 = "Sorry "; + g_pcstrMenuLine4 = " "; + g_pcstrMenuLine5 = "No Recent Target "; + g_pcstrMenuLine6 = " "; + g_pcstrMenuLine7 = " "; + g_pcstrMenuLine8 = " "; //->2a0f8 break; case 8: //0x29b10 - Data_4000339c = "8: "; + g_pcstrMenuLine16 = "8: "; bData_40002f0d_RecentTargetType = Data_40002f15_RecentTargetTypeArray[7]; bData_40002f10_RecentTargetId = Data_4000359c_RecentTargetIdArray[7]; @@ -444,15 +444,15 @@ void PrepareScreenItems(void) for (bData_40002f1d = 0; bData_40002f1d < 21; bData_40002f1d++) { //29b64 - Data_4000403c[bData_40002f1d] = Data_4000410e[bData_40002f1d]; + g_MenuStringBuffer8[bData_40002f1d] = Data_4000410e[bData_40002f1d]; } - Data_4000337c = Data_4000403c; + g_pcstrMenuLine8 = g_MenuStringBuffer8; //break; //fall through case 7: //0x29bb8 - Data_40003398 = "7: "; + g_pcstrMenuLine15 = "7: "; bData_40002f0d_RecentTargetType = Data_40002f15_RecentTargetTypeArray[6]; bData_40002f10_RecentTargetId = Data_4000359c_RecentTargetIdArray[6]; @@ -461,34 +461,36 @@ void PrepareScreenItems(void) for (bData_40002f1d = 0; bData_40002f1d < 21; bData_40002f1d++) { //29c08 - Data_40004027[bData_40002f1d] = Data_4000410e[bData_40002f1d]; + g_MenuStringBuffer7[bData_40002f1d] = Data_4000410e[bData_40002f1d]; } - Data_40003378 = Data_40004027; + g_pcstrMenuLine7 = g_MenuStringBuffer7; //break; //fall through case 6: //0x29c5c - Data_40003394 = "6: "; + g_pcstrMenuLine14 = "6: "; bData_40002f0d_RecentTargetType = Data_40002f15_RecentTargetTypeArray[5]; bData_40002f10_RecentTargetId = Data_4000359c_RecentTargetIdArray[5]; func_240e8(bData_40002f0d_RecentTargetType, bData_40002f10_RecentTargetId); - Data_40003374 = Data_400033a4; +#if 0 + g_pcstrMenuLine6 = Data_400033a4; +#endif for (bData_40002f1d = 0; bData_40002f1d < 21; bData_40002f1d++) { //29cbc - Data_40004012[bData_40002f1d] = Data_4000410e[bData_40002f1d]; + g_MenuStringBuffer6[bData_40002f1d] = Data_4000410e[bData_40002f1d]; } - Data_40003374 = Data_40004012; + g_pcstrMenuLine6 = g_MenuStringBuffer6; //break; //fall through case 5: //0x29d10 - Data_40003390 = "5: "; + g_pcstrMenuLine13 = "5: "; bData_40002f0d_RecentTargetType = Data_40002f15_RecentTargetTypeArray[4]; bData_40002f10_RecentTargetId = Data_4000359c_RecentTargetIdArray[4]; @@ -497,15 +499,15 @@ void PrepareScreenItems(void) for (bData_40002f1d = 0; bData_40002f1d < 21; bData_40002f1d++) { //0x29e04 - Data_40003ffd[bData_40002f1d] = Data_4000410e[bData_40002f1d]; + g_MenuStringBuffer5[bData_40002f1d] = Data_4000410e[bData_40002f1d]; } - Data_40003370 = Data_40003ffd; + g_pcstrMenuLine5 = g_MenuStringBuffer5; //break; //fall through case 4: //0x29e58 - Data_4000338c = "4: "; + g_pcstrMenuLine12 = "4: "; bData_40002f0d_RecentTargetType = Data_40002f15_RecentTargetTypeArray[3]; bData_40002f10_RecentTargetId = Data_4000359c_RecentTargetIdArray[3]; @@ -514,15 +516,15 @@ void PrepareScreenItems(void) for (bData_40002f1d = 0; bData_40002f1d < 21; bData_40002f1d++) { //0x29ea8 - Data_40003fe8[bData_40002f1d] = Data_4000410e[bData_40002f1d]; + g_MenuStringBuffer4[bData_40002f1d] = Data_4000410e[bData_40002f1d]; } - Data_4000336c = Data_40003fe8; + g_pcstrMenuLine4 = g_MenuStringBuffer4; //break; //fall through case 3: //0x29efc - Data_40003388 = "3: "; + g_pcstrMenuLine11 = "3: "; bData_40002f0d_RecentTargetType = Data_40002f15_RecentTargetTypeArray[2]; bData_40002f10_RecentTargetId = Data_4000359c_RecentTargetIdArray[2]; @@ -531,15 +533,15 @@ void PrepareScreenItems(void) for (bData_40002f1d = 0; bData_40002f1d < 21; bData_40002f1d++) { //0x29f4c - Data_40003fd3[bData_40002f1d] = Data_4000410e[bData_40002f1d]; + g_MenuStringBuffer3[bData_40002f1d] = Data_4000410e[bData_40002f1d]; } - Data_40003368 = Data_40003fd3; + g_pcstrMenuLine3 = g_MenuStringBuffer3; //break; //fall through case 2: //0x29fa0 - Data_40003384 = "2: "; + g_pcstrMenuLine10 = "2: "; bData_40002f0d_RecentTargetType = Data_40002f15_RecentTargetTypeArray[1]; bData_40002f10_RecentTargetId = Data_4000359c_RecentTargetIdArray[1]; @@ -548,29 +550,31 @@ void PrepareScreenItems(void) for (bData_40002f1d = 0; bData_40002f1d < 21; bData_40002f1d++) { //0x29ff0 - Data_40003fbe[bData_40002f1d] = Data_4000410e[bData_40002f1d]; + g_MenuStringBuffer2[bData_40002f1d] = Data_4000410e[bData_40002f1d]; } - Data_40003364 = Data_40003fbe; + g_pcstrMenuLine2 = g_MenuStringBuffer2; //break; //fall through case 1: //0x2a044 - Data_40003380 = "1: "; + g_pcstrMenuLine9 = "1: "; bData_40002f0d_RecentTargetType = Data_40002f15_RecentTargetTypeArray[0]; bData_40002f10_RecentTargetId = Data_4000359c_RecentTargetIdArray[0]; func_240e8(bData_40002f0d_RecentTargetType, bData_40002f10_RecentTargetId); - Data_40003360 = Data_400033a4; +#if 0 + g_pcstrMenuLine1 = Data_400033a4; +#endif for (bData_40002f1d = 0; bData_40002f1d < 21; bData_40002f1d++) { //0x2a0a4 - Data_40003fa9[bData_40002f1d] = Data_4000410e[bData_40002f1d]; + g_MenuStringBuffer1[bData_40002f1d] = Data_4000410e[bData_40002f1d]; } - Data_40003360 = Data_40003fa9; + g_pcstrMenuLine1 = g_MenuStringBuffer1; //break; //fall through #if 0 @@ -584,21 +588,21 @@ void PrepareScreenItems(void) case MENU_CONTEXT_ALIGNMENT: //1000: //0x2a100 - Telescope Align - Data_40003360 = strTelescopeAlign; - Data_40003364 = ""; - Data_40003368 = strNavigation; - Data_4000336c = ""; - Data_40003370 = strUtilities; - Data_40003374 = ""; - Data_40003378 = strSetup; - Data_4000337c = ""; + g_pcstrMenuLine1 = strTelescopeAlign; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = strNavigation; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = strUtilities; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = strSetup; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 1; - Data_400033a8 = strTelescopeAlign; - Data_400033ac = strNavigation; - Data_400033b0 = strUtilities; - Data_400033b4 = strSetup; + g_pcstrBigMenuLine1 = strTelescopeAlign; + g_pcstrBigMenuLine2 = strNavigation; + g_pcstrBigMenuLine3 = strUtilities; + g_pcstrBigMenuLine4 = strSetup; bData_4000316f_FocusLineOn4LineDisplay = 1; @@ -608,21 +612,21 @@ void PrepareScreenItems(void) case MENU_CONTEXT_NAVIGATION: //2000: //0x2a220 - Navigation - Data_40003360 = strTelescopeAlign; - Data_40003364 = ""; - Data_40003368 = strNavigation; - Data_4000336c = ""; - Data_40003370 = strUtilities; - Data_40003374 = ""; - Data_40003378 = strSetup; - Data_4000337c = ""; + g_pcstrMenuLine1 = strTelescopeAlign; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = strNavigation; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = strUtilities; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = strSetup; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 3; - Data_400033a8 = strTelescopeAlign; - Data_400033ac = strNavigation; - Data_400033b0 = strUtilities; - Data_400033b4 = strSetup; + g_pcstrBigMenuLine1 = strTelescopeAlign; + g_pcstrBigMenuLine2 = strNavigation; + g_pcstrBigMenuLine3 = strUtilities; + g_pcstrBigMenuLine4 = strSetup; bData_4000316f_FocusLineOn4LineDisplay = 2; @@ -632,21 +636,21 @@ void PrepareScreenItems(void) case MENU_CONTEXT_UTILITIES: //3000: //0x2a2f4 - Utilities - Data_40003360 = strTelescopeAlign; - Data_40003364 = ""; - Data_40003368 = strNavigation; - Data_4000336c = ""; - Data_40003370 = strUtilities; - Data_40003374 = ""; - Data_40003378 = strSetup; - Data_4000337c = ""; + g_pcstrMenuLine1 = strTelescopeAlign; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = strNavigation; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = strUtilities; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = strSetup; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 5; - Data_400033a8 = strTelescopeAlign; - Data_400033ac = strNavigation; - Data_400033b0 = strUtilities; - Data_400033b4 = strSetup; + g_pcstrBigMenuLine1 = strTelescopeAlign; + g_pcstrBigMenuLine2 = strNavigation; + g_pcstrBigMenuLine3 = strUtilities; + g_pcstrBigMenuLine4 = strSetup; bData_4000316f_FocusLineOn4LineDisplay = 3; @@ -656,21 +660,21 @@ void PrepareScreenItems(void) case MENU_CONTEXT_SETUP: //4000: //0x2a3c8 - Setup - Data_40003360 = strTelescopeAlign; - Data_40003364 = ""; - Data_40003368 = strNavigation; - Data_4000336c = ""; - Data_40003370 = strUtilities; - Data_40003374 = ""; - Data_40003378 = strSetup; - Data_4000337c = ""; + g_pcstrMenuLine1 = strTelescopeAlign; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = strNavigation; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = strUtilities; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = strSetup; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 7; - Data_400033a8 = strTelescopeAlign; - Data_400033ac = strNavigation; - Data_400033b0 = strUtilities; - Data_400033b4 = strSetup; + g_pcstrBigMenuLine1 = strTelescopeAlign; + g_pcstrBigMenuLine2 = strNavigation; + g_pcstrBigMenuLine3 = strUtilities; + g_pcstrBigMenuLine4 = strSetup; bData_4000316f_FocusLineOn4LineDisplay = 4; @@ -692,13 +696,13 @@ void PrepareScreenItems(void) //0x2a4b4: RA Bklash Corr. case MENU_CONTEXT_DEC_BKLASH_CORR: //1700: //0x2a4b8: DEC Bklash Corr. - func_2245c(11, bData_40003170); + PrepareEightLineMenuScroll(11, g_bAlignmentEightLineMenuTopItem); - bData_4000316e_FocusLineOn8LineDisplay = bData_40003172; + bData_4000316e_FocusLineOn8LineDisplay = g_bAlignmentEightLineMenuFocusItem; - func_231d0(11, bData_40003171); + PrepareFourLineMenuScroll(11, g_bAlignmentFourLineMenuTopItem); - bData_4000316f_FocusLineOn4LineDisplay = bData_40003173; + bData_4000316f_FocusLineOn4LineDisplay = g_bAlignmentFourLineMenuFocusItem; AdaptDisplayLinesPerMenuLine(); //->3d71c @@ -728,11 +732,11 @@ void PrepareScreenItems(void) //0x2a52c: Input RA and DEC case MENU_CONTEXT_NAVIGATION_CUST_LAND: //2130: //0x2a530: Custom Land Goal - func_2245c(12, bData_40003174); + PrepareEightLineMenuScroll(12, bData_40003174); bData_4000316e_FocusLineOn8LineDisplay = bData_40003176; - func_231d0(12, bData_40003175); + PrepareFourLineMenuScroll(12, bData_40003175); bData_4000316f_FocusLineOn4LineDisplay = bData_40003177; @@ -758,11 +762,11 @@ void PrepareScreenItems(void) //0x2a598: Display Illumin. case MENU_CONTEXT_PARK_POSITION: //3900: //0x2a59c: Parkposition - func_2245c(13, bData_40003178); + PrepareEightLineMenuScroll(13, bData_40003178); bData_4000316e_FocusLineOn8LineDisplay = bData_4000317a; - func_231d0(13, bData_40003179); + PrepareFourLineMenuScroll(13, bData_40003179); bData_4000316f_FocusLineOn4LineDisplay = bData_4000317b; @@ -788,11 +792,11 @@ void PrepareScreenItems(void) //0x2a604 case MENU_CONTEXT_RESET: //4900: //0x2a608 - func_2245c(14, bData_4000317c); + PrepareEightLineMenuScroll(14, g_bSetupEightLineMenuTopItem); - bData_4000316e_FocusLineOn8LineDisplay = bData_4000317e; + bData_4000316e_FocusLineOn8LineDisplay = g_bSetupEightLineMenuFocusItem; - func_231d0(14, bData_4000317d); + PrepareFourLineMenuScroll(14, bData_4000317d); bData_4000316f_FocusLineOn4LineDisplay = bData_4000317f; @@ -820,7 +824,7 @@ void PrepareScreenItems(void) //0x2a674 case 0x55FC: //22012 //0x2a678 - func_2245c(22, bData_40003180); + PrepareEightLineMenuScroll(22, bData_40003180); bData_4000316e_FocusLineOn8LineDisplay = bData_40003182; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -843,7 +847,7 @@ void PrepareScreenItems(void) //0x2a6c4 case 2308: //0x2a6c8 - func_2245c(23, bData_40003184); + PrepareEightLineMenuScroll(23, bData_40003184); bData_4000316e_FocusLineOn8LineDisplay = bData_40003186; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -852,14 +856,14 @@ void PrepareScreenItems(void) case 0x9c5: //2501 //0x2a6f8 - Data_40003360 = strScientificName; - Data_40003364 = ""; - Data_40003368 = strSAOCatalog; - Data_4000336c = ""; - Data_40003370 = strHRCatalog; - Data_40003374 = ""; - Data_40003378 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = strScientificName; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = strSAOCatalog; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = strHRCatalog; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 1; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -868,14 +872,14 @@ void PrepareScreenItems(void) case 0x9c6: //2502 //0x2a780 - Data_40003360 = strScientificName; - Data_40003364 = ""; - Data_40003368 = strSAOCatalog; - Data_4000336c = ""; - Data_40003370 = strHRCatalog; - Data_40003374 = ""; - Data_40003378 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = strScientificName; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = strSAOCatalog; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = strHRCatalog; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 3; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -884,14 +888,14 @@ void PrepareScreenItems(void) case 0x9C7: //2503 //0x2a80c - Data_40003360 = strScientificName; - Data_40003364 = ""; - Data_40003368 = strSAOCatalog; - Data_4000336c = ""; - Data_40003370 = strHRCatalog; - Data_40003374 = ""; - Data_40003378 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = strScientificName; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = strSAOCatalog; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = strHRCatalog; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 5; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -900,14 +904,14 @@ void PrepareScreenItems(void) case 0xAF1: //2801 //0x2a898 - Data_40003360 = strSelect; - Data_40003364 = ""; - Data_40003368 = strAdd; - Data_4000336c = ""; - Data_40003370 = strDelete; - Data_40003374 = ""; - Data_40003378 = strModify; - Data_4000337c = ""; + g_pcstrMenuLine1 = strSelect; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = strAdd; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = strDelete; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = strModify; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 1; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -916,14 +920,14 @@ void PrepareScreenItems(void) case 0xAF2: //2802 //0x2a924 - Data_40003360 = strSelect; - Data_40003364 = ""; - Data_40003368 = strAdd; - Data_4000336c = ""; - Data_40003370 = strDelete; - Data_40003374 = ""; - Data_40003378 = strModify; - Data_4000337c = ""; + g_pcstrMenuLine1 = strSelect; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = strAdd; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = strDelete; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = strModify; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 3; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -932,14 +936,14 @@ void PrepareScreenItems(void) case 0xAF3: //2803 //0x2aa2c - Data_40003360 = strSelect; - Data_40003364 = ""; - Data_40003368 = strAdd; - Data_4000336c = ""; - Data_40003370 = strDelete; - Data_40003374 = ""; - Data_40003378 = strModify; - Data_4000337c = ""; + g_pcstrMenuLine1 = strSelect; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = strAdd; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = strDelete; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = strModify; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 5; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -948,14 +952,14 @@ void PrepareScreenItems(void) case 0xAF4: //2804 //0x2aabc - Data_40003360 = strSelect; - Data_40003364 = ""; - Data_40003368 = strAdd; - Data_4000336c = ""; - Data_40003370 = strDelete; - Data_40003374 = ""; - Data_40003378 = strModify; - Data_4000337c = ""; + g_pcstrMenuLine1 = strSelect; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = strAdd; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = strDelete; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = strModify; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 7; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -964,14 +968,14 @@ void PrepareScreenItems(void) case 0x526D: //21101 //0x2ab4c - Data_40003360 = Data_40003044; - Data_40003364 = ""; - Data_40003368 = Data_40003048; - Data_4000336c = ""; - Data_40003370 = Data_4000304c; - Data_40003374 = ""; - Data_40003378 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = Data_40003044; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = Data_40003048; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = Data_4000304c; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 1; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -980,14 +984,14 @@ void PrepareScreenItems(void) case 0x526E: //21102 //0x2abd4 - Data_40003360 = Data_40003044; - Data_40003364 = ""; - Data_40003368 = Data_40003048; - Data_4000336c = ""; - Data_40003370 = Data_4000304c; - Data_40003374 = ""; - Data_40003378 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = Data_40003044; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = Data_40003048; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = Data_4000304c; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 3; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -996,14 +1000,14 @@ void PrepareScreenItems(void) case 0x526F: //21103 //0x2ac60 - Data_40003360 = Data_40003044; - Data_40003364 = ""; - Data_40003368 = Data_40003048; - Data_4000336c = ""; - Data_40003370 = Data_4000304c; - Data_40003374 = ""; - Data_40003378 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = Data_40003044; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = Data_40003048; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = Data_4000304c; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 5; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1012,14 +1016,14 @@ void PrepareScreenItems(void) case 0xE11: //3601 //0x2acec - Data_40003360 = strEyeshot; - Data_40003364 = strRatio; - Data_40003368 = ""; - Data_4000336c = ""; - Data_40003370 = ""; - Data_40003374 = ""; - Data_40003378 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = strEyeshot; + g_pcstrMenuLine2 = strRatio; + g_pcstrMenuLine3 = ""; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = ""; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 1; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1028,14 +1032,14 @@ void PrepareScreenItems(void) case 0xE12: //3602 //0x2ad70 - Data_40003360 = strEyeshot; - Data_40003364 = strRatio; - Data_40003368 = ""; - Data_4000336c = ""; - Data_40003370 = ""; - Data_40003374 = ""; - Data_40003378 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = strEyeshot; + g_pcstrMenuLine2 = strRatio; + g_pcstrMenuLine3 = ""; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = ""; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 2; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1044,14 +1048,14 @@ void PrepareScreenItems(void) case 0xED9: //3801 //0x2adf8 - Data_40003360 = strBackBoard; - Data_40003364 = strAccessory; - Data_40003368 = ""; - Data_4000336c = ""; - Data_40003370 = ""; - Data_40003374 = ""; - Data_40003378 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = strBackBoard; + g_pcstrMenuLine2 = strAccessory; + g_pcstrMenuLine3 = ""; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = ""; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 1; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1060,14 +1064,14 @@ void PrepareScreenItems(void) case 0xEDA: //3802 //0x2ae7c - Data_40003360 = strBackBoard; - Data_40003364 = strAccessory; - Data_40003368 = ""; - Data_4000336c = ""; - Data_40003370 = ""; - Data_40003374 = ""; - Data_40003378 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = strBackBoard; + g_pcstrMenuLine2 = strAccessory; + g_pcstrMenuLine3 = ""; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = ""; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 2; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1076,14 +1080,14 @@ void PrepareScreenItems(void) case MENU_CONTEXT_COUNTRY_CITY: //4301: //0x2af04: Country & City - Data_40003360 = strCountryAndCity; - Data_40003368 = strCustomSite; - Data_40003364 = ""; - Data_4000336c = ""; - Data_40003370 = ""; - Data_40003374 = ""; - Data_40003378 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = strCountryAndCity; + g_pcstrMenuLine3 = strCustomSite; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = ""; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 1; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1092,14 +1096,14 @@ void PrepareScreenItems(void) case MENU_CONTEXT_CUSTOM_SITE: //4302: //0x2af88: Custom Site - Data_40003360 = strCountryAndCity; - Data_40003368 = strCustomSite; - Data_40003364 = ""; - Data_4000336c = ""; - Data_40003370 = ""; - Data_40003374 = ""; - Data_40003378 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = strCountryAndCity; + g_pcstrMenuLine3 = strCustomSite; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = ""; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 3; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1108,14 +1112,14 @@ void PrepareScreenItems(void) case 0xA80D: //43021 //0x2b010 - Data_40003360 = Data_40003068; - Data_40003368 = Data_4000306c; - Data_40003370 = Data_40003070; - Data_40003378 = Data_40003074; - Data_40003364 = ""; - Data_4000336c = ""; - Data_40003374 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = Data_40003068; + g_pcstrMenuLine3 = Data_4000306c; + g_pcstrMenuLine5 = Data_40003070; + g_pcstrMenuLine7 = Data_40003074; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 1; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1124,14 +1128,14 @@ void PrepareScreenItems(void) case 0xA80E: //43022 //0x2b09c - Data_40003360 = Data_40003068; - Data_40003368 = Data_4000306c; - Data_40003370 = Data_40003070; - Data_40003378 = Data_40003074; - Data_40003364 = ""; - Data_4000336c = ""; - Data_40003374 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = Data_40003068; + g_pcstrMenuLine3 = Data_4000306c; + g_pcstrMenuLine5 = Data_40003070; + g_pcstrMenuLine7 = Data_40003074; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 3; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1140,14 +1144,14 @@ void PrepareScreenItems(void) case 0xA80F: //43023 //0x2b184 - Data_40003360 = Data_40003068; - Data_40003368 = Data_4000306c; - Data_40003370 = Data_40003070; - Data_40003378 = Data_40003074; - Data_40003364 = ""; - Data_4000336c = ""; - Data_40003374 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = Data_40003068; + g_pcstrMenuLine3 = Data_4000306c; + g_pcstrMenuLine5 = Data_40003070; + g_pcstrMenuLine7 = Data_40003074; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 5; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1156,14 +1160,14 @@ void PrepareScreenItems(void) case 0xA810: //43024 //0x2b214 - Data_40003360 = Data_40003068; - Data_40003368 = Data_4000306c; - Data_40003370 = Data_40003070; - Data_40003378 = Data_40003074; - Data_40003364 = ""; - Data_4000336c = ""; - Data_40003374 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = Data_40003068; + g_pcstrMenuLine3 = Data_4000306c; + g_pcstrMenuLine5 = Data_40003070; + g_pcstrMenuLine7 = Data_40003074; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 7; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1172,14 +1176,14 @@ void PrepareScreenItems(void) case MENU_CONTEXT_TRACKING_RATE_STAR_SPEED: //4801: //0x2b2a4 - Data_40003360 = strStarSpeed; - Data_40003364 = strSolarSpeed; - Data_40003368 = strMoonSpeed; - Data_4000336c = Data_40003094; // "Customize Speed" - Data_40003370 = ""; - Data_40003374 = ""; - Data_40003378 = Data_40003098; // "Guiding Speed" - Data_4000337c = ""; + g_pcstrMenuLine1 = strStarSpeed; + g_pcstrMenuLine2 = strSolarSpeed; + g_pcstrMenuLine3 = strMoonSpeed; + g_pcstrMenuLine4 = Data_40003094; // "Customize Speed" + g_pcstrMenuLine5 = ""; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = Data_40003098; // "Guiding Speed" + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 1; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1188,14 +1192,14 @@ void PrepareScreenItems(void) case MENU_CONTEXT_TRACKING_RATE_SOLAR_SPEED: //4802: //0x2b334 - Data_40003360 = strStarSpeed; - Data_40003364 = strSolarSpeed; - Data_40003368 = strMoonSpeed; - Data_4000336c = Data_40003094; - Data_40003370 = ""; - Data_40003374 = ""; - Data_40003378 = Data_40003098; - Data_4000337c = ""; + g_pcstrMenuLine1 = strStarSpeed; + g_pcstrMenuLine2 = strSolarSpeed; + g_pcstrMenuLine3 = strMoonSpeed; + g_pcstrMenuLine4 = Data_40003094; + g_pcstrMenuLine5 = ""; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = Data_40003098; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 2; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1204,14 +1208,14 @@ void PrepareScreenItems(void) case MENU_CONTEXT_TRACKING_RATE_MOON_SPEED: //4803 //0x2b3c8 - Data_40003360 = strStarSpeed; - Data_40003364 = strSolarSpeed; - Data_40003368 = strMoonSpeed; - Data_4000336c = Data_40003094; - Data_40003370 = ""; - Data_40003374 = ""; - Data_40003378 = Data_40003098; - Data_4000337c = ""; + g_pcstrMenuLine1 = strStarSpeed; + g_pcstrMenuLine2 = strSolarSpeed; + g_pcstrMenuLine3 = strMoonSpeed; + g_pcstrMenuLine4 = Data_40003094; + g_pcstrMenuLine5 = ""; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = Data_40003098; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 3; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1220,14 +1224,14 @@ void PrepareScreenItems(void) case MENU_CONTEXT_TRACKING_RATE_CUSTOM_SPEED: //4804 //0x2b45c - Data_40003360 = strStarSpeed; - Data_40003364 = strSolarSpeed; - Data_40003368 = strMoonSpeed; - Data_4000336c = Data_40003094; - Data_40003370 = ""; - Data_40003374 = ""; - Data_40003378 = Data_40003098; - Data_4000337c = ""; + g_pcstrMenuLine1 = strStarSpeed; + g_pcstrMenuLine2 = strSolarSpeed; + g_pcstrMenuLine3 = strMoonSpeed; + g_pcstrMenuLine4 = Data_40003094; + g_pcstrMenuLine5 = ""; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = Data_40003098; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 4; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1236,14 +1240,14 @@ void PrepareScreenItems(void) case MENU_CONTEXT_TRACKING_RATE_GUIDING_SPEED: //4805 //0x2b4f0 - Data_40003360 = strStarSpeed; - Data_40003364 = strSolarSpeed; - Data_40003368 = strMoonSpeed; - Data_4000336c = Data_40003094; - Data_40003370 = ""; - Data_40003374 = ""; - Data_40003378 = Data_40003098; - Data_4000337c = ""; + g_pcstrMenuLine1 = strStarSpeed; + g_pcstrMenuLine2 = strSolarSpeed; + g_pcstrMenuLine3 = strMoonSpeed; + g_pcstrMenuLine4 = Data_40003094; + g_pcstrMenuLine5 = ""; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = Data_40003098; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 7; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1252,14 +1256,14 @@ void PrepareScreenItems(void) case MENU_CONTEXT_GUIDING_SPEED1: //48051 //0x2b584: Setup -> Tracking Rate -> Guiding Speed - Data_40003360 = "speed1: x 0.125"; - Data_40003364 = "speed2: x 0.250"; - Data_40003368 = "speed3: x 0.375"; - Data_4000336c = "speed4: x 0.500"; - Data_40003370 = "speed5: x 0.625"; - Data_40003374 = "speed6: x 0.750"; - Data_40003378 = "speed7: x 0.875"; - Data_4000337c = "speed8: x 1.000"; + g_pcstrMenuLine1 = "speed1: x 0.125"; + g_pcstrMenuLine2 = "speed2: x 0.250"; + g_pcstrMenuLine3 = "speed3: x 0.375"; + g_pcstrMenuLine4 = "speed4: x 0.500"; + g_pcstrMenuLine5 = "speed5: x 0.625"; + g_pcstrMenuLine6 = "speed6: x 0.750"; + g_pcstrMenuLine7 = "speed7: x 0.875"; + g_pcstrMenuLine8 = "speed8: x 1.000"; bData_4000316e_FocusLineOn8LineDisplay = 1; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1313,43 +1317,43 @@ void PrepareScreenItems(void) numVisibleAlignmentStars = GetCurrentAlignStars(get_local_sidereal_time(1, 0, Data_40004128.geographicLongitude), Data_40004128.geographicLatitude, Data_40004a68_CurrentAlignStarEquatorialCoord, arAlignmentStarNames, Data_40003b2c); - sprintf(Data_40003ffd, "R.a: %02dh%02dm ", + sprintf(g_MenuStringBuffer5, "R.a: %02dh%02dm ", (int) Data_40004a68_CurrentAlignStarEquatorialCoord[(bData_40002c60_CurrentAlignStarIndex - 1)*2], (int) ((Data_40004a68_CurrentAlignStarEquatorialCoord[(bData_40002c60_CurrentAlignStarIndex - 1)*2] - (int) Data_40004a68_CurrentAlignStarEquatorialCoord[(bData_40002c60_CurrentAlignStarIndex - 1)*2]) * 60)); if ((int) Data_40004a68_CurrentAlignStarEquatorialCoord[(bData_40002c60_CurrentAlignStarIndex - 1)*2] < 10) { - Data_40003ffd[5] = ' '; + g_MenuStringBuffer5[5] = ' '; } if ((int) ((Data_40004a68_CurrentAlignStarEquatorialCoord[(bData_40002c60_CurrentAlignStarIndex - 1)*2] - (int) Data_40004a68_CurrentAlignStarEquatorialCoord[(bData_40002c60_CurrentAlignStarIndex - 1)*2]) * 60) < 10) { - Data_40003ffd[8] = ' '; + g_MenuStringBuffer5[8] = ' '; } if (Data_40004a68_CurrentAlignStarEquatorialCoord[2*(bData_40002c60_CurrentAlignStarIndex - 1) + 1] < 0) { //2b848 - sprintf(Data_40004012, "Dec:-%02d %02d ", + sprintf(g_MenuStringBuffer6, "Dec:-%02d %02d ", abs((int) Data_40004a68_CurrentAlignStarEquatorialCoord[2*(bData_40002c60_CurrentAlignStarIndex - 1) + 1]), abs((int) ((Data_40004a68_CurrentAlignStarEquatorialCoord[2*(bData_40002c60_CurrentAlignStarIndex - 1) + 1] - (int) Data_40004a68_CurrentAlignStarEquatorialCoord[2*(bData_40002c60_CurrentAlignStarIndex - 1) + 1]) * 60))); } else { //0x2ba08 - sprintf(Data_40004012, "Dec:+%02d %02d ", + sprintf(g_MenuStringBuffer6, "Dec:+%02d %02d ", (int) Data_40004a68_CurrentAlignStarEquatorialCoord[2*(bData_40002c60_CurrentAlignStarIndex - 1) + 1], abs((int) ((Data_40004a68_CurrentAlignStarEquatorialCoord[2*(bData_40002c60_CurrentAlignStarIndex - 1) + 1] - (int) Data_40004a68_CurrentAlignStarEquatorialCoord[2*(bData_40002c60_CurrentAlignStarIndex - 1) + 1]) * 60))); } if ((int) Data_40004a68_CurrentAlignStarEquatorialCoord[2*(bData_40002c60_CurrentAlignStarIndex - 1) + 1] < 10) { - Data_40004012[5] = ' '; + g_MenuStringBuffer6[5] = ' '; } if ((int) (((Data_40004a68_CurrentAlignStarEquatorialCoord[2*(bData_40002c60_CurrentAlignStarIndex - 1) + 1] - (int) Data_40004a68_CurrentAlignStarEquatorialCoord[2*(bData_40002c60_CurrentAlignStarIndex - 1) /*+ 1*/])+1) * 60) < 10) //BUG! { - Data_40004012[8] = ' '; + g_MenuStringBuffer6[8] = ' '; } //2bb70 if (bData_40002c62_AlignmentStarMode != 0) @@ -1394,32 +1398,32 @@ void PrepareScreenItems(void) case 0: //0x2bedc - sprintf(Data_40003ffd, "Azi:%03d %02d ", + sprintf(g_MenuStringBuffer5, "Azi:%03d %02d ", abs(Data_40002dac), abs(Data_40002db0)); if (abs(Data_40002dac) < 100) { - Data_40003ffd[4] = ' '; + g_MenuStringBuffer5[4] = ' '; } if (abs(Data_40002dac) < 10) { - Data_40003ffd[5] = ' '; + g_MenuStringBuffer5[5] = ' '; } if (abs(Data_40002db0) < 10) { - Data_40003ffd[8] = ' '; + g_MenuStringBuffer5[8] = ' '; } - sprintf(Data_40004012, "Alt: %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt: %02d %02d ", abs(Data_40002de0), abs(Data_40002de4)); if (abs(Data_40002de0) < 10) { - Data_40004012[5] = ' '; + g_MenuStringBuffer6[5] = ' '; } if (abs(Data_40002de4) < 10) { - Data_40004012[8] = ' '; + g_MenuStringBuffer6[8] = ' '; } break; @@ -1438,56 +1442,56 @@ void PrepareScreenItems(void) convert_equatorial_to_horizontal(Data_40004ad8, Data_40004ae8, Data_40004128.Data_40, Data_40004128.bData_44, &Data_40004b08); - sprintf(Data_40004027, "Azi:%03d %02d ", + sprintf(g_MenuStringBuffer7, "Azi:%03d %02d ", (int)Data_40004b08.dAzimuth, (int)((Data_40004b08.dAzimuth - (int) Data_40004b08.dAzimuth) * 60)); - sprintf(Data_4000403c, "Alt:+%02d %02d ", + sprintf(g_MenuStringBuffer8, "Alt:+%02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int) Data_40004b08.dAltitude) * 60))); if (bTrackingMode == 1) { //2c2cc - sprintf(Data_40004027, "Azi:%03d %02d ", + sprintf(g_MenuStringBuffer7, "Azi:%03d %02d ", (int)Data_40004b08.dAzimuth, (int)((Data_40004b08.dAzimuth - (int) Data_40004b08.dAzimuth) * 60)); - sprintf(Data_4000403c, "Alt:+%02d %02d ", + sprintf(g_MenuStringBuffer8, "Alt:+%02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int) Data_40004b08.dAltitude) * 60))); } //0x2c3fc if ((int)Data_40004b08.dAzimuth < 100) { - Data_40004027[4] = ' '; + g_MenuStringBuffer7[4] = ' '; } if ((int)Data_40004b08.dAzimuth < 10) { - Data_40004027[5] = ' '; + g_MenuStringBuffer7[5] = ' '; } if ((int)((Data_40004b08.dAzimuth - (int) Data_40004b08.dAzimuth) * 60) < 10) { - Data_40004027[8] = ' '; + g_MenuStringBuffer7[8] = ' '; } if (abs((int)Data_40004b08.dAltitude) < 10) { - Data_4000403c[5] = ' '; + g_MenuStringBuffer8[5] = ' '; } if (abs((int)((Data_40004b08.dAltitude - (int) Data_40004b08.dAltitude) * 60)) < 10) { - Data_4000403c[8] = ' '; + g_MenuStringBuffer8[8] = ' '; } - Data_40003360 = strListAlignStars; //"List align stars:" - Data_40003364 = " "; - Data_40003368 = arAlignmentStarNames[bData_40002c60_CurrentAlignStarIndex - 1]; - Data_4000336c = " "; - Data_40003370 = Data_40004027; //"OBJ: Azi:..."??? - Data_40003374 = Data_4000403c; - Data_40003378 = Data_40003ffd; - Data_4000337c = Data_40004012; + g_pcstrMenuLine1 = strListAlignStars; //"List align stars:" + g_pcstrMenuLine2 = " "; + g_pcstrMenuLine3 = arAlignmentStarNames[bData_40002c60_CurrentAlignStarIndex - 1]; + g_pcstrMenuLine4 = " "; + g_pcstrMenuLine5 = g_MenuStringBuffer7; //"OBJ: Azi:..."??? + g_pcstrMenuLine6 = g_MenuStringBuffer8; + g_pcstrMenuLine7 = g_MenuStringBuffer5; + g_pcstrMenuLine8 = g_MenuStringBuffer6; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1498,14 +1502,14 @@ void PrepareScreenItems(void) //0x2c658 beep1(1); - Data_40003360 = "Star move meridian"; - Data_40003364 = "and telestope stop or"; - Data_40003368 = "reverse after 10 mins"; - Data_4000336c = ""; - Data_40003370 = "ENTER: Reverse"; - Data_40003374 = ""; - Data_40003378 = "CANCEL: Stop"; - Data_4000337c = ""; + g_pcstrMenuLine1 = "Star move meridian"; + g_pcstrMenuLine2 = "and telestope stop or"; + g_pcstrMenuLine3 = "reverse after 10 mins"; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = "ENTER: Reverse"; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = "CANCEL: Stop"; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1514,14 +1518,14 @@ void PrepareScreenItems(void) case MENU_CONTEXT_SYNC_OPEN: //1401: //0x2c6e0 - Data_40003360 = ""; - Data_40003364 = "Targers Sync. Open?"; - Data_40003368 = ""; - Data_4000336c = ""; - Data_40003370 = " ENTER:Yes"; - Data_40003374 = ""; - Data_40003378 = " CANCEL:No"; - Data_4000337c = ""; + g_pcstrMenuLine1 = ""; + g_pcstrMenuLine2 = "Targers Sync. Open?"; + g_pcstrMenuLine3 = ""; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = " ENTER:Yes"; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = " CANCEL:No"; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1530,14 +1534,14 @@ void PrepareScreenItems(void) case MENU_CONTEXT_SYNC_ENSURE: //1402: //0x2c760 - Data_40003360 = "Targers Sync. ensure!"; - Data_40003364 = ""; - Data_40003368 = "Targers Sync. cancel!"; - Data_4000336c = ""; - Data_40003370 = ""; - Data_40003374 = ""; - Data_40003378 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = "Targers Sync. ensure!"; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = "Targers Sync. cancel!"; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = ""; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 1; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1546,14 +1550,14 @@ void PrepareScreenItems(void) case MENU_CONTEXT_SYNC_CANCEL: //1403 //0x2c7dc - Data_40003360 = "Targers Sync. ensure!"; - Data_40003364 = ""; - Data_40003368 = "Targers Sync. cancel!"; - Data_4000336c = ""; - Data_40003370 = ""; - Data_40003374 = ""; - Data_40003378 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = "Targers Sync. ensure!"; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = "Targers Sync. cancel!"; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = ""; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 3; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1562,38 +1566,38 @@ void PrepareScreenItems(void) case MENU_CONTEXT_POLE_AXIS_DEV_INPUT: //18001: //0x2c85c - Data_40003360 = "Pole Axis Dev: "; - Data_40003364 = ""; + g_pcstrMenuLine1 = "Pole Axis Dev: "; + g_pcstrMenuLine2 = ""; if (g_dPoleAxisDevEastWest > 0) { //2c890 - sprintf(Data_40003fa9, "ToE:%.5f\011Degree", fabs(g_dPoleAxisDevEastWest)); + sprintf(g_MenuStringBuffer1, "ToE:%.5f\011Degree", fabs(g_dPoleAxisDevEastWest)); } else { //0x2c8bc - sprintf(Data_40003fa9, "ToW:%.5f\011Degree", fabs(g_dPoleAxisDevEastWest)); + sprintf(g_MenuStringBuffer1, "ToW:%.5f\011Degree", fabs(g_dPoleAxisDevEastWest)); } //0x2c8e4 - Data_40003368 = Data_40003fa9; + g_pcstrMenuLine3 = g_MenuStringBuffer1; if (g_dPoleAxisDevNorthSouth > 0) { //2c908 - sprintf(Data_40003fbe, "ToN:%.5f\011Degree", fabs(g_dPoleAxisDevNorthSouth)); + sprintf(g_MenuStringBuffer2, "ToN:%.5f\011Degree", fabs(g_dPoleAxisDevNorthSouth)); } else { //0x2ca50 - sprintf(Data_40003fbe, "ToS:%.5f\011Degree", fabs(g_dPoleAxisDevNorthSouth)); + sprintf(g_MenuStringBuffer2, "ToS:%.5f\011Degree", fabs(g_dPoleAxisDevNorthSouth)); } //0x2ca78 - Data_4000336c = ""; - Data_40003370 = Data_40003fbe; - Data_40003374 = ""; - Data_40003378 = ""; - Data_4000337c = ""; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = g_MenuStringBuffer2; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1602,14 +1606,14 @@ void PrepareScreenItems(void) case MENU_CONTEXT_RA_BKBLASH_CORR_1ST_STEP_AIM_TARGET: //11102: //0x2cad0: RA Bklash Corr. - 1st page - Data_40003360 = " "; - Data_40003364 = strPleaseAimAtThe; - Data_40003368 = " "; - Data_4000336c = strTelescopeToDistant; - Data_40003370 = " "; - Data_40003374 = strTargetThenPress; - Data_40003378 = " "; - Data_4000337c = strEnterKey; + g_pcstrMenuLine1 = " "; + g_pcstrMenuLine2 = strPleaseAimAtThe; + g_pcstrMenuLine3 = " "; + g_pcstrMenuLine4 = strTelescopeToDistant; + g_pcstrMenuLine5 = " "; + g_pcstrMenuLine6 = strTargetThenPress; + g_pcstrMenuLine7 = " "; + g_pcstrMenuLine8 = strEnterKey; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1618,14 +1622,14 @@ void PrepareScreenItems(void) case MENU_CONTEXT_RA_BKBLASH_CORR_2ND_STEP_START_LEFT_RIGHT: //11101: //0x2cb60: RA Bklash Corr. - 2nd page - Data_40003360 = " "; - Data_40003364 = Data_400030dc; // "Press RIGHT or LEFT" - Data_40003368 = " "; - Data_4000336c = Data_400030e0; // "key to start Ra(Azi)" - Data_40003370 = " "; - Data_40003374 = Data_400030e4; // "backlash align,press" - Data_40003378 = " "; - Data_4000337c = Data_400030e8; // "ENTER key to finish!" + g_pcstrMenuLine1 = " "; + g_pcstrMenuLine2 = Data_400030dc; // "Press RIGHT or LEFT" + g_pcstrMenuLine3 = " "; + g_pcstrMenuLine4 = Data_400030e0; // "key to start Ra(Azi)" + g_pcstrMenuLine5 = " "; + g_pcstrMenuLine6 = Data_400030e4; // "backlash align,press" + g_pcstrMenuLine7 = " "; + g_pcstrMenuLine8 = Data_400030e8; // "ENTER key to finish!" bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1634,14 +1638,14 @@ void PrepareScreenItems(void) case MENU_CONTEXT_RA_BKBLASH_CORR_3RD_STEP_MOVING_LEFT_RIGHT: //11103 //0x2cbf0 - Data_40003360 = " "; - Data_40003364 = Data_400030ec; //"Slewing....." - Data_40003368 = " "; - Data_4000336c = Data_400030f0; //"After beep, turn tele" - Data_40003370 = " "; - Data_40003374 = Data_400030f4; //"-cope back to target" - Data_40003378 = " "; - Data_4000337c = Data_400030f8; //"then press,ENTER!" + g_pcstrMenuLine1 = " "; + g_pcstrMenuLine2 = Data_400030ec; //"Slewing....." + g_pcstrMenuLine3 = " "; + g_pcstrMenuLine4 = Data_400030f0; //"After beep, turn tele" + g_pcstrMenuLine5 = " "; + g_pcstrMenuLine6 = Data_400030f4; //"-cope back to target" + g_pcstrMenuLine7 = " "; + g_pcstrMenuLine8 = Data_400030f8; //"then press,ENTER!" bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1650,26 +1654,26 @@ void PrepareScreenItems(void) case MENU_CONTEXT_RA_BKBLASH_CORR_RESULT: //11104 //0x2cc80 - sprintf(Data_40003fa9, "%.1f", fData_40002e90); + sprintf(g_MenuStringBuffer1, "%.1f", fData_40002e90); - Data_40003360 = " "; - Data_40003364 = " "; + g_pcstrMenuLine1 = " "; + g_pcstrMenuLine2 = " "; if (bRaBacklashCorrectionDirection == 2) { - Data_40003368 = Data_400030fc; + g_pcstrMenuLine3 = Data_400030fc; } //0x2cce4 if (bRaBacklashCorrectionDirection == 1) { - Data_40003368 = Data_40003100; + g_pcstrMenuLine3 = Data_40003100; } //0x2cd04 - Data_4000336c = " "; - Data_40003370 = Data_40003fa9; - Data_40003374 = " "; - Data_40003378 = Data_40003104; //" arcsecond" - Data_4000337c = " "; + g_pcstrMenuLine4 = " "; + g_pcstrMenuLine5 = g_MenuStringBuffer1; + g_pcstrMenuLine6 = " "; + g_pcstrMenuLine7 = Data_40003104; //" arcsecond" + g_pcstrMenuLine8 = " "; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1678,16 +1682,16 @@ void PrepareScreenItems(void) case 11105: //0x2cdc0 - sprintf(Data_40003fa9, "%.1f", fData_40002e98); + sprintf(g_MenuStringBuffer1, "%.1f", fData_40002e98); - Data_40003360 = " "; - Data_40003364 = " "; - Data_40003368 = Data_40003108; //"The mean backlash is:" - Data_4000336c = " "; - Data_40003370 = Data_40003fa9; - Data_40003374 = " "; - Data_40003378 = Data_40003104; //" arcsecond" - Data_4000337c = " "; + g_pcstrMenuLine1 = " "; + g_pcstrMenuLine2 = " "; + g_pcstrMenuLine3 = Data_40003108; //"The mean backlash is:" + g_pcstrMenuLine4 = " "; + g_pcstrMenuLine5 = g_MenuStringBuffer1; + g_pcstrMenuLine6 = " "; + g_pcstrMenuLine7 = Data_40003104; //" arcsecond" + g_pcstrMenuLine8 = " "; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1696,14 +1700,14 @@ void PrepareScreenItems(void) case MENU_CONTEXT_DEC_BKBLASH_CORR_1ST_STEP_AIM_TARGET: //11202: //0x2ce70 - Data_40003360 = " "; - Data_40003364 = strPleaseAimAtThe; - Data_40003368 = " "; - Data_4000336c = strTelescopeToDistant; - Data_40003370 = " "; - Data_40003374 = strTargetThenPress; - Data_40003378 = " "; - Data_4000337c = strEnterKey; + g_pcstrMenuLine1 = " "; + g_pcstrMenuLine2 = strPleaseAimAtThe; + g_pcstrMenuLine3 = " "; + g_pcstrMenuLine4 = strTelescopeToDistant; + g_pcstrMenuLine5 = " "; + g_pcstrMenuLine6 = strTargetThenPress; + g_pcstrMenuLine7 = " "; + g_pcstrMenuLine8 = strEnterKey; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1712,14 +1716,14 @@ void PrepareScreenItems(void) case MENU_CONTEXT_DEC_BKBLASH_CORR_2ND_STEP_START_UP_DOWN: //11201: //0x2cf00 - Data_40003360 = " "; - Data_40003364 = Data_4000310c; // "press UP or DOWN" - Data_40003368 = " "; - Data_4000336c = Data_40003110; // "key to start Dec(Alt)" - Data_40003370 = " "; - Data_40003374 = Data_400030e4; // "backlash align,press" - Data_40003378 = " "; - Data_4000337c = Data_400030e8; // "ENTER key to finish!" + g_pcstrMenuLine1 = " "; + g_pcstrMenuLine2 = Data_4000310c; // "press UP or DOWN" + g_pcstrMenuLine3 = " "; + g_pcstrMenuLine4 = Data_40003110; // "key to start Dec(Alt)" + g_pcstrMenuLine5 = " "; + g_pcstrMenuLine6 = Data_400030e4; // "backlash align,press" + g_pcstrMenuLine7 = " "; + g_pcstrMenuLine8 = Data_400030e8; // "ENTER key to finish!" bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1728,14 +1732,14 @@ void PrepareScreenItems(void) case MENU_CONTEXT_DEC_BKBLASH_CORR_2ND_STEP_MOVING_UP_DOWN: //11203 //0x2cf90 - Data_40003360 = " "; - Data_40003364 = Data_400030ec; - Data_40003368 = " "; - Data_4000336c = Data_400030f0; - Data_40003370 = " "; - Data_40003374 = Data_400030f4; - Data_40003378 = " "; - Data_4000337c = Data_400030f8; + g_pcstrMenuLine1 = " "; + g_pcstrMenuLine2 = Data_400030ec; + g_pcstrMenuLine3 = " "; + g_pcstrMenuLine4 = Data_400030f0; + g_pcstrMenuLine5 = " "; + g_pcstrMenuLine6 = Data_400030f4; + g_pcstrMenuLine7 = " "; + g_pcstrMenuLine8 = Data_400030f8; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1744,26 +1748,26 @@ void PrepareScreenItems(void) case MENU_CONTEXT_DEC_BKBLASH_CORR_RESULT: //11204 //0x2d020 - sprintf(Data_40003fa9, "%.1f", fData_40002ea0); + sprintf(g_MenuStringBuffer1, "%.1f", fData_40002ea0); - Data_40003360 = " "; - Data_40003364 = " "; + g_pcstrMenuLine1 = " "; + g_pcstrMenuLine2 = " "; if (bDecBacklashCorrectionDirection == 2) { - Data_40003368 = Data_400030fc; + g_pcstrMenuLine3 = Data_400030fc; } //0x2d084 if (bDecBacklashCorrectionDirection == 1) { - Data_40003368 = Data_40003100; + g_pcstrMenuLine3 = Data_40003100; } //0x2d0a4 - Data_4000336c = " "; - Data_40003370 = Data_40003fa9; - Data_40003374 = " "; - Data_40003378 = Data_40003104; - Data_4000337c = " "; + g_pcstrMenuLine4 = " "; + g_pcstrMenuLine5 = g_MenuStringBuffer1; + g_pcstrMenuLine6 = " "; + g_pcstrMenuLine7 = Data_40003104; + g_pcstrMenuLine8 = " "; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1772,16 +1776,16 @@ void PrepareScreenItems(void) case 0x2BC5: //11205 //0x2d100 - sprintf(Data_40003fa9, "%.1f", fData_40002ea8); + sprintf(g_MenuStringBuffer1, "%.1f", fData_40002ea8); - Data_40003360 = " "; - Data_40003364 = " "; - Data_40003368 = Data_40003108; //"The mean backlash is:" - Data_4000336c = " "; - Data_40003370 = Data_40003fa9; - Data_40003374 = " "; - Data_40003378 = Data_40003104; //" arcsecond" - Data_4000337c = " "; + g_pcstrMenuLine1 = " "; + g_pcstrMenuLine2 = " "; + g_pcstrMenuLine3 = Data_40003108; //"The mean backlash is:" + g_pcstrMenuLine4 = " "; + g_pcstrMenuLine5 = g_MenuStringBuffer1; + g_pcstrMenuLine6 = " "; + g_pcstrMenuLine7 = Data_40003104; //" arcsecond" + g_pcstrMenuLine8 = " "; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1793,10 +1797,10 @@ void PrepareScreenItems(void) get_solar_system_object_data(bData_40002eb5_SolarSystemObjectNr, &fData_40002cd0_ObjectRightAscension, &fData_40002d18_ObjectDeclination); - Data_40003360 = Data_4000314c_SolarSystemObjectName; - Data_40003364 = " "; - Data_40003368 = " "; - Data_4000336c = " "; + g_pcstrMenuLine1 = Data_4000314c_SolarSystemObjectName; + g_pcstrMenuLine2 = " "; + g_pcstrMenuLine3 = " "; + g_pcstrMenuLine4 = " "; Data_40004ad8.dLongitude = Data_40004128.geographicLongitude; Data_40004ad8.dLatitude = Data_40004128.geographicLatitude; @@ -1807,7 +1811,7 @@ void PrepareScreenItems(void) convert_equatorial_to_horizontal(Data_40004ad8, Data_40004ae8, Data_40004128.Data_40, Data_40004128.bData_44, &Data_40004b08); - sprintf(Data_40003ffd, "OBJ Azi:%03d %02d %02d ", + sprintf(g_MenuStringBuffer5, "OBJ Azi:%03d %02d %02d ", (int) Data_40004b08.dAzimuth, (int)((Data_40004b08.dAzimuth - (int) Data_40004b08.dAzimuth) * 60), ((int) (Data_40004b08.dAzimuth * 3600)) % 60); @@ -1815,7 +1819,7 @@ void PrepareScreenItems(void) if (Data_40004b08.dAltitude >= 0) { //2d35c - sprintf(Data_40004012, "Alt:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:+%02d %02d %02d ", abs((int) Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int) Data_40004b08.dAltitude) * 60)), abs(((int) (Data_40004b08.dAltitude * 3600)) % 60)); @@ -1823,7 +1827,7 @@ void PrepareScreenItems(void) else { //0x2d458 - sprintf(Data_40004012, "Alt:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:-%02d %02d %02d ", abs((int) Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int) Data_40004b08.dAltitude) * 60)), abs(((int) (Data_40004b08.dAltitude * 3600)) % 60)); @@ -1831,61 +1835,61 @@ void PrepareScreenItems(void) //0x2d550 if ((int) Data_40004b08.dAzimuth < 100) { - Data_40003ffd[11] = ' '; + g_MenuStringBuffer5[11] = ' '; } if ((int) Data_40004b08.dAzimuth < 10) { - Data_40003ffd[12] = ' '; + g_MenuStringBuffer5[12] = ' '; } if ((int)((Data_40004b08.dAzimuth - (int) Data_40004b08.dAzimuth) * 60) < 10) { - Data_40003ffd[15] = ' '; + g_MenuStringBuffer5[15] = ' '; } if ((((int) (Data_40004b08.dAzimuth * 3600)) % 60) < 10) { - Data_40003ffd[18] = ' '; + g_MenuStringBuffer5[18] = ' '; } if (abs((int) Data_40004b08.dAltitude) < 10) { - Data_40004012[5] = ' '; + g_MenuStringBuffer6[5] = ' '; } if (abs((int)((Data_40004b08.dAltitude - (int) Data_40004b08.dAltitude) * 60)) < 10) { - Data_40004012[8] = ' '; + g_MenuStringBuffer6[8] = ' '; } if (abs(((int) (Data_40004b08.dAltitude * 3600)) % 60) < 10) { - Data_40004012[11] = ' '; + g_MenuStringBuffer6[11] = ' '; } //0x2d758 - Data_40003370 = Data_40003ffd; - Data_40003374 = Data_40004012; + g_pcstrMenuLine5 = g_MenuStringBuffer5; + g_pcstrMenuLine6 = g_MenuStringBuffer6; //2d770 - sprintf(Data_40004027, "R.a: %02dh%02dm%02ds ", + sprintf(g_MenuStringBuffer7, "R.a: %02dh%02dm%02ds ", (int) fData_40002cd0_ObjectRightAscension, (int) ((fData_40002cd0_ObjectRightAscension - (int) fData_40002cd0_ObjectRightAscension) * 60), (int) (fData_40002cd0_ObjectRightAscension * 3600) % 60); if ((int) fData_40002cd0_ObjectRightAscension < 10) { - Data_40004027[5] = ' '; + g_MenuStringBuffer7[5] = ' '; } if ((int) ((fData_40002cd0_ObjectRightAscension - (int) fData_40002cd0_ObjectRightAscension) * 60) < 10) { - Data_40004027[8] = ' '; + g_MenuStringBuffer7[8] = ' '; } if (((int) (fData_40002cd0_ObjectRightAscension * 3600) % 60) < 10) { - Data_40004027[11] = ' '; + g_MenuStringBuffer7[11] = ' '; } //2d8a8 - Data_40003378 = Data_40004027; + g_pcstrMenuLine7 = g_MenuStringBuffer7; if (fData_40002d18_ObjectDeclination >= 0) { //2d8c8 - sprintf(Data_4000403c, "Dec:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Dec:+%02d %02d %02d ", abs((int) fData_40002d18_ObjectDeclination), abs((int) ((fData_40002d18_ObjectDeclination - (int) fData_40002d18_ObjectDeclination) * 60)), abs((int) (fData_40002d18_ObjectDeclination * 3600) % 60)); @@ -1893,7 +1897,7 @@ void PrepareScreenItems(void) else { //0x2d998 - sprintf(Data_4000403c, "Dec:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Dec:-%02d %02d %02d ", abs((int) fData_40002d18_ObjectDeclination), abs((int) ((fData_40002d18_ObjectDeclination - (int) fData_40002d18_ObjectDeclination) * 60)), abs((int) (fData_40002d18_ObjectDeclination * 3600) % 60)); @@ -1901,18 +1905,18 @@ void PrepareScreenItems(void) //0x2da64 if (abs((int) fData_40002d18_ObjectDeclination) < 10) { - Data_4000403c[5] = ' '; + g_MenuStringBuffer8[5] = ' '; } if (abs((int) ((fData_40002d18_ObjectDeclination - (int) fData_40002d18_ObjectDeclination) * 60)) < 10) { - Data_4000403c[8] = ' '; + g_MenuStringBuffer8[8] = ' '; } if (abs(((int) (fData_40002d18_ObjectDeclination * 3600) % 60)) < 10) { - Data_4000403c[11] = ' '; + g_MenuStringBuffer8[11] = ' '; } //0x2db48 - Data_4000337c = Data_4000403c; + g_pcstrMenuLine8 = g_MenuStringBuffer8; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1921,14 +1925,14 @@ void PrepareScreenItems(void) case MENU_CONTEXT_SUN_WARNING: //22112: //0x2db70: Sun Warning screen - Data_40003360 = " "; - Data_40003364 = " DO NOT POINT "; - Data_40003368 = "the telescope or its "; - Data_4000336c = "viewfinder at or near"; - Data_40003370 = "the Sun!!! "; - Data_40003374 = " "; - Data_40003378 = "ENTER:continue "; - Data_4000337c = " -:return "; + g_pcstrMenuLine1 = " "; + g_pcstrMenuLine2 = " DO NOT POINT "; + g_pcstrMenuLine3 = "the telescope or its "; + g_pcstrMenuLine4 = "viewfinder at or near"; + g_pcstrMenuLine5 = "the Sun!!! "; + g_pcstrMenuLine6 = " "; + g_pcstrMenuLine7 = "ENTER:continue "; + g_pcstrMenuLine8 = " -:return "; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -1949,7 +1953,7 @@ void PrepareScreenItems(void) convert_equatorial_to_horizontal(Data_40004ad8, Data_40004ae8, Data_40004128.Data_40, Data_40004128.bData_44, &Data_40004b08); - sprintf(Data_40003ffd, "OBJ Azi:%03d %02d %02d ", + sprintf(g_MenuStringBuffer5, "OBJ Azi:%03d %02d %02d ", (int) Data_40004b08.dAzimuth, (int)((Data_40004b08.dAzimuth - (int) Data_40004b08.dAzimuth) * 60), ((int) (Data_40004b08.dAzimuth * 3600)) % 60); @@ -1957,7 +1961,7 @@ void PrepareScreenItems(void) if (Data_40004b08.dAltitude >= 0) { //2de9c - sprintf(Data_40004012, "Alt:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:+%02d %02d %02d ", abs((int) Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int) Data_40004b08.dAltitude) * 60)), abs(((int) (Data_40004b08.dAltitude * 3600)) % 60)); @@ -1965,7 +1969,7 @@ void PrepareScreenItems(void) else { //0x2df98 - sprintf(Data_40004012, "Alt:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:-%02d %02d %02d ", abs((int) Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int) Data_40004b08.dAltitude) * 60)), abs(((int) (Data_40004b08.dAltitude * 3600)) % 60)); @@ -1975,36 +1979,36 @@ void PrepareScreenItems(void) //0x2e09c if ((int) Data_40004b08.dAzimuth < 100) { - Data_40003ffd[11] = ' '; + g_MenuStringBuffer5[11] = ' '; } if ((int) Data_40004b08.dAzimuth < 10) { - Data_40003ffd[12] = ' '; + g_MenuStringBuffer5[12] = ' '; } if ((int)((Data_40004b08.dAzimuth - (int) Data_40004b08.dAzimuth) * 60) < 10) { - Data_40003ffd[15] = ' '; + g_MenuStringBuffer5[15] = ' '; } if ((((int) (Data_40004b08.dAzimuth * 3600)) % 60) < 10) { - Data_40003ffd[18] = ' '; + g_MenuStringBuffer5[18] = ' '; } if (abs((int) Data_40004b08.dAltitude) < 10) { - Data_40004012[5] = ' '; + g_MenuStringBuffer6[5] = ' '; } if (abs((int)((Data_40004b08.dAltitude - (int) Data_40004b08.dAltitude) * 60)) < 10) { - Data_40004012[8] = ' '; + g_MenuStringBuffer6[8] = ' '; } if (abs(((int) (Data_40004b08.dAltitude * 3600)) % 60) < 10) { - Data_40004012[11] = ' '; + g_MenuStringBuffer6[11] = ' '; } //0x2e2a4 - Data_40003370 = Data_40003ffd; - Data_40003374 = Data_40004012; + g_pcstrMenuLine5 = g_MenuStringBuffer5; + g_pcstrMenuLine6 = g_MenuStringBuffer6; dData_40002dd0 = dData_40002dc0_Azimuth; dData_40002e08 = dData_40002df8; @@ -2037,7 +2041,7 @@ void PrepareScreenItems(void) dData_40002e08 = Data_40004b70.dAltitude; } //0x2e44c - sprintf(Data_40004027, "OTA Azi:%03d %02d %02d ", + sprintf(g_MenuStringBuffer7, "OTA Azi:%03d %02d %02d ", abs((int)dData_40002dd0), abs((int)((dData_40002dd0 - (int)dData_40002dd0) * 60)), abs((int)(dData_40002dd0 * 3600) % 60)); @@ -2045,7 +2049,7 @@ void PrepareScreenItems(void) if (dData_40002e08 >= 0) { //2e54c - sprintf(Data_4000403c, "Alt:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Alt:+%02d %02d %02d ", abs((int)dData_40002e08), abs((int)((dData_40002e08 - (int)(dData_40002e08)) * 60)), abs(((int)(dData_40002e08 * 3600) % 60))); @@ -2054,7 +2058,7 @@ void PrepareScreenItems(void) else { //0x2e638 - sprintf(Data_4000403c, "Alt:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Alt:-%02d %02d %02d ", abs((int)dData_40002e08), abs((int)((dData_40002e08 - (int)(dData_40002e08)) * 60)), abs(((int)(dData_40002e08 * 3600) % 60))); @@ -2062,36 +2066,36 @@ void PrepareScreenItems(void) //2e720 if ((int)dData_40002dd0 < 100) { - Data_40004027[11] = ' '; + g_MenuStringBuffer7[11] = ' '; } if ((int)dData_40002dd0 < 10) { - Data_40004027[12] = ' '; + g_MenuStringBuffer7[12] = ' '; } if (((int)((dData_40002dd0 - (int)dData_40002dd0) * 60)) < 10) { - Data_40004027[15] = ' '; + g_MenuStringBuffer7[15] = ' '; } if (((int)(dData_40002dd0 * 3600) % 60) < 10) { - Data_40004027[18] = ' '; + g_MenuStringBuffer7[18] = ' '; } if (abs((int)dData_40002e08) < 10) { - Data_4000403c[5] = ' '; + g_MenuStringBuffer8[5] = ' '; } if (abs((int)((dData_40002e08 - (int)dData_40002e08) * 60.0)) < 10) { - Data_4000403c[8] = ' '; + g_MenuStringBuffer8[8] = ' '; } if (abs(((int)(dData_40002e08 * 3600.0)) % 60) < 10) { - Data_4000403c[11] = ' '; + g_MenuStringBuffer8[11] = ' '; } //0x2e904 - Data_40003378 = Data_40004027; - Data_4000337c = Data_4000403c; + g_pcstrMenuLine7 = g_MenuStringBuffer7; + g_pcstrMenuLine8 = g_MenuStringBuffer8; if ((bTrackingMode == 1) || (bTrackingMode == 2)) { @@ -2121,39 +2125,39 @@ void PrepareScreenItems(void) { case 1: //0x2e9c0 - Data_40003360 = "Slewing to Target "; + g_pcstrMenuLine1 = "Slewing to Target "; break; case 2: //0x2e9d4 - Data_40003360 = "Find Target,Tracking "; + g_pcstrMenuLine1 = "Find Target,Tracking "; break; case 3: //0x2e9e8 - Data_40003360 = "Target Under Horizon "; + g_pcstrMenuLine1 = "Target Under Horizon "; bData_40003432 = 1; break; case MENU_TRACKING_MODE_PAUSE: //4: //0x2ea08 - Data_40003360 = "Pause "; + g_pcstrMenuLine1 = "Pause "; break; case MENU_TRACKING_MODE_CANCEL: //5: //0x2ea1c - Data_40003360 = "Cancel Operation "; + g_pcstrMenuLine1 = "Cancel Operation "; break; default: //0x2ea30 - Data_40003360 = " "; + g_pcstrMenuLine1 = " "; break; } //0x2ea44 - Data_40003364 = " "; - Data_40003368 = Data_4000314c_SolarSystemObjectName; - Data_4000336c = " "; + g_pcstrMenuLine2 = " "; + g_pcstrMenuLine3 = Data_4000314c_SolarSystemObjectName; + g_pcstrMenuLine4 = " "; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -2168,21 +2172,21 @@ void PrepareScreenItems(void) fData_40002cd0_ObjectRightAscension = Data_40003dd4_FlashConstellationData.fRightAscension; fData_40002d18_ObjectDeclination = Data_40003dd4_FlashConstellationData.fDeclination; - Data_40003360 = Data_40003dd4_FlashConstellationData.bData_5; - Data_40003364 = " "; + g_pcstrMenuLine1 = Data_40003dd4_FlashConstellationData.bData_5; + g_pcstrMenuLine2 = " "; - sprintf(Data_40003fd3, " Area: %d SQ.Deg ", + sprintf(g_MenuStringBuffer3, " Area: %d SQ.Deg ", Data_40003dd4_FlashConstellationData.wArea); - Data_40003368 = Data_40003fd3; - Data_40003368[0] = Data_40003dd4_FlashConstellationData.bData_5[0]; - Data_40003368[1] = Data_40003dd4_FlashConstellationData.bData_5[1]; - Data_40003368[2] = Data_40003dd4_FlashConstellationData.bData_5[2]; + g_pcstrMenuLine3 = g_MenuStringBuffer3; + g_pcstrMenuLine3[0] = Data_40003dd4_FlashConstellationData.bData_5[0]; + g_pcstrMenuLine3[1] = Data_40003dd4_FlashConstellationData.bData_5[1]; + g_pcstrMenuLine3[2] = Data_40003dd4_FlashConstellationData.bData_5[2]; - sprintf(Data_40003fe8, "Quantity: %d (>6Mag) ", + sprintf(g_MenuStringBuffer4, "Quantity: %d (>6Mag) ", Data_40003dd4_FlashConstellationData.bQuantity); - Data_4000336c = Data_40003fe8; + g_pcstrMenuLine4 = g_MenuStringBuffer4; Data_40004ad8.dLongitude = Data_40004128.geographicLongitude; Data_40004ad8.dLatitude = Data_40004128.geographicLatitude; @@ -2193,7 +2197,7 @@ void PrepareScreenItems(void) convert_equatorial_to_horizontal(Data_40004ad8, Data_40004ae8, Data_40004128.Data_40, Data_40004128.bData_44, &Data_40004b08); - sprintf(Data_40003ffd, "OBJ Azi:%03d %02d %02d ", + sprintf(g_MenuStringBuffer5, "OBJ Azi:%03d %02d %02d ", (int)Data_40004b08.dAzimuth, (int)((Data_40004b08.dAzimuth - (int)Data_40004b08.dAzimuth) * 60.0), (int)(Data_40004b08.dAzimuth * 3600.0) % 60); @@ -2201,7 +2205,7 @@ void PrepareScreenItems(void) if (Data_40004b08.dAltitude >= 0) { //2ecb0 - sprintf(Data_40004012, "Alt:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:+%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60)), abs(((int)(Data_40004b08.dAltitude * 3600) % 60))); @@ -2209,7 +2213,7 @@ void PrepareScreenItems(void) else { //0x2ef0c - sprintf(Data_40004012, "Alt:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:-%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60)), abs(((int)(Data_40004b08.dAltitude * 3600) % 60))); @@ -2217,61 +2221,61 @@ void PrepareScreenItems(void) //0x2f004 if ((int) Data_40004b08.dAzimuth < 100) { - Data_40003ffd[11] = ' '; + g_MenuStringBuffer5[11] = ' '; } if ((int) Data_40004b08.dAzimuth < 10) { - Data_40003ffd[12] = ' '; + g_MenuStringBuffer5[12] = ' '; } if ((int)((Data_40004b08.dAzimuth - (int) Data_40004b08.dAzimuth) * 60) < 10) { - Data_40003ffd[15] = ' '; + g_MenuStringBuffer5[15] = ' '; } if ((((int) (Data_40004b08.dAzimuth * 3600)) % 60) < 10) { - Data_40003ffd[18] = ' '; + g_MenuStringBuffer5[18] = ' '; } if (abs((int) Data_40004b08.dAltitude) < 10) { - Data_40004012[5] = ' '; + g_MenuStringBuffer6[5] = ' '; } if (abs((int)((Data_40004b08.dAltitude - (int) Data_40004b08.dAltitude) * 60)) < 10) { - Data_40004012[8] = ' '; + g_MenuStringBuffer6[8] = ' '; } if (abs(((int) (Data_40004b08.dAltitude * 3600)) % 60) < 10) { - Data_40004012[11] = ' '; + g_MenuStringBuffer6[11] = ' '; } //0x2f20c - Data_40003370 = Data_40003ffd; - Data_40003374 = Data_40004012; + g_pcstrMenuLine5 = g_MenuStringBuffer5; + g_pcstrMenuLine6 = g_MenuStringBuffer6; - sprintf(Data_40004027, "R.a: %02dh%02dm%02ds ", + sprintf(g_MenuStringBuffer7, "R.a: %02dh%02dm%02ds ", (int) fData_40002cd0_ObjectRightAscension, (int) ((fData_40002cd0_ObjectRightAscension - (int) fData_40002cd0_ObjectRightAscension) * 60), (int) (fData_40002cd0_ObjectRightAscension * 3600) % 60); if ((int) fData_40002cd0_ObjectRightAscension < 10) { - Data_40004027[5] = ' '; + g_MenuStringBuffer7[5] = ' '; } if ((int) ((fData_40002cd0_ObjectRightAscension - (int) fData_40002cd0_ObjectRightAscension) * 60) < 10) { - Data_40004027[8] = ' '; + g_MenuStringBuffer7[8] = ' '; } if (((int) (fData_40002cd0_ObjectRightAscension * 3600) % 60) < 10) { - Data_40004027[11] = ' '; + g_MenuStringBuffer7[11] = ' '; } //0x2f35c - Data_40003378 = Data_40004027; + g_pcstrMenuLine7 = g_MenuStringBuffer7; if (fData_40002d18_ObjectDeclination >= 0) { //2f37c - sprintf(Data_4000403c, "Dec:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Dec:+%02d %02d %02d ", abs((int) fData_40002d18_ObjectDeclination), abs((int) ((fData_40002d18_ObjectDeclination - (int) fData_40002d18_ObjectDeclination) * 60)), abs((int) (fData_40002d18_ObjectDeclination * 3600) % 60)); @@ -2279,7 +2283,7 @@ void PrepareScreenItems(void) else { //0x2f44c - sprintf(Data_4000403c, "Dec:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Dec:-%02d %02d %02d ", abs((int) fData_40002d18_ObjectDeclination), abs((int) ((fData_40002d18_ObjectDeclination - (int) fData_40002d18_ObjectDeclination) * 60)), abs((int) (fData_40002d18_ObjectDeclination * 3600) % 60)); @@ -2287,18 +2291,18 @@ void PrepareScreenItems(void) //0x2f518 if (abs((int) fData_40002d18_ObjectDeclination) < 10) { - Data_4000403c[5] = ' '; + g_MenuStringBuffer8[5] = ' '; } if (abs((int) ((fData_40002d18_ObjectDeclination - (int) fData_40002d18_ObjectDeclination) * 60)) < 10) { - Data_4000403c[8] = ' '; + g_MenuStringBuffer8[8] = ' '; } if (abs(((int) (fData_40002d18_ObjectDeclination * 3600) % 60)) < 10) { - Data_4000403c[11] = ' '; + g_MenuStringBuffer8[11] = ' '; } //0x2f5fc - Data_4000337c = Data_4000403c; + g_pcstrMenuLine8 = g_MenuStringBuffer8; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -2321,7 +2325,7 @@ void PrepareScreenItems(void) convert_equatorial_to_horizontal(Data_40004ad8, Data_40004ae8, Data_40004128.Data_40, Data_40004128.bData_44, &Data_40004b08); - sprintf(Data_40003ffd, "OBJ Azi:%03d %02d %02d ", + sprintf(g_MenuStringBuffer5, "OBJ Azi:%03d %02d %02d ", (int)Data_40004b08.dAzimuth, (int)((Data_40004b08.dAzimuth - (int)Data_40004b08.dAzimuth) * 60.0), (int)(Data_40004b08.dAzimuth * 3600.0) % 60); @@ -2329,7 +2333,7 @@ void PrepareScreenItems(void) if (Data_40004b08.dAltitude >= 0) { //2f7b8 - sprintf(Data_40004012, "Alt:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:+%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60)), abs(((int)(Data_40004b08.dAltitude * 3600) % 60))); @@ -2337,7 +2341,7 @@ void PrepareScreenItems(void) else { //0x2f8b4 - sprintf(Data_40004012, "Alt:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:-%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60)), abs(((int)(Data_40004b08.dAltitude * 3600) % 60))); @@ -2347,36 +2351,36 @@ void PrepareScreenItems(void) //0x2f9b8 if ((int) Data_40004b08.dAzimuth < 100) { - Data_40003ffd[11] = ' '; + g_MenuStringBuffer5[11] = ' '; } if ((int) Data_40004b08.dAzimuth < 10) { - Data_40003ffd[12] = ' '; + g_MenuStringBuffer5[12] = ' '; } if ((int)((Data_40004b08.dAzimuth - (int) Data_40004b08.dAzimuth) * 60) < 10) { - Data_40003ffd[15] = ' '; + g_MenuStringBuffer5[15] = ' '; } if ((((int) (Data_40004b08.dAzimuth * 3600)) % 60) < 10) { - Data_40003ffd[18] = ' '; + g_MenuStringBuffer5[18] = ' '; } if (abs((int) Data_40004b08.dAltitude) < 10) { - Data_40004012[5] = ' '; + g_MenuStringBuffer6[5] = ' '; } if (abs((int)((Data_40004b08.dAltitude - (int) Data_40004b08.dAltitude) * 60)) < 10) { - Data_40004012[8] = ' '; + g_MenuStringBuffer6[8] = ' '; } if (abs(((int) (Data_40004b08.dAltitude * 3600)) % 60) < 10) { - Data_40004012[11] = ' '; + g_MenuStringBuffer6[11] = ' '; } //0x2fbc0 - Data_40003370 = Data_40003ffd; - Data_40003374 = Data_40004012; + g_pcstrMenuLine5 = g_MenuStringBuffer5; + g_pcstrMenuLine6 = g_MenuStringBuffer6; dData_40002dd0 = dData_40002dc0_Azimuth; dData_40002e08 = dData_40002df8; @@ -2409,7 +2413,7 @@ void PrepareScreenItems(void) dData_40002e08 = Data_40004b70.dAltitude; } //0x2fd68 - sprintf(Data_40004027, "OTA Azi:%03d %02d %02d ", + sprintf(g_MenuStringBuffer7, "OTA Azi:%03d %02d %02d ", abs((int)dData_40002dd0), abs((int)((dData_40002dd0 - (int)dData_40002dd0) * 60)), abs((int)(dData_40002dd0 * 3600) % 60)); @@ -2417,7 +2421,7 @@ void PrepareScreenItems(void) if (dData_40002e08 >= 0) { //2fec8 - sprintf(Data_4000403c, "Alt:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Alt:+%02d %02d %02d ", abs((int)dData_40002e08), abs((int)((dData_40002e08 - (int)(dData_40002e08)) * 60)), abs(((int)(dData_40002e08 * 3600) % 60))); @@ -2425,7 +2429,7 @@ void PrepareScreenItems(void) else { //0x2ffb4 - sprintf(Data_4000403c, "Alt:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Alt:-%02d %02d %02d ", abs((int)dData_40002e08), abs((int)((dData_40002e08 - (int)(dData_40002e08)) * 60)), abs(((int)(dData_40002e08 * 3600) % 60))); @@ -2433,36 +2437,36 @@ void PrepareScreenItems(void) //0x3009c if ((int)dData_40002dd0 < 100) { - Data_40004027[11] = ' '; + g_MenuStringBuffer7[11] = ' '; } if ((int)dData_40002dd0 < 10) { - Data_40004027[12] = ' '; + g_MenuStringBuffer7[12] = ' '; } if (((int)((dData_40002dd0 - (int)dData_40002dd0) * 60)) < 10) { - Data_40004027[15] = ' '; + g_MenuStringBuffer7[15] = ' '; } if (((int)(dData_40002dd0 * 3600) % 60) < 10) { - Data_40004027[18] = ' '; + g_MenuStringBuffer7[18] = ' '; } if (abs((int)dData_40002e08) < 10) { - Data_4000403c[5] = ' '; + g_MenuStringBuffer8[5] = ' '; } if (abs((int)((dData_40002e08 - (int)dData_40002e08) * 60.0)) < 10) { - Data_4000403c[8] = ' '; + g_MenuStringBuffer8[8] = ' '; } if (abs(((int)(dData_40002e08 * 3600.0)) % 60) < 10) { - Data_4000403c[11] = ' '; + g_MenuStringBuffer8[11] = ' '; } //0x30280 - Data_40003378 = Data_40004027; - Data_4000337c = Data_4000403c; + g_pcstrMenuLine7 = g_MenuStringBuffer7; + g_pcstrMenuLine8 = g_MenuStringBuffer8; if ((bTrackingMode == 1) || (bTrackingMode == 2)) { @@ -2483,39 +2487,39 @@ void PrepareScreenItems(void) { case 1: //0x3033c - Data_40003360 = "Slewing to Target "; + g_pcstrMenuLine1 = "Slewing to Target "; break; case 2: //0x30350 - Data_40003360 = "Find Target,Tracking "; + g_pcstrMenuLine1 = "Find Target,Tracking "; break; case 3: //0x30364 - Data_40003360 = "Target Under Horizon "; + g_pcstrMenuLine1 = "Target Under Horizon "; bData_40003432 = 1; break; case MENU_TRACKING_MODE_PAUSE: //4: //0x30384 - Data_40003360 = "Pause "; + g_pcstrMenuLine1 = "Pause "; break; case MENU_TRACKING_MODE_CANCEL: //5: //0x30398 - Data_40003360 = "Cancel Operation "; + g_pcstrMenuLine1 = "Cancel Operation "; break; default: //0x303ac - Data_40003360 = " "; + g_pcstrMenuLine1 = " "; break; } //303c4 - Data_40003364 = " "; - Data_40003368 = Data_40003dd4_FlashConstellationData.bData_5; - Data_4000336c = " "; + g_pcstrMenuLine2 = " "; + g_pcstrMenuLine3 = Data_40003dd4_FlashConstellationData.bData_5; + g_pcstrMenuLine4 = " "; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -2529,14 +2533,14 @@ void PrepareScreenItems(void) fData_40002cd0_ObjectRightAscension = Data_40003d94_FlashFamousStarData.fRightAscension; fData_40002d18_ObjectDeclination = Data_40003d94_FlashFamousStarData.fDeclination; - Data_40003360 = Data_40003d94_FlashFamousStarData.bData_0; - Data_40003364 = " "; - Data_40003368 = Data_40003d94_FlashFamousStarData.bData_28; + g_pcstrMenuLine1 = Data_40003d94_FlashFamousStarData.bData_0; + g_pcstrMenuLine2 = " "; + g_pcstrMenuLine3 = Data_40003d94_FlashFamousStarData.bData_28; - sprintf(Data_40003fe8, "SAO:%d MEG:%.1f", + sprintf(g_MenuStringBuffer4, "SAO:%d MEG:%.1f", Data_40003d94_FlashFamousStarData.Data_24, Data_40003d94_FlashFamousStarData.fData_52); - Data_4000336c = Data_40003fe8; + g_pcstrMenuLine4 = g_MenuStringBuffer4; Data_40004ad8.dLongitude = Data_40004128.geographicLongitude; Data_40004ad8.dLatitude = Data_40004128.geographicLatitude; @@ -2547,7 +2551,7 @@ void PrepareScreenItems(void) convert_equatorial_to_horizontal(Data_40004ad8, Data_40004ae8, Data_40004128.Data_40, Data_40004128.bData_44, &Data_40004b08); - sprintf(Data_40003ffd, "OBJ Azi:%03d %02d %02d ", + sprintf(g_MenuStringBuffer5, "OBJ Azi:%03d %02d %02d ", (int)Data_40004b08.dAzimuth, (int)((Data_40004b08.dAzimuth - (int)Data_40004b08.dAzimuth) * 60.0), (int)(Data_40004b08.dAzimuth * 3600.0) % 60); @@ -2555,7 +2559,7 @@ void PrepareScreenItems(void) if (Data_40004b08.dAltitude >= 0) { //305f4 - sprintf(Data_40004012, "Alt:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:+%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60)), abs(((int)(Data_40004b08.dAltitude * 3600) % 60))); @@ -2563,7 +2567,7 @@ void PrepareScreenItems(void) else { //0x30790 - sprintf(Data_40004012, "Alt:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:-%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60)), abs(((int)(Data_40004b08.dAltitude * 3600) % 60))); @@ -2571,61 +2575,61 @@ void PrepareScreenItems(void) //0x30888 if ((int) Data_40004b08.dAzimuth < 100) { - Data_40003ffd[11] = ' '; + g_MenuStringBuffer5[11] = ' '; } if ((int) Data_40004b08.dAzimuth < 10) { - Data_40003ffd[12] = ' '; + g_MenuStringBuffer5[12] = ' '; } if ((int)((Data_40004b08.dAzimuth - (int) Data_40004b08.dAzimuth) * 60) < 10) { - Data_40003ffd[15] = ' '; + g_MenuStringBuffer5[15] = ' '; } if ((((int) (Data_40004b08.dAzimuth * 3600)) % 60) < 10) { - Data_40003ffd[18] = ' '; + g_MenuStringBuffer5[18] = ' '; } if (abs((int) Data_40004b08.dAltitude) < 10) { - Data_40004012[5] = ' '; + g_MenuStringBuffer6[5] = ' '; } if (abs((int)((Data_40004b08.dAltitude - (int) Data_40004b08.dAltitude) * 60)) < 10) { - Data_40004012[8] = ' '; + g_MenuStringBuffer6[8] = ' '; } if (abs(((int) (Data_40004b08.dAltitude * 3600)) % 60) < 10) { - Data_40004012[11] = ' '; + g_MenuStringBuffer6[11] = ' '; } //0x30a90 - Data_40003370 = Data_40003ffd; - Data_40003374 = Data_40004012; + g_pcstrMenuLine5 = g_MenuStringBuffer5; + g_pcstrMenuLine6 = g_MenuStringBuffer6; - sprintf(Data_40004027, "R.a: %02dh%02dm%02ds ", + sprintf(g_MenuStringBuffer7, "R.a: %02dh%02dm%02ds ", (int) fData_40002cd0_ObjectRightAscension, (int) ((fData_40002cd0_ObjectRightAscension - (int) fData_40002cd0_ObjectRightAscension) * 60), (int) (fData_40002cd0_ObjectRightAscension * 3600) % 60); if ((int) fData_40002cd0_ObjectRightAscension < 10) { - Data_40004027[5] = ' '; + g_MenuStringBuffer7[5] = ' '; } if ((int) ((fData_40002cd0_ObjectRightAscension - (int) fData_40002cd0_ObjectRightAscension) * 60) < 10) { - Data_40004027[8] = ' '; + g_MenuStringBuffer7[8] = ' '; } if (((int) (fData_40002cd0_ObjectRightAscension * 3600) % 60) < 10) { - Data_40004027[11] = ' '; + g_MenuStringBuffer7[11] = ' '; } //0x30be0 - Data_40003378 = Data_40004027; + g_pcstrMenuLine7 = g_MenuStringBuffer7; if (fData_40002d18_ObjectDeclination >= 0) { //30c00 - sprintf(Data_4000403c, "Dec:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Dec:+%02d %02d %02d ", abs((int) fData_40002d18_ObjectDeclination), abs((int) ((fData_40002d18_ObjectDeclination - (int) fData_40002d18_ObjectDeclination) * 60)), abs((int) (fData_40002d18_ObjectDeclination * 3600) % 60)); @@ -2633,7 +2637,7 @@ void PrepareScreenItems(void) else { //0x30cd0 - sprintf(Data_4000403c, "Dec:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Dec:-%02d %02d %02d ", abs((int) fData_40002d18_ObjectDeclination), abs((int) ((fData_40002d18_ObjectDeclination - (int) fData_40002d18_ObjectDeclination) * 60)), abs((int) (fData_40002d18_ObjectDeclination * 3600) % 60)); @@ -2641,18 +2645,18 @@ void PrepareScreenItems(void) //0x30d9c if (abs((int) fData_40002d18_ObjectDeclination) < 10) { - Data_4000403c[5] = ' '; + g_MenuStringBuffer8[5] = ' '; } if (abs((int) ((fData_40002d18_ObjectDeclination - (int) fData_40002d18_ObjectDeclination) * 60)) < 10) { - Data_4000403c[8] = ' '; + g_MenuStringBuffer8[8] = ' '; } if (abs(((int) (fData_40002d18_ObjectDeclination * 3600) % 60)) < 10) { - Data_4000403c[11] = ' '; + g_MenuStringBuffer8[11] = ' '; } //0x30e80 - Data_4000337c = Data_4000403c; + g_pcstrMenuLine8 = g_MenuStringBuffer8; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -2675,7 +2679,7 @@ void PrepareScreenItems(void) convert_equatorial_to_horizontal(Data_40004ad8, Data_40004ae8, Data_40004128.Data_40, Data_40004128.bData_44, &Data_40004b08); - sprintf(Data_40003ffd, "OBJ Azi:%03d %02d %02d ", + sprintf(g_MenuStringBuffer5, "OBJ Azi:%03d %02d %02d ", (int)Data_40004b08.dAzimuth, (int)((Data_40004b08.dAzimuth - (int)Data_40004b08.dAzimuth) * 60.0), (int)(Data_40004b08.dAzimuth * 3600.0) % 60); @@ -2683,7 +2687,7 @@ void PrepareScreenItems(void) if (Data_40004b08.dAltitude >= 0) { //31040 - sprintf(Data_40004012, "Alt:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:+%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60)), abs(((int)(Data_40004b08.dAltitude * 3600) % 60))); @@ -2691,7 +2695,7 @@ void PrepareScreenItems(void) else { //0x3113c - sprintf(Data_40004012, "Alt:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:-%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60)), abs(((int)(Data_40004b08.dAltitude * 3600) % 60))); @@ -2701,36 +2705,36 @@ void PrepareScreenItems(void) //0x31240 if ((int) Data_40004b08.dAzimuth < 100) { - Data_40003ffd[11] = ' '; + g_MenuStringBuffer5[11] = ' '; } if ((int) Data_40004b08.dAzimuth < 10) { - Data_40003ffd[12] = ' '; + g_MenuStringBuffer5[12] = ' '; } if ((int)((Data_40004b08.dAzimuth - (int) Data_40004b08.dAzimuth) * 60) < 10) { - Data_40003ffd[15] = ' '; + g_MenuStringBuffer5[15] = ' '; } if ((((int) (Data_40004b08.dAzimuth * 3600)) % 60) < 10) { - Data_40003ffd[18] = ' '; + g_MenuStringBuffer5[18] = ' '; } if (abs((int) Data_40004b08.dAltitude) < 10) { - Data_40004012[5] = ' '; + g_MenuStringBuffer6[5] = ' '; } if (abs((int)((Data_40004b08.dAltitude - (int) Data_40004b08.dAltitude) * 60)) < 10) { - Data_40004012[8] = ' '; + g_MenuStringBuffer6[8] = ' '; } if (abs(((int) (Data_40004b08.dAltitude * 3600)) % 60) < 10) { - Data_40004012[11] = ' '; + g_MenuStringBuffer6[11] = ' '; } //0x31448 - Data_40003370 = Data_40003ffd; - Data_40003374 = Data_40004012; + g_pcstrMenuLine5 = g_MenuStringBuffer5; + g_pcstrMenuLine6 = g_MenuStringBuffer6; //31460 dData_40002dd0 = dData_40002dc0_Azimuth; dData_40002e08 = dData_40002df8; @@ -2763,7 +2767,7 @@ void PrepareScreenItems(void) dData_40002e08 = Data_40004b70.dAltitude; } //0x315f4 - sprintf(Data_40004027, "OTA Azi:%03d %02d %02d ", + sprintf(g_MenuStringBuffer7, "OTA Azi:%03d %02d %02d ", abs((int)dData_40002dd0), abs((int)((dData_40002dd0 - (int)dData_40002dd0) * 60)), abs((int)(dData_40002dd0 * 3600) % 60)); @@ -2771,7 +2775,7 @@ void PrepareScreenItems(void) if (dData_40002e08 >= 0) { //316f4 - sprintf(Data_4000403c, "Alt:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Alt:+%02d %02d %02d ", abs((int)dData_40002e08), abs((int)((dData_40002e08 - (int)(dData_40002e08)) * 60)), abs(((int)(dData_40002e08 * 3600) % 60))); @@ -2779,7 +2783,7 @@ void PrepareScreenItems(void) else { //0x317e0 - sprintf(Data_4000403c, "Alt:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Alt:-%02d %02d %02d ", abs((int)dData_40002e08), abs((int)((dData_40002e08 - (int)(dData_40002e08)) * 60)), abs(((int)(dData_40002e08 * 3600) % 60))); @@ -2787,36 +2791,36 @@ void PrepareScreenItems(void) //0x318c8 if ((int)dData_40002dd0 < 100) { - Data_40004027[11] = ' '; + g_MenuStringBuffer7[11] = ' '; } if ((int)dData_40002dd0 < 10) { - Data_40004027[12] = ' '; + g_MenuStringBuffer7[12] = ' '; } if (((int)((dData_40002dd0 - (int)dData_40002dd0) * 60)) < 10) { - Data_40004027[15] = ' '; + g_MenuStringBuffer7[15] = ' '; } if (((int)(dData_40002dd0 * 3600) % 60) < 10) { - Data_40004027[18] = ' '; + g_MenuStringBuffer7[18] = ' '; } if (abs((int)dData_40002e08) < 10) { - Data_4000403c[5] = ' '; + g_MenuStringBuffer8[5] = ' '; } if (abs((int)((dData_40002e08 - (int)dData_40002e08) * 60.0)) < 10) { - Data_4000403c[8] = ' '; + g_MenuStringBuffer8[8] = ' '; } if (abs(((int)(dData_40002e08 * 3600.0)) % 60) < 10) { - Data_4000403c[11] = ' '; + g_MenuStringBuffer8[11] = ' '; } //0x31aac - Data_40003378 = Data_40004027; - Data_4000337c = Data_4000403c; + g_pcstrMenuLine7 = g_MenuStringBuffer7; + g_pcstrMenuLine8 = g_MenuStringBuffer8; if ((bTrackingMode == 1) || (bTrackingMode == 2)) { @@ -2834,42 +2838,42 @@ void PrepareScreenItems(void) { case 1: //0x31b68 - Data_40003360 = "Slewing to Target "; + g_pcstrMenuLine1 = "Slewing to Target "; break; case 2: //0x31b7c - Data_40003360 = "Find Target,Tracking "; + g_pcstrMenuLine1 = "Find Target,Tracking "; break; case 3: //0x31b90 - Data_40003360 = "Target Under Horizon "; + g_pcstrMenuLine1 = "Target Under Horizon "; bData_40003432 = 1; break; case MENU_TRACKING_MODE_PAUSE: //4: //0x31bb0 - Data_40003360 = "Pause "; + g_pcstrMenuLine1 = "Pause "; break; case MENU_TRACKING_MODE_CANCEL: //5: //0x31bc4 - Data_40003360 = "Cancel Operation "; + g_pcstrMenuLine1 = "Cancel Operation "; break; default: //0x31bd8 - Data_40003360 = " "; + g_pcstrMenuLine1 = " "; break; } //0x31bec - sprintf(Data_40003fbe, "Sao:%d ", + sprintf(g_MenuStringBuffer2, "Sao:%d ", Data_40003d94_FlashFamousStarData.Data_24); - Data_40003364 = Data_40003fbe; - Data_40003368 = " "; - Data_4000336c = Data_40003d94_FlashFamousStarData.bData_28; + g_pcstrMenuLine2 = g_MenuStringBuffer2; + g_pcstrMenuLine3 = " "; + g_pcstrMenuLine4 = Data_40003d94_FlashFamousStarData.bData_28; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -2881,25 +2885,25 @@ void PrepareScreenItems(void) flash_get_messier_data((unsigned char)wData_40002eb8_MessierNr, &Data_40003e08_FlashMessierData); - sprintf(Data_40003fa9, "Messier:%d NGC:%d ", + sprintf(g_MenuStringBuffer1, "Messier:%d NGC:%d ", wData_40002eb8_MessierNr, Data_40003e08_FlashMessierData.wData_0); - Data_40003360 = Data_40003fa9; - Data_40003364 = Data_40003e08_FlashMessierData.bData_32; - Data_40003368 = Data_40003e08_FlashMessierData.bData_60; - Data_4000336c = Data_40003e08_FlashMessierData.bData_108; - Data_40003370 = " "; + g_pcstrMenuLine1 = g_MenuStringBuffer1; + g_pcstrMenuLine2 = Data_40003e08_FlashMessierData.bData_32; + g_pcstrMenuLine3 = Data_40003e08_FlashMessierData.bData_60; + g_pcstrMenuLine4 = Data_40003e08_FlashMessierData.bData_108; + g_pcstrMenuLine5 = " "; - sprintf(Data_40004012, "Size:%.1f Arc Minute ", + sprintf(g_MenuStringBuffer6, "Size:%.1f Arc Minute ", Data_40003e08_FlashMessierData.fData_12); - Data_40003374 = Data_40004012; + g_pcstrMenuLine6 = g_MenuStringBuffer6; - sprintf(Data_40004027, "Distance:%.1f ", + sprintf(g_MenuStringBuffer7, "Distance:%.1f ", Data_40003e08_FlashMessierData.dData_16); - Data_40003378 = Data_40004027; - Data_4000337c = " K Light-Years"; + g_pcstrMenuLine7 = g_MenuStringBuffer7; + g_pcstrMenuLine8 = " K Light-Years"; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -2914,13 +2918,13 @@ void PrepareScreenItems(void) fData_40002cd0_ObjectRightAscension = Data_40003e08_FlashMessierData.fRightAscension; fData_40002d18_ObjectDeclination = Data_40003e08_FlashMessierData.fDeclination; - sprintf(Data_40003fa9, "Messier:%d ", + sprintf(g_MenuStringBuffer1, "Messier:%d ", wData_40002eb8_MessierNr); - Data_40003360 = Data_40003fa9; - Data_40003364 = Data_40003e08_FlashMessierData.bData_32; - Data_40003368 = Data_40003e08_FlashMessierData.bData_60; - Data_4000336c = " "; + g_pcstrMenuLine1 = g_MenuStringBuffer1; + g_pcstrMenuLine2 = Data_40003e08_FlashMessierData.bData_32; + g_pcstrMenuLine3 = Data_40003e08_FlashMessierData.bData_60; + g_pcstrMenuLine4 = " "; Data_40004ad8.dLongitude = Data_40004128.geographicLongitude; Data_40004ad8.dLatitude = Data_40004128.geographicLatitude; @@ -2930,7 +2934,7 @@ void PrepareScreenItems(void) convert_equatorial_to_horizontal(Data_40004ad8, Data_40004ae8, Data_40004128.Data_40, Data_40004128.bData_44, &Data_40004b08); - sprintf(Data_40003ffd, "OBJ Azi:%03d %02d %02d ", + sprintf(g_MenuStringBuffer5, "OBJ Azi:%03d %02d %02d ", (int)Data_40004b08.dAzimuth, (int)((Data_40004b08.dAzimuth - (int)Data_40004b08.dAzimuth) * 60.0), (int)(Data_40004b08.dAzimuth * 3600.0) % 60); @@ -2938,7 +2942,7 @@ void PrepareScreenItems(void) if (Data_40004b08.dAltitude >= 0) { //320cc - sprintf(Data_40004012, "Alt:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:+%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60.0)), abs((int)(Data_40004b08.dAltitude * 3600.0) % 60)); @@ -2946,7 +2950,7 @@ void PrepareScreenItems(void) else { //0x321c8 - sprintf(Data_40004012, "Alt:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:-%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60.0)), abs((int)(Data_40004b08.dAltitude * 3600.0) % 60)); @@ -2954,61 +2958,61 @@ void PrepareScreenItems(void) //0x32320 if ((int) Data_40004b08.dAzimuth < 100) { - Data_40003ffd[11] = ' '; + g_MenuStringBuffer5[11] = ' '; } if ((int) Data_40004b08.dAzimuth < 10) { - Data_40003ffd[12] = ' '; + g_MenuStringBuffer5[12] = ' '; } if ((int)((Data_40004b08.dAzimuth - (int) Data_40004b08.dAzimuth) * 60) < 10) { - Data_40003ffd[15] = ' '; + g_MenuStringBuffer5[15] = ' '; } if ((((int) (Data_40004b08.dAzimuth * 3600)) % 60) < 10) { - Data_40003ffd[18] = ' '; + g_MenuStringBuffer5[18] = ' '; } if (abs((int) Data_40004b08.dAltitude) < 10) { - Data_40004012[5] = ' '; + g_MenuStringBuffer6[5] = ' '; } if (abs((int)((Data_40004b08.dAltitude - (int) Data_40004b08.dAltitude) * 60)) < 10) { - Data_40004012[8] = ' '; + g_MenuStringBuffer6[8] = ' '; } if (abs(((int) (Data_40004b08.dAltitude * 3600)) % 60) < 10) { - Data_40004012[11] = ' '; + g_MenuStringBuffer6[11] = ' '; } //0x32528 - Data_40003370 = Data_40003ffd; - Data_40003374 = Data_40004012; + g_pcstrMenuLine5 = g_MenuStringBuffer5; + g_pcstrMenuLine6 = g_MenuStringBuffer6; - sprintf(Data_40004027, "R.a: %02dh%02dm%02ds ", + sprintf(g_MenuStringBuffer7, "R.a: %02dh%02dm%02ds ", (int)fData_40002cd0_ObjectRightAscension, (int)((fData_40002cd0_ObjectRightAscension - (int)fData_40002cd0_ObjectRightAscension) * 60), (int)(fData_40002cd0_ObjectRightAscension * 3600) % 60); if ((int) fData_40002cd0_ObjectRightAscension < 10) { - Data_40004027[5] = ' '; + g_MenuStringBuffer7[5] = ' '; } if ((int) ((fData_40002cd0_ObjectRightAscension - (int) fData_40002cd0_ObjectRightAscension) * 60) < 10) { - Data_40004027[8] = ' '; + g_MenuStringBuffer7[8] = ' '; } if (((int) (fData_40002cd0_ObjectRightAscension * 3600) % 60) < 10) { - Data_40004027[11] = ' '; + g_MenuStringBuffer7[11] = ' '; } //0x32678 - Data_40003378 = Data_40004027; + g_pcstrMenuLine7 = g_MenuStringBuffer7; if (fData_40002d18_ObjectDeclination >= 0) { //32698 - sprintf(Data_4000403c, "Dec:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Dec:+%02d %02d %02d ", abs((int)fData_40002d18_ObjectDeclination), abs((int)((fData_40002d18_ObjectDeclination - (int)(fData_40002d18_ObjectDeclination)) * 60)), abs(((int)(fData_40002d18_ObjectDeclination * 3600) % 60))); @@ -3016,7 +3020,7 @@ void PrepareScreenItems(void) else { //0x32768 - sprintf(Data_4000403c, "Dec:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Dec:-%02d %02d %02d ", abs((int)fData_40002d18_ObjectDeclination), abs((int)((fData_40002d18_ObjectDeclination - (int)(fData_40002d18_ObjectDeclination)) * 60)), abs(((int)(fData_40002d18_ObjectDeclination * 3600) % 60))); @@ -3024,18 +3028,18 @@ void PrepareScreenItems(void) //0x32834 if (abs((int)fData_40002d18_ObjectDeclination) < 10) { - Data_4000403c[5] = ' '; + g_MenuStringBuffer8[5] = ' '; } if (abs((int)((fData_40002d18_ObjectDeclination - (int)fData_40002d18_ObjectDeclination) * 60)) < 10) { - Data_4000403c[8] = ' '; + g_MenuStringBuffer8[8] = ' '; } if (abs((int)(fData_40002d18_ObjectDeclination * 3600) % 60) < 10) { - Data_4000403c[11] = ' '; + g_MenuStringBuffer8[11] = ' '; } //0x32918 - Data_4000337c = Data_4000403c; + g_pcstrMenuLine8 = g_MenuStringBuffer8; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -3059,7 +3063,7 @@ void PrepareScreenItems(void) convert_equatorial_to_horizontal(Data_40004ad8, Data_40004ae8, Data_40004128.Data_40, Data_40004128.bData_44, &Data_40004b08); - sprintf(Data_40003ffd, "OBJ Azi:%03d %02d %02d ", + sprintf(g_MenuStringBuffer5, "OBJ Azi:%03d %02d %02d ", (int)Data_40004b08.dAzimuth, (int)((Data_40004b08.dAzimuth - (int)Data_40004b08.dAzimuth) * 60.0), (int)(Data_40004b08.dAzimuth * 3600.0) % 60); @@ -3067,7 +3071,7 @@ void PrepareScreenItems(void) if (Data_40004b08.dAltitude >= 0) { //32adc - sprintf(Data_40004012, "Alt:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:+%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60.0)), abs((int)(Data_40004b08.dAltitude * 3600.0) % 60)); @@ -3075,7 +3079,7 @@ void PrepareScreenItems(void) else { //0x32bd8 - sprintf(Data_40004012, "Alt:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:-%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60.0)), abs((int)(Data_40004b08.dAltitude * 3600.0) % 60)); @@ -3085,36 +3089,36 @@ void PrepareScreenItems(void) //0x32cdc if ((int)(Data_40004b08.dAzimuth) < 100) { - Data_40003ffd[11] = ' '; + g_MenuStringBuffer5[11] = ' '; } if ((int)(Data_40004b08.dAzimuth) < 10) { - Data_40003ffd[12] = ' '; + g_MenuStringBuffer5[12] = ' '; } if ((int)((Data_40004b08.dAzimuth - (int)Data_40004b08.dAzimuth) * 60.0) < 10) { - Data_40003ffd[15] = ' '; + g_MenuStringBuffer5[15] = ' '; } if (((int)(Data_40004b08.dAzimuth * 3600.0) % 60) < 10) { - Data_40003ffd[18] = ' '; + g_MenuStringBuffer5[18] = ' '; } if (abs((int)Data_40004b08.dAltitude) < 10) { - Data_40004012[5] = ' '; + g_MenuStringBuffer6[5] = ' '; } if (abs((int)((Data_40004b08.dAltitude - (int)Data_40004b08.dAltitude) * 60.0)) < 10) { - Data_40004012[8] = ' '; + g_MenuStringBuffer6[8] = ' '; } if (abs(((int)(Data_40004b08.dAltitude * 3600.0)) % 60) < 10) { - Data_40004012[11] = ' '; + g_MenuStringBuffer6[11] = ' '; } //0x32ee4 - Data_40003370 = Data_40003ffd; - Data_40003374 = Data_40004012; + g_pcstrMenuLine5 = g_MenuStringBuffer5; + g_pcstrMenuLine6 = g_MenuStringBuffer6; dData_40002dd0 = dData_40002dc0_Azimuth; dData_40002e08 = dData_40002df8; @@ -3147,7 +3151,7 @@ void PrepareScreenItems(void) dData_40002e08 = Data_40004b70.dAltitude; } //0x33088 - sprintf(Data_40004027, "OTA Azi:%03d %02d %02d ", + sprintf(g_MenuStringBuffer7, "OTA Azi:%03d %02d %02d ", abs((int)dData_40002dd0), abs((int)((dData_40002dd0 - (int)dData_40002dd0) * 60)), abs((int)(dData_40002dd0 * 3600) % 60)); @@ -3155,7 +3159,7 @@ void PrepareScreenItems(void) if (dData_40002e08 >= 0) { //33188 - sprintf(Data_4000403c, "Alt:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Alt:+%02d %02d %02d ", abs((int)dData_40002e08), abs((int)((dData_40002e08 - (int)(dData_40002e08)) * 60)), abs(((int)(dData_40002e08 * 3600) % 60))); @@ -3163,7 +3167,7 @@ void PrepareScreenItems(void) else { //0x33274 - sprintf(Data_4000403c, "Alt:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Alt:-%02d %02d %02d ", abs((int)dData_40002e08), abs((int)((dData_40002e08 - (int)(dData_40002e08)) * 60)), abs(((int)(dData_40002e08 * 3600) % 60))); @@ -3171,36 +3175,36 @@ void PrepareScreenItems(void) //0x3335c if ((int)dData_40002dd0 < 100) { - Data_40004027[11] = ' '; + g_MenuStringBuffer7[11] = ' '; } if ((int)dData_40002dd0 < 10) { - Data_40004027[12] = ' '; + g_MenuStringBuffer7[12] = ' '; } if (((int)((dData_40002dd0 - (int)dData_40002dd0) * 60)) < 10) { - Data_40004027[15] = ' '; + g_MenuStringBuffer7[15] = ' '; } if (((int)(dData_40002dd0 * 3600) % 60) < 10) { - Data_40004027[18] = ' '; + g_MenuStringBuffer7[18] = ' '; } if (abs((int)dData_40002e08) < 10) { - Data_4000403c[5] = ' '; + g_MenuStringBuffer8[5] = ' '; } if (abs((int)((dData_40002e08 - (int)dData_40002e08) * 60.0)) < 10) { - Data_4000403c[8] = ' '; + g_MenuStringBuffer8[8] = ' '; } if (abs(((int)(dData_40002e08 * 3600.0)) % 60) < 10) { - Data_4000403c[11] = ' '; + g_MenuStringBuffer8[11] = ' '; } //0x335b8 - Data_40003378 = Data_40004027; - Data_4000337c = Data_4000403c; + g_pcstrMenuLine7 = g_MenuStringBuffer7; + g_pcstrMenuLine8 = g_MenuStringBuffer8; if ((bTrackingMode == 1) || (bTrackingMode == 2)) { @@ -3219,42 +3223,42 @@ void PrepareScreenItems(void) { case 1: //0x33674 - Data_40003360 = "Slewing to Target "; + g_pcstrMenuLine1 = "Slewing to Target "; break; case 2: //0x33688 - Data_40003360 = "Find Target,Tracking "; + g_pcstrMenuLine1 = "Find Target,Tracking "; bData_40003432 = 1; break; case 3: //0x336a8 - Data_40003360 = "Target Under Horizon "; + g_pcstrMenuLine1 = "Target Under Horizon "; break; case MENU_TRACKING_MODE_PAUSE: //4: //0x336bc - Data_40003360 = "Pause "; + g_pcstrMenuLine1 = "Pause "; break; case MENU_TRACKING_MODE_CANCEL: //5: //0x336d0 - Data_40003360 = "Cancel Operation "; + g_pcstrMenuLine1 = "Cancel Operation "; break; default: //0x336e4 - Data_40003360 = " "; + g_pcstrMenuLine1 = " "; break; } //0x336f8 - sprintf(Data_40003fbe, "Messier:%d ", + sprintf(g_MenuStringBuffer2, "Messier:%d ", wData_40002eb8_MessierNr); - Data_40003364 = Data_40003fbe; - Data_40003368 = Data_40003e08_FlashMessierData.bData_32; - Data_4000336c = Data_40003e08_FlashMessierData.bData_60; + g_pcstrMenuLine2 = g_MenuStringBuffer2; + g_pcstrMenuLine3 = Data_40003e08_FlashMessierData.bData_32; + g_pcstrMenuLine4 = Data_40003e08_FlashMessierData.bData_60; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -3268,26 +3272,26 @@ void PrepareScreenItems(void) fData_40002cd0_ObjectRightAscension = Data_40003ee0_FlashNGCData.fRightAscension; fData_40002d18_ObjectDeclination = Data_40003ee0_FlashNGCData.fDeclination; - sprintf(Data_40003fa9, "NGC:%d ", + sprintf(g_MenuStringBuffer1, "NGC:%d ", wData_40002eba_NGCNr); - Data_40003360 = Data_40003fa9; - Data_40003364 = Data_40003ee0_FlashNGCData.bData_0; + g_pcstrMenuLine1 = g_MenuStringBuffer1; + g_pcstrMenuLine2 = Data_40003ee0_FlashNGCData.bData_0; if (Data_40003ee0_FlashNGCData.fData_16 != 0) { //337c4 - sprintf(Data_40003fd3, "MEG:%.1f ", + sprintf(g_MenuStringBuffer3, "MEG:%.1f ", Data_40003ee0_FlashNGCData.fData_16); - Data_40003368 = Data_40003fd3; + g_pcstrMenuLine3 = g_MenuStringBuffer3; } else { //0x337fc - Data_40003368 = " "; + g_pcstrMenuLine3 = " "; } //0x33808 - Data_4000336c = Data_40003ee0_FlashNGCData.bData_20; + g_pcstrMenuLine4 = Data_40003ee0_FlashNGCData.bData_20; Data_40004ad8.dLongitude = Data_40004128.geographicLongitude; Data_40004ad8.dLatitude = Data_40004128.geographicLatitude; @@ -3297,7 +3301,7 @@ void PrepareScreenItems(void) convert_equatorial_to_horizontal(Data_40004ad8, Data_40004ae8, Data_40004128.Data_40, Data_40004128.bData_44, &Data_40004b08); //3389c - sprintf(Data_40003ffd, "OBJ Azi:%03d %02d %02d ", + sprintf(g_MenuStringBuffer5, "OBJ Azi:%03d %02d %02d ", (int)(Data_40004b08.dAzimuth), (int)((Data_40004b08.dAzimuth - (int)(Data_40004b08.dAzimuth)) * 60.0), (int)(Data_40004b08.dAzimuth * 3600.0) % 60); @@ -3305,7 +3309,7 @@ void PrepareScreenItems(void) if (Data_40004b08.dAltitude >= 0) { //33974 - sprintf(Data_40004012, "Alt:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:+%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60.0)), abs((int)(Data_40004b08.dAltitude * 3600.0) % 60)); @@ -3313,7 +3317,7 @@ void PrepareScreenItems(void) else { //0x33b60 - sprintf(Data_40004012, "Alt:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:-%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60.0)), abs((int)(Data_40004b08.dAltitude * 3600.0) % 60)); @@ -3321,61 +3325,61 @@ void PrepareScreenItems(void) //0x33c58 if ((int)(Data_40004b08.dAzimuth) < 100) { - Data_40003ffd[11] = ' '; + g_MenuStringBuffer5[11] = ' '; } if ((int)(Data_40004b08.dAzimuth) < 10) { - Data_40003ffd[12] = ' '; + g_MenuStringBuffer5[12] = ' '; } if ((int)((Data_40004b08.dAzimuth - (int)Data_40004b08.dAzimuth) * 60.0) < 10) { - Data_40003ffd[15] = ' '; + g_MenuStringBuffer5[15] = ' '; } if (((int)(Data_40004b08.dAzimuth * 3600.0) % 60) < 10) { - Data_40003ffd[18] = ' '; + g_MenuStringBuffer5[18] = ' '; } if (abs((int)Data_40004b08.dAltitude) < 10) { - Data_40004012[5] = ' '; + g_MenuStringBuffer6[5] = ' '; } if (abs((int)((Data_40004b08.dAltitude - (int)Data_40004b08.dAltitude) * 60.0)) < 10) { - Data_40004012[8] = ' '; + g_MenuStringBuffer6[8] = ' '; } if (abs(((int)(Data_40004b08.dAltitude * 3600.0)) % 60) < 10) { - Data_40004012[11] = ' '; + g_MenuStringBuffer6[11] = ' '; } //0x33e60 - Data_40003370 = Data_40003ffd; - Data_40003374 = Data_40004012; + g_pcstrMenuLine5 = g_MenuStringBuffer5; + g_pcstrMenuLine6 = g_MenuStringBuffer6; - sprintf(Data_40004027, "R.a: %02dh%02dm%02ds ", + sprintf(g_MenuStringBuffer7, "R.a: %02dh%02dm%02ds ", (int)fData_40002cd0_ObjectRightAscension, (int)((fData_40002cd0_ObjectRightAscension - (int)fData_40002cd0_ObjectRightAscension) * 60), (int)(fData_40002cd0_ObjectRightAscension * 3600) % 60); if ((int)fData_40002cd0_ObjectRightAscension < 10) { - Data_40004027[5] = ' '; + g_MenuStringBuffer7[5] = ' '; } if (((int)((fData_40002cd0_ObjectRightAscension - (int)fData_40002cd0_ObjectRightAscension) * 60)) < 10) { - Data_40004027[8] = ' '; + g_MenuStringBuffer7[8] = ' '; } if (((int)(fData_40002cd0_ObjectRightAscension * 3600) % 60) < 10) { - Data_40004027[11] = ' '; + g_MenuStringBuffer7[11] = ' '; } - Data_40003378 = Data_40004027; + g_pcstrMenuLine7 = g_MenuStringBuffer7; if (fData_40002d18_ObjectDeclination >= 0) { //33fd0 - sprintf(Data_4000403c, "Dec:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Dec:+%02d %02d %02d ", abs((int)fData_40002d18_ObjectDeclination), abs((int)((fData_40002d18_ObjectDeclination - (int)(fData_40002d18_ObjectDeclination)) * 60)), abs(((int)(fData_40002d18_ObjectDeclination * 3600) % 60))); @@ -3383,7 +3387,7 @@ void PrepareScreenItems(void) else { //0x340a0 - sprintf(Data_4000403c, "Dec:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Dec:-%02d %02d %02d ", abs((int)fData_40002d18_ObjectDeclination), abs((int)((fData_40002d18_ObjectDeclination - (int)(fData_40002d18_ObjectDeclination)) * 60)), abs(((int)(fData_40002d18_ObjectDeclination * 3600) % 60))); @@ -3391,18 +3395,18 @@ void PrepareScreenItems(void) //0x3416c if (abs((int)fData_40002d18_ObjectDeclination) < 10) { - Data_4000403c[5] = ' '; + g_MenuStringBuffer8[5] = ' '; } if (abs((int)((fData_40002d18_ObjectDeclination - (int)fData_40002d18_ObjectDeclination) * 60)) < 10) { - Data_4000403c[8] = ' '; + g_MenuStringBuffer8[8] = ' '; } if (abs((int)(fData_40002d18_ObjectDeclination * 3600) % 60) < 10) { - Data_4000403c[11] = ' '; + g_MenuStringBuffer8[11] = ' '; } //0x34250 - Data_4000337c = Data_4000403c; + g_pcstrMenuLine8 = g_MenuStringBuffer8; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -3425,7 +3429,7 @@ void PrepareScreenItems(void) convert_equatorial_to_horizontal(Data_40004ad8, Data_40004ae8, Data_40004128.Data_40, Data_40004128.bData_44, &Data_40004b08); - sprintf(Data_40003ffd, "OBJ Azi:%03d %02d %02d ", + sprintf(g_MenuStringBuffer5, "OBJ Azi:%03d %02d %02d ", (int)Data_40004b08.dAzimuth, (int)((Data_40004b08.dAzimuth - (int)Data_40004b08.dAzimuth) * 60.0), (int)(Data_40004b08.dAzimuth * 3600.0) % 60); @@ -3433,7 +3437,7 @@ void PrepareScreenItems(void) if (Data_40004b08.dAltitude >= 0) { //3440c - sprintf(Data_40004012, "Alt:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:+%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60.0)), abs((int)(Data_40004b08.dAltitude * 3600.0) % 60)); @@ -3441,7 +3445,7 @@ void PrepareScreenItems(void) else { //0x34508 - sprintf(Data_40004012, "Alt:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:-%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60.0)), abs((int)(Data_40004b08.dAltitude * 3600.0) % 60)); @@ -3451,36 +3455,36 @@ void PrepareScreenItems(void) //0x3460c if ((int)(Data_40004b08.dAzimuth) < 100) { - Data_40003ffd[11] = ' '; + g_MenuStringBuffer5[11] = ' '; } if ((int)(Data_40004b08.dAzimuth) < 10) { - Data_40003ffd[12] = ' '; + g_MenuStringBuffer5[12] = ' '; } if ((int)((Data_40004b08.dAzimuth - (int)Data_40004b08.dAzimuth) * 60.0) < 10) { - Data_40003ffd[15] = ' '; + g_MenuStringBuffer5[15] = ' '; } if (((int)(Data_40004b08.dAzimuth * 3600.0) % 60) < 10) { - Data_40003ffd[18] = ' '; + g_MenuStringBuffer5[18] = ' '; } if (abs((int)Data_40004b08.dAltitude) < 10) { - Data_40004012[5] = ' '; + g_MenuStringBuffer6[5] = ' '; } if (abs((int)((Data_40004b08.dAltitude - (int)Data_40004b08.dAltitude) * 60.0)) < 10) { - Data_40004012[8] = ' '; + g_MenuStringBuffer6[8] = ' '; } if (abs(((int)(Data_40004b08.dAltitude * 3600.0)) % 60) < 10) { - Data_40004012[11] = ' '; + g_MenuStringBuffer6[11] = ' '; } //0x34814 - Data_40003370 = Data_40003ffd; - Data_40003374 = Data_40004012; + g_pcstrMenuLine5 = g_MenuStringBuffer5; + g_pcstrMenuLine6 = g_MenuStringBuffer6; dData_40002dd0 = dData_40002dc0_Azimuth; dData_40002e08 = dData_40002df8; @@ -3513,7 +3517,7 @@ void PrepareScreenItems(void) dData_40002e08 = Data_40004b70.dAltitude; } //0x349b8 - sprintf(Data_40004027, "OTA Azi:%03d %02d %02d ", + sprintf(g_MenuStringBuffer7, "OTA Azi:%03d %02d %02d ", abs((int)dData_40002dd0), abs((int)((dData_40002dd0 - (int)dData_40002dd0) * 60)), abs((int)(dData_40002dd0 * 3600) % 60)); @@ -3521,7 +3525,7 @@ void PrepareScreenItems(void) if (dData_40002e08 >= 0) { //34ab8 - sprintf(Data_4000403c, "Alt:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Alt:+%02d %02d %02d ", abs((int)dData_40002e08), abs((int)((dData_40002e08 - (int)(dData_40002e08)) * 60)), abs(((int)(dData_40002e08 * 3600) % 60))); @@ -3529,7 +3533,7 @@ void PrepareScreenItems(void) else { //0x34ba4 - sprintf(Data_4000403c, "Alt:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Alt:-%02d %02d %02d ", abs((int)dData_40002e08), abs((int)((dData_40002e08 - (int)(dData_40002e08)) * 60)), abs(((int)(dData_40002e08 * 3600) % 60))); @@ -3537,36 +3541,36 @@ void PrepareScreenItems(void) //0x34c8c if ((int)dData_40002dd0 < 100) { - Data_40004027[11] = ' '; + g_MenuStringBuffer7[11] = ' '; } if ((int)dData_40002dd0 < 10) { - Data_40004027[12] = ' '; + g_MenuStringBuffer7[12] = ' '; } if (((int)((dData_40002dd0 - (int)dData_40002dd0) * 60)) < 10) { - Data_40004027[15] = ' '; + g_MenuStringBuffer7[15] = ' '; } if (((int)(dData_40002dd0 * 3600) % 60) < 10) { - Data_40004027[18] = ' '; + g_MenuStringBuffer7[18] = ' '; } if (abs((int)dData_40002e08) < 10) { - Data_4000403c[5] = ' '; + g_MenuStringBuffer8[5] = ' '; } if (abs((int)((dData_40002e08 - (int)dData_40002e08) * 60.0)) < 10) { - Data_4000403c[8] = ' '; + g_MenuStringBuffer8[8] = ' '; } if (abs(((int)(dData_40002e08 * 3600.0)) % 60) < 10) { - Data_4000403c[11] = ' '; + g_MenuStringBuffer8[11] = ' '; } //0x34edc - Data_40003378 = Data_40004027; - Data_4000337c = Data_4000403c; + g_pcstrMenuLine7 = g_MenuStringBuffer7; + g_pcstrMenuLine8 = g_MenuStringBuffer8; if ((bTrackingMode == 1) || (bTrackingMode == 2)) { @@ -3585,53 +3589,53 @@ void PrepareScreenItems(void) { case 1: //0x34f98 - Data_40003360 = "Slewing to Target "; + g_pcstrMenuLine1 = "Slewing to Target "; break; case 2: //0x34fac - Data_40003360 = "Find Target,Tracking "; + g_pcstrMenuLine1 = "Find Target,Tracking "; break; case 3: //0x34fc0 - Data_40003360 = "Target Under Horizon "; + g_pcstrMenuLine1 = "Target Under Horizon "; bData_40003432 = 1; break; case MENU_TRACKING_MODE_PAUSE: //4: //0x34fe0 - Data_40003360 = "Pause "; + g_pcstrMenuLine1 = "Pause "; break; case MENU_TRACKING_MODE_CANCEL: //5: //0x34ff4 - Data_40003360 = "Cancel Operation "; + g_pcstrMenuLine1 = "Cancel Operation "; break; default: //0x35008 - Data_40003360 = " "; + g_pcstrMenuLine1 = " "; break; } //0x336f8 - sprintf(Data_40003fbe, "NGC:%d ", + sprintf(g_MenuStringBuffer2, "NGC:%d ", wData_40002eba_NGCNr); - Data_40003364 = Data_40003fbe; - Data_40003368 = Data_40003ee0_FlashNGCData.bData_0; + g_pcstrMenuLine2 = g_MenuStringBuffer2; + g_pcstrMenuLine3 = Data_40003ee0_FlashNGCData.bData_0; if (Data_40003ee0_FlashNGCData.fData_16 != 0) { //35060 - sprintf(Data_40003fe8, "MEG:%.1f ", + sprintf(g_MenuStringBuffer4, "MEG:%.1f ", Data_40003ee0_FlashNGCData.fData_16); - Data_4000336c = Data_40003fe8; + g_pcstrMenuLine4 = g_MenuStringBuffer4; } else { //0x35098 - Data_4000336c = " "; + g_pcstrMenuLine4 = " "; } //0x350a4 bData_4000316e_FocusLineOn8LineDisplay = 0; @@ -3646,26 +3650,26 @@ void PrepareScreenItems(void) fData_40002cd0_ObjectRightAscension = Data_40003ec0_FlashICData.fRightAscension; fData_40002d18_ObjectDeclination = Data_40003ec0_FlashICData.fDeclination; - sprintf(Data_40003fa9, "IC:%d ", + sprintf(g_MenuStringBuffer1, "IC:%d ", wData_40002ebc_ICNr); - Data_40003360 = Data_40003fa9; - Data_40003364 = Data_40003ec0_FlashICData.bData_0; + g_pcstrMenuLine1 = g_MenuStringBuffer1; + g_pcstrMenuLine2 = Data_40003ec0_FlashICData.bData_0; if (Data_40003ec0_FlashICData.fData_16 != 0) { //35134 - sprintf(Data_40003fd3, "MEG:%.1f ", + sprintf(g_MenuStringBuffer3, "MEG:%.1f ", Data_40003ec0_FlashICData.fData_16); - Data_40003368 = Data_40003fd3; + g_pcstrMenuLine3 = g_MenuStringBuffer3; } else { //0x3516c - Data_40003368 = " "; + g_pcstrMenuLine3 = " "; } //0x35178 - Data_4000336c = Data_40003ec0_FlashICData.bData_20; + g_pcstrMenuLine4 = Data_40003ec0_FlashICData.bData_20; Data_40004ad8.dLongitude = Data_40004128.geographicLongitude; Data_40004ad8.dLatitude = Data_40004128.geographicLatitude; @@ -3675,7 +3679,7 @@ void PrepareScreenItems(void) convert_equatorial_to_horizontal(Data_40004ad8, Data_40004ae8, Data_40004128.Data_40, Data_40004128.bData_44, &Data_40004b08); //3520c - sprintf(Data_40003ffd, "OBJ Azi:%03d %02d %02d ", + sprintf(g_MenuStringBuffer5, "OBJ Azi:%03d %02d %02d ", (int)(Data_40004b08.dAzimuth), (int)((Data_40004b08.dAzimuth - (int)(Data_40004b08.dAzimuth)) * 60.0), (int)(Data_40004b08.dAzimuth * 3600.0) % 60); @@ -3683,7 +3687,7 @@ void PrepareScreenItems(void) if (Data_40004b08.dAltitude >= 0) { //352e4 - sprintf(Data_40004012, "Alt:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:+%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60.0)), abs((int)(Data_40004b08.dAltitude * 3600.0) % 60)); @@ -3691,7 +3695,7 @@ void PrepareScreenItems(void) else { //0x3549c - sprintf(Data_40004012, "Alt:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:-%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60.0)), abs((int)(Data_40004b08.dAltitude * 3600.0) % 60)); @@ -3699,61 +3703,61 @@ void PrepareScreenItems(void) //0x35594 if ((int)(Data_40004b08.dAzimuth) < 100) { - Data_40003ffd[11] = ' '; + g_MenuStringBuffer5[11] = ' '; } if ((int)(Data_40004b08.dAzimuth) < 10) { - Data_40003ffd[12] = ' '; + g_MenuStringBuffer5[12] = ' '; } if ((int)((Data_40004b08.dAzimuth - (int)Data_40004b08.dAzimuth) * 60.0) < 10) { - Data_40003ffd[15] = ' '; + g_MenuStringBuffer5[15] = ' '; } if (((int)(Data_40004b08.dAzimuth * 3600.0) % 60) < 10) { - Data_40003ffd[18] = ' '; + g_MenuStringBuffer5[18] = ' '; } if (abs((int)Data_40004b08.dAltitude) < 10) { - Data_40004012[5] = ' '; + g_MenuStringBuffer6[5] = ' '; } if (abs((int)((Data_40004b08.dAltitude - (int)Data_40004b08.dAltitude) * 60.0)) < 10) { - Data_40004012[8] = ' '; + g_MenuStringBuffer6[8] = ' '; } if (abs(((int)(Data_40004b08.dAltitude * 3600.0)) % 60) < 10) { - Data_40004012[11] = ' '; + g_MenuStringBuffer6[11] = ' '; } //0x3579c - Data_40003370 = Data_40003ffd; - Data_40003374 = Data_40004012; + g_pcstrMenuLine5 = g_MenuStringBuffer5; + g_pcstrMenuLine6 = g_MenuStringBuffer6; - sprintf(Data_40004027, "R.a: %02dh%02dm%02ds ", + sprintf(g_MenuStringBuffer7, "R.a: %02dh%02dm%02ds ", (int)fData_40002cd0_ObjectRightAscension, (int)((fData_40002cd0_ObjectRightAscension - (int)fData_40002cd0_ObjectRightAscension) * 60), (int)(fData_40002cd0_ObjectRightAscension * 3600) % 60); if ((int)fData_40002cd0_ObjectRightAscension < 10) { - Data_40004027[5] = ' '; + g_MenuStringBuffer7[5] = ' '; } if (((int)((fData_40002cd0_ObjectRightAscension - (int)fData_40002cd0_ObjectRightAscension) * 60)) < 10) { - Data_40004027[8] = ' '; + g_MenuStringBuffer7[8] = ' '; } if (((int)(fData_40002cd0_ObjectRightAscension * 3600) % 60) < 10) { - Data_40004027[11] = ' '; + g_MenuStringBuffer7[11] = ' '; } - Data_40003378 = Data_40004027; + g_pcstrMenuLine7 = g_MenuStringBuffer7; if (fData_40002d18_ObjectDeclination >= 0) { //3590c - sprintf(Data_4000403c, "Dec:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Dec:+%02d %02d %02d ", abs((int)fData_40002d18_ObjectDeclination), abs((int)((fData_40002d18_ObjectDeclination - (int)(fData_40002d18_ObjectDeclination)) * 60)), abs(((int)(fData_40002d18_ObjectDeclination * 3600) % 60))); @@ -3761,7 +3765,7 @@ void PrepareScreenItems(void) else { //0x359dc - sprintf(Data_4000403c, "Dec:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Dec:-%02d %02d %02d ", abs((int)fData_40002d18_ObjectDeclination), abs((int)((fData_40002d18_ObjectDeclination - (int)(fData_40002d18_ObjectDeclination)) * 60)), abs(((int)(fData_40002d18_ObjectDeclination * 3600) % 60))); @@ -3769,18 +3773,18 @@ void PrepareScreenItems(void) //0x35aa8 if (abs((int)fData_40002d18_ObjectDeclination) < 10) { - Data_4000403c[5] = ' '; + g_MenuStringBuffer8[5] = ' '; } if (abs((int)((fData_40002d18_ObjectDeclination - (int)fData_40002d18_ObjectDeclination) * 60)) < 10) { - Data_4000403c[8] = ' '; + g_MenuStringBuffer8[8] = ' '; } if (abs((int)(fData_40002d18_ObjectDeclination * 3600) % 60) < 10) { - Data_4000403c[11] = ' '; + g_MenuStringBuffer8[11] = ' '; } //0x35b8c - Data_4000337c = Data_4000403c; + g_pcstrMenuLine8 = g_MenuStringBuffer8; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -3803,7 +3807,7 @@ void PrepareScreenItems(void) convert_equatorial_to_horizontal(Data_40004ad8, Data_40004ae8, Data_40004128.Data_40, Data_40004128.bData_44, &Data_40004b08); - sprintf(Data_40003ffd, "OBJ Azi:%03d %02d %02d ", + sprintf(g_MenuStringBuffer5, "OBJ Azi:%03d %02d %02d ", (int)Data_40004b08.dAzimuth, (int)((Data_40004b08.dAzimuth - (int)Data_40004b08.dAzimuth) * 60.0), (int)(Data_40004b08.dAzimuth * 3600.0) % 60); @@ -3811,7 +3815,7 @@ void PrepareScreenItems(void) if (Data_40004b08.dAltitude >= 0) { //35d4c - sprintf(Data_40004012, "Alt:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:+%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60.0)), abs((int)(Data_40004b08.dAltitude * 3600.0) % 60)); @@ -3819,7 +3823,7 @@ void PrepareScreenItems(void) else { //0x35e48 - sprintf(Data_40004012, "Alt:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:-%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60.0)), abs((int)(Data_40004b08.dAltitude * 3600.0) % 60)); @@ -3829,36 +3833,36 @@ void PrepareScreenItems(void) //0x35f4c if ((int)(Data_40004b08.dAzimuth) < 100) { - Data_40003ffd[11] = ' '; + g_MenuStringBuffer5[11] = ' '; } if ((int)(Data_40004b08.dAzimuth) < 10) { - Data_40003ffd[12] = ' '; + g_MenuStringBuffer5[12] = ' '; } if ((int)((Data_40004b08.dAzimuth - (int)Data_40004b08.dAzimuth) * 60.0) < 10) { - Data_40003ffd[15] = ' '; + g_MenuStringBuffer5[15] = ' '; } if (((int)(Data_40004b08.dAzimuth * 3600.0) % 60) < 10) { - Data_40003ffd[18] = ' '; + g_MenuStringBuffer5[18] = ' '; } if (abs((int)Data_40004b08.dAltitude) < 10) { - Data_40004012[5] = ' '; + g_MenuStringBuffer6[5] = ' '; } if (abs((int)((Data_40004b08.dAltitude - (int)Data_40004b08.dAltitude) * 60.0)) < 10) { - Data_40004012[8] = ' '; + g_MenuStringBuffer6[8] = ' '; } if (abs(((int)(Data_40004b08.dAltitude * 3600.0)) % 60) < 10) { - Data_40004012[11] = ' '; + g_MenuStringBuffer6[11] = ' '; } //0x36154 - Data_40003370 = Data_40003ffd; - Data_40003374 = Data_40004012; + g_pcstrMenuLine5 = g_MenuStringBuffer5; + g_pcstrMenuLine6 = g_MenuStringBuffer6; dData_40002dd0 = dData_40002dc0_Azimuth; dData_40002e08 = dData_40002df8; @@ -3891,7 +3895,7 @@ void PrepareScreenItems(void) dData_40002e08 = Data_40004b70.dAltitude; } //0x362fc - sprintf(Data_40004027, "OTA Azi:%03d %02d %02d ", + sprintf(g_MenuStringBuffer7, "OTA Azi:%03d %02d %02d ", abs((int)dData_40002dd0), abs((int)((dData_40002dd0 - (int)dData_40002dd0) * 60)), abs((int)(dData_40002dd0 * 3600) % 60)); @@ -3899,7 +3903,7 @@ void PrepareScreenItems(void) if (dData_40002e08 >= 0) { //363fc - sprintf(Data_4000403c, "Alt:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Alt:+%02d %02d %02d ", abs((int)dData_40002e08), abs((int)((dData_40002e08 - (int)(dData_40002e08)) * 60)), abs(((int)(dData_40002e08 * 3600) % 60))); @@ -3907,7 +3911,7 @@ void PrepareScreenItems(void) else { //0x364e8 - sprintf(Data_4000403c, "Alt:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Alt:-%02d %02d %02d ", abs((int)dData_40002e08), abs((int)((dData_40002e08 - (int)(dData_40002e08)) * 60)), abs(((int)(dData_40002e08 * 3600) % 60))); @@ -3915,36 +3919,36 @@ void PrepareScreenItems(void) //0x365d0 if ((int)dData_40002dd0 < 100) { - Data_40004027[11] = ' '; + g_MenuStringBuffer7[11] = ' '; } if ((int)dData_40002dd0 < 10) { - Data_40004027[12] = ' '; + g_MenuStringBuffer7[12] = ' '; } if (((int)((dData_40002dd0 - (int)dData_40002dd0) * 60)) < 10) { - Data_40004027[15] = ' '; + g_MenuStringBuffer7[15] = ' '; } if (((int)(dData_40002dd0 * 3600) % 60) < 10) { - Data_40004027[18] = ' '; + g_MenuStringBuffer7[18] = ' '; } if (abs((int)dData_40002e08) < 10) { - Data_4000403c[5] = ' '; + g_MenuStringBuffer8[5] = ' '; } if (abs((int)((dData_40002e08 - (int)dData_40002e08) * 60.0)) < 10) { - Data_4000403c[8] = ' '; + g_MenuStringBuffer8[8] = ' '; } if (abs(((int)(dData_40002e08 * 3600.0)) % 60) < 10) { - Data_4000403c[11] = ' '; + g_MenuStringBuffer8[11] = ' '; } //0x3682c - Data_40003378 = Data_40004027; - Data_4000337c = Data_4000403c; + g_pcstrMenuLine7 = g_MenuStringBuffer7; + g_pcstrMenuLine8 = g_MenuStringBuffer8; if ((bTrackingMode == 1) || (bTrackingMode == 2)) { @@ -3963,53 +3967,53 @@ void PrepareScreenItems(void) { case 1: //0x368e8 - Data_40003360 = "Slewing to Target "; + g_pcstrMenuLine1 = "Slewing to Target "; break; case 2: //0x368fc - Data_40003360 = "Find Target,Tracking "; + g_pcstrMenuLine1 = "Find Target,Tracking "; break; case 3: //0x36910 - Data_40003360 = "Target Under Horizon "; + g_pcstrMenuLine1 = "Target Under Horizon "; bData_40003432 = 1; break; case MENU_TRACKING_MODE_PAUSE: //4: //0x36930 - Data_40003360 = "Pause "; + g_pcstrMenuLine1 = "Pause "; break; case MENU_TRACKING_MODE_CANCEL: //5: //0x36944 - Data_40003360 = "Cancel Operation "; + g_pcstrMenuLine1 = "Cancel Operation "; break; default: //0x36958 - Data_40003360 = " "; + g_pcstrMenuLine1 = " "; break; } //0x3696c - sprintf(Data_40003fbe, "IC:%d ", + sprintf(g_MenuStringBuffer2, "IC:%d ", wData_40002ebc_ICNr); - Data_40003364 = Data_40003fbe; - Data_40003368 = Data_40003ec0_FlashICData.bData_0; + g_pcstrMenuLine2 = g_MenuStringBuffer2; + g_pcstrMenuLine3 = Data_40003ec0_FlashICData.bData_0; if (Data_40003ec0_FlashICData.fData_16 != 0) { //369b0 - sprintf(Data_40003fe8, "MEG:%.1f ", + sprintf(g_MenuStringBuffer4, "MEG:%.1f ", Data_40003ec0_FlashICData.fData_16); - Data_4000336c = Data_40003fe8; + g_pcstrMenuLine4 = g_MenuStringBuffer4; } else { //0x369e8 - Data_4000336c = " "; + g_pcstrMenuLine4 = " "; } //0x350a4 bData_4000316e_FocusLineOn8LineDisplay = 0; @@ -4024,13 +4028,13 @@ void PrepareScreenItems(void) fData_40002cd0_ObjectRightAscension = Data_40003350_FlashSh2Data.fRightAscension; fData_40002d18_ObjectDeclination = Data_40003350_FlashSh2Data.fDeclination; - sprintf(Data_40003fa9, "Sh2:%d ", + sprintf(g_MenuStringBuffer1, "Sh2:%d ", wData_40002ebe_ShNr); - Data_40003360 = Data_40003fa9; - Data_40003364 = " "; - Data_40003368 = " "; - Data_4000336c = " "; + g_pcstrMenuLine1 = g_MenuStringBuffer1; + g_pcstrMenuLine2 = " "; + g_pcstrMenuLine3 = " "; + g_pcstrMenuLine4 = " "; Data_40004ad8.dLongitude = Data_40004128.geographicLongitude; Data_40004ad8.dLatitude = Data_40004128.geographicLatitude; @@ -4040,7 +4044,7 @@ void PrepareScreenItems(void) convert_equatorial_to_horizontal(Data_40004ad8, Data_40004ae8, Data_40004128.Data_40, Data_40004128.bData_44, &Data_40004b08); - sprintf(Data_40003ffd, "OBJ Azi:%03d %02d %02d ", + sprintf(g_MenuStringBuffer5, "OBJ Azi:%03d %02d %02d ", (int)(Data_40004b08.dAzimuth), (int)((Data_40004b08.dAzimuth - (int)(Data_40004b08.dAzimuth)) * 60.0), (int)(Data_40004b08.dAzimuth * 3600.0) % 60); @@ -4048,7 +4052,7 @@ void PrepareScreenItems(void) if (Data_40004b08.dAltitude >= 0) { //36be8 - sprintf(Data_40004012, "Alt:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:+%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60.0)), abs((int)(Data_40004b08.dAltitude * 3600.0) % 60)); @@ -4056,7 +4060,7 @@ void PrepareScreenItems(void) else { //0x36d88 - sprintf(Data_40004012, "Alt:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:-%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60.0)), abs((int)(Data_40004b08.dAltitude * 3600.0) % 60)); @@ -4064,61 +4068,61 @@ void PrepareScreenItems(void) //0x36e80 if ((int)(Data_40004b08.dAzimuth) < 100) { - Data_40003ffd[11] = ' '; + g_MenuStringBuffer5[11] = ' '; } if ((int)(Data_40004b08.dAzimuth) < 10) { - Data_40003ffd[12] = ' '; + g_MenuStringBuffer5[12] = ' '; } if ((int)((Data_40004b08.dAzimuth - (int)Data_40004b08.dAzimuth) * 60.0) < 10) { - Data_40003ffd[15] = ' '; + g_MenuStringBuffer5[15] = ' '; } if (((int)(Data_40004b08.dAzimuth * 3600.0) % 60) < 10) { - Data_40003ffd[18] = ' '; + g_MenuStringBuffer5[18] = ' '; } if (abs((int)Data_40004b08.dAltitude) < 10) { - Data_40004012[5] = ' '; + g_MenuStringBuffer6[5] = ' '; } if (abs((int)((Data_40004b08.dAltitude - (int)Data_40004b08.dAltitude) * 60.0)) < 10) { - Data_40004012[8] = ' '; + g_MenuStringBuffer6[8] = ' '; } if (abs(((int)(Data_40004b08.dAltitude * 3600.0)) % 60) < 10) { - Data_40004012[11] = ' '; + g_MenuStringBuffer6[11] = ' '; } //0x37088 - Data_40003370 = Data_40003ffd; - Data_40003374 = Data_40004012; + g_pcstrMenuLine5 = g_MenuStringBuffer5; + g_pcstrMenuLine6 = g_MenuStringBuffer6; - sprintf(Data_40004027, "R.a: %02dh%02dm%02ds ", + sprintf(g_MenuStringBuffer7, "R.a: %02dh%02dm%02ds ", (int)fData_40002cd0_ObjectRightAscension, (int)((fData_40002cd0_ObjectRightAscension - (int)fData_40002cd0_ObjectRightAscension) * 60), (int)(fData_40002cd0_ObjectRightAscension * 3600) % 60); if ((int)fData_40002cd0_ObjectRightAscension < 10) { - Data_40004027[5] = ' '; + g_MenuStringBuffer7[5] = ' '; } if (((int)((fData_40002cd0_ObjectRightAscension - (int)fData_40002cd0_ObjectRightAscension) * 60)) < 10) { - Data_40004027[8] = ' '; + g_MenuStringBuffer7[8] = ' '; } if (((int)(fData_40002cd0_ObjectRightAscension * 3600) % 60) < 10) { - Data_40004027[11] = ' '; + g_MenuStringBuffer7[11] = ' '; } - Data_40003378 = Data_40004027; + g_pcstrMenuLine7 = g_MenuStringBuffer7; if (fData_40002d18_ObjectDeclination >= 0) { //371f8 - sprintf(Data_4000403c, "Dec:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Dec:+%02d %02d %02d ", abs((int)fData_40002d18_ObjectDeclination), abs((int)((fData_40002d18_ObjectDeclination - (int)(fData_40002d18_ObjectDeclination)) * 60)), abs(((int)(fData_40002d18_ObjectDeclination * 3600) % 60))); @@ -4126,7 +4130,7 @@ void PrepareScreenItems(void) else { //0x372c8 - sprintf(Data_4000403c, "Dec:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Dec:-%02d %02d %02d ", abs((int)fData_40002d18_ObjectDeclination), abs((int)((fData_40002d18_ObjectDeclination - (int)(fData_40002d18_ObjectDeclination)) * 60)), abs(((int)(fData_40002d18_ObjectDeclination * 3600) % 60))); @@ -4134,18 +4138,18 @@ void PrepareScreenItems(void) //0x37394 if (abs((int)fData_40002d18_ObjectDeclination) < 10) { - Data_4000403c[5] = ' '; + g_MenuStringBuffer8[5] = ' '; } if (abs((int)((fData_40002d18_ObjectDeclination - (int)fData_40002d18_ObjectDeclination) * 60)) < 10) { - Data_4000403c[8] = ' '; + g_MenuStringBuffer8[8] = ' '; } if (abs((int)(fData_40002d18_ObjectDeclination * 3600) % 60) < 10) { - Data_4000403c[11] = ' '; + g_MenuStringBuffer8[11] = ' '; } //0x37478 - Data_4000337c = Data_4000403c; + g_pcstrMenuLine8 = g_MenuStringBuffer8; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -4168,7 +4172,7 @@ void PrepareScreenItems(void) convert_equatorial_to_horizontal(Data_40004ad8, Data_40004ae8, Data_40004128.Data_40, Data_40004128.bData_44, &Data_40004b08); - sprintf(Data_40003ffd, "OBJ Azi:%03d %02d %02d ", + sprintf(g_MenuStringBuffer5, "OBJ Azi:%03d %02d %02d ", (int)Data_40004b08.dAzimuth, (int)((Data_40004b08.dAzimuth - (int)Data_40004b08.dAzimuth) * 60.0), (int)(Data_40004b08.dAzimuth * 3600.0) % 60); @@ -4176,7 +4180,7 @@ void PrepareScreenItems(void) if (Data_40004b08.dAltitude >= 0) { //37634 - sprintf(Data_40004012, "Alt:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:+%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60.0)), abs((int)(Data_40004b08.dAltitude * 3600.0) % 60)); @@ -4184,7 +4188,7 @@ void PrepareScreenItems(void) else { //0x37730 - sprintf(Data_40004012, "Alt:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:-%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60.0)), abs((int)(Data_40004b08.dAltitude * 3600.0) % 60)); @@ -4194,36 +4198,36 @@ void PrepareScreenItems(void) //0x37834 if ((int)(Data_40004b08.dAzimuth) < 100) { - Data_40003ffd[11] = ' '; + g_MenuStringBuffer5[11] = ' '; } if ((int)(Data_40004b08.dAzimuth) < 10) { - Data_40003ffd[12] = ' '; + g_MenuStringBuffer5[12] = ' '; } if ((int)((Data_40004b08.dAzimuth - (int)Data_40004b08.dAzimuth) * 60.0) < 10) { - Data_40003ffd[15] = ' '; + g_MenuStringBuffer5[15] = ' '; } if (((int)(Data_40004b08.dAzimuth * 3600.0) % 60) < 10) { - Data_40003ffd[18] = ' '; + g_MenuStringBuffer5[18] = ' '; } if (abs((int)Data_40004b08.dAltitude) < 10) { - Data_40004012[5] = ' '; + g_MenuStringBuffer6[5] = ' '; } if (abs((int)((Data_40004b08.dAltitude - (int)Data_40004b08.dAltitude) * 60.0)) < 10) { - Data_40004012[8] = ' '; + g_MenuStringBuffer6[8] = ' '; } if (abs(((int)(Data_40004b08.dAltitude * 3600.0)) % 60) < 10) { - Data_40004012[11] = ' '; + g_MenuStringBuffer6[11] = ' '; } //0x37a3c - Data_40003370 = Data_40003ffd; - Data_40003374 = Data_40004012; + g_pcstrMenuLine5 = g_MenuStringBuffer5; + g_pcstrMenuLine6 = g_MenuStringBuffer6; dData_40002dd0 = dData_40002dc0_Azimuth; dData_40002e08 = dData_40002df8; @@ -4256,7 +4260,7 @@ void PrepareScreenItems(void) dData_40002e08 = Data_40004b70.dAltitude; } //0x37be4 - sprintf(Data_40004027, "OTA Azi:%03d %02d %02d ", + sprintf(g_MenuStringBuffer7, "OTA Azi:%03d %02d %02d ", abs((int)dData_40002dd0), abs((int)((dData_40002dd0 - (int)dData_40002dd0) * 60)), abs((int)(dData_40002dd0 * 3600) % 60)); @@ -4264,7 +4268,7 @@ void PrepareScreenItems(void) if (dData_40002e08 >= 0) { //37ce4 - sprintf(Data_4000403c, "Alt:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Alt:+%02d %02d %02d ", abs((int)dData_40002e08), abs((int)((dData_40002e08 - (int)(dData_40002e08)) * 60)), abs(((int)(dData_40002e08 * 3600) % 60))); @@ -4272,7 +4276,7 @@ void PrepareScreenItems(void) else { //0x37dd0 - sprintf(Data_4000403c, "Alt:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Alt:-%02d %02d %02d ", abs((int)dData_40002e08), abs((int)((dData_40002e08 - (int)(dData_40002e08)) * 60)), abs(((int)(dData_40002e08 * 3600) % 60))); @@ -4280,36 +4284,36 @@ void PrepareScreenItems(void) //0x37eb8 if ((int)dData_40002dd0 < 100) { - Data_40004027[11] = ' '; + g_MenuStringBuffer7[11] = ' '; } if ((int)dData_40002dd0 < 10) { - Data_40004027[12] = ' '; + g_MenuStringBuffer7[12] = ' '; } if (((int)((dData_40002dd0 - (int)dData_40002dd0) * 60)) < 10) { - Data_40004027[15] = ' '; + g_MenuStringBuffer7[15] = ' '; } if (((int)(dData_40002dd0 * 3600) % 60) < 10) { - Data_40004027[18] = ' '; + g_MenuStringBuffer7[18] = ' '; } if (abs((int)dData_40002e08) < 10) { - Data_4000403c[5] = ' '; + g_MenuStringBuffer8[5] = ' '; } if (abs((int)((dData_40002e08 - (int)dData_40002e08) * 60.0)) < 10) { - Data_4000403c[8] = ' '; + g_MenuStringBuffer8[8] = ' '; } if (abs(((int)(dData_40002e08 * 3600.0)) % 60) < 10) { - Data_4000403c[11] = ' '; + g_MenuStringBuffer8[11] = ' '; } //0x38108 - Data_40003378 = Data_40004027; - Data_4000337c = Data_4000403c; + g_pcstrMenuLine7 = g_MenuStringBuffer7; + g_pcstrMenuLine8 = g_MenuStringBuffer8; if ((bTrackingMode == 1) || (bTrackingMode == 2)) { @@ -4328,42 +4332,42 @@ void PrepareScreenItems(void) { case 1: //0x381c4 - Data_40003360 = "Slewing to Target "; + g_pcstrMenuLine1 = "Slewing to Target "; break; case 2: //0x381d8 - Data_40003360 = "Find Target,Tracking "; + g_pcstrMenuLine1 = "Find Target,Tracking "; break; case 3: //0x381ec - Data_40003360 = "Target Under Horizon "; + g_pcstrMenuLine1 = "Target Under Horizon "; bData_40003432 = 1; break; case MENU_TRACKING_MODE_PAUSE: //4: //0x3820c - Data_40003360 = "Pause "; + g_pcstrMenuLine1 = "Pause "; break; case MENU_TRACKING_MODE_CANCEL: //5: //0x38220 - Data_40003360 = "Cancel Operation "; + g_pcstrMenuLine1 = "Cancel Operation "; break; default: //0x38234 - Data_40003360 = " "; + g_pcstrMenuLine1 = " "; break; } //0x38248 - sprintf(Data_40003fd3, "Sh2:%d ", + sprintf(g_MenuStringBuffer3, "Sh2:%d ", wData_40002ebe_ShNr); - Data_40003368 = Data_40003fd3; - Data_40003364 = " "; - Data_4000336c = " "; + g_pcstrMenuLine3 = g_MenuStringBuffer3; + g_pcstrMenuLine2 = " "; + g_pcstrMenuLine4 = " "; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -4377,26 +4381,26 @@ void PrepareScreenItems(void) fData_40002cd0_ObjectRightAscension = Data_40003ea0_FlashBrightStarData.fRightAscension; fData_40002d18_ObjectDeclination = Data_40003ea0_FlashBrightStarData.fDeclination; - sprintf(Data_40003fa9, "Bright:%d ", + sprintf(g_MenuStringBuffer1, "Bright:%d ", wData_40002ec0_BrightStarNr); - Data_40003360 = Data_40003fa9; - Data_40003364 = Data_40003ea0_FlashBrightStarData.bData_0; + g_pcstrMenuLine1 = g_MenuStringBuffer1; + g_pcstrMenuLine2 = Data_40003ea0_FlashBrightStarData.bData_0; if (Data_40003ea0_FlashBrightStarData.fData_28 != 0) { //38318 - sprintf(Data_40003fd3, "MEG:%.1f ", + sprintf(g_MenuStringBuffer3, "MEG:%.1f ", Data_40003ea0_FlashBrightStarData.fData_28); - Data_40003368 = Data_40003fd3; + g_pcstrMenuLine3 = g_MenuStringBuffer3; } else { //0x38350 - Data_40003368 = " "; + g_pcstrMenuLine3 = " "; } //0x3835c - Data_4000336c = " "; + g_pcstrMenuLine4 = " "; Data_40004ad8.dLongitude = Data_40004128.geographicLongitude; Data_40004ad8.dLatitude = Data_40004128.geographicLatitude; @@ -4406,7 +4410,7 @@ void PrepareScreenItems(void) convert_equatorial_to_horizontal(Data_40004ad8, Data_40004ae8, Data_40004128.Data_40, Data_40004128.bData_44, &Data_40004b08); - sprintf(Data_40003ffd, "OBJ Azi:%03d %02d %02d ", + sprintf(g_MenuStringBuffer5, "OBJ Azi:%03d %02d %02d ", (int)(Data_40004b08.dAzimuth), (int)((Data_40004b08.dAzimuth - (int)(Data_40004b08.dAzimuth)) * 60.0), (int)(Data_40004b08.dAzimuth * 3600.0) % 60); @@ -4414,7 +4418,7 @@ void PrepareScreenItems(void) if (Data_40004b08.dAltitude >= 0) { //384cc - sprintf(Data_40004012, "Alt:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:+%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60.0)), abs((int)(Data_40004b08.dAltitude * 3600.0) % 60)); @@ -4422,7 +4426,7 @@ void PrepareScreenItems(void) else { //0x38668 - sprintf(Data_40004012, "Alt:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:-%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60.0)), abs((int)(Data_40004b08.dAltitude * 3600.0) % 60)); @@ -4430,61 +4434,61 @@ void PrepareScreenItems(void) //0x38760 if ((int)(Data_40004b08.dAzimuth) < 100) { - Data_40003ffd[11] = ' '; + g_MenuStringBuffer5[11] = ' '; } if ((int)(Data_40004b08.dAzimuth) < 10) { - Data_40003ffd[12] = ' '; + g_MenuStringBuffer5[12] = ' '; } if ((int)((Data_40004b08.dAzimuth - (int)Data_40004b08.dAzimuth) * 60.0) < 10) { - Data_40003ffd[15] = ' '; + g_MenuStringBuffer5[15] = ' '; } if (((int)(Data_40004b08.dAzimuth * 3600.0) % 60) < 10) { - Data_40003ffd[18] = ' '; + g_MenuStringBuffer5[18] = ' '; } if (abs((int)Data_40004b08.dAltitude) < 10) { - Data_40004012[5] = ' '; + g_MenuStringBuffer6[5] = ' '; } if (abs((int)((Data_40004b08.dAltitude - (int)Data_40004b08.dAltitude) * 60.0)) < 10) { - Data_40004012[8] = ' '; + g_MenuStringBuffer6[8] = ' '; } if (abs(((int)(Data_40004b08.dAltitude * 3600.0)) % 60) < 10) { - Data_40004012[11] = ' '; + g_MenuStringBuffer6[11] = ' '; } //0x38968 - Data_40003370 = Data_40003ffd; - Data_40003374 = Data_40004012; + g_pcstrMenuLine5 = g_MenuStringBuffer5; + g_pcstrMenuLine6 = g_MenuStringBuffer6; - sprintf(Data_40004027, "R.a: %02dh%02dm%02ds ", + sprintf(g_MenuStringBuffer7, "R.a: %02dh%02dm%02ds ", (int)fData_40002cd0_ObjectRightAscension, (int)((fData_40002cd0_ObjectRightAscension - (int)fData_40002cd0_ObjectRightAscension) * 60), (int)(fData_40002cd0_ObjectRightAscension * 3600) % 60); if ((int)fData_40002cd0_ObjectRightAscension < 10) { - Data_40004027[5] = ' '; + g_MenuStringBuffer7[5] = ' '; } if (((int)((fData_40002cd0_ObjectRightAscension - (int)fData_40002cd0_ObjectRightAscension) * 60)) < 10) { - Data_40004027[8] = ' '; + g_MenuStringBuffer7[8] = ' '; } if (((int)(fData_40002cd0_ObjectRightAscension * 3600) % 60) < 10) { - Data_40004027[11] = ' '; + g_MenuStringBuffer7[11] = ' '; } - Data_40003378 = Data_40004027; + g_pcstrMenuLine7 = g_MenuStringBuffer7; if (fData_40002d18_ObjectDeclination >= 0) { //38ad8 - sprintf(Data_4000403c, "Dec:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Dec:+%02d %02d %02d ", abs((int)fData_40002d18_ObjectDeclination), abs((int)((fData_40002d18_ObjectDeclination - (int)(fData_40002d18_ObjectDeclination)) * 60)), abs(((int)(fData_40002d18_ObjectDeclination * 3600) % 60))); @@ -4492,7 +4496,7 @@ void PrepareScreenItems(void) else { //0x38ba8 - sprintf(Data_4000403c, "Dec:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Dec:-%02d %02d %02d ", abs((int)fData_40002d18_ObjectDeclination), abs((int)((fData_40002d18_ObjectDeclination - (int)(fData_40002d18_ObjectDeclination)) * 60)), abs(((int)(fData_40002d18_ObjectDeclination * 3600) % 60))); @@ -4500,18 +4504,18 @@ void PrepareScreenItems(void) //0x38c74 if (abs((int)fData_40002d18_ObjectDeclination) < 10) { - Data_4000403c[5] = ' '; + g_MenuStringBuffer8[5] = ' '; } if (abs((int)((fData_40002d18_ObjectDeclination - (int)fData_40002d18_ObjectDeclination) * 60)) < 10) { - Data_4000403c[8] = ' '; + g_MenuStringBuffer8[8] = ' '; } if (abs((int)(fData_40002d18_ObjectDeclination * 3600) % 60) < 10) { - Data_4000403c[11] = ' '; + g_MenuStringBuffer8[11] = ' '; } //0x38d58 - Data_4000337c = Data_4000403c; + g_pcstrMenuLine8 = g_MenuStringBuffer8; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -4534,7 +4538,7 @@ void PrepareScreenItems(void) convert_equatorial_to_horizontal(Data_40004ad8, Data_40004ae8, Data_40004128.Data_40, Data_40004128.bData_44, &Data_40004b08); - sprintf(Data_40003ffd, "OBJ Azi:%03d %02d %02d ", + sprintf(g_MenuStringBuffer5, "OBJ Azi:%03d %02d %02d ", (int)Data_40004b08.dAzimuth, (int)((Data_40004b08.dAzimuth - (int)Data_40004b08.dAzimuth) * 60.0), (int)(Data_40004b08.dAzimuth * 3600.0) % 60); @@ -4542,7 +4546,7 @@ void PrepareScreenItems(void) if (Data_40004b08.dAltitude >= 0) { //38f18 - sprintf(Data_40004012, "Alt:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:+%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60.0)), abs((int)(Data_40004b08.dAltitude * 3600.0) % 60)); @@ -4550,7 +4554,7 @@ void PrepareScreenItems(void) else { //0x39014 - sprintf(Data_40004012, "Alt:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:-%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60.0)), abs((int)(Data_40004b08.dAltitude * 3600.0) % 60)); @@ -4560,36 +4564,36 @@ void PrepareScreenItems(void) //0x39118 if ((int)(Data_40004b08.dAzimuth) < 100) { - Data_40003ffd[11] = ' '; + g_MenuStringBuffer5[11] = ' '; } if ((int)(Data_40004b08.dAzimuth) < 10) { - Data_40003ffd[12] = ' '; + g_MenuStringBuffer5[12] = ' '; } if ((int)((Data_40004b08.dAzimuth - (int)Data_40004b08.dAzimuth) * 60.0) < 10) { - Data_40003ffd[15] = ' '; + g_MenuStringBuffer5[15] = ' '; } if (((int)(Data_40004b08.dAzimuth * 3600.0) % 60) < 10) { - Data_40003ffd[18] = ' '; + g_MenuStringBuffer5[18] = ' '; } if (abs((int)Data_40004b08.dAltitude) < 10) { - Data_40004012[5] = ' '; + g_MenuStringBuffer6[5] = ' '; } if (abs((int)((Data_40004b08.dAltitude - (int)Data_40004b08.dAltitude) * 60.0)) < 10) { - Data_40004012[8] = ' '; + g_MenuStringBuffer6[8] = ' '; } if (abs(((int)(Data_40004b08.dAltitude * 3600.0)) % 60) < 10) { - Data_40004012[11] = ' '; + g_MenuStringBuffer6[11] = ' '; } //0x39320 - Data_40003370 = Data_40003ffd; - Data_40003374 = Data_40004012; + g_pcstrMenuLine5 = g_MenuStringBuffer5; + g_pcstrMenuLine6 = g_MenuStringBuffer6; dData_40002dd0 = dData_40002dc0_Azimuth; dData_40002e08 = dData_40002df8; @@ -4622,7 +4626,7 @@ void PrepareScreenItems(void) dData_40002e08 = Data_40004b70.dAltitude; } //0x394c8 - sprintf(Data_40004027, "OTA Azi:%03d %02d %02d ", + sprintf(g_MenuStringBuffer7, "OTA Azi:%03d %02d %02d ", abs((int)dData_40002dd0), abs((int)((dData_40002dd0 - (int)dData_40002dd0) * 60)), abs((int)(dData_40002dd0 * 3600) % 60)); @@ -4630,7 +4634,7 @@ void PrepareScreenItems(void) if (dData_40002e08 >= 0) { //395c8 - sprintf(Data_4000403c, "Alt:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Alt:+%02d %02d %02d ", abs((int)dData_40002e08), abs((int)((dData_40002e08 - (int)(dData_40002e08)) * 60)), abs(((int)(dData_40002e08 * 3600) % 60))); @@ -4638,7 +4642,7 @@ void PrepareScreenItems(void) else { //0x396b4 - sprintf(Data_4000403c, "Alt:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Alt:-%02d %02d %02d ", abs((int)dData_40002e08), abs((int)((dData_40002e08 - (int)(dData_40002e08)) * 60)), abs(((int)(dData_40002e08 * 3600) % 60))); @@ -4646,36 +4650,36 @@ void PrepareScreenItems(void) //0x3979c if ((int)dData_40002dd0 < 100) { - Data_40004027[11] = ' '; + g_MenuStringBuffer7[11] = ' '; } if ((int)dData_40002dd0 < 10) { - Data_40004027[12] = ' '; + g_MenuStringBuffer7[12] = ' '; } if (((int)((dData_40002dd0 - (int)dData_40002dd0) * 60)) < 10) { - Data_40004027[15] = ' '; + g_MenuStringBuffer7[15] = ' '; } if (((int)(dData_40002dd0 * 3600) % 60) < 10) { - Data_40004027[18] = ' '; + g_MenuStringBuffer7[18] = ' '; } if (abs((int)dData_40002e08) < 10) { - Data_4000403c[5] = ' '; + g_MenuStringBuffer8[5] = ' '; } if (abs((int)((dData_40002e08 - (int)dData_40002e08) * 60.0)) < 10) { - Data_4000403c[8] = ' '; + g_MenuStringBuffer8[8] = ' '; } if (abs(((int)(dData_40002e08 * 3600.0)) % 60) < 10) { - Data_4000403c[11] = ' '; + g_MenuStringBuffer8[11] = ' '; } //0x399f8 - Data_40003378 = Data_40004027; - Data_4000337c = Data_4000403c; + g_pcstrMenuLine7 = g_MenuStringBuffer7; + g_pcstrMenuLine8 = g_MenuStringBuffer8; if ((bTrackingMode == 1) || (bTrackingMode == 2)) { @@ -4694,42 +4698,42 @@ void PrepareScreenItems(void) { case 1: //0x39ab4 - Data_40003360 = "Slewing to Target "; + g_pcstrMenuLine1 = "Slewing to Target "; break; case 2: //0x39ac8 - Data_40003360 = "Find Target,Tracking "; + g_pcstrMenuLine1 = "Find Target,Tracking "; break; case 3: //0x39adc - Data_40003360 = "Target Under Horizon "; + g_pcstrMenuLine1 = "Target Under Horizon "; bData_40003432 = 1; break; case MENU_TRACKING_MODE_PAUSE: //4: //0x39afc - Data_40003360 = "Pause "; + g_pcstrMenuLine1 = "Pause "; break; case MENU_TRACKING_MODE_CANCEL: //5: //0x39b10 - Data_40003360 = "Cancel Operation "; + g_pcstrMenuLine1 = "Cancel Operation "; break; default: //0x39b24 - Data_40003360 = " "; + g_pcstrMenuLine1 = " "; break; } //0x39b38 - sprintf(Data_40003fbe, "Bright:%d ", + sprintf(g_MenuStringBuffer2, "Bright:%d ", wData_40002ec0_BrightStarNr); - Data_40003364 = Data_40003fbe; - Data_40003368 = Data_40003ea0_FlashBrightStarData.bData_0; - Data_4000336c = " "; + g_pcstrMenuLine2 = g_MenuStringBuffer2; + g_pcstrMenuLine3 = Data_40003ea0_FlashBrightStarData.bData_0; + g_pcstrMenuLine4 = " "; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -4743,13 +4747,13 @@ void PrepareScreenItems(void) fData_40002cd0_ObjectRightAscension = Data_40003358_SAORecord.ra; fData_40002d18_ObjectDeclination = Data_40003358_SAORecord.dec; - sprintf(Data_40003fa9, "SAO:%d ", + sprintf(g_MenuStringBuffer1, "SAO:%d ", Data_40002ec4_SAONr); - Data_40003360 = Data_40003fa9; - Data_40003364 = " "; - Data_40003368 = " "; - Data_4000336c = " "; + g_pcstrMenuLine1 = g_MenuStringBuffer1; + g_pcstrMenuLine2 = " "; + g_pcstrMenuLine3 = " "; + g_pcstrMenuLine4 = " "; Data_40004ad8.dLongitude = Data_40004128.geographicLongitude; Data_40004ad8.dLatitude = Data_40004128.geographicLatitude; @@ -4759,7 +4763,7 @@ void PrepareScreenItems(void) convert_equatorial_to_horizontal(Data_40004ad8, Data_40004ae8, Data_40004128.Data_40, Data_40004128.bData_44, &Data_40004b08); - sprintf(Data_40003ffd, "OBJ Azi:%03d %02d %02d ", + sprintf(g_MenuStringBuffer5, "OBJ Azi:%03d %02d %02d ", (int)(Data_40004b08.dAzimuth), (int)((Data_40004b08.dAzimuth - (int)(Data_40004b08.dAzimuth)) * 60.0), (int)(Data_40004b08.dAzimuth * 3600.0) % 60); @@ -4767,7 +4771,7 @@ void PrepareScreenItems(void) if (Data_40004b08.dAltitude >= 0) { //39d68 - sprintf(Data_40004012, "Alt:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:+%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60.0)), abs((int)(Data_40004b08.dAltitude * 3600.0) % 60)); @@ -4775,7 +4779,7 @@ void PrepareScreenItems(void) else { //0x39f00 - sprintf(Data_40004012, "Alt:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:-%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60.0)), abs((int)(Data_40004b08.dAltitude * 3600.0) % 60)); @@ -4783,61 +4787,61 @@ void PrepareScreenItems(void) //0x39ff8 if ((int)(Data_40004b08.dAzimuth) < 100) { - Data_40003ffd[11] = ' '; + g_MenuStringBuffer5[11] = ' '; } if ((int)(Data_40004b08.dAzimuth) < 10) { - Data_40003ffd[12] = ' '; + g_MenuStringBuffer5[12] = ' '; } if ((int)((Data_40004b08.dAzimuth - (int)Data_40004b08.dAzimuth) * 60.0) < 10) { - Data_40003ffd[15] = ' '; + g_MenuStringBuffer5[15] = ' '; } if (((int)(Data_40004b08.dAzimuth * 3600.0) % 60) < 10) { - Data_40003ffd[18] = ' '; + g_MenuStringBuffer5[18] = ' '; } if (abs((int)Data_40004b08.dAltitude) < 10) { - Data_40004012[5] = ' '; + g_MenuStringBuffer6[5] = ' '; } if (abs((int)((Data_40004b08.dAltitude - (int)Data_40004b08.dAltitude) * 60.0)) < 10) { - Data_40004012[8] = ' '; + g_MenuStringBuffer6[8] = ' '; } if (abs(((int)(Data_40004b08.dAltitude * 3600.0)) % 60) < 10) { - Data_40004012[11] = ' '; + g_MenuStringBuffer6[11] = ' '; } //0x3a200 - Data_40003370 = Data_40003ffd; - Data_40003374 = Data_40004012; + g_pcstrMenuLine5 = g_MenuStringBuffer5; + g_pcstrMenuLine6 = g_MenuStringBuffer6; - sprintf(Data_40004027, "R.a: %02dh%02dm%02ds ", + sprintf(g_MenuStringBuffer7, "R.a: %02dh%02dm%02ds ", (int)fData_40002cd0_ObjectRightAscension, (int)((fData_40002cd0_ObjectRightAscension - (int)fData_40002cd0_ObjectRightAscension) * 60), (int)(fData_40002cd0_ObjectRightAscension * 3600) % 60); if ((int)fData_40002cd0_ObjectRightAscension < 10) { - Data_40004027[5] = ' '; + g_MenuStringBuffer7[5] = ' '; } if (((int)((fData_40002cd0_ObjectRightAscension - (int)fData_40002cd0_ObjectRightAscension) * 60)) < 10) { - Data_40004027[8] = ' '; + g_MenuStringBuffer7[8] = ' '; } if (((int)(fData_40002cd0_ObjectRightAscension * 3600) % 60) < 10) { - Data_40004027[11] = ' '; + g_MenuStringBuffer7[11] = ' '; } - Data_40003378 = Data_40004027; + g_pcstrMenuLine7 = g_MenuStringBuffer7; if (fData_40002d18_ObjectDeclination >= 0) { //3a370 - sprintf(Data_4000403c, "Dec:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Dec:+%02d %02d %02d ", abs((int)fData_40002d18_ObjectDeclination), abs((int)((fData_40002d18_ObjectDeclination - (int)(fData_40002d18_ObjectDeclination)) * 60)), abs(((int)(fData_40002d18_ObjectDeclination * 3600) % 60))); @@ -4845,7 +4849,7 @@ void PrepareScreenItems(void) else { //0x3a440 - sprintf(Data_4000403c, "Dec:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Dec:-%02d %02d %02d ", abs((int)fData_40002d18_ObjectDeclination), abs((int)((fData_40002d18_ObjectDeclination - (int)(fData_40002d18_ObjectDeclination)) * 60)), abs(((int)(fData_40002d18_ObjectDeclination * 3600) % 60))); @@ -4853,18 +4857,18 @@ void PrepareScreenItems(void) //0x3a50c if (abs((int)fData_40002d18_ObjectDeclination) < 10) { - Data_4000403c[5] = ' '; + g_MenuStringBuffer8[5] = ' '; } if (abs((int)((fData_40002d18_ObjectDeclination - (int)fData_40002d18_ObjectDeclination) * 60)) < 10) { - Data_4000403c[8] = ' '; + g_MenuStringBuffer8[8] = ' '; } if (abs((int)(fData_40002d18_ObjectDeclination * 3600) % 60) < 10) { - Data_4000403c[11] = ' '; + g_MenuStringBuffer8[11] = ' '; } //0x3a5f0 - Data_4000337c = Data_4000403c; + g_pcstrMenuLine8 = g_MenuStringBuffer8; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -4886,7 +4890,7 @@ void PrepareScreenItems(void) convert_equatorial_to_horizontal(Data_40004ad8, Data_40004ae8, Data_40004128.Data_40, Data_40004128.bData_44, &Data_40004b08); - sprintf(Data_40003ffd, "OBJ Azi:%03d %02d %02d ", + sprintf(g_MenuStringBuffer5, "OBJ Azi:%03d %02d %02d ", (int)(Data_40004b08.dAzimuth), (int)((Data_40004b08.dAzimuth - (int)(Data_40004b08.dAzimuth)) * 60.0), (int)(Data_40004b08.dAzimuth * 3600.0) % 60); @@ -4894,7 +4898,7 @@ void PrepareScreenItems(void) if (Data_40004b08.dAltitude >= 0) { //3a7ac - sprintf(Data_40004012, "Alt:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:+%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60.0)), abs((int)(Data_40004b08.dAltitude * 3600.0) % 60)); @@ -4902,7 +4906,7 @@ void PrepareScreenItems(void) else { //3a8a8 - sprintf(Data_40004012, "Alt:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer6, "Alt:-%02d %02d %02d ", abs((int)Data_40004b08.dAltitude), abs((int)((Data_40004b08.dAltitude - (int)(Data_40004b08.dAltitude)) * 60.0)), abs((int)(Data_40004b08.dAltitude * 3600.0) % 60)); @@ -4912,41 +4916,41 @@ void PrepareScreenItems(void) //3a9ac if ((int)(Data_40004b08.dAzimuth) < 100) { - Data_40003ffd[11] = ' '; + g_MenuStringBuffer5[11] = ' '; } //3a9d0 if ((int)(Data_40004b08.dAzimuth) < 10) { - Data_40003ffd[12] = ' '; + g_MenuStringBuffer5[12] = ' '; } //3a9f4 if ((int)((Data_40004b08.dAzimuth - (int)Data_40004b08.dAzimuth) * 60.0) < 10) { - Data_40003ffd[15] = ' '; + g_MenuStringBuffer5[15] = ' '; } //3aa60 if (((int)(Data_40004b08.dAzimuth * 3600.0) % 60) < 10) { - Data_40003ffd[18] = ' '; + g_MenuStringBuffer5[18] = ' '; } //3aaa4 if (abs((int)Data_40004b08.dAltitude) < 10) { - Data_40004012[5] = ' '; + g_MenuStringBuffer6[5] = ' '; } //3aadc if (abs((int)((Data_40004b08.dAltitude - (int)Data_40004b08.dAltitude) * 60.0)) < 10) { - Data_40004012[8] = ' '; + g_MenuStringBuffer6[8] = ' '; } //3ab5c if (abs(((int)(Data_40004b08.dAltitude * 3600.0)) % 60) < 10) { - Data_40004012[11] = ' '; + g_MenuStringBuffer6[11] = ' '; } //3abb4 - Data_40003370 = Data_40003ffd; - Data_40003374 = Data_40004012; + g_pcstrMenuLine5 = g_MenuStringBuffer5; + g_pcstrMenuLine6 = g_MenuStringBuffer6; dData_40002dd0 = dData_40002dc0_Azimuth; dData_40002e08 = dData_40002df8; @@ -4979,7 +4983,7 @@ void PrepareScreenItems(void) dData_40002e08 = Data_40004b70.dAltitude; } //0x3ad58 - sprintf(Data_40004027, "OTA Azi:%03d %02d %02d ", + sprintf(g_MenuStringBuffer7, "OTA Azi:%03d %02d %02d ", abs((int)dData_40002dd0), abs((int)((dData_40002dd0 - (int)dData_40002dd0) * 60)), abs((int)(dData_40002dd0 * 3600) % 60)); @@ -4987,7 +4991,7 @@ void PrepareScreenItems(void) if (dData_40002e08 >= 0) { //3ae58 - sprintf(Data_4000403c, "Alt:+%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Alt:+%02d %02d %02d ", abs((int)dData_40002e08), abs((int)((dData_40002e08 - (int)(dData_40002e08)) * 60)), abs(((int)(dData_40002e08 * 3600) % 60))); @@ -4995,7 +4999,7 @@ void PrepareScreenItems(void) else { //0x3af44 - sprintf(Data_4000403c, "Alt:-%02d %02d %02d ", + sprintf(g_MenuStringBuffer8, "Alt:-%02d %02d %02d ", abs((int)dData_40002e08), abs((int)((dData_40002e08 - (int)(dData_40002e08)) * 60)), abs(((int)(dData_40002e08 * 3600) % 60))); @@ -5003,36 +5007,36 @@ void PrepareScreenItems(void) //0x3b02c if ((int)dData_40002dd0 < 100) { - Data_40004027[11] = ' '; + g_MenuStringBuffer7[11] = ' '; } if ((int)dData_40002dd0 < 10) { - Data_40004027[12] = ' '; + g_MenuStringBuffer7[12] = ' '; } if (((int)((dData_40002dd0 - (int)dData_40002dd0) * 60)) < 10) { - Data_40004027[15] = ' '; + g_MenuStringBuffer7[15] = ' '; } if (((int)(dData_40002dd0 * 3600) % 60) < 10) { - Data_40004027[18] = ' '; + g_MenuStringBuffer7[18] = ' '; } if (abs((int)dData_40002e08) < 10) { - Data_4000403c[5] = ' '; + g_MenuStringBuffer8[5] = ' '; } if (abs((int)((dData_40002e08 - (int)dData_40002e08) * 60.0)) < 10) { - Data_4000403c[8] = ' '; + g_MenuStringBuffer8[8] = ' '; } if (abs(((int)(dData_40002e08 * 3600.0)) % 60) < 10) { - Data_4000403c[11] = ' '; + g_MenuStringBuffer8[11] = ' '; } //0x3b27c - Data_40003378 = Data_40004027; - Data_4000337c = Data_4000403c; + g_pcstrMenuLine7 = g_MenuStringBuffer7; + g_pcstrMenuLine8 = g_MenuStringBuffer8; if ((bTrackingMode == 1) || (bTrackingMode == 2)) { @@ -5051,43 +5055,43 @@ void PrepareScreenItems(void) { case 1: //0x3b338 - Data_40003360 = "Slewing to Target "; + g_pcstrMenuLine1 = "Slewing to Target "; break; case 2: //0x3b34c - Data_40003360 = "Find Target,Tracking "; + g_pcstrMenuLine1 = "Find Target,Tracking "; break; case 3: //0x3b360 - Data_40003360 = "Target Under Horizon "; + g_pcstrMenuLine1 = "Target Under Horizon "; bData_40003432 = 1; break; case MENU_TRACKING_MODE_PAUSE: //4: //0x3b380 - Data_40003360 = "Pause "; + g_pcstrMenuLine1 = "Pause "; break; case MENU_TRACKING_MODE_CANCEL: //5: //0x3b394 - Data_40003360 = "Cancel Operation "; + g_pcstrMenuLine1 = "Cancel Operation "; break; default: //0x3b3a8 - Data_40003360 = " "; + g_pcstrMenuLine1 = " "; break; } //0x3b3bc - Data_40003364 = " "; + g_pcstrMenuLine2 = " "; - sprintf(Data_40003fd3, "SAO:%d ", + sprintf(g_MenuStringBuffer3, "SAO:%d ", Data_40002ec4_SAONr); - Data_40003368 = Data_40003fd3; - Data_4000336c = " "; + g_pcstrMenuLine3 = g_MenuStringBuffer3; + g_pcstrMenuLine4 = " "; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5096,16 +5100,16 @@ void PrepareScreenItems(void) case MENU_CONTEXT_CUSTOMER_OBJECT_SELECTION: //201: //0x3b414 - Data_40003360 = "F1"; - Data_40003364 = "F2"; - Data_40003368 = "F3"; - Data_4000336c = "F4"; - Data_40003370 = "F5"; - Data_40003374 = "F6"; - Data_40003378 = "F7"; - Data_4000337c = "F8"; - Data_40003380 = "F9"; - Data_40003384 = "Select F? For Target "; + g_pcstrMenuLine1 = "F1"; + g_pcstrMenuLine2 = "F2"; + g_pcstrMenuLine3 = "F3"; + g_pcstrMenuLine4 = "F4"; + g_pcstrMenuLine5 = "F5"; + g_pcstrMenuLine6 = "F6"; + g_pcstrMenuLine7 = "F7"; + g_pcstrMenuLine8 = "F8"; + g_pcstrMenuLine9 = "F9"; + g_pcstrMenuLine10 = "Select F? For Target "; bData_4000316e_FocusLineOn8LineDisplay = 10; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5114,16 +5118,16 @@ void PrepareScreenItems(void) case MENU_CONTEXT_CUSTOMER_OBJECT_NAME_INPUT: //203: //0x3b4ac - sprintf(Data_40003fa9, "F%d ", + sprintf(g_MenuStringBuffer1, "F%d ", bData_4000319a_SkyLandTargetId); - Data_40003360 = Data_40003fa9; - Data_40003364 = " "; - Data_40003368 = " Please Save Current"; - Data_4000336c = "Target & Input Target"; - Data_40003370 = " "; - Data_40003374 = strCustomerObjectNameInput; - Data_40003378 = strCustomerObjectRaAziInputForStoring; - Data_4000337c = strCustomerObjectDecAltInputForStoring; + g_pcstrMenuLine1 = g_MenuStringBuffer1; + g_pcstrMenuLine2 = " "; + g_pcstrMenuLine3 = " Please Save Current"; + g_pcstrMenuLine4 = "Target & Input Target"; + g_pcstrMenuLine5 = " "; + g_pcstrMenuLine6 = strCustomerObjectNameInput; + g_pcstrMenuLine7 = strCustomerObjectRaAziInputForStoring; + g_pcstrMenuLine8 = strCustomerObjectDecAltInputForStoring; bData_4000316e_FocusLineOn8LineDisplay = 10; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5131,16 +5135,16 @@ void PrepareScreenItems(void) case MENU_CONTEXT_CUSTOMER_OBJECT_RA_INPUT: //204: //0x3b540 - sprintf(Data_40003fa9, "F%d ", + sprintf(g_MenuStringBuffer1, "F%d ", bData_4000319a_SkyLandTargetId); - Data_40003360 = Data_40003fa9; - Data_40003364 = " "; - Data_40003368 = " Please Save Current"; - Data_4000336c = "Target & Input Target"; - Data_40003370 = " "; - Data_40003374 = strCustomerObjectNameInput; - Data_40003378 = strCustomerObjectRaAziInputForStoring; - Data_4000337c = strCustomerObjectDecAltInputForStoring; + g_pcstrMenuLine1 = g_MenuStringBuffer1; + g_pcstrMenuLine2 = " "; + g_pcstrMenuLine3 = " Please Save Current"; + g_pcstrMenuLine4 = "Target & Input Target"; + g_pcstrMenuLine5 = " "; + g_pcstrMenuLine6 = strCustomerObjectNameInput; + g_pcstrMenuLine7 = strCustomerObjectRaAziInputForStoring; + g_pcstrMenuLine8 = strCustomerObjectDecAltInputForStoring; bData_4000316e_FocusLineOn8LineDisplay = 10; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5148,16 +5152,16 @@ void PrepareScreenItems(void) case MENU_CONTEXT_CUSTOMER_OBJECT_DEC_INPUT: //205: //0x3b5d4 - sprintf(Data_40003fa9, "F%d ", + sprintf(g_MenuStringBuffer1, "F%d ", bData_4000319a_SkyLandTargetId); - Data_40003360 = Data_40003fa9; - Data_40003364 = " "; - Data_40003368 = " Please Save Current"; - Data_4000336c = "Target & Input Target"; - Data_40003370 = " "; - Data_40003374 = strCustomerObjectNameInput; - Data_40003378 = strCustomerObjectRaAziInputForStoring; - Data_4000337c = strCustomerObjectDecAltInputForStoring; + g_pcstrMenuLine1 = g_MenuStringBuffer1; + g_pcstrMenuLine2 = " "; + g_pcstrMenuLine3 = " Please Save Current"; + g_pcstrMenuLine4 = "Target & Input Target"; + g_pcstrMenuLine5 = " "; + g_pcstrMenuLine6 = strCustomerObjectNameInput; + g_pcstrMenuLine7 = strCustomerObjectRaAziInputForStoring; + g_pcstrMenuLine8 = strCustomerObjectDecAltInputForStoring; bData_4000316e_FocusLineOn8LineDisplay = 10; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5165,14 +5169,14 @@ void PrepareScreenItems(void) case MENU_CONTEXT_RA_INPUT: //29001: // "Object Rise/Set" -> "Input Ra Dec:" //0x3b668 - Data_40003360 = strInputRaDec; // "Input Ra Dec:"? - Data_40003364 = ""; - Data_40003368 = strCustomerObjectRaAziInputForStoring; // "R.a: 19h52m12.0s"? - Data_4000336c = ""; - Data_40003370 = strCustomerObjectDecAltInputForStoring; // "Dec:+90 00 00.0 "? - Data_40003374 = ""; - Data_40003378 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = strInputRaDec; // "Input Ra Dec:"? + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = strCustomerObjectRaAziInputForStoring; // "R.a: 19h52m12.0s"? + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = strCustomerObjectDecAltInputForStoring; // "Dec:+90 00 00.0 "? + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 10; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5180,14 +5184,14 @@ void PrepareScreenItems(void) case MENU_CONTEXT_DEC_INPUT: //29002 //0x3b7d0 - Data_40003360 = strInputRaDec; - Data_40003364 = ""; - Data_40003368 = strCustomerObjectRaAziInputForStoring; - Data_4000336c = ""; - Data_40003370 = strCustomerObjectDecAltInputForStoring; - Data_40003374 = ""; - Data_40003378 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = strInputRaDec; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = strCustomerObjectRaAziInputForStoring; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = strCustomerObjectDecAltInputForStoring; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 10; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5195,16 +5199,16 @@ void PrepareScreenItems(void) case MENU_CONTEXT_CUST_LAND_OBJ_SELECTION: //202: //0x3b850 - Data_40003360 = "F1"; - Data_40003364 = "F2"; - Data_40003368 = "F3"; - Data_4000336c = "F4"; - Data_40003370 = "F5"; - Data_40003374 = "F6"; - Data_40003378 = "F7"; - Data_4000337c = "F8"; - Data_40003380 = "F9"; - Data_40003384 = "Select F? For Target "; + g_pcstrMenuLine1 = "F1"; + g_pcstrMenuLine2 = "F2"; + g_pcstrMenuLine3 = "F3"; + g_pcstrMenuLine4 = "F4"; + g_pcstrMenuLine5 = "F5"; + g_pcstrMenuLine6 = "F6"; + g_pcstrMenuLine7 = "F7"; + g_pcstrMenuLine8 = "F8"; + g_pcstrMenuLine9 = "F9"; + g_pcstrMenuLine10 = "Select F? For Target "; bData_4000316e_FocusLineOn8LineDisplay = 10; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5212,16 +5216,16 @@ void PrepareScreenItems(void) case MENU_CONTEXT_CUST_LAND_OBJ_NAME_INPUT: //206: //0x3b8e8 - sprintf(Data_40003fa9, "F%d ", + sprintf(g_MenuStringBuffer1, "F%d ", bData_4000319a_SkyLandTargetId); - Data_40003360 = Data_40003fa9; - Data_40003364 = " "; - Data_40003368 = " Please Save Current"; - Data_4000336c = "Target & Input Target"; - Data_40003370 = " "; - Data_40003374 = strCustomerObjectNameInput; - Data_40003378 = strCustomerObjectRaAziInputForStoring; - Data_4000337c = strCustomerObjectDecAltInputForStoring; + g_pcstrMenuLine1 = g_MenuStringBuffer1; + g_pcstrMenuLine2 = " "; + g_pcstrMenuLine3 = " Please Save Current"; + g_pcstrMenuLine4 = "Target & Input Target"; + g_pcstrMenuLine5 = " "; + g_pcstrMenuLine6 = strCustomerObjectNameInput; + g_pcstrMenuLine7 = strCustomerObjectRaAziInputForStoring; + g_pcstrMenuLine8 = strCustomerObjectDecAltInputForStoring; bData_4000316e_FocusLineOn8LineDisplay = 10; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5229,16 +5233,16 @@ void PrepareScreenItems(void) case MENU_CONTEXT_CUST_LAND_OBJ_AZI_INPUT: //207: //0x3b97c - sprintf(Data_40003fa9, "F%d ", + sprintf(g_MenuStringBuffer1, "F%d ", bData_4000319a_SkyLandTargetId); - Data_40003360 = Data_40003fa9; - Data_40003364 = " "; - Data_40003368 = " Please Save Current"; - Data_4000336c = "Target & Input Target"; - Data_40003370 = " "; - Data_40003374 = strCustomerObjectNameInput; - Data_40003378 = strCustomerObjectRaAziInputForStoring; - Data_4000337c = strCustomerObjectDecAltInputForStoring; + g_pcstrMenuLine1 = g_MenuStringBuffer1; + g_pcstrMenuLine2 = " "; + g_pcstrMenuLine3 = " Please Save Current"; + g_pcstrMenuLine4 = "Target & Input Target"; + g_pcstrMenuLine5 = " "; + g_pcstrMenuLine6 = strCustomerObjectNameInput; + g_pcstrMenuLine7 = strCustomerObjectRaAziInputForStoring; + g_pcstrMenuLine8 = strCustomerObjectDecAltInputForStoring; bData_4000316e_FocusLineOn8LineDisplay = 10; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5246,16 +5250,16 @@ void PrepareScreenItems(void) case MENU_CONTEXT_CUST_LAND_OBJ_ALT_INPUT: //208: //0x3ba10 - sprintf(Data_40003fa9, "F%d ", + sprintf(g_MenuStringBuffer1, "F%d ", bData_4000319a_SkyLandTargetId); - Data_40003360 = Data_40003fa9; - Data_40003364 = " "; - Data_40003368 = " Please Save Current"; - Data_4000336c = "Target & Input Target"; - Data_40003370 = " "; - Data_40003374 = strCustomerObjectNameInput; - Data_40003378 = strCustomerObjectRaAziInputForStoring; - Data_4000337c = strCustomerObjectDecAltInputForStoring; + g_pcstrMenuLine1 = g_MenuStringBuffer1; + g_pcstrMenuLine2 = " "; + g_pcstrMenuLine3 = " Please Save Current"; + g_pcstrMenuLine4 = "Target & Input Target"; + g_pcstrMenuLine5 = " "; + g_pcstrMenuLine6 = strCustomerObjectNameInput; + g_pcstrMenuLine7 = strCustomerObjectRaAziInputForStoring; + g_pcstrMenuLine8 = strCustomerObjectDecAltInputForStoring; bData_4000316e_FocusLineOn8LineDisplay = 10; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5266,7 +5270,7 @@ void PrepareScreenItems(void) get_solar_system_object_data(bData_40002eb5_SolarSystemObjectNr, &fData_40002cd0_ObjectRightAscension, &fData_40002d18_ObjectDeclination); - Data_40003360 = Data_4000314c_SolarSystemObjectName; + g_pcstrMenuLine1 = Data_4000314c_SolarSystemObjectName; dObjectRiseTime = get_object_visibility_time(1, fData_40002cd0_ObjectRightAscension, @@ -5289,25 +5293,25 @@ void PrepareScreenItems(void) Data_40004128.geographicLatitude, (unsigned char)Data_40004128.timeZone); - sprintf(Data_40003fd3, "RiseTime: %02dh%02dm", + sprintf(g_MenuStringBuffer3, "RiseTime: %02dh%02dm", (int)dObjectRiseTime, (int)((dObjectRiseTime - (int)dObjectRiseTime) * 60)); - Data_40003368 = Data_40003fd3; + g_pcstrMenuLine3 = g_MenuStringBuffer3; - sprintf(Data_40003ffd, "TransitTime:%02dh%02dm", + sprintf(g_MenuStringBuffer5, "TransitTime:%02dh%02dm", (int)dObjectTransitTime, (int)((dObjectTransitTime - (int)dObjectTransitTime) * 60)); - Data_40003370 = Data_40003ffd; + g_pcstrMenuLine5 = g_MenuStringBuffer5; - sprintf(Data_40004027, "SetTime: %02dh%02dm", + sprintf(g_MenuStringBuffer7, "SetTime: %02dh%02dm", (int)dObjectSetTime, (int)((dObjectSetTime - (int)dObjectSetTime) * 60)); - Data_40003378 = Data_40004027; + g_pcstrMenuLine7 = g_MenuStringBuffer7; - Data_40003364 = " "; - Data_4000336c = " "; - Data_40003374 = " "; - Data_4000337c = " "; + g_pcstrMenuLine2 = " "; + g_pcstrMenuLine4 = " "; + g_pcstrMenuLine6 = " "; + g_pcstrMenuLine8 = " "; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5315,26 +5319,26 @@ void PrepareScreenItems(void) case MENU_CONTEXT_RISE_SET_TIMES: //32001 //0x3be30 - sprintf(Data_40003fa9, "RiseTime: %02dh%02dm", + sprintf(g_MenuStringBuffer1, "RiseTime: %02dh%02dm", (int)dObjectRiseTime, (int)((dObjectRiseTime - (int)dObjectRiseTime) * 60)); - Data_40003360 = Data_40003fa9; + g_pcstrMenuLine1 = g_MenuStringBuffer1; - sprintf(Data_40003fbe, "TransitTime:%02dh%02dm", + sprintf(g_MenuStringBuffer2, "TransitTime:%02dh%02dm", (int)dObjectTransitTime, (int)((dObjectTransitTime - (int)dObjectTransitTime) * 60)); - Data_40003368 = Data_40003fbe; + g_pcstrMenuLine3 = g_MenuStringBuffer2; - sprintf(Data_40003fd3, "SetTime: %02dh%02dm", + sprintf(g_MenuStringBuffer3, "SetTime: %02dh%02dm", (int)dObjectSetTime, (int)((dObjectSetTime - (int)dObjectSetTime) * 60)); - Data_40003370 = Data_40003fd3; + g_pcstrMenuLine5 = g_MenuStringBuffer3; - Data_40003364 = ""; - Data_4000336c = ""; - Data_40003374 = ""; - Data_40003378 = ""; - Data_4000337c = ""; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5350,14 +5354,14 @@ void PrepareScreenItems(void) //0x3c0a8 sprintf(strEngTimeRemain00000s, "%5lds", Data_40003214_UserTimerSeconds); - Data_40003360 = strEngCountingDown; // "Counting down:"? - Data_40003364 = ""; - Data_40003368 = strEngTimeRemain; // "Time remain:" - Data_4000336c = ""; - Data_40003370 = strEngTimeRemain00000s; // "00000s" - Data_40003374 = ""; - Data_4000337c = ""; - Data_40003378 = strEngStopBack; // " Stop Back"? + g_pcstrMenuLine1 = strEngCountingDown; // "Counting down:"? + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = strEngTimeRemain; // "Time remain:" + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = strEngTimeRemain00000s; // "00000s" + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine8 = ""; + g_pcstrMenuLine7 = strEngStopBack; // " Stop Back"? bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5365,14 +5369,14 @@ void PrepareScreenItems(void) case MENU_CONTEXT_TIMER_SET: //34001: //0x3c13c - Data_40003360 = strEngSetTimer; // "Set timer:"? - Data_40003364 = ""; - Data_40003368 = strEng00000s; // "00000s"? - Data_4000336c = ""; - Data_40003370 = Data_400029b3; - Data_40003374 = ""; - Data_40003378 = strEngStartBack; // " Start Back"? - Data_4000337c = ""; + g_pcstrMenuLine1 = strEngSetTimer; // "Set timer:"? + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = strEng00000s; // "00000s"? + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = Data_400029b3; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = strEngStartBack; // " Start Back"? + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 10; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5380,14 +5384,14 @@ void PrepareScreenItems(void) case MENU_CONTEXT_ALARM_INPUT: //35001: //0x3c1bc: Alarm start - Data_40003360 = strEngInputTime; - Data_40003364 = ""; - Data_40003368 = strEngAlarm21h34m23s; - Data_4000336c = ""; - Data_40003370 = ""; - Data_40003374 = ""; - Data_4000337c = ""; - Data_40003378 = strEngAlarmOnBack; + g_pcstrMenuLine1 = strEngInputTime; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = strEngAlarm21h34m23s; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = ""; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine8 = ""; + g_pcstrMenuLine7 = strEngAlarmOnBack; bData_4000316e_FocusLineOn8LineDisplay = 10; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5395,14 +5399,14 @@ void PrepareScreenItems(void) case 35002: //0x3c23c: Alarm stop - Data_40003360 = ""; - Data_40003364 = strEngCloseAlarm; - Data_40003368 = ""; - Data_4000336c = ""; - Data_40003370 = ""; - Data_40003374 = ""; - Data_4000337c = ""; - Data_40003378 = strEngAlarmCloseBack; + g_pcstrMenuLine1 = ""; + g_pcstrMenuLine2 = strEngCloseAlarm; + g_pcstrMenuLine3 = ""; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = ""; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine8 = ""; + g_pcstrMenuLine7 = strEngAlarmCloseBack; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5410,14 +5414,14 @@ void PrepareScreenItems(void) case 0x57E4B: //360011 //0x3c2bc - Data_40003360 = strEngTelescopeOneMX51; - Data_40003364 = ""; - Data_40003368 = Data_4000239a; //"Scope:3'.3'" - Data_4000336c = ""; - Data_40003370 = ""; - Data_40003374 = ""; - Data_40003378 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = strEngTelescopeOneMX51; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = Data_4000239a; //"Scope:3'.3'" + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = ""; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5425,14 +5429,14 @@ void PrepareScreenItems(void) case MENU_CONTEXT_EYEPIECE_MAGN_MF_INPUT: //360021 //0x3c33c - Data_40003360 = strEyepieceMagnCaption; //->"Eyep. focal length:"? - Data_40003364 = ""; - Data_40003368 = strEyepieceFovMfInput; - Data_4000336c = ""; - Data_40003370 = strEyepieceFovSfInput; - Data_40003374 = ""; - Data_40003378 = strEyepieceMagnification; - Data_4000337c = ""; + g_pcstrMenuLine1 = strEyepieceMagnCaption; //->"Eyep. focal length:"? + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = strEyepieceFovMfInput; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = strEyepieceFovSfInput; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = strEyepieceMagnification; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 10; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5440,14 +5444,14 @@ void PrepareScreenItems(void) case MENU_CONTEXT_EYEPIECE_MAGN_SF_INPUT: //360022 //0x3c41c - Data_40003360 = strEyepieceMagnCaption; - Data_40003364 = ""; - Data_40003368 = strEyepieceFovMfInput; - Data_4000336c = ""; - Data_40003370 = strEyepieceFovSfInput; - Data_40003374 = ""; - Data_40003378 = strEyepieceMagnification; - Data_4000337c = ""; + g_pcstrMenuLine1 = strEyepieceMagnCaption; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = strEyepieceFovMfInput; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = strEyepieceFovSfInput; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = strEyepieceMagnification; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 10; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5459,14 +5463,14 @@ void PrepareScreenItems(void) //0x3c4a4 case MENU_CONTEXT_EYEPIECE_FOV_INPUT: //370023 //0x3c4a8 - Data_40003360 = strEyepieceFovCaption; // "Eyep. focal length:" - Data_40003364 = ""; - Data_40003368 = strEyepieceFovMfInput; // "MF:1893mm" - Data_4000336c = ""; - Data_40003370 = strEyepieceFovSfInput; // "SF:43mm" - Data_40003374 = ""; - Data_40003378 = strEyepieceFovInput; // "E-FOV:001°00'" - Data_4000337c = strEyepieceFOV; // " FOV:0.02272°" + g_pcstrMenuLine1 = strEyepieceFovCaption; // "Eyep. focal length:" + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = strEyepieceFovMfInput; // "MF:1893mm" + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = strEyepieceFovSfInput; // "SF:43mm" + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = strEyepieceFovInput; // "E-FOV:001°00'" + g_pcstrMenuLine8 = strEyepieceFOV; // " FOV:0.02272°" bData_4000316e_FocusLineOn8LineDisplay = 10; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5476,14 +5480,14 @@ void PrepareScreenItems(void) //0x3c524 sprintf(Data_4000248c, "MultiplyM:%d", fEyepieceMagnification); - Data_40003360 = strEyepieceMagnCaption; - Data_40003364 = ""; - Data_40003368 = strEyepieceFovMfInput; - Data_4000336c = ""; - Data_40003370 = strEyepieceFovSfInput; - Data_40003374 = ""; - Data_40003378 = strEyepieceMagnification; - Data_4000337c = ""; + g_pcstrMenuLine1 = strEyepieceMagnCaption; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = strEyepieceFovMfInput; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = strEyepieceFovSfInput; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = strEyepieceMagnification; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5491,14 +5495,14 @@ void PrepareScreenItems(void) case MENU_CONTEXT_DISPLAY_ILLUMINATION_CONTROL: //380011: //0x3c5cc - Data_40003360 = strEngBackgroundLight; - Data_40003364 = ""; - Data_40003368 = strEngPressUpDownKey; - Data_4000336c = ""; - Data_40003370 = Data_40002aee; - Data_40003374 = ""; - Data_40003378 = Data_40002aef; - Data_4000337c = ""; + g_pcstrMenuLine1 = strEngBackgroundLight; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = strEngPressUpDownKey; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = Data_40002aee; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = Data_40002aef; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5506,14 +5510,14 @@ void PrepareScreenItems(void) case MENU_CONTEXT_TIME_DATE_INPUT: //41001: //0x3c64c - Data_40003360 = "Date and Time Set: "; - Data_40003364 = ""; - Data_40003368 = Data_400037ec; - Data_4000336c = " YYYY-MM-DD"; - Data_40003370 = Data_40003150; - Data_40003374 = " HH:MM:SS"; - Data_40003378 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = "Date and Time Set: "; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = Data_400037ec; + g_pcstrMenuLine4 = " YYYY-MM-DD"; + g_pcstrMenuLine5 = Data_40003150; + g_pcstrMenuLine6 = " HH:MM:SS"; + g_pcstrMenuLine7 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 10; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5521,22 +5525,22 @@ void PrepareScreenItems(void) case MENU_CONTEXT_DAYLIGHT_SAVING_ON: //42001: //0x3c6cc - Data_40003360 = Data_40002b70; //"daylight saving" - Data_40003364 = ""; - Data_40003368 = Data_40002b80; //"status:on" - Data_4000336c = ""; - Data_40003370 = Data_40002b8a; + g_pcstrMenuLine1 = Data_40002b70; //"daylight saving" + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = Data_40002b80; //"status:on" + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = Data_40002b8a; if (bData_40002f1e_SetupLocalData == 1) { - Data_40003374 = "hit direction key!"; + g_pcstrMenuLine6 = "hit direction key!"; } else { - Data_40003374 = "Restart & Change!"; + g_pcstrMenuLine6 = "Restart & Change!"; } - Data_40003378 = Data_40002b8b; - Data_4000337c = ""; + g_pcstrMenuLine7 = Data_40002b8b; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5544,22 +5548,22 @@ void PrepareScreenItems(void) case MENU_CONTEXT_DAYLIGHT_SAVING_OFF: //42002: //3c76c - Data_40003360 = Data_40002ba5; //"Daylight saving" - Data_40003364 = ""; - Data_40003368 = Data_40002bb5; //"status:off" - Data_4000336c = ""; - Data_40003370 = Data_40002bc0; + g_pcstrMenuLine1 = Data_40002ba5; //"Daylight saving" + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = Data_40002bb5; //"status:off" + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = Data_40002bc0; if (bData_40002f1e_SetupLocalData == 1) { - Data_40003374 = "hit direction key!"; + g_pcstrMenuLine6 = "hit direction key!"; } else { - Data_40003374 = "Restart & Change!"; + g_pcstrMenuLine6 = "Restart & Change!"; } - Data_40003378 = Data_40002bc1; - Data_4000337c = ""; + g_pcstrMenuLine7 = Data_40002bc1; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5572,82 +5576,82 @@ void PrepareScreenItems(void) if (Data_40003f1c_FlashSiteData.fLongitude >= 0) { //3c92c - sprintf(Data_40003ffd, " Lon:E%03d %02d ", + sprintf(g_MenuStringBuffer5, " Lon:E%03d %02d ", abs((int)Data_40003f1c_FlashSiteData.fLongitude), abs((int)((Data_40003f1c_FlashSiteData.fLongitude - (int)Data_40003f1c_FlashSiteData.fLongitude) * 60))); } else { //0x3c9bc - sprintf(Data_40003ffd, " Lon:W%03d %02d ", + sprintf(g_MenuStringBuffer5, " Lon:W%03d %02d ", abs((int)Data_40003f1c_FlashSiteData.fLongitude), abs((int)((Data_40003f1c_FlashSiteData.fLongitude - (int)Data_40003f1c_FlashSiteData.fLongitude) * 60))); } //0x3ca48 if (abs((int)Data_40003f1c_FlashSiteData.fLongitude) < 100) { - Data_40003ffd[10] = ' '; + g_MenuStringBuffer5[10] = ' '; } if (abs((int)Data_40003f1c_FlashSiteData.fLongitude) < 10) { - Data_40003ffd[11] = ' '; + g_MenuStringBuffer5[11] = ' '; } if (abs((int)((Data_40003f1c_FlashSiteData.fLongitude - (int)Data_40003f1c_FlashSiteData.fLongitude) * 60)) < 10) { - Data_40003ffd[14] = ' '; + g_MenuStringBuffer5[14] = ' '; } //0x3cb14 if (Data_40003f1c_FlashSiteData.fLatitude >= 0) { //3cb28 - sprintf(Data_40004027, " Lat:N %02d %02d ", + sprintf(g_MenuStringBuffer7, " Lat:N %02d %02d ", abs((int)Data_40003f1c_FlashSiteData.fLatitude), abs((int)((Data_40003f1c_FlashSiteData.fLatitude - (int)Data_40003f1c_FlashSiteData.fLatitude) * 60))); } else { //0x3cbb8 - sprintf(Data_40004027, " Lat:S %02d %02d ", + sprintf(g_MenuStringBuffer7, " Lat:S %02d %02d ", abs((int)Data_40003f1c_FlashSiteData.fLatitude), abs((int)((Data_40003f1c_FlashSiteData.fLatitude - (int)Data_40003f1c_FlashSiteData.fLatitude) * 60))); } //0x3cc44 if (abs((int)Data_40003f1c_FlashSiteData.fLatitude) < 10) { - Data_40004027[11] = ' '; + g_MenuStringBuffer7[11] = ' '; } if (abs((int)((Data_40003f1c_FlashSiteData.fLatitude - (int)Data_40003f1c_FlashSiteData.fLatitude) * 60)) < 10) { - Data_40004027[14] = ' '; + g_MenuStringBuffer7[14] = ' '; } //0x3cd74 if (Data_40003f1c_FlashSiteData.Zone > 0) { //3cd84 - sprintf(Data_4000403c, " Zone:E%d ", + sprintf(g_MenuStringBuffer8, " Zone:E%d ", abs(Data_40003f1c_FlashSiteData.Zone)); } else if (Data_40003f1c_FlashSiteData.Zone < 0) { //0x3cdb4 - sprintf(Data_4000403c, " Zone:W%d ", + sprintf(g_MenuStringBuffer8, " Zone:W%d ", abs(Data_40003f1c_FlashSiteData.Zone)); } else { //0x3cdf4 - sprintf(Data_4000403c, " Zone:%d ", + sprintf(g_MenuStringBuffer8, " Zone:%d ", abs(Data_40003f1c_FlashSiteData.Zone)); } //0x3ce20 - Data_40003360 = Data_40003f1c_FlashSiteData.cCountry; - Data_40003364 = Data_40003f1c_FlashSiteData.cCity; - Data_40003368 = Data_40003ffd; - Data_4000336c = Data_40004027; - Data_40003370 = Data_4000403c; - Data_40003374 = " "; - Data_40003378 = "up&down key: country!"; - Data_4000337c = "left&right key: city!"; + g_pcstrMenuLine1 = Data_40003f1c_FlashSiteData.cCountry; + g_pcstrMenuLine2 = Data_40003f1c_FlashSiteData.cCity; + g_pcstrMenuLine3 = g_MenuStringBuffer5; + g_pcstrMenuLine4 = g_MenuStringBuffer7; + g_pcstrMenuLine5 = g_MenuStringBuffer8; + g_pcstrMenuLine6 = " "; + g_pcstrMenuLine7 = "up&down key: country!"; + g_pcstrMenuLine8 = "left&right key: city!"; bData_4000316e_FocusLineOn8LineDisplay = 0; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5655,14 +5659,14 @@ void PrepareScreenItems(void) case MENU_CONTEXT_CUSTOM_SITE_INPUT: //43002: //0x3ce9c: "Custom Site" - Data_40003360 = "Please Input Data: "; - //Data_40003364 = ""; //????? - Data_40003368 = strCustomSiteName; //" Name:" - Data_4000336c = strCustomSiteLongitude; //" Lon:" - Data_40003370 = strCustomSiteLatitude; //" Lat:" - Data_40003374 = strCustomSiteTimezone; //" Zone:" - Data_40003378 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = "Please Input Data: "; + //g_pcstrMenuLine2 = ""; //????? + g_pcstrMenuLine3 = strCustomSiteName; //" Name:" + g_pcstrMenuLine4 = strCustomSiteLongitude; //" Lon:" + g_pcstrMenuLine5 = strCustomSiteLatitude; //" Lat:" + g_pcstrMenuLine6 = strCustomSiteTimezone; //" Zone:" + g_pcstrMenuLine7 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 10; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5670,14 +5674,14 @@ void PrepareScreenItems(void) case MENU_CONTEXT_SKY_TARGET: //45001 //0x3cf10 - Data_40003360 = "Object Mode:"; - Data_40003364 = ""; - Data_40003368 = strSkyTarget; - Data_4000336c = ""; - Data_40003370 = strLandTarget; - Data_40003374 = ""; - Data_40003378 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = "Object Mode:"; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = strSkyTarget; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = strLandTarget; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 3; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5685,14 +5689,14 @@ void PrepareScreenItems(void) case MENU_CONTEXT_LAND_TARGET: //45002 //0x3cf90 - Data_40003360 = "Object Mode:"; - Data_40003364 = ""; - Data_40003368 = strSkyTarget; - Data_4000336c = ""; - Data_40003370 = strLandTarget; - Data_40003374 = ""; - Data_40003378 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = "Object Mode:"; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = strSkyTarget; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = strLandTarget; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 5; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5700,14 +5704,14 @@ void PrepareScreenItems(void) case MENU_CONTEXT_MOUNT_AZ: //46001: //0x3d010 - Data_40003360 = "Telescope Mount:"; - Data_40003364 = ""; - Data_40003368 = Data_400028a5; - Data_4000336c = ""; - Data_40003370 = Data_400028b3; - Data_40003374 = ""; - Data_40003378 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = "Telescope Mount:"; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = strAltTelescope; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = strEquTelescope; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 3; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5715,14 +5719,14 @@ void PrepareScreenItems(void) case MENU_CONTEXT_MOUNT_EQU: //46002: //0x3d154 - Data_40003360 = "Telescope Mount:"; - Data_40003364 = ""; - Data_40003368 = Data_400028a5; - Data_4000336c = ""; - Data_40003370 = Data_400028b3; - Data_40003374 = ""; - Data_40003378 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = "Telescope Mount:"; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = strAltTelescope; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = strEquTelescope; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 5; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5730,29 +5734,29 @@ void PrepareScreenItems(void) case MENU_CONTEXT_OTA_ZERO_SETUP: //47011: // "Telescope Mount" -> "Please setup OTA zero" //0x3d1d4 - Data_40003360 = strEngPleaseSetupOtaZero; // "Please setup OTA zero" - Data_40003368 = Data_400028d7; // "Azi:000°" - Data_40003370 = Data_400028e1; // "Alt: 00°" - Data_4000336c = " Range:0-360"; - Data_40003374 = " Range:0-90"; - Data_40003378 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = strEngPleaseSetupOtaZero; // "Please setup OTA zero" + g_pcstrMenuLine3 = Data_400028d7; // "Azi:000°" + g_pcstrMenuLine5 = Data_400028e1; // "Alt: 00°" + g_pcstrMenuLine4 = " Range:0-360"; + g_pcstrMenuLine6 = " Range:0-90"; + g_pcstrMenuLine7 = ""; + g_pcstrMenuLine8 = ""; if (bData_400032a4_OTAZeroDataErrorCount > 0) { bData_400032a4_OTAZeroDataErrorCount--; - Data_40003374 = " "; - Data_40003378 = Data_400028eb; + g_pcstrMenuLine6 = " "; + g_pcstrMenuLine7 = Data_400028eb; } else { - Data_40003374 = " "; - Data_40003378 = " "; + g_pcstrMenuLine6 = " "; + g_pcstrMenuLine7 = " "; } - Data_40003364 = " "; - Data_4000336c = " Range:0-360"; - Data_40003374 = " Range:0-90"; + g_pcstrMenuLine2 = " "; + g_pcstrMenuLine4 = " Range:0-360"; + g_pcstrMenuLine6 = " Range:0-90"; bData_4000316e_FocusLineOn8LineDisplay = 10; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5760,44 +5764,62 @@ void PrepareScreenItems(void) case MENU_CONTEXT_OTA_ZERO_SETUP_RESTART: //47041: //0x3d2c4 - Data_40003360 = strEngPleaseSetupOtaZero; // "Please setup OTA zero" - Data_40003368 = Data_400028d7; - Data_40003370 = Data_400028e1; - Data_40003378 = Data_40002901; - Data_40003364 = ""; - Data_4000336c = ""; - Data_40003374 = " "; - Data_4000337c = ""; + g_pcstrMenuLine1 = strEngPleaseSetupOtaZero; // "Please setup OTA zero" + g_pcstrMenuLine3 = Data_400028d7; + g_pcstrMenuLine5 = Data_400028e1; + g_pcstrMenuLine7 = Data_40002901; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine6 = " "; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 10; bData_40003197_DisplayLinesPerMenuLine = 1; break; - + +#if 0 case MENU_CONTEXT_ENGLISH: //49001 //0x3d344 - Data_40003360 = strEngEnglish; - Data_40003364 = strEngGerman; - Data_40003368 = strEngFrench; - Data_4000336c = strEngItalian; - Data_40003370 = strEngSpanish; - Data_40003374 = ""; - Data_40003378 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = strEngEnglish; + g_pcstrMenuLine2 = strEngGerman; + g_pcstrMenuLine3 = strEngFrench; + g_pcstrMenuLine4 = strEngItalian; + g_pcstrMenuLine5 = strEngSpanish; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 1; bData_40003197_DisplayLinesPerMenuLine = 1; break; +#else + case MENU_CONTEXT_ENGLISH: //49001 + //0x3d344 + g_pcstrMenuLine1 = strEngEnglish; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = ""; + g_pcstrMenuLine4 = ""; + g_pcstrMenuLine5 = ""; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = ""; + g_pcstrMenuLine8 = ""; + + bData_4000316e_FocusLineOn8LineDisplay = 1; + bData_40003197_DisplayLinesPerMenuLine = 1; + break; +#endif +#if 0 case MENU_CONTEXT_GERMAN: //49002 //0x3d3c0 - Data_40003360 = strEngEnglish; - Data_40003364 = strEngGerman; - Data_40003368 = strEngFrench; - Data_4000336c = strEngItalian; - Data_40003370 = strEngSpanish; - Data_40003374 = ""; - Data_40003378 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = strEngEnglish; + g_pcstrMenuLine2 = strEngGerman; + g_pcstrMenuLine3 = strEngFrench; + g_pcstrMenuLine4 = strEngItalian; + g_pcstrMenuLine5 = strEngSpanish; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 2; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5805,14 +5827,14 @@ void PrepareScreenItems(void) case MENU_CONTEXT_FRENCH: //49003 //0x3d440 - Data_40003360 = strEngEnglish; - Data_40003364 = strEngGerman; - Data_40003368 = strEngFrench; - Data_4000336c = strEngItalian; - Data_40003370 = strEngSpanish; - Data_40003374 = ""; - Data_40003378 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = strEngEnglish; + g_pcstrMenuLine2 = strEngGerman; + g_pcstrMenuLine3 = strEngFrench; + g_pcstrMenuLine4 = strEngItalian; + g_pcstrMenuLine5 = strEngSpanish; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 3; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5820,14 +5842,14 @@ void PrepareScreenItems(void) case MENU_CONTEXT_ITALIAN: //49004 //0x3d594 - Data_40003360 = strEngEnglish; - Data_40003364 = strEngGerman; - Data_40003368 = strEngFrench; - Data_4000336c = strEngItalian; - Data_40003370 = strEngSpanish; - Data_40003374 = ""; - Data_40003378 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = strEngEnglish; + g_pcstrMenuLine2 = strEngGerman; + g_pcstrMenuLine3 = strEngFrench; + g_pcstrMenuLine4 = strEngItalian; + g_pcstrMenuLine5 = strEngSpanish; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 4; bData_40003197_DisplayLinesPerMenuLine = 1; @@ -5835,29 +5857,30 @@ void PrepareScreenItems(void) case MENU_CONTEXT_SPANISH: //49005 //0x3d614 - Data_40003360 = strEngEnglish; - Data_40003364 = strEngGerman; - Data_40003368 = strEngFrench; - Data_4000336c = strEngItalian; - Data_40003370 = strEngSpanish; - Data_40003374 = ""; - Data_40003378 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = strEngEnglish; + g_pcstrMenuLine2 = strEngGerman; + g_pcstrMenuLine3 = strEngFrench; + g_pcstrMenuLine4 = strEngItalian; + g_pcstrMenuLine5 = strEngSpanish; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 5; bData_40003197_DisplayLinesPerMenuLine = 1; break; +#endif case MENU_CONTEXT_TRACKING_RATE_INPUT: //48001 //0x3d694 - Data_40003360 = "Input Treaking Speed:"; - Data_40003364 = ""; - Data_40003368 = ""; - Data_4000336c = strTrackingRateCustDisplay; - Data_40003370 = ""; - Data_40003374 = ""; - Data_40003378 = ""; - Data_4000337c = ""; + g_pcstrMenuLine1 = "Input Treaking Speed:"; + g_pcstrMenuLine2 = ""; + g_pcstrMenuLine3 = ""; + g_pcstrMenuLine4 = strTrackingRateCustDisplay; + g_pcstrMenuLine5 = ""; + g_pcstrMenuLine6 = ""; + g_pcstrMenuLine7 = ""; + g_pcstrMenuLine8 = ""; bData_4000316e_FocusLineOn8LineDisplay = 10; bData_40003197_DisplayLinesPerMenuLine = 1; diff --git a/applications/freertos_app/func_3d72c.c b/applications/freertos_app/func_3d72c.c index 2fa0c96..8549358 100644 --- a/applications/freertos_app/func_3d72c.c +++ b/applications/freertos_app/func_3d72c.c @@ -8,12 +8,12 @@ void DisplayScreenItems(void) { case 1: //0x3d750 - Data_4000318c = Data_40002c64_MenuContextId; - if (Data_4000318c != Data_40003190) + g_iMenuContextIdNew = Data_40002c64_MenuContextId; + if (g_iMenuContextIdNew != g_iMenuContextIdOld) { //3d77c lcd_display_clear(); - Data_40003190 = Data_4000318c; + g_iMenuContextIdOld = g_iMenuContextIdNew; } //3d790 switch (Data_40002c64_MenuContextId) @@ -36,177 +36,177 @@ void DisplayScreenItems(void) { case 1: //0x3db04 - lcd_display_string(1, 1, 1, 2, Data_40003380); - lcd_display_string(0, 2, 1, 2, Data_40003384); - lcd_display_string(0, 3, 1, 2, Data_40003388); - lcd_display_string(0, 4, 1, 2, Data_4000338c); - lcd_display_string(0, 5, 1, 2, Data_40003390); - lcd_display_string(0, 6, 1, 2, Data_40003394); - lcd_display_string(0, 7, 1, 2, Data_40003398); - lcd_display_string(0, 8, 1, 2, Data_4000339c); - - lcd_display_string(1, 1, 3, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 3, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 3, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 3, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 3, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 3, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 3, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 3, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(1, 1, 1, 2, g_pcstrMenuLine9); + lcd_display_string(0, 2, 1, 2, g_pcstrMenuLine10); + lcd_display_string(0, 3, 1, 2, g_pcstrMenuLine11); + lcd_display_string(0, 4, 1, 2, g_pcstrMenuLine12); + lcd_display_string(0, 5, 1, 2, g_pcstrMenuLine13); + lcd_display_string(0, 6, 1, 2, g_pcstrMenuLine14); + lcd_display_string(0, 7, 1, 2, g_pcstrMenuLine15); + lcd_display_string(0, 8, 1, 2, g_pcstrMenuLine16); + + lcd_display_string(1, 1, 3, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 3, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 3, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 3, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 3, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 3, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 3, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 3, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); //->0x3efa8 break; case 2: //0x3dd8c - lcd_display_string(0, 1, 1, 2, Data_40003380); - lcd_display_string(1, 2, 1, 2, Data_40003384); - lcd_display_string(0, 3, 1, 2, Data_40003388); - lcd_display_string(0, 4, 1, 2, Data_4000338c); - lcd_display_string(0, 5, 1, 2, Data_40003390); - lcd_display_string(0, 6, 1, 2, Data_40003394); - lcd_display_string(0, 7, 1, 2, Data_40003398); - lcd_display_string(0, 8, 1, 2, Data_4000339c); - - lcd_display_string(0, 1, 3, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(2, 2, 3, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 3, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 3, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 3, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 3, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 3, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 3, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, 2, g_pcstrMenuLine9); + lcd_display_string(1, 2, 1, 2, g_pcstrMenuLine10); + lcd_display_string(0, 3, 1, 2, g_pcstrMenuLine11); + lcd_display_string(0, 4, 1, 2, g_pcstrMenuLine12); + lcd_display_string(0, 5, 1, 2, g_pcstrMenuLine13); + lcd_display_string(0, 6, 1, 2, g_pcstrMenuLine14); + lcd_display_string(0, 7, 1, 2, g_pcstrMenuLine15); + lcd_display_string(0, 8, 1, 2, g_pcstrMenuLine16); + + lcd_display_string(0, 1, 3, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(2, 2, 3, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 3, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 3, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 3, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 3, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 3, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 3, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); //->0x3efa8 break; case 3: //0x3e014 - lcd_display_string(0, 1, 1, 2, Data_40003380); - lcd_display_string(0, 2, 1, 2, Data_40003384); - lcd_display_string(1, 3, 1, 2, Data_40003388); - lcd_display_string(0, 4, 1, 2, Data_4000338c); - lcd_display_string(0, 5, 1, 2, Data_40003390); - lcd_display_string(0, 6, 1, 2, Data_40003394); - lcd_display_string(0, 7, 1, 2, Data_40003398); - lcd_display_string(0, 8, 1, 2, Data_4000339c); - - lcd_display_string(0, 1, 3, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 3, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(1, 3, 3, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 3, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 3, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 3, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 3, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 3, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, 2, g_pcstrMenuLine9); + lcd_display_string(0, 2, 1, 2, g_pcstrMenuLine10); + lcd_display_string(1, 3, 1, 2, g_pcstrMenuLine11); + lcd_display_string(0, 4, 1, 2, g_pcstrMenuLine12); + lcd_display_string(0, 5, 1, 2, g_pcstrMenuLine13); + lcd_display_string(0, 6, 1, 2, g_pcstrMenuLine14); + lcd_display_string(0, 7, 1, 2, g_pcstrMenuLine15); + lcd_display_string(0, 8, 1, 2, g_pcstrMenuLine16); + + lcd_display_string(0, 1, 3, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 3, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(1, 3, 3, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 3, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 3, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 3, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 3, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 3, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); //->0x3efa8 break; case 4: //0x3e29c - lcd_display_string(0, 1, 1, 2, Data_40003380); - lcd_display_string(0, 2, 1, 2, Data_40003384); - lcd_display_string(0, 3, 1, 2, Data_40003388); - lcd_display_string(1, 4, 1, 2, Data_4000338c); - lcd_display_string(0, 5, 1, 2, Data_40003390); - lcd_display_string(0, 6, 1, 2, Data_40003394); - lcd_display_string(0, 7, 1, 2, Data_40003398); - lcd_display_string(0, 8, 1, 2, Data_4000339c); - - lcd_display_string(0, 1, 3, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 3, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 3, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(1, 4, 3, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 3, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 3, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 3, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 3, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, 2, g_pcstrMenuLine9); + lcd_display_string(0, 2, 1, 2, g_pcstrMenuLine10); + lcd_display_string(0, 3, 1, 2, g_pcstrMenuLine11); + lcd_display_string(1, 4, 1, 2, g_pcstrMenuLine12); + lcd_display_string(0, 5, 1, 2, g_pcstrMenuLine13); + lcd_display_string(0, 6, 1, 2, g_pcstrMenuLine14); + lcd_display_string(0, 7, 1, 2, g_pcstrMenuLine15); + lcd_display_string(0, 8, 1, 2, g_pcstrMenuLine16); + + lcd_display_string(0, 1, 3, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 3, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 3, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(1, 4, 3, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 3, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 3, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 3, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 3, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); //->0x3efa8 break; case 5: //0x3e524 - lcd_display_string(0, 1, 1, 2, Data_40003380); - lcd_display_string(0, 2, 1, 2, Data_40003384); - lcd_display_string(0, 3, 1, 2, Data_40003388); - lcd_display_string(0, 4, 1, 2, Data_4000338c); - lcd_display_string(1, 5, 1, 2, Data_40003390); - lcd_display_string(0, 6, 1, 2, Data_40003394); - lcd_display_string(0, 7, 1, 2, Data_40003398); - lcd_display_string(0, 8, 1, 2, Data_4000339c); - - lcd_display_string(0, 1, 3, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 3, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 3, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 3, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(1, 5, 3, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 3, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 3, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 3, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, 2, g_pcstrMenuLine9); + lcd_display_string(0, 2, 1, 2, g_pcstrMenuLine10); + lcd_display_string(0, 3, 1, 2, g_pcstrMenuLine11); + lcd_display_string(0, 4, 1, 2, g_pcstrMenuLine12); + lcd_display_string(1, 5, 1, 2, g_pcstrMenuLine13); + lcd_display_string(0, 6, 1, 2, g_pcstrMenuLine14); + lcd_display_string(0, 7, 1, 2, g_pcstrMenuLine15); + lcd_display_string(0, 8, 1, 2, g_pcstrMenuLine16); + + lcd_display_string(0, 1, 3, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 3, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 3, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 3, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(1, 5, 3, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 3, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 3, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 3, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); //->0x3efa8 break; case 6: //0x3e7ac - lcd_display_string(0, 1, 1, 2, Data_40003380); - lcd_display_string(0, 2, 1, 2, Data_40003384); - lcd_display_string(0, 3, 1, 2, Data_40003388); - lcd_display_string(0, 4, 1, 2, Data_4000338c); - lcd_display_string(0, 5, 1, 2, Data_40003390); - lcd_display_string(1, 6, 1, 2, Data_40003394); - lcd_display_string(0, 7, 1, 2, Data_40003398); - lcd_display_string(0, 8, 1, 2, Data_4000339c); - - lcd_display_string(0, 1, 3, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 3, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 3, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 3, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 3, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(1, 6, 3, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 3, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 3, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, 2, g_pcstrMenuLine9); + lcd_display_string(0, 2, 1, 2, g_pcstrMenuLine10); + lcd_display_string(0, 3, 1, 2, g_pcstrMenuLine11); + lcd_display_string(0, 4, 1, 2, g_pcstrMenuLine12); + lcd_display_string(0, 5, 1, 2, g_pcstrMenuLine13); + lcd_display_string(1, 6, 1, 2, g_pcstrMenuLine14); + lcd_display_string(0, 7, 1, 2, g_pcstrMenuLine15); + lcd_display_string(0, 8, 1, 2, g_pcstrMenuLine16); + + lcd_display_string(0, 1, 3, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 3, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 3, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 3, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 3, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(1, 6, 3, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 3, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 3, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); //->0x3efa8 break; case 7: //0x3ea90 - lcd_display_string(0, 1, 1, 2, Data_40003380); - lcd_display_string(0, 2, 1, 2, Data_40003384); - lcd_display_string(0, 3, 1, 2, Data_40003388); - lcd_display_string(0, 4, 1, 2, Data_4000338c); - lcd_display_string(0, 5, 1, 2, Data_40003390); - lcd_display_string(0, 6, 1, 2, Data_40003394); - lcd_display_string(1, 7, 1, 2, Data_40003398); - lcd_display_string(0, 8, 1, 2, Data_4000339c); - - lcd_display_string(0, 1, 3, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 3, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 3, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 3, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 3, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 3, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(1, 7, 3, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 3, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, 2, g_pcstrMenuLine9); + lcd_display_string(0, 2, 1, 2, g_pcstrMenuLine10); + lcd_display_string(0, 3, 1, 2, g_pcstrMenuLine11); + lcd_display_string(0, 4, 1, 2, g_pcstrMenuLine12); + lcd_display_string(0, 5, 1, 2, g_pcstrMenuLine13); + lcd_display_string(0, 6, 1, 2, g_pcstrMenuLine14); + lcd_display_string(1, 7, 1, 2, g_pcstrMenuLine15); + lcd_display_string(0, 8, 1, 2, g_pcstrMenuLine16); + + lcd_display_string(0, 1, 3, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 3, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 3, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 3, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 3, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 3, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(1, 7, 3, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 3, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); //->0x3efa8 break; case 8: //0x3ed18 - lcd_display_string(0, 1, 1, 2, Data_40003380); - lcd_display_string(0, 2, 1, 2, Data_40003384); - lcd_display_string(0, 3, 1, 2, Data_40003388); - lcd_display_string(0, 4, 1, 2, Data_4000338c); - lcd_display_string(0, 5, 1, 2, Data_40003390); - lcd_display_string(0, 6, 1, 2, Data_40003394); - lcd_display_string(0, 7, 1, 2, Data_40003398); - lcd_display_string(1, 8, 1, 2, Data_4000339c); - - lcd_display_string(0, 1, 3, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 3, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 3, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 3, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 3, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 3, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 3, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(1, 8, 3, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, 2, g_pcstrMenuLine9); + lcd_display_string(0, 2, 1, 2, g_pcstrMenuLine10); + lcd_display_string(0, 3, 1, 2, g_pcstrMenuLine11); + lcd_display_string(0, 4, 1, 2, g_pcstrMenuLine12); + lcd_display_string(0, 5, 1, 2, g_pcstrMenuLine13); + lcd_display_string(0, 6, 1, 2, g_pcstrMenuLine14); + lcd_display_string(0, 7, 1, 2, g_pcstrMenuLine15); + lcd_display_string(1, 8, 1, 2, g_pcstrMenuLine16); + + lcd_display_string(0, 1, 3, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 3, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 3, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 3, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 3, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 3, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 3, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(1, 8, 3, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); //->0x3efa8 break; @@ -214,27 +214,27 @@ void DisplayScreenItems(void) //0x3efa0 break; } - } + } //if (bData_40002f14_RecentTargetCount != 0) else { //0x3efac - lcd_display_string(0, 1, 1, 2, Data_40003380); - lcd_display_string(0, 2, 1, 2, Data_40003384); - lcd_display_string(0, 3, 1, 2, Data_40003388); - lcd_display_string(0, 4, 1, 2, Data_4000338c); - lcd_display_string(0, 5, 1, 2, Data_40003390); - lcd_display_string(0, 6, 1, 2, Data_40003394); - lcd_display_string(0, 7, 1, 2, Data_40003398); - lcd_display_string(0, 8, 1, 2, Data_4000339c); + lcd_display_string(0, 1, 1, 2, g_pcstrMenuLine9); + lcd_display_string(0, 2, 1, 2, g_pcstrMenuLine10); + lcd_display_string(0, 3, 1, 2, g_pcstrMenuLine11); + lcd_display_string(0, 4, 1, 2, g_pcstrMenuLine12); + lcd_display_string(0, 5, 1, 2, g_pcstrMenuLine13); + lcd_display_string(0, 6, 1, 2, g_pcstrMenuLine14); + lcd_display_string(0, 7, 1, 2, g_pcstrMenuLine15); + lcd_display_string(0, 8, 1, 2, g_pcstrMenuLine16); - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); } //->0x4684c break; @@ -245,14 +245,14 @@ void DisplayScreenItems(void) ((Data_40003f50.bData_0 != 1) && (bData_40002e79_SkyLandTargetSeletion == 0))) { //0x3f274 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); //->0x3f8cc } else @@ -262,14 +262,14 @@ void DisplayScreenItems(void) { case 0: //0x3f414 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 8, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 8, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 8, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 8, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 8, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 8, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); lcd_display_bitmap(0, 5, 15, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 5, 18, (unsigned char*)cBitmapMinute); @@ -285,14 +285,14 @@ void DisplayScreenItems(void) case 1: //0x3f650 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 8, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 8, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 8, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 8, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); lcd_display_bitmap(0, 5, 15, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 5, 18, (unsigned char*)cBitmapMinute); @@ -312,11 +312,11 @@ void DisplayScreenItems(void) //->0x4684c break; - case 2: + case MENU_CONTEXT_NO_TELESCOPE: //2: //0x3f8d0 - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); beep1(1); delay_loop(200); @@ -324,7 +324,7 @@ void DisplayScreenItems(void) delay_loop(200); beep1(1); delay_loop(200); - Data_40002c64_MenuContextId = 0; + Data_40002c64_MenuContextId = MENU_CONTEXT_MAIN; //0; //->0x4684c break; @@ -345,16 +345,16 @@ void DisplayScreenItems(void) ProcessNextAlignmentStar(); beep1(3); - Data_40003364 = Data_400030b4; //"The telescope has be" - Data_4000336c = Data_400030b8; //"aligned!" - Data_40003374 = Data_400030bc; + g_pcstrMenuLine2 = Data_400030b4; //"The telescope has be" + g_pcstrMenuLine4 = Data_400030b8; //"aligned!" + g_pcstrMenuLine6 = Data_400030bc; lcd_display_string(0, 1, 1, 22, " "); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); lcd_display_string(0, 3, 1, 22, " "); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); lcd_display_string(0, 5, 1, 22, " "); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); lcd_display_string(0, 7, 1, 22, " "); lcd_display_string(0, 8, 1, 22, " "); @@ -373,15 +373,15 @@ void DisplayScreenItems(void) //0x3fb6c bData_400031e9 = 6; - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); lcd_display_string(0, 5, 1, 4, "OBJ:"); - lcd_display_string(0, 7, 11, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 11, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); - lcd_display_string(0, 5, 11, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 11, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); + lcd_display_string(0, 7, 11, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 11, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); + lcd_display_string(0, 5, 11, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 11, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); lcd_display_bitmap(0, 5, 18, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 5, 21, (unsigned char*)cBitmapMinute); @@ -406,8 +406,8 @@ void DisplayScreenItems(void) } bData_400031e9 = 7; - Data_40003360 = strSlewingTo; - Data_40003364 = strAutoloadAlignStars; + g_pcstrMenuLine1 = strSlewingTo; + g_pcstrMenuLine2 = strAutoloadAlignStars; if (Data_40004128.alignmentPause == 0) { @@ -421,11 +421,11 @@ void DisplayScreenItems(void) } //0x3fe58 lcd_display_string(0, 2, 1, 21, " "); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); lcd_display_string(0, 5, 1, 4, "OBJ:"); - lcd_display_string(0, 5, 11, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 11, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); + lcd_display_string(0, 5, 11, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 11, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); lcd_display_bitmap(0, 5, 18, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 5, 21, (unsigned char*)cBitmapMinute); @@ -434,8 +434,8 @@ void DisplayScreenItems(void) lcd_display_string(0, 6, 1, 6, " "); lcd_display_string(0, 7, 1, 4, "OTA:"); - lcd_display_string(0, 7, 11, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 11, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 7, 11, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 11, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); lcd_display_bitmap(0, 7, 18, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 7, 21, (unsigned char*)cBitmapMinute); @@ -457,16 +457,16 @@ void DisplayScreenItems(void) } bData_400031e9 = 8; - Data_40003364 = Data_400030a8; //" Please center this " - Data_4000336c = Data_400030ac; //"star to the field of" - Data_40003374 = Data_400030b0; //"view" + g_pcstrMenuLine2 = Data_400030a8; //" Please center this " + g_pcstrMenuLine4 = Data_400030ac; //"star to the field of" + g_pcstrMenuLine6 = Data_400030b0; //"view" lcd_display_string(0, 1, 1, 22, " "); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); lcd_display_string(0, 3, 1, 22, " "); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); lcd_display_string(0, 5, 1, 22, " "); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); lcd_display_string(0, 7, 1, 22, " "); lcd_display_string(0, 8, 1, 22, " "); } @@ -483,16 +483,16 @@ void DisplayScreenItems(void) } bData_400031e9 = 8; - Data_40003364 = Data_400030a8; - Data_4000336c = Data_400030ac; - Data_40003374 = Data_400030b0; + g_pcstrMenuLine2 = Data_400030a8; + g_pcstrMenuLine4 = Data_400030ac; + g_pcstrMenuLine6 = Data_400030b0; lcd_display_string(0, 1, 1, 22, " "); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); lcd_display_string(0, 3, 1, 22, " "); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); lcd_display_string(0, 5, 1, 22, " "); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); lcd_display_string(0, 7, 1, 22, " "); lcd_display_string(0, 8, 1, 22, " "); } @@ -506,14 +506,14 @@ void DisplayScreenItems(void) //0x40488 case MENU_CONTEXT_RA_BKBLASH_CORR_3RD_STEP_MOVING_LEFT_RIGHT: //11103: //0x4048c - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); //->0x4684c break; @@ -521,14 +521,14 @@ void DisplayScreenItems(void) //0x40610 beep1(1); - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 8, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 8, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); delay_loop(800); Data_40002c64_MenuContextId = MENU_CONTEXT_RA_BKBLASH_CORR_1ST_STEP_AIM_TARGET; //11102; @@ -539,14 +539,14 @@ void DisplayScreenItems(void) //0x407b4 beep1(3); - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 8, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 8, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); delay_loop(800); Data_40002c64_MenuContextId = MENU_CONTEXT_MAIN; //0; @@ -558,28 +558,28 @@ void DisplayScreenItems(void) //0x40960 case MENU_CONTEXT_DEC_BKBLASH_CORR_2ND_STEP_MOVING_UP_DOWN: //11203: //0x40964 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); break; case MENU_CONTEXT_DEC_BKBLASH_CORR_RESULT: //11204: //0x40ae8 beep1(1); - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 8, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 8, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); delay_loop(800); Data_40002c64_MenuContextId = MENU_CONTEXT_DEC_BKBLASH_CORR_1ST_STEP_AIM_TARGET; //11202; @@ -589,14 +589,14 @@ void DisplayScreenItems(void) //0x40c8c beep1(3); - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 8, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 8, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); delay_loop(800); Data_40002c64_MenuContextId = MENU_CONTEXT_MAIN; //0; @@ -614,14 +614,14 @@ void DisplayScreenItems(void) //0x40e44: Bright Star item case MENU_CONTEXT_SAO_OBJECT_SELECTION: //23007: //0x40e48: SAO item - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 8, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 8, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 8, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 8, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 8, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 8, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); lcd_display_bitmap(0, 5, 15, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 5, 18, (unsigned char*)cBitmapMinute); @@ -638,16 +638,16 @@ void DisplayScreenItems(void) //0x41080: NGC item case MENU_CONTEXT_IC_OBJECT_SELECTION: //23004: //0x41088: IC item - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); lcd_display_string(0, 2, 1, 14, "Constellation:"); - lcd_display_string(0, 2, 15, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); + lcd_display_string(0, 2, 15, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); lcd_display_string(0, 4, 1, 5, "Type:"); - lcd_display_string(0, 4, 6, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 8, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 8, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 8, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 4, 6, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 8, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 8, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 8, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); lcd_display_bitmap(0, 5, 15, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 5, 18, (unsigned char*)cBitmapMinute); @@ -674,14 +674,14 @@ void DisplayScreenItems(void) //0x41310 case MENU_CONTEXT_SAO_OBJECT_TRACKING: //23017: //0x41314 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 8, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 8, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 8, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 8, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); lcd_display_bitmap(0, 5, 15, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 5, 18, (unsigned char*)cBitmapMinute); @@ -716,15 +716,15 @@ void DisplayScreenItems(void) //0x41624 lcd_display_clear(); - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); lcd_display_string(0, 3, 1, 14, "Constellation:"); - lcd_display_string(0, 3, 15, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 8, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 8, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 3, 15, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 8, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 8, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); lcd_display_bitmap(0, 5, 15, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 5, 18, (unsigned char*)cBitmapMinute); @@ -755,13 +755,13 @@ void DisplayScreenItems(void) case MENU_CONTEXT_FAMOUS_STAR_SELECTION: //25001: //0x418fc: Famous Star item - func_91c(0, 1, 1, 64, (unsigned char*)Data_40003360); - lcd_display_string(0, 3, 0, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 8, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 8, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 8, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + func_91c(0, 1, 1, 64, (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 3, 0, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 8, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 8, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 8, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); lcd_display_bitmap(0, 5, 15, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 5, 18, (unsigned char*)cBitmapMinute); @@ -776,14 +776,14 @@ void DisplayScreenItems(void) case MENU_CONTEXT_MESSIER_OBJECT_DETAILS: //23012: //0x41af8: Messier item - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); break; case MENU_CONTEXT_CUSTOMER_OBJECT_SELECTION: //201: @@ -792,133 +792,133 @@ void DisplayScreenItems(void) //0x41c88 case 101: //0x41c8c - lcd_display_string(0, 1, 1, (char)strlen(Data_40003384), (unsigned char*)Data_40003384); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine10), (unsigned char*)g_pcstrMenuLine10); switch (bData_4000319a_SkyLandTargetId) { case 1: //0x41cf8 - lcd_display_string(1, 3, 3, 2, (unsigned char*)Data_40003360); - lcd_display_string(0, 3, 10, 2, (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 17, 2, (unsigned char*)Data_40003368); - lcd_display_string(0, 5, 3, 2, (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 10, 2, (unsigned char*)Data_40003370); - lcd_display_string(0, 5, 17, 2, (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 3, 2, (unsigned char*)Data_40003378); - lcd_display_string(0, 7, 10, 2, (unsigned char*)Data_4000337c); - lcd_display_string(0, 7, 17, 2, (unsigned char*)Data_40003380); + lcd_display_string(1, 3, 3, 2, (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 3, 10, 2, (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 17, 2, (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 5, 3, 2, (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 10, 2, (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 5, 17, 2, (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 3, 2, (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 7, 10, 2, (unsigned char*)g_pcstrMenuLine8); + lcd_display_string(0, 7, 17, 2, (unsigned char*)g_pcstrMenuLine9); //->0x42780 break; case 2: //0x41e20 - lcd_display_string(0, 3, 3, 2, (unsigned char*)Data_40003360); - lcd_display_string(1, 3, 10, 2, (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 17, 2, (unsigned char*)Data_40003368); - lcd_display_string(0, 5, 3, 2, (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 10, 2, (unsigned char*)Data_40003370); - lcd_display_string(0, 5, 17, 2, (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 3, 2, (unsigned char*)Data_40003378); - lcd_display_string(0, 7, 10, 2, (unsigned char*)Data_4000337c); - lcd_display_string(0, 7, 17, 2, (unsigned char*)Data_40003380); + lcd_display_string(0, 3, 3, 2, (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(1, 3, 10, 2, (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 17, 2, (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 5, 3, 2, (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 10, 2, (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 5, 17, 2, (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 3, 2, (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 7, 10, 2, (unsigned char*)g_pcstrMenuLine8); + lcd_display_string(0, 7, 17, 2, (unsigned char*)g_pcstrMenuLine9); //->0x42780 break; case 3: //0x41f48 - lcd_display_string(0, 3, 3, 2, (unsigned char*)Data_40003360); - lcd_display_string(0, 3, 10, 2, (unsigned char*)Data_40003364); - lcd_display_string(1, 3, 17, 2, (unsigned char*)Data_40003368); - lcd_display_string(0, 5, 3, 2, (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 10, 2, (unsigned char*)Data_40003370); - lcd_display_string(0, 5, 17, 2, (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 3, 2, (unsigned char*)Data_40003378); - lcd_display_string(0, 7, 10, 2, (unsigned char*)Data_4000337c); - lcd_display_string(0, 7, 17, 2, (unsigned char*)Data_40003380); + lcd_display_string(0, 3, 3, 2, (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 3, 10, 2, (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(1, 3, 17, 2, (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 5, 3, 2, (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 10, 2, (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 5, 17, 2, (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 3, 2, (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 7, 10, 2, (unsigned char*)g_pcstrMenuLine8); + lcd_display_string(0, 7, 17, 2, (unsigned char*)g_pcstrMenuLine9); //->0x42780 break; case 4: //0x42070 - lcd_display_string(0, 3, 3, 2, (unsigned char*)Data_40003360); - lcd_display_string(0, 3, 10, 2, (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 17, 2, (unsigned char*)Data_40003368); - lcd_display_string(1, 5, 3, 2, (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 10, 2, (unsigned char*)Data_40003370); - lcd_display_string(0, 5, 17, 2, (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 3, 2, (unsigned char*)Data_40003378); - lcd_display_string(0, 7, 10, 2, (unsigned char*)Data_4000337c); - lcd_display_string(0, 7, 17, 2, (unsigned char*)Data_40003380); + lcd_display_string(0, 3, 3, 2, (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 3, 10, 2, (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 17, 2, (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(1, 5, 3, 2, (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 10, 2, (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 5, 17, 2, (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 3, 2, (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 7, 10, 2, (unsigned char*)g_pcstrMenuLine8); + lcd_display_string(0, 7, 17, 2, (unsigned char*)g_pcstrMenuLine9); //->0x42780 break; case 5: //0x42198 - lcd_display_string(0, 3, 3, 2, (unsigned char*)Data_40003360); - lcd_display_string(0, 3, 10, 2, (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 17, 2, (unsigned char*)Data_40003368); - lcd_display_string(0, 5, 3, 2, (unsigned char*)Data_4000336c); - lcd_display_string(1, 5, 10, 2, (unsigned char*)Data_40003370); - lcd_display_string(0, 5, 17, 2, (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 3, 2, (unsigned char*)Data_40003378); - lcd_display_string(0, 7, 10, 2, (unsigned char*)Data_4000337c); - lcd_display_string(0, 7, 17, 2, (unsigned char*)Data_40003380); + lcd_display_string(0, 3, 3, 2, (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 3, 10, 2, (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 17, 2, (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 5, 3, 2, (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(1, 5, 10, 2, (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 5, 17, 2, (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 3, 2, (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 7, 10, 2, (unsigned char*)g_pcstrMenuLine8); + lcd_display_string(0, 7, 17, 2, (unsigned char*)g_pcstrMenuLine9); //->0x42780 break; case 6: //0x422c0 - lcd_display_string(0, 3, 3, 2, (unsigned char*)Data_40003360); - lcd_display_string(0, 3, 10, 2, (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 17, 2, (unsigned char*)Data_40003368); - lcd_display_string(0, 5, 3, 2, (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 10, 2, (unsigned char*)Data_40003370); - lcd_display_string(1, 5, 17, 2, (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 3, 2, (unsigned char*)Data_40003378); - lcd_display_string(0, 7, 10, 2, (unsigned char*)Data_4000337c); - lcd_display_string(0, 7, 17, 2, (unsigned char*)Data_40003380); + lcd_display_string(0, 3, 3, 2, (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 3, 10, 2, (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 17, 2, (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 5, 3, 2, (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 10, 2, (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(1, 5, 17, 2, (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 3, 2, (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 7, 10, 2, (unsigned char*)g_pcstrMenuLine8); + lcd_display_string(0, 7, 17, 2, (unsigned char*)g_pcstrMenuLine9); //->0x42780 break; case 7: //0x423e8 - lcd_display_string(0, 3, 3, 2, (unsigned char*)Data_40003360); - lcd_display_string(0, 3, 10, 2, (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 17, 2, (unsigned char*)Data_40003368); - lcd_display_string(0, 5, 3, 2, (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 10, 2, (unsigned char*)Data_40003370); - lcd_display_string(0, 5, 17, 2, (unsigned char*)Data_40003374); - lcd_display_string(1, 7, 3, 2, (unsigned char*)Data_40003378); - lcd_display_string(0, 7, 10, 2, (unsigned char*)Data_4000337c); - lcd_display_string(0, 7, 17, 2, (unsigned char*)Data_40003380); + lcd_display_string(0, 3, 3, 2, (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 3, 10, 2, (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 17, 2, (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 5, 3, 2, (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 10, 2, (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 5, 17, 2, (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(1, 7, 3, 2, (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 7, 10, 2, (unsigned char*)g_pcstrMenuLine8); + lcd_display_string(0, 7, 17, 2, (unsigned char*)g_pcstrMenuLine9); //->0x42780 break; case 8: //0x42530 - lcd_display_string(0, 3, 3, 2, (unsigned char*)Data_40003360); - lcd_display_string(0, 3, 10, 2, (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 17, 2, (unsigned char*)Data_40003368); - lcd_display_string(0, 5, 3, 2, (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 10, 2, (unsigned char*)Data_40003370); - lcd_display_string(0, 5, 17, 2, (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 3, 2, (unsigned char*)Data_40003378); - lcd_display_string(1, 7, 10, 2, (unsigned char*)Data_4000337c); - lcd_display_string(0, 7, 17, 2, (unsigned char*)Data_40003380); + lcd_display_string(0, 3, 3, 2, (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 3, 10, 2, (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 17, 2, (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 5, 3, 2, (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 10, 2, (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 5, 17, 2, (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 3, 2, (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(1, 7, 10, 2, (unsigned char*)g_pcstrMenuLine8); + lcd_display_string(0, 7, 17, 2, (unsigned char*)g_pcstrMenuLine9); //->0x42780 break; case 9: //0x42658 - lcd_display_string(0, 3, 3, 2, (unsigned char*)Data_40003360); - lcd_display_string(0, 3, 10, 2, (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 17, 2, (unsigned char*)Data_40003368); - lcd_display_string(0, 5, 3, 2, (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 10, 2, (unsigned char*)Data_40003370); - lcd_display_string(0, 5, 17, 2, (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 3, 2, (unsigned char*)Data_40003378); - lcd_display_string(0, 7, 10, 2, (unsigned char*)Data_4000337c); - lcd_display_string(1, 7, 17, 2, (unsigned char*)Data_40003380); + lcd_display_string(0, 3, 3, 2, (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 3, 10, 2, (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 17, 2, (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 5, 3, 2, (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 10, 2, (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 5, 17, 2, (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 3, 2, (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 7, 10, 2, (unsigned char*)g_pcstrMenuLine8); + lcd_display_string(1, 7, 17, 2, (unsigned char*)g_pcstrMenuLine9); //->0x42780 break; #if 0 @@ -936,15 +936,15 @@ void DisplayScreenItems(void) lcd_display_bitmap(0, 8, 11, (unsigned char*)cBitmapMinute); lcd_display_bitmap(0, 8, 16, (unsigned char*)cBitmapSecond); - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, 13, (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, 16, (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, 16, (unsigned char*)Data_4000337c); - lcd_display_string(1, 6, bCharacterInputPosition, 1, (unsigned char*)&Data_40003374[bCharacterInputPosition - 1]); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, 13, (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, 16, (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, 16, (unsigned char*)g_pcstrMenuLine8); + lcd_display_string(1, 6, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine6[bCharacterInputPosition - 1]); lcd_display_bitmap(0, 8, 8, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 8, 11, (unsigned char*)cBitmapMinute); @@ -957,15 +957,15 @@ void DisplayScreenItems(void) lcd_display_bitmap(0, 8, 11, (unsigned char*)cBitmapMinute); lcd_display_bitmap(0, 8, 16, (unsigned char*)cBitmapSecond); - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, 13, (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, 16, (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, 16, (unsigned char*)Data_4000337c); - lcd_display_string(1, 7, bCharacterInputPosition, 1, (unsigned char*)&Data_40003378[bCharacterInputPosition - 1]); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, 13, (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, 16, (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, 16, (unsigned char*)g_pcstrMenuLine8); + lcd_display_string(1, 7, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine7[bCharacterInputPosition - 1]); lcd_display_bitmap(0, 8, 8, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 8, 11, (unsigned char*)cBitmapMinute); @@ -978,15 +978,15 @@ void DisplayScreenItems(void) lcd_display_bitmap(0, 8, 11, (unsigned char*)cBitmapMinute); lcd_display_bitmap(0, 8, 16, (unsigned char*)cBitmapSecond); - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, 13, (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, 16, (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, 16, (unsigned char*)Data_4000337c); - lcd_display_string(1, 8, bCharacterInputPosition, 1, (unsigned char*)&Data_4000337c[bCharacterInputPosition - 1]); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, 13, (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, 16, (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, 16, (unsigned char*)g_pcstrMenuLine8); + lcd_display_string(1, 8, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine8[bCharacterInputPosition - 1]); lcd_display_bitmap(0, 8, 8, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 8, 11, (unsigned char*)cBitmapMinute); @@ -1002,17 +1002,17 @@ void DisplayScreenItems(void) lcd_display_bitmap(0, 7, 11, (unsigned char*)cBitmapMinute); lcd_display_bitmap(0, 7, 16, (unsigned char*)cBitmapSecond); - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, 13, (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, 16, (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, 16, (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, 13, (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, 16, (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, 16, (unsigned char*)g_pcstrMenuLine8); lcd_display_string(0, 7, 1, 3, "Azi"); lcd_display_string(0, 8, 1, 3, "Alt"); - lcd_display_string(1, 6, bCharacterInputPosition, 1, (unsigned char*)&Data_40003374[bCharacterInputPosition - 1]); + lcd_display_string(1, 6, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine6[bCharacterInputPosition - 1]); lcd_display_bitmap(0, 8, 8, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 8, 11, (unsigned char*)cBitmapMinute); @@ -1031,17 +1031,17 @@ void DisplayScreenItems(void) lcd_display_bitmap(0, 7, 11, (unsigned char*)cBitmapMinute); lcd_display_bitmap(0, 7, 16, (unsigned char*)cBitmapSecond); - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, 13, (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, 16, (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, 16, (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, 13, (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, 16, (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, 16, (unsigned char*)g_pcstrMenuLine8); lcd_display_string(0, 7, 1, 3, "Azi"); lcd_display_string(0, 8, 1, 3, "Alt"); - lcd_display_string(1, 7, bCharacterInputPosition, 1, (unsigned char*)&Data_40003378[bCharacterInputPosition - 1]); + lcd_display_string(1, 7, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine7[bCharacterInputPosition - 1]); lcd_display_bitmap(0, 8, 8, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 8, 11, (unsigned char*)cBitmapMinute); @@ -1060,17 +1060,17 @@ void DisplayScreenItems(void) lcd_display_bitmap(0, 7, 11, (unsigned char*)cBitmapMinute); lcd_display_bitmap(0, 7, 16, (unsigned char*)cBitmapSecond); - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, 13, (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, 16, (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, 16, (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, 13, (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, 16, (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, 16, (unsigned char*)g_pcstrMenuLine8); lcd_display_string(0, 7, 1, 3, "Azi"); lcd_display_string(0, 8, 1, 3, "Alt"); - lcd_display_string(1, 8, bCharacterInputPosition, 1, (unsigned char*)&Data_4000337c[bCharacterInputPosition - 1]); + lcd_display_string(1, 8, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine8[bCharacterInputPosition - 1]); lcd_display_bitmap(0, 8, 8, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 8, 11, (unsigned char*)cBitmapMinute); @@ -1086,15 +1086,15 @@ void DisplayScreenItems(void) lcd_display_bitmap(0, 5, 11, (unsigned char*)cBitmapMinute); lcd_display_bitmap(0, 5, 16, (unsigned char*)cBitmapSecond); - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, 16, (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, 16, (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); - lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&Data_40003368[bCharacterInputPosition - 1]); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, 16, (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, 16, (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); + lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine3[bCharacterInputPosition - 1]); lcd_display_bitmap(0, 5, 8, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 5, 11, (unsigned char*)cBitmapMinute); @@ -1107,15 +1107,15 @@ void DisplayScreenItems(void) lcd_display_bitmap(0, 5, 11, (unsigned char*)cBitmapMinute); lcd_display_bitmap(0, 5, 16, (unsigned char*)cBitmapSecond); - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, 16, (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, 16, (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); - lcd_display_string(1, 5, bCharacterInputPosition, 1, (unsigned char*)&Data_40003370[bCharacterInputPosition - 1]); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, 16, (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, 16, (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); + lcd_display_string(1, 5, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine5[bCharacterInputPosition - 1]); lcd_display_bitmap(0, 5, 8, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 5, 11, (unsigned char*)cBitmapMinute); @@ -1124,15 +1124,15 @@ void DisplayScreenItems(void) case MENU_CONTEXT_TRACKING_RATE_INPUT: //48001: //0x43a04 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); - lcd_display_string(1, 4, bCharacterInputPosition, 1, (unsigned char*)&Data_4000336c[bCharacterInputPosition - 1]); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); + lcd_display_string(1, 4, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine4[bCharacterInputPosition - 1]); break; case MENU_CONTEXT_TIME_DATE_INPUT: //41001: @@ -1141,31 +1141,31 @@ void DisplayScreenItems(void) { case 0: //0x43be0 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); - lcd_display_string(1, 3, bCharacterInputPosition, 1, &Data_40003368[bCharacterInputPosition - 1]); + lcd_display_string(1, 3, bCharacterInputPosition, 1, &g_pcstrMenuLine3[bCharacterInputPosition - 1]); //->0x43f60 break; case 1: //0x43d9c - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); - lcd_display_string(1, 5, bCharacterInputPosition, 1, (unsigned char*)&Data_40003370[bCharacterInputPosition - 1]); + lcd_display_string(1, 5, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine5[bCharacterInputPosition - 1]); //->0x43f60 break; @@ -1177,14 +1177,14 @@ void DisplayScreenItems(void) case 43011: //Country & City //0x43f68 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); lcd_display_bitmap(0, 3, 14, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 3, 17, (unsigned char*)cBitmapMinute); @@ -1200,35 +1200,35 @@ void DisplayScreenItems(void) lcd_display_bitmap(0, 5, 10, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 5, 13, (unsigned char*)cBitmapMinute); - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); switch (bCurrentCustomSiteInputLine) { case 0: //0x44340 - lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&Data_40003368[bCharacterInputPosition - 1]); + lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine3[bCharacterInputPosition - 1]); break; case 1: //0x4437c - lcd_display_string(1, 4, bCharacterInputPosition, 1, (unsigned char*)&Data_4000336c[bCharacterInputPosition - 1]); + lcd_display_string(1, 4, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine4[bCharacterInputPosition - 1]); break; case 2: //0x443b8 - lcd_display_string(1, 5, bCharacterInputPosition, 1, (unsigned char*)&Data_40003370[bCharacterInputPosition - 1]); + lcd_display_string(1, 5, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine5[bCharacterInputPosition - 1]); break; case 3: //0x443f4 - lcd_display_string(1, 6, bCharacterInputPosition, 1, (unsigned char*)&Data_40003374[bCharacterInputPosition - 1]); + lcd_display_string(1, 6, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine6[bCharacterInputPosition - 1]); break; } @@ -1242,25 +1242,25 @@ void DisplayScreenItems(void) //0x444b4 case MENU_CONTEXT_OTA_ZERO_SETUP: //47011: //0x444bc - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, 8, (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, 8, (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003374); //BUG! - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, 8, (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, 8, (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine6); //BUG! + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); switch (bData_4000316d) { case 0: //0x44638 - lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&Data_40003368[bCharacterInputPosition - 1]); + lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine3[bCharacterInputPosition - 1]); break; case 1: //0x44674 - lcd_display_string(1, 5, bCharacterInputPosition, 1, (unsigned char*)&Data_40003370[bCharacterInputPosition - 1]); + lcd_display_string(1, 5, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine5[bCharacterInputPosition - 1]); break; default: @@ -1287,74 +1287,74 @@ void DisplayScreenItems(void) case MENU_CONTEXT_TIMER_SET: //34001: //0x4477c - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003378/*BUG!*/), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); - - lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&Data_40003368[bCharacterInputPosition - 1]); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine7/*BUG!*/), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); + + lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine3[bCharacterInputPosition - 1]); //->0x4684c break; case MENU_CONTEXT_ALARM_INPUT: //35001: //0x44938: Alarm - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); - lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&Data_40003368[bCharacterInputPosition - 1]); + lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine3[bCharacterInputPosition - 1]); //->0x4684c break; case MENU_CONTEXT_EYEPIECE_MAGN_MF_INPUT: //360021: //0x44b70 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); - lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&Data_40003368[bCharacterInputPosition - 1]); + lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine3[bCharacterInputPosition - 1]); break; case MENU_CONTEXT_EYEPIECE_MAGN_SF_INPUT: //360022: //0x44d2c - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); - lcd_display_string(1, 5, bCharacterInputPosition, 1, (unsigned char*)&Data_40003370[bCharacterInputPosition - 1]); + lcd_display_string(1, 5, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine5[bCharacterInputPosition - 1]); break; case MENU_CONTEXT_EYEPIECE_FOV_MF_INPUT: //370021: //0x44ee8 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); - lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&Data_40003368[bCharacterInputPosition - 1]); + lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine3[bCharacterInputPosition - 1]); lcd_display_bitmap(0, 7, 10, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 7, 13, (unsigned char*)cBitmapMinute); @@ -1363,16 +1363,16 @@ void DisplayScreenItems(void) case MENU_CONTEXT_EYEPIECE_FOV_SF_INPUT: //370022: //0x450e0 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); - lcd_display_string(1, 5, bCharacterInputPosition, 1, (unsigned char*)&Data_40003370[bCharacterInputPosition - 1]); + lcd_display_string(1, 5, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine5[bCharacterInputPosition - 1]); lcd_display_bitmap(0, 7, 10, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 7, 13, (unsigned char*)cBitmapMinute); @@ -1381,16 +1381,16 @@ void DisplayScreenItems(void) case MENU_CONTEXT_EYEPIECE_FOV_INPUT: //370023: //0x452d8 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); - lcd_display_string(1, 7, bCharacterInputPosition, 1, (unsigned char*)&Data_40003378[bCharacterInputPosition - 1]); + lcd_display_string(1, 7, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine7[bCharacterInputPosition - 1]); lcd_display_bitmap(0, 7, 10, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 7, 13, (unsigned char*)cBitmapMinute); @@ -1399,14 +1399,14 @@ void DisplayScreenItems(void) case 211001: //0x454d0 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); switch (bData_40003262) { @@ -1416,17 +1416,17 @@ void DisplayScreenItems(void) { case 0: //0x4568c - lcd_display_string(1, 2, bCharacterInputPosition, 1, (unsigned char*)&Data_40003364[bCharacterInputPosition - 1]); + lcd_display_string(1, 2, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine2[bCharacterInputPosition - 1]); break; case 1: //0x456c8 - lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&Data_40003368[bCharacterInputPosition - 1]); + lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine3[bCharacterInputPosition - 1]); break; case 2: //0x45704 - lcd_display_string(1, 4, bCharacterInputPosition, 1, (unsigned char*)&Data_4000336c[bCharacterInputPosition - 1]); + lcd_display_string(1, 4, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine4[bCharacterInputPosition - 1]); break; default: @@ -1448,14 +1448,14 @@ void DisplayScreenItems(void) case 28001: //0x6D61: //0x4575c - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); switch (bData_40003263) { @@ -1467,17 +1467,17 @@ void DisplayScreenItems(void) { case 0: //0x45928 - lcd_display_string(1, 2, bCharacterInputPosition, 1, (unsigned char*)&Data_40003364[bCharacterInputPosition - 1]); + lcd_display_string(1, 2, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine2[bCharacterInputPosition - 1]); break; case 1: //0x45964 - lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&Data_40003368[bCharacterInputPosition - 1]); + lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine3[bCharacterInputPosition - 1]); break; case 2: //0x459a0 - lcd_display_string(1, 4, bCharacterInputPosition, 1, (unsigned char*)&Data_4000336c[bCharacterInputPosition - 1]); + lcd_display_string(1, 4, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine4[bCharacterInputPosition - 1]); break; default: @@ -1503,118 +1503,118 @@ void DisplayScreenItems(void) { case 0: //0x45a34 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); //->0x46844 break; case 1: //0x45bbc - lcd_display_string(1, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(1, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); //->0x46844 break; case 2: //0x45d44 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(2/*1*/, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); //BUG? - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(2/*1*/, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); //BUG? + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); //->0x46844 break; case 3: //0x45ecc - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(1, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(1, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); //->0x46844 break; case 4: //0x46054 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(1, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(1, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); //->0x46844 break; case 5: //0x461dc - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(1, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(1, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); //->0x46844 break; case 6: //0x46364 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(1, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(1, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); //->0x46844 break; case 7: //0x4652c - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(1, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(1, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); //->0x46844 break; case 8: //0x466b4 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(1, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(1, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); //->0x46844 break; @@ -1629,14 +1629,14 @@ void DisplayScreenItems(void) case 2: //0x46854 - Data_4000318c = Data_40002c64_MenuContextId; + g_iMenuContextIdNew = Data_40002c64_MenuContextId; - if (Data_4000318c != Data_40003190) + if (g_iMenuContextIdNew != g_iMenuContextIdOld) { //46880 lcd_display_clear(); - Data_40003190 = Data_4000318c; + g_iMenuContextIdOld = g_iMenuContextIdNew; } //0x46894 switch (Data_40002c64_MenuContextId) @@ -1659,171 +1659,171 @@ void DisplayScreenItems(void) { case 1: //0x46bcc - lcd_display_string(1, 1, 1, 2, Data_40003380); - lcd_display_string(0, 2, 1, 2, Data_40003384); - lcd_display_string(0, 3, 1, 2, Data_40003388); - lcd_display_string(0, 4, 1, 2, Data_4000338c); - lcd_display_string(0, 5, 1, 2, Data_40003390); - lcd_display_string(0, 6, 1, 2, Data_40003394); - lcd_display_string(0, 7, 1, 2, Data_40003398); - lcd_display_string(0, 8, 1, 2, Data_4000339c); - - lcd_display_string(1, 1, 3, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 3, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 3, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 3, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 3, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 3, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 3, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 3, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(1, 1, 1, 2, g_pcstrMenuLine9); + lcd_display_string(0, 2, 1, 2, g_pcstrMenuLine10); + lcd_display_string(0, 3, 1, 2, g_pcstrMenuLine11); + lcd_display_string(0, 4, 1, 2, g_pcstrMenuLine12); + lcd_display_string(0, 5, 1, 2, g_pcstrMenuLine13); + lcd_display_string(0, 6, 1, 2, g_pcstrMenuLine14); + lcd_display_string(0, 7, 1, 2, g_pcstrMenuLine15); + lcd_display_string(0, 8, 1, 2, g_pcstrMenuLine16); + + lcd_display_string(1, 1, 3, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 3, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 3, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 3, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 3, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 3, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 3, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 3, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); //->0x4808c break; case 2: //0x46e54 - lcd_display_string(0, 1, 1, 2, Data_40003380); - lcd_display_string(1, 2, 1, 2, Data_40003384); - lcd_display_string(0, 3, 1, 2, Data_40003388); - lcd_display_string(0, 4, 1, 2, Data_4000338c); - lcd_display_string(0, 5, 1, 2, Data_40003390); - lcd_display_string(0, 6, 1, 2, Data_40003394); - lcd_display_string(0, 7, 1, 2, Data_40003398); - lcd_display_string(0, 8, 1, 2, Data_4000339c); - - lcd_display_string(0, 1, 3, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(2/*1*/, 2, 3, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); //BUG? - lcd_display_string(0, 3, 3, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 3, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 3, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 3, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 3, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 3, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, 2, g_pcstrMenuLine9); + lcd_display_string(1, 2, 1, 2, g_pcstrMenuLine10); + lcd_display_string(0, 3, 1, 2, g_pcstrMenuLine11); + lcd_display_string(0, 4, 1, 2, g_pcstrMenuLine12); + lcd_display_string(0, 5, 1, 2, g_pcstrMenuLine13); + lcd_display_string(0, 6, 1, 2, g_pcstrMenuLine14); + lcd_display_string(0, 7, 1, 2, g_pcstrMenuLine15); + lcd_display_string(0, 8, 1, 2, g_pcstrMenuLine16); + + lcd_display_string(0, 1, 3, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(1, 2, 3, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 3, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 3, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 3, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 3, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 3, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 3, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); break; case 3: //0x470dc - lcd_display_string(0, 1, 1, 2, Data_40003380); - lcd_display_string(0, 2, 1, 2, Data_40003384); - lcd_display_string(1, 3, 1, 2, Data_40003388); - lcd_display_string(0, 4, 1, 2, Data_4000338c); - lcd_display_string(0, 5, 1, 2, Data_40003390); - lcd_display_string(0, 6, 1, 2, Data_40003394); - lcd_display_string(0, 7, 1, 2, Data_40003398); - lcd_display_string(0, 8, 1, 2, Data_4000339c); - - lcd_display_string(0, 1, 3, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 3, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(1, 3, 3, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 3, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 3, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 3, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 3, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 3, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, 2, g_pcstrMenuLine9); + lcd_display_string(0, 2, 1, 2, g_pcstrMenuLine10); + lcd_display_string(1, 3, 1, 2, g_pcstrMenuLine11); + lcd_display_string(0, 4, 1, 2, g_pcstrMenuLine12); + lcd_display_string(0, 5, 1, 2, g_pcstrMenuLine13); + lcd_display_string(0, 6, 1, 2, g_pcstrMenuLine14); + lcd_display_string(0, 7, 1, 2, g_pcstrMenuLine15); + lcd_display_string(0, 8, 1, 2, g_pcstrMenuLine16); + + lcd_display_string(0, 1, 3, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 3, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(1, 3, 3, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 3, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 3, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 3, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 3, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 3, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); break; case 4: //0x47364 - lcd_display_string(0, 1, 1, 2, Data_40003380); - lcd_display_string(0, 2, 1, 2, Data_40003384); - lcd_display_string(0, 3, 1, 2, Data_40003388); - lcd_display_string(1, 4, 1, 2, Data_4000338c); - lcd_display_string(0, 5, 1, 2, Data_40003390); - lcd_display_string(0, 6, 1, 2, Data_40003394); - lcd_display_string(0, 7, 1, 2, Data_40003398); - lcd_display_string(0, 8, 1, 2, Data_4000339c); - - lcd_display_string(0, 1, 3, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 3, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 3, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(1, 4, 3, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 3, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 3, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 3, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 3, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, 2, g_pcstrMenuLine9); + lcd_display_string(0, 2, 1, 2, g_pcstrMenuLine10); + lcd_display_string(0, 3, 1, 2, g_pcstrMenuLine11); + lcd_display_string(1, 4, 1, 2, g_pcstrMenuLine12); + lcd_display_string(0, 5, 1, 2, g_pcstrMenuLine13); + lcd_display_string(0, 6, 1, 2, g_pcstrMenuLine14); + lcd_display_string(0, 7, 1, 2, g_pcstrMenuLine15); + lcd_display_string(0, 8, 1, 2, g_pcstrMenuLine16); + + lcd_display_string(0, 1, 3, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 3, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 3, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(1, 4, 3, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 3, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 3, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 3, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 3, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); break; case 5: //0x475ec - lcd_display_string(0, 1, 1, 2, Data_40003380); - lcd_display_string(0, 2, 1, 2, Data_40003384); - lcd_display_string(0, 3, 1, 2, Data_40003388); - lcd_display_string(0, 4, 1, 2, Data_4000338c); - lcd_display_string(1, 5, 1, 2, Data_40003390); - lcd_display_string(0, 6, 1, 2, Data_40003394); - lcd_display_string(0, 7, 1, 2, Data_40003398); - lcd_display_string(0, 8, 1, 2, Data_4000339c); - - lcd_display_string(0, 1, 3, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 3, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 3, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 3, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(1, 5, 3, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 3, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 3, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 3, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, 2, g_pcstrMenuLine9); + lcd_display_string(0, 2, 1, 2, g_pcstrMenuLine10); + lcd_display_string(0, 3, 1, 2, g_pcstrMenuLine11); + lcd_display_string(0, 4, 1, 2, g_pcstrMenuLine12); + lcd_display_string(1, 5, 1, 2, g_pcstrMenuLine13); + lcd_display_string(0, 6, 1, 2, g_pcstrMenuLine14); + lcd_display_string(0, 7, 1, 2, g_pcstrMenuLine15); + lcd_display_string(0, 8, 1, 2, g_pcstrMenuLine16); + + lcd_display_string(0, 1, 3, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 3, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 3, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 3, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(1, 5, 3, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 3, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 3, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 3, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); break; case 6: //0x478ec - lcd_display_string(0, 1, 1, 2, Data_40003380); - lcd_display_string(0, 2, 1, 2, Data_40003384); - lcd_display_string(0, 3, 1, 2, Data_40003388); - lcd_display_string(0, 4, 1, 2, Data_4000338c); - lcd_display_string(0, 5, 1, 2, Data_40003390); - lcd_display_string(1, 6, 1, 2, Data_40003394); - lcd_display_string(0, 7, 1, 2, Data_40003398); - lcd_display_string(0, 8, 1, 2, Data_4000339c); - - lcd_display_string(0, 1, 3, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 3, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 3, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 3, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 3, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(1, 6, 3, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 3, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 3, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, 2, g_pcstrMenuLine9); + lcd_display_string(0, 2, 1, 2, g_pcstrMenuLine10); + lcd_display_string(0, 3, 1, 2, g_pcstrMenuLine11); + lcd_display_string(0, 4, 1, 2, g_pcstrMenuLine12); + lcd_display_string(0, 5, 1, 2, g_pcstrMenuLine13); + lcd_display_string(1, 6, 1, 2, g_pcstrMenuLine14); + lcd_display_string(0, 7, 1, 2, g_pcstrMenuLine15); + lcd_display_string(0, 8, 1, 2, g_pcstrMenuLine16); + + lcd_display_string(0, 1, 3, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 3, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 3, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 3, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 3, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(1, 6, 3, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 3, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 3, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); break; case 7: //0x47b74 - lcd_display_string(0, 1, 1, 2, Data_40003380); - lcd_display_string(0, 2, 1, 2, Data_40003384); - lcd_display_string(0, 3, 1, 2, Data_40003388); - lcd_display_string(0, 4, 1, 2, Data_4000338c); - lcd_display_string(0, 5, 1, 2, Data_40003390); - lcd_display_string(0, 6, 1, 2, Data_40003394); - lcd_display_string(1, 7, 1, 2, Data_40003398); - lcd_display_string(0, 8, 1, 2, Data_4000339c); - - lcd_display_string(0, 1, 3, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 3, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 3, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 3, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 3, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 3, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(1, 7, 3, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 3, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, 2, g_pcstrMenuLine9); + lcd_display_string(0, 2, 1, 2, g_pcstrMenuLine10); + lcd_display_string(0, 3, 1, 2, g_pcstrMenuLine11); + lcd_display_string(0, 4, 1, 2, g_pcstrMenuLine12); + lcd_display_string(0, 5, 1, 2, g_pcstrMenuLine13); + lcd_display_string(0, 6, 1, 2, g_pcstrMenuLine14); + lcd_display_string(1, 7, 1, 2, g_pcstrMenuLine15); + lcd_display_string(0, 8, 1, 2, g_pcstrMenuLine16); + + lcd_display_string(0, 1, 3, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 3, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 3, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 3, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 3, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 3, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(1, 7, 3, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 3, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); break; case 8: //0x47dfc - lcd_display_string(0, 1, 1, 2, Data_40003380); - lcd_display_string(0, 2, 1, 2, Data_40003384); - lcd_display_string(0, 3, 1, 2, Data_40003388); - lcd_display_string(0, 4, 1, 2, Data_4000338c); - lcd_display_string(0, 5, 1, 2, Data_40003390); - lcd_display_string(0, 6, 1, 2, Data_40003394); - lcd_display_string(0, 7, 1, 2, Data_40003398); - lcd_display_string(1, 8, 1, 2, Data_4000339c); - - lcd_display_string(0, 1, 3, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 3, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 3, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 3, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 3, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 3, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 3, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(1, 8, 3, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, 2, g_pcstrMenuLine9); + lcd_display_string(0, 2, 1, 2, g_pcstrMenuLine10); + lcd_display_string(0, 3, 1, 2, g_pcstrMenuLine11); + lcd_display_string(0, 4, 1, 2, g_pcstrMenuLine12); + lcd_display_string(0, 5, 1, 2, g_pcstrMenuLine13); + lcd_display_string(0, 6, 1, 2, g_pcstrMenuLine14); + lcd_display_string(0, 7, 1, 2, g_pcstrMenuLine15); + lcd_display_string(1, 8, 1, 2, g_pcstrMenuLine16); + + lcd_display_string(0, 1, 3, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 3, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 3, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 3, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 3, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 3, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 3, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(1, 8, 3, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); break; default: @@ -1835,23 +1835,23 @@ void DisplayScreenItems(void) else { //0x48090 - lcd_display_string(0, 1, 1, 2, Data_40003380); - lcd_display_string(0, 2, 1, 2, Data_40003384); - lcd_display_string(0, 3, 1, 2, Data_40003388); - lcd_display_string(0, 4, 1, 2, Data_4000338c); - lcd_display_string(0, 5, 1, 2, Data_40003390); - lcd_display_string(0, 6, 1, 2, Data_40003394); - lcd_display_string(0, 7, 1, 2, Data_40003398); - lcd_display_string(0, 8, 1, 2, Data_4000339c); + lcd_display_string(0, 1, 1, 2, g_pcstrMenuLine9); + lcd_display_string(0, 2, 1, 2, g_pcstrMenuLine10); + lcd_display_string(0, 3, 1, 2, g_pcstrMenuLine11); + lcd_display_string(0, 4, 1, 2, g_pcstrMenuLine12); + lcd_display_string(0, 5, 1, 2, g_pcstrMenuLine13); + lcd_display_string(0, 6, 1, 2, g_pcstrMenuLine14); + lcd_display_string(0, 7, 1, 2, g_pcstrMenuLine15); + lcd_display_string(0, 8, 1, 2, g_pcstrMenuLine16); - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); } //0x48310 -> 0x4edc8 break; @@ -1862,14 +1862,14 @@ void DisplayScreenItems(void) ((Data_40003f50.bData_0 != 1) && (bData_40002e79_SkyLandTargetSeletion == 0))) { //0x48358 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); //->0x489b0 } else @@ -1879,14 +1879,14 @@ void DisplayScreenItems(void) { case 0: //0x484f8 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 8, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 8, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 8, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 8, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 8, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 8, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); lcd_display_bitmap(0, 5, 15, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 5, 18, (unsigned char*)cBitmapMinute); @@ -1902,14 +1902,14 @@ void DisplayScreenItems(void) case 1: //0x48734 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 8, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 8, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 8, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 8, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); lcd_display_bitmap(0, 5, 15, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 5, 18, (unsigned char*)cBitmapMinute); @@ -1928,11 +1928,11 @@ void DisplayScreenItems(void) } break; - case 2: + case MENU_CONTEXT_NO_TELESCOPE: //2: //0x489b4 - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); beep1(1); delay_loop(200); @@ -1961,16 +1961,16 @@ void DisplayScreenItems(void) ProcessNextAlignmentStar(); beep1(3); - Data_40003364 = Data_400030b4; //"The telescope has be" - Data_4000336c = Data_400030b8; //"aligned!" - Data_40003374 = Data_400030bc; + g_pcstrMenuLine2 = Data_400030b4; //"The telescope has be" + g_pcstrMenuLine4 = Data_400030b8; //"aligned!" + g_pcstrMenuLine6 = Data_400030bc; lcd_display_string(0, 1, 1, 22, " "); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); lcd_display_string(0, 3, 1, 22, " "); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); lcd_display_string(0, 5, 1, 22, " "); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); lcd_display_string(0, 7, 1, 22, " "); lcd_display_string(0, 8, 1, 22, " "); @@ -1989,15 +1989,15 @@ void DisplayScreenItems(void) //0x48c50 bData_400031e9 = 6; - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); lcd_display_string(0, 5, 1, 4, "OBJ:"); - lcd_display_string(0, 7, 11, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 11, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); - lcd_display_string(0, 5, 11, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 11, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); + lcd_display_string(0, 7, 11, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 11, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); + lcd_display_string(0, 5, 11, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 11, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); lcd_display_bitmap(0, 5, 18, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 5, 21, (unsigned char*)cBitmapMinute); @@ -2022,8 +2022,8 @@ void DisplayScreenItems(void) } bData_400031e9 = 7; - Data_40003360 = strSlewingTo; - Data_40003364 = strAutoloadAlignStars; + g_pcstrMenuLine1 = strSlewingTo; + g_pcstrMenuLine2 = strAutoloadAlignStars; if (Data_40004128.alignmentPause == 0) { @@ -2037,11 +2037,11 @@ void DisplayScreenItems(void) } //0x48f3c lcd_display_string(0, 2, 1, 21, " "); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); lcd_display_string(0, 5, 1, 4, "OBJ:"); - lcd_display_string(0, 5, 11, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 11, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); + lcd_display_string(0, 5, 11, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 11, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); lcd_display_bitmap(0, 5, 18, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 5, 21, (unsigned char*)cBitmapMinute); @@ -2050,8 +2050,8 @@ void DisplayScreenItems(void) lcd_display_string(0, 6, 1, 6, " "); lcd_display_string(0, 7, 1, 4, "OTA:"); - lcd_display_string(0, 7, 11, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 11, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 7, 11, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 11, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); lcd_display_bitmap(0, 7, 18, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 7, 21, (unsigned char*)cBitmapMinute); @@ -2073,16 +2073,16 @@ void DisplayScreenItems(void) } bData_400031e9 = 8; - Data_40003364 = Data_400030a8; //" Please center this " - Data_4000336c = Data_400030ac; //"star to the field of" - Data_40003374 = Data_400030b0; //"view" + g_pcstrMenuLine2 = Data_400030a8; //" Please center this " + g_pcstrMenuLine4 = Data_400030ac; //"star to the field of" + g_pcstrMenuLine6 = Data_400030b0; //"view" lcd_display_string(0, 1, 1, 22, " "); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); lcd_display_string(0, 3, 1, 22, " "); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); lcd_display_string(0, 5, 1, 22, " "); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); lcd_display_string(0, 7, 1, 22, " "); lcd_display_string(0, 8, 1, 22, " "); } @@ -2099,16 +2099,16 @@ void DisplayScreenItems(void) } bData_400031e9 = 8; - Data_40003364 = Data_400030a8; - Data_4000336c = Data_400030ac; - Data_40003374 = Data_400030b0; + g_pcstrMenuLine2 = Data_400030a8; + g_pcstrMenuLine4 = Data_400030ac; + g_pcstrMenuLine6 = Data_400030b0; lcd_display_string(0, 1, 1, 22, " "); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); lcd_display_string(0, 3, 1, 22, " "); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); lcd_display_string(0, 5, 1, 22, " "); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); lcd_display_string(0, 7, 1, 22, " "); lcd_display_string(0, 8, 1, 22, " "); } @@ -2122,28 +2122,28 @@ void DisplayScreenItems(void) //0x49538 case MENU_CONTEXT_RA_BKBLASH_CORR_3RD_STEP_MOVING_LEFT_RIGHT: //11103: //0x4953c - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); break; case MENU_CONTEXT_RA_BKBLASH_CORR_RESULT: //11104: //0x496c0 beep1(1); - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 8, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 8, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); delay_loop(800); Data_40002c64_MenuContextId = MENU_CONTEXT_RA_BKBLASH_CORR_1ST_STEP_AIM_TARGET; //11102; @@ -2153,14 +2153,14 @@ void DisplayScreenItems(void) //0x49864 beep1(3); - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 8, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 8, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); delay_loop(800); Data_40002c64_MenuContextId = MENU_CONTEXT_MAIN; //0; @@ -2172,28 +2172,28 @@ void DisplayScreenItems(void) //0x49a10 case MENU_CONTEXT_DEC_BKBLASH_CORR_2ND_STEP_MOVING_UP_DOWN: //11203: //0x49a14 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); break; case MENU_CONTEXT_DEC_BKBLASH_CORR_RESULT: //11204: //0x49b98 beep1(1); - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 8, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 8, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); delay_loop(800); Data_40002c64_MenuContextId = MENU_CONTEXT_DEC_BKBLASH_CORR_1ST_STEP_AIM_TARGET; //11202; @@ -2203,14 +2203,14 @@ void DisplayScreenItems(void) //0x49d3c beep1(3); - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 8, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 8, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); delay_loop(800); Data_40002c64_MenuContextId = MENU_CONTEXT_MAIN; //0; @@ -2228,14 +2228,14 @@ void DisplayScreenItems(void) //0x49ef4 case MENU_CONTEXT_SAO_OBJECT_SELECTION: //23007: //0x49ef8 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 8, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 8, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 8, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 8, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 8, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 8, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); lcd_display_bitmap(0, 5, 15, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 5, 18, (unsigned char*)cBitmapMinute); @@ -2252,16 +2252,16 @@ void DisplayScreenItems(void) //0x4a130 case MENU_CONTEXT_IC_OBJECT_SELECTION: //23004: //0x4a138 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); lcd_display_string(0, 2, 1, 14, "Constellation:"); - lcd_display_string(0, 2, 15, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); + lcd_display_string(0, 2, 15, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); lcd_display_string(0, 4, 1, 5, "Type:"); - lcd_display_string(0, 4, 6, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 8, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 8, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 8, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 4, 6, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 8, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 8, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 8, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); lcd_display_bitmap(0, 5, 15, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 5, 18, (unsigned char*)cBitmapMinute); @@ -2288,14 +2288,14 @@ void DisplayScreenItems(void) //0x4a3c0 case MENU_CONTEXT_SAO_OBJECT_TRACKING: //23017: //0x4a3c4 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 8, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 8, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 8, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 8, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); lcd_display_bitmap(0, 5, 15, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 5, 18, (unsigned char*)cBitmapMinute); @@ -2329,15 +2329,15 @@ void DisplayScreenItems(void) //0x4a684 lcd_display_clear(); - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); lcd_display_string(0, 3, 1, 14, "Constellation:"); - lcd_display_string(0, 3, 15, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 8, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 8, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 3, 15, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 8, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 8, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); lcd_display_bitmap(0, 5, 15, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 5, 18, (unsigned char*)cBitmapMinute); @@ -2367,13 +2367,13 @@ void DisplayScreenItems(void) case MENU_CONTEXT_FAMOUS_STAR_SELECTION: //25001: //0x4a9a4 - func_91c(0, 1, 1, 64, (unsigned char*)Data_40003360); - lcd_display_string(0, 3, 0, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 8, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 8, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 8, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + func_91c(0, 1, 1, 64, (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 3, 0, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 8, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 8, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 8, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); lcd_display_bitmap(0, 5, 15, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 5, 18, (unsigned char*)cBitmapMinute); @@ -2388,14 +2388,14 @@ void DisplayScreenItems(void) case MENU_CONTEXT_MESSIER_OBJECT_DETAILS: //23012: //0x4aba0 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); break; case MENU_CONTEXT_CUSTOMER_OBJECT_SELECTION: //201: @@ -2404,133 +2404,133 @@ void DisplayScreenItems(void) //0x4ad30 case 101: //0x4ad34 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003384), (unsigned char*)Data_40003384); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine10), (unsigned char*)g_pcstrMenuLine10); switch (bData_4000319a_SkyLandTargetId) { case 1: //0x4ada0 - lcd_display_string(1, 3, 3, 2, (unsigned char*)Data_40003360); - lcd_display_string(0, 3, 10, 2, (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 17, 2, (unsigned char*)Data_40003368); - lcd_display_string(0, 5, 3, 2, (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 10, 2, (unsigned char*)Data_40003370); - lcd_display_string(0, 5, 17, 2, (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 3, 2, (unsigned char*)Data_40003378); - lcd_display_string(0, 7, 10, 2, (unsigned char*)Data_4000337c); - lcd_display_string(0, 7, 17, 2, (unsigned char*)Data_40003380); + lcd_display_string(1, 3, 3, 2, (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 3, 10, 2, (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 17, 2, (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 5, 3, 2, (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 10, 2, (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 5, 17, 2, (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 3, 2, (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 7, 10, 2, (unsigned char*)g_pcstrMenuLine8); + lcd_display_string(0, 7, 17, 2, (unsigned char*)g_pcstrMenuLine9); //->0x42780 break; case 2: //0x4aec8 - lcd_display_string(0, 3, 3, 2, (unsigned char*)Data_40003360); - lcd_display_string(1, 3, 10, 2, (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 17, 2, (unsigned char*)Data_40003368); - lcd_display_string(0, 5, 3, 2, (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 10, 2, (unsigned char*)Data_40003370); - lcd_display_string(0, 5, 17, 2, (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 3, 2, (unsigned char*)Data_40003378); - lcd_display_string(0, 7, 10, 2, (unsigned char*)Data_4000337c); - lcd_display_string(0, 7, 17, 2, (unsigned char*)Data_40003380); + lcd_display_string(0, 3, 3, 2, (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(1, 3, 10, 2, (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 17, 2, (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 5, 3, 2, (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 10, 2, (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 5, 17, 2, (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 3, 2, (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 7, 10, 2, (unsigned char*)g_pcstrMenuLine8); + lcd_display_string(0, 7, 17, 2, (unsigned char*)g_pcstrMenuLine9); //->0x42780 break; case 3: //0x4aff0 - lcd_display_string(0, 3, 3, 2, (unsigned char*)Data_40003360); - lcd_display_string(0, 3, 10, 2, (unsigned char*)Data_40003364); - lcd_display_string(1, 3, 17, 2, (unsigned char*)Data_40003368); - lcd_display_string(0, 5, 3, 2, (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 10, 2, (unsigned char*)Data_40003370); - lcd_display_string(0, 5, 17, 2, (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 3, 2, (unsigned char*)Data_40003378); - lcd_display_string(0, 7, 10, 2, (unsigned char*)Data_4000337c); - lcd_display_string(0, 7, 17, 2, (unsigned char*)Data_40003380); + lcd_display_string(0, 3, 3, 2, (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 3, 10, 2, (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(1, 3, 17, 2, (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 5, 3, 2, (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 10, 2, (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 5, 17, 2, (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 3, 2, (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 7, 10, 2, (unsigned char*)g_pcstrMenuLine8); + lcd_display_string(0, 7, 17, 2, (unsigned char*)g_pcstrMenuLine9); //->0x42780 break; case 4: //0x4b118 - lcd_display_string(0, 3, 3, 2, (unsigned char*)Data_40003360); - lcd_display_string(0, 3, 10, 2, (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 17, 2, (unsigned char*)Data_40003368); - lcd_display_string(1, 5, 3, 2, (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 10, 2, (unsigned char*)Data_40003370); - lcd_display_string(0, 5, 17, 2, (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 3, 2, (unsigned char*)Data_40003378); - lcd_display_string(0, 7, 10, 2, (unsigned char*)Data_4000337c); - lcd_display_string(0, 7, 17, 2, (unsigned char*)Data_40003380); + lcd_display_string(0, 3, 3, 2, (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 3, 10, 2, (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 17, 2, (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(1, 5, 3, 2, (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 10, 2, (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 5, 17, 2, (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 3, 2, (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 7, 10, 2, (unsigned char*)g_pcstrMenuLine8); + lcd_display_string(0, 7, 17, 2, (unsigned char*)g_pcstrMenuLine9); //->0x42780 break; case 5: //0x4b240 - lcd_display_string(0, 3, 3, 2, (unsigned char*)Data_40003360); - lcd_display_string(0, 3, 10, 2, (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 17, 2, (unsigned char*)Data_40003368); - lcd_display_string(0, 5, 3, 2, (unsigned char*)Data_4000336c); - lcd_display_string(1, 5, 10, 2, (unsigned char*)Data_40003370); - lcd_display_string(0, 5, 17, 2, (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 3, 2, (unsigned char*)Data_40003378); - lcd_display_string(0, 7, 10, 2, (unsigned char*)Data_4000337c); - lcd_display_string(0, 7, 17, 2, (unsigned char*)Data_40003380); + lcd_display_string(0, 3, 3, 2, (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 3, 10, 2, (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 17, 2, (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 5, 3, 2, (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(1, 5, 10, 2, (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 5, 17, 2, (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 3, 2, (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 7, 10, 2, (unsigned char*)g_pcstrMenuLine8); + lcd_display_string(0, 7, 17, 2, (unsigned char*)g_pcstrMenuLine9); //->0x42780 break; case 6: //0x4b368 - lcd_display_string(0, 3, 3, 2, (unsigned char*)Data_40003360); - lcd_display_string(0, 3, 10, 2, (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 17, 2, (unsigned char*)Data_40003368); - lcd_display_string(0, 5, 3, 2, (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 10, 2, (unsigned char*)Data_40003370); - lcd_display_string(1, 5, 17, 2, (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 3, 2, (unsigned char*)Data_40003378); - lcd_display_string(0, 7, 10, 2, (unsigned char*)Data_4000337c); - lcd_display_string(0, 7, 17, 2, (unsigned char*)Data_40003380); + lcd_display_string(0, 3, 3, 2, (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 3, 10, 2, (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 17, 2, (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 5, 3, 2, (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 10, 2, (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(1, 5, 17, 2, (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 3, 2, (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 7, 10, 2, (unsigned char*)g_pcstrMenuLine8); + lcd_display_string(0, 7, 17, 2, (unsigned char*)g_pcstrMenuLine9); //->0x42780 break; case 7: //0x4b490 - lcd_display_string(0, 3, 3, 2, (unsigned char*)Data_40003360); - lcd_display_string(0, 3, 10, 2, (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 17, 2, (unsigned char*)Data_40003368); - lcd_display_string(0, 5, 3, 2, (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 10, 2, (unsigned char*)Data_40003370); - lcd_display_string(0, 5, 17, 2, (unsigned char*)Data_40003374); - lcd_display_string(1, 7, 3, 2, (unsigned char*)Data_40003378); - lcd_display_string(0, 7, 10, 2, (unsigned char*)Data_4000337c); - lcd_display_string(0, 7, 17, 2, (unsigned char*)Data_40003380); + lcd_display_string(0, 3, 3, 2, (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 3, 10, 2, (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 17, 2, (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 5, 3, 2, (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 10, 2, (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 5, 17, 2, (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(1, 7, 3, 2, (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 7, 10, 2, (unsigned char*)g_pcstrMenuLine8); + lcd_display_string(0, 7, 17, 2, (unsigned char*)g_pcstrMenuLine9); //->0x42780 break; case 8: //0x4b5b8 - lcd_display_string(0, 3, 3, 2, (unsigned char*)Data_40003360); - lcd_display_string(0, 3, 10, 2, (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 17, 2, (unsigned char*)Data_40003368); - lcd_display_string(0, 5, 3, 2, (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 10, 2, (unsigned char*)Data_40003370); - lcd_display_string(0, 5, 17, 2, (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 3, 2, (unsigned char*)Data_40003378); - lcd_display_string(1, 7, 10, 2, (unsigned char*)Data_4000337c); - lcd_display_string(0, 7, 17, 2, (unsigned char*)Data_40003380); + lcd_display_string(0, 3, 3, 2, (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 3, 10, 2, (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 17, 2, (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 5, 3, 2, (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 10, 2, (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 5, 17, 2, (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 3, 2, (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(1, 7, 10, 2, (unsigned char*)g_pcstrMenuLine8); + lcd_display_string(0, 7, 17, 2, (unsigned char*)g_pcstrMenuLine9); //->0x42780 break; case 9: //0x4b6e0 - lcd_display_string(0, 3, 3, 2, (unsigned char*)Data_40003360); - lcd_display_string(0, 3, 10, 2, (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 17, 2, (unsigned char*)Data_40003368); - lcd_display_string(0, 5, 3, 2, (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 10, 2, (unsigned char*)Data_40003370); - lcd_display_string(0, 5, 17, 2, (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 3, 2, (unsigned char*)Data_40003378); - lcd_display_string(0, 7, 10, 2, (unsigned char*)Data_4000337c); - lcd_display_string(1, 7, 17, 2, (unsigned char*)Data_40003380); + lcd_display_string(0, 3, 3, 2, (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 3, 10, 2, (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 17, 2, (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 5, 3, 2, (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 10, 2, (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 5, 17, 2, (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 3, 2, (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 7, 10, 2, (unsigned char*)g_pcstrMenuLine8); + lcd_display_string(1, 7, 17, 2, (unsigned char*)g_pcstrMenuLine9); //->0x42780 break; #if 0 @@ -2547,15 +2547,15 @@ void DisplayScreenItems(void) lcd_display_bitmap(0, 8, 11, (unsigned char*)cBitmapMinute); lcd_display_bitmap(0, 8, 16, (unsigned char*)cBitmapSecond); - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, 13, (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, 16, (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, 16, (unsigned char*)Data_4000337c); - lcd_display_string(1, 6, bCharacterInputPosition, 1, (unsigned char*)&Data_40003374[bCharacterInputPosition - 1]); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, 13, (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, 16, (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, 16, (unsigned char*)g_pcstrMenuLine8); + lcd_display_string(1, 6, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine6[bCharacterInputPosition - 1]); lcd_display_bitmap(0, 8, 8, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 8, 11, (unsigned char*)cBitmapMinute); @@ -2568,15 +2568,15 @@ void DisplayScreenItems(void) lcd_display_bitmap(0, 8, 11, (unsigned char*)cBitmapMinute); lcd_display_bitmap(0, 8, 16, (unsigned char*)cBitmapSecond); - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, 13, (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, 16, (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, 16, (unsigned char*)Data_4000337c); - lcd_display_string(1, 7, bCharacterInputPosition, 1, (unsigned char*)&Data_40003378[bCharacterInputPosition - 1]); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, 13, (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, 16, (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, 16, (unsigned char*)g_pcstrMenuLine8); + lcd_display_string(1, 7, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine7[bCharacterInputPosition - 1]); lcd_display_bitmap(0, 8, 8, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 8, 11, (unsigned char*)cBitmapMinute); @@ -2589,15 +2589,15 @@ void DisplayScreenItems(void) lcd_display_bitmap(0, 8, 11, (unsigned char*)cBitmapMinute); lcd_display_bitmap(0, 8, 16, (unsigned char*)cBitmapSecond); - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, 13, (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, 16, (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, 16, (unsigned char*)Data_4000337c); - lcd_display_string(1, 8, bCharacterInputPosition, 1, (unsigned char*)&Data_4000337c[bCharacterInputPosition - 1]); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, 13, (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, 16, (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, 16, (unsigned char*)g_pcstrMenuLine8); + lcd_display_string(1, 8, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine8[bCharacterInputPosition - 1]); lcd_display_bitmap(0, 8, 8, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 8, 11, (unsigned char*)cBitmapMinute); @@ -2613,17 +2613,17 @@ void DisplayScreenItems(void) lcd_display_bitmap(0, 7, 11, (unsigned char*)cBitmapMinute); lcd_display_bitmap(0, 7, 16, (unsigned char*)cBitmapSecond); - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, 13, (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, 16, (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, 16, (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, 13, (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, 16, (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, 16, (unsigned char*)g_pcstrMenuLine8); lcd_display_string(0, 7, 1, 3, "Azi"); lcd_display_string(0, 8, 1, 3, "Alt"); - lcd_display_string(1, 6, bCharacterInputPosition, 1, (unsigned char*)&Data_40003374[bCharacterInputPosition - 1]); + lcd_display_string(1, 6, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine6[bCharacterInputPosition - 1]); lcd_display_bitmap(0, 8, 8, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 8, 11, (unsigned char*)cBitmapMinute); @@ -2642,17 +2642,17 @@ void DisplayScreenItems(void) lcd_display_bitmap(0, 7, 11, (unsigned char*)cBitmapMinute); lcd_display_bitmap(0, 7, 16, (unsigned char*)cBitmapSecond); - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, 13, (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, 16, (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, 16, (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, 13, (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, 16, (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, 16, (unsigned char*)g_pcstrMenuLine8); lcd_display_string(0, 7, 1, 3, "Azi"); lcd_display_string(0, 8, 1, 3, "Alt"); - lcd_display_string(1, 7, bCharacterInputPosition, 1, (unsigned char*)&Data_40003378[bCharacterInputPosition - 1]); + lcd_display_string(1, 7, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine7[bCharacterInputPosition - 1]); lcd_display_bitmap(0, 8, 8, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 8, 11, (unsigned char*)cBitmapMinute); @@ -2671,17 +2671,17 @@ void DisplayScreenItems(void) lcd_display_bitmap(0, 7, 11, (unsigned char*)cBitmapMinute); lcd_display_bitmap(0, 7, 16, (unsigned char*)cBitmapSecond); - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, 13, (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, 16, (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, 16, (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, 13, (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, 16, (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, 16, (unsigned char*)g_pcstrMenuLine8); lcd_display_string(0, 7, 1, 3, "Azi"); lcd_display_string(0, 8, 1, 3, "Alt"); - lcd_display_string(1, 8, bCharacterInputPosition, 1, (unsigned char*)&Data_4000337c[bCharacterInputPosition - 1]); + lcd_display_string(1, 8, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine8[bCharacterInputPosition - 1]); lcd_display_bitmap(0, 8, 8, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 8, 11, (unsigned char*)cBitmapMinute); @@ -2697,15 +2697,15 @@ void DisplayScreenItems(void) lcd_display_bitmap(0, 5, 11, (unsigned char*)cBitmapMinute); lcd_display_bitmap(0, 5, 16, (unsigned char*)cBitmapSecond); - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, 16, (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, 16, (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); - lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&Data_40003368[bCharacterInputPosition - 1]); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, 16, (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, 16, (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); + lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine3[bCharacterInputPosition - 1]); lcd_display_bitmap(0, 5, 8, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 5, 11, (unsigned char*)cBitmapMinute); @@ -2718,15 +2718,15 @@ void DisplayScreenItems(void) lcd_display_bitmap(0, 5, 11, (unsigned char*)cBitmapMinute); lcd_display_bitmap(0, 5, 16, (unsigned char*)cBitmapSecond); - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, 16, (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, 16, (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); - lcd_display_string(1, 5, bCharacterInputPosition, 1, (unsigned char*)&Data_40003370[bCharacterInputPosition - 1]); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, 16, (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, 16, (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); + lcd_display_string(1, 5, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine5[bCharacterInputPosition - 1]); lcd_display_bitmap(0, 5, 8, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 5, 11, (unsigned char*)cBitmapMinute); @@ -2735,15 +2735,15 @@ void DisplayScreenItems(void) case MENU_CONTEXT_TRACKING_RATE_INPUT: //48001: //0x4ca9c - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); - lcd_display_string(1, 4, bCharacterInputPosition, 1, (unsigned char*)&Data_4000336c[bCharacterInputPosition - 1]); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); + lcd_display_string(1, 4, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine4[bCharacterInputPosition - 1]); break; case MENU_CONTEXT_TIME_DATE_INPUT: //41001: @@ -2752,30 +2752,30 @@ void DisplayScreenItems(void) { case 0: //0x4cc78 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); - lcd_display_string(1, 3, bCharacterInputPosition, 1, &Data_40003368[bCharacterInputPosition - 1]); + lcd_display_string(1, 3, bCharacterInputPosition, 1, &g_pcstrMenuLine3[bCharacterInputPosition - 1]); break; case 1: //0x4ce34 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); - lcd_display_string(1, 5, bCharacterInputPosition, 1, (unsigned char*)&Data_40003370[bCharacterInputPosition - 1]); + lcd_display_string(1, 5, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine5[bCharacterInputPosition - 1]); break; default: @@ -2786,14 +2786,14 @@ void DisplayScreenItems(void) case 43011: //0x4d034 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); lcd_display_bitmap(0, 3, 14, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 3, 17, (unsigned char*)cBitmapMinute); @@ -2808,35 +2808,35 @@ void DisplayScreenItems(void) lcd_display_bitmap(0, 5, 10, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 5, 13, (unsigned char*)cBitmapMinute); - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); switch (bCurrentCustomSiteInputLine) { case 0: //0x4d40c - lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&Data_40003368[bCharacterInputPosition - 1]); + lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine3[bCharacterInputPosition - 1]); break; case 1: //0x4d448 - lcd_display_string(1, 4, bCharacterInputPosition, 1, (unsigned char*)&Data_4000336c[bCharacterInputPosition - 1]); + lcd_display_string(1, 4, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine4[bCharacterInputPosition - 1]); break; case 2: //0x4d484 - lcd_display_string(1, 5, bCharacterInputPosition, 1, (unsigned char*)&Data_40003370[bCharacterInputPosition - 1]); + lcd_display_string(1, 5, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine5[bCharacterInputPosition - 1]); break; case 3: //0x4d4c0 - lcd_display_string(1, 6, bCharacterInputPosition, 1, (unsigned char*)&Data_40003374[bCharacterInputPosition - 1]); + lcd_display_string(1, 6, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine6[bCharacterInputPosition - 1]); break; } @@ -2850,25 +2850,25 @@ void DisplayScreenItems(void) //0x4d554 case MENU_CONTEXT_OTA_ZERO_SETUP: //47011: //0x4d55c - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, 8, (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, 8, (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003374); //BUG! - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, 8, (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, 8, (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine6); //BUG! + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); switch (bData_4000316d) { case 0: //0x4d6d8 - lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&Data_40003368[bCharacterInputPosition - 1]); + lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine3[bCharacterInputPosition - 1]); break; case 1: //0x4d714 - lcd_display_string(1, 5, bCharacterInputPosition, 1, (unsigned char*)&Data_40003370[bCharacterInputPosition - 1]); + lcd_display_string(1, 5, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine5[bCharacterInputPosition - 1]); break; default: @@ -2893,74 +2893,74 @@ void DisplayScreenItems(void) lcd_display_lunar_phase_screen(Data_40003164_LunarPhaseYear, Data_40003168_LunarPhaseMonth); break; - case 34001: + case MENU_CONTEXT_TIMER_SET: //34001: //0x4d81c - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003378/*BUG!*/), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine7/*BUG!*/), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); - lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&Data_40003368[bCharacterInputPosition - 1]); + lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine3[bCharacterInputPosition - 1]); break; case MENU_CONTEXT_ALARM_INPUT: //35001: //0x4d9d8 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); - lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&Data_40003368[bCharacterInputPosition - 1]); + lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine3[bCharacterInputPosition - 1]); break; case MENU_CONTEXT_EYEPIECE_MAGN_MF_INPUT: //360021: //0x4db94 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); - lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&Data_40003368[bCharacterInputPosition - 1]); + lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine3[bCharacterInputPosition - 1]); break; case MENU_CONTEXT_EYEPIECE_MAGN_SF_INPUT: //360022: //0x4dd50 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); - lcd_display_string(1, 5, bCharacterInputPosition, 1, (unsigned char*)&Data_40003370[bCharacterInputPosition - 1]); + lcd_display_string(1, 5, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine5[bCharacterInputPosition - 1]); break; case MENU_CONTEXT_EYEPIECE_FOV_MF_INPUT: //370021: //0x4df0c - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); - lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&Data_40003368[bCharacterInputPosition - 1]); + lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine3[bCharacterInputPosition - 1]); lcd_display_bitmap(0, 7, 10, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 7, 13, (unsigned char*)cBitmapMinute); @@ -2969,16 +2969,16 @@ void DisplayScreenItems(void) case MENU_CONTEXT_EYEPIECE_FOV_SF_INPUT: //370022: //0x4e140 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); - lcd_display_string(1, 5, bCharacterInputPosition, 1, (unsigned char*)&Data_40003370[bCharacterInputPosition - 1]); + lcd_display_string(1, 5, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine5[bCharacterInputPosition - 1]); lcd_display_bitmap(0, 7, 10, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 7, 13, (unsigned char*)cBitmapMinute); @@ -2987,16 +2987,16 @@ void DisplayScreenItems(void) case MENU_CONTEXT_EYEPIECE_FOV_INPUT: //370023: //0x4e338 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); - lcd_display_string(1, 7, bCharacterInputPosition, 1, (unsigned char*)&Data_40003378[bCharacterInputPosition - 1]); + lcd_display_string(1, 7, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine7[bCharacterInputPosition - 1]); lcd_display_bitmap(0, 7, 10, (unsigned char*)cBitmapDegree); lcd_display_bitmap(0, 7, 13, (unsigned char*)cBitmapMinute); @@ -3005,14 +3005,14 @@ void DisplayScreenItems(void) case 211001: //0x4e530 - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); switch (bData_40003262) { @@ -3022,17 +3022,17 @@ void DisplayScreenItems(void) { case 0: //0x4e6ec - lcd_display_string(1, 2, bCharacterInputPosition, 1, (unsigned char*)&Data_40003364[bCharacterInputPosition - 1]); + lcd_display_string(1, 2, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine2[bCharacterInputPosition - 1]); break; case 1: //0x4e728 - lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&Data_40003368[bCharacterInputPosition - 1]); + lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine3[bCharacterInputPosition - 1]); break; case 2: //0x4e764 - lcd_display_string(1, 4, bCharacterInputPosition, 1, (unsigned char*)&Data_4000336c[bCharacterInputPosition - 1]); + lcd_display_string(1, 4, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine4[bCharacterInputPosition - 1]); break; default: @@ -3053,14 +3053,14 @@ void DisplayScreenItems(void) case 28001: //0x4e7bc - lcd_display_string(0, 1, 1, (char)strlen(Data_40003360), (unsigned char*)Data_40003360); - lcd_display_string(0, 2, 1, (char)strlen(Data_40003364), (unsigned char*)Data_40003364); - lcd_display_string(0, 3, 1, (char)strlen(Data_40003368), (unsigned char*)Data_40003368); - lcd_display_string(0, 4, 1, (char)strlen(Data_4000336c), (unsigned char*)Data_4000336c); - lcd_display_string(0, 5, 1, (char)strlen(Data_40003370), (unsigned char*)Data_40003370); - lcd_display_string(0, 6, 1, (char)strlen(Data_40003374), (unsigned char*)Data_40003374); - lcd_display_string(0, 7, 1, (char)strlen(Data_40003378), (unsigned char*)Data_40003378); - lcd_display_string(0, 8, 1, (char)strlen(Data_4000337c), (unsigned char*)Data_4000337c); + lcd_display_string(0, 1, 1, (char)strlen(g_pcstrMenuLine1), (unsigned char*)g_pcstrMenuLine1); + lcd_display_string(0, 2, 1, (char)strlen(g_pcstrMenuLine2), (unsigned char*)g_pcstrMenuLine2); + lcd_display_string(0, 3, 1, (char)strlen(g_pcstrMenuLine3), (unsigned char*)g_pcstrMenuLine3); + lcd_display_string(0, 4, 1, (char)strlen(g_pcstrMenuLine4), (unsigned char*)g_pcstrMenuLine4); + lcd_display_string(0, 5, 1, (char)strlen(g_pcstrMenuLine5), (unsigned char*)g_pcstrMenuLine5); + lcd_display_string(0, 6, 1, (char)strlen(g_pcstrMenuLine6), (unsigned char*)g_pcstrMenuLine6); + lcd_display_string(0, 7, 1, (char)strlen(g_pcstrMenuLine7), (unsigned char*)g_pcstrMenuLine7); + lcd_display_string(0, 8, 1, (char)strlen(g_pcstrMenuLine8), (unsigned char*)g_pcstrMenuLine8); switch (bData_40003263) { @@ -3072,17 +3072,17 @@ void DisplayScreenItems(void) { case 0: //0x4e988 - lcd_display_string(1, 2, bCharacterInputPosition, 1, (unsigned char*)&Data_40003364[bCharacterInputPosition - 1]); + lcd_display_string(1, 2, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine2[bCharacterInputPosition - 1]); break; case 1: //0x4e9c4 - lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&Data_40003368[bCharacterInputPosition - 1]); + lcd_display_string(1, 3, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine3[bCharacterInputPosition - 1]); break; case 2: //0x4ea00 - lcd_display_string(1, 4, bCharacterInputPosition, 1, (unsigned char*)&Data_4000336c[bCharacterInputPosition - 1]); + lcd_display_string(1, 4, bCharacterInputPosition, 1, (unsigned char*)&g_pcstrMenuLine4[bCharacterInputPosition - 1]); break; default: @@ -3107,55 +3107,55 @@ void DisplayScreenItems(void) { case 0: //0x4ea88 - func_91c(0, 1, 1, 136, Data_400033a8); - func_91c(0, 2, 1, 136, Data_400033ac); - func_91c(0, 3, 1, 136, Data_400033b0); - func_91c(0, 4, 1, 136, Data_400033b4); + func_91c(0, 1, 1, 136, g_pcstrBigMenuLine1); + func_91c(0, 2, 1, 136, g_pcstrBigMenuLine2); + func_91c(0, 3, 1, 136, g_pcstrBigMenuLine3); + func_91c(0, 4, 1, 136, g_pcstrBigMenuLine4); //->0x4edc0 break; case 1: //0x4eb10 - func_91c(1, 1, 1, 136, Data_400033a8); - func_91c(0, 2, 1, 136, Data_400033ac); - func_91c(0, 3, 1, 136, Data_400033b0); - func_91c(0, 4, 1, 136, Data_400033b4); + func_91c(1, 1, 1, 136, g_pcstrBigMenuLine1); + func_91c(0, 2, 1, 136, g_pcstrBigMenuLine2); + func_91c(0, 3, 1, 136, g_pcstrBigMenuLine3); + func_91c(0, 4, 1, 136, g_pcstrBigMenuLine4); //->0x4edc0 break; case 2: //0x4eb98 - func_91c(0, 1, 1, 136, Data_400033a8); - func_91c(1, 2, 1, 136, Data_400033ac); - func_91c(0, 3, 1, 136, Data_400033b0); - func_91c(0, 4, 1, 136, Data_400033b4); + func_91c(0, 1, 1, 136, g_pcstrBigMenuLine1); + func_91c(1, 2, 1, 136, g_pcstrBigMenuLine2); + func_91c(0, 3, 1, 136, g_pcstrBigMenuLine3); + func_91c(0, 4, 1, 136, g_pcstrBigMenuLine4); //->0x4edc0 break; case 3: //0x4ec20 - func_91c(0, 1, 1, 136, Data_400033a8); - func_91c(0, 2, 1, 136, Data_400033ac); - func_91c(1, 3, 1, 136, Data_400033b0); - func_91c(0, 4, 1, 136, Data_400033b4); + func_91c(0, 1, 1, 136, g_pcstrBigMenuLine1); + func_91c(0, 2, 1, 136, g_pcstrBigMenuLine2); + func_91c(1, 3, 1, 136, g_pcstrBigMenuLine3); + func_91c(0, 4, 1, 136, g_pcstrBigMenuLine4); //->0x4edc0 break; case 4: //0x4eca8 - func_91c(0, 1, 1, 136, Data_400033a8); - func_91c(0, 2, 1, 136, Data_400033ac); - func_91c(0, 3, 1, 136, Data_400033b0); - func_91c(1, 4, 1, 136, Data_400033b4); + func_91c(0, 1, 1, 136, g_pcstrBigMenuLine1); + func_91c(0, 2, 1, 136, g_pcstrBigMenuLine2); + func_91c(0, 3, 1, 136, g_pcstrBigMenuLine3); + func_91c(1, 4, 1, 136, g_pcstrBigMenuLine4); //->0x4edc0 break; case 5: //0x4ed30 - func_91c(1, 1, 1, 136, Data_400033a8); - func_91c(1, 2, 1, 136, Data_400033ac); - func_91c(1, 3, 1, 136, Data_400033b0); - func_91c(1, 4, 1, 136, Data_400033b4); + func_91c(1, 1, 1, 136, g_pcstrBigMenuLine1); + func_91c(1, 2, 1, 136, g_pcstrBigMenuLine2); + func_91c(1, 3, 1, 136, g_pcstrBigMenuLine3); + func_91c(1, 4, 1, 136, g_pcstrBigMenuLine4); //->0x4edc0 break; diff --git a/applications/freertos_app/language.c b/applications/freertos_app/language.c index 5770d89..21040ea 100644 --- a/applications/freertos_app/language.c +++ b/applications/freertos_app/language.c @@ -1,6 +1,7 @@ - +#if 0 char fill_400003de[1231] = " "; //400003de? +#endif //English char strEngTelescopeAlign[] = "Telescope Align"; //400008ad @@ -47,11 +48,13 @@ char strEngReset[] = "Reset"; //40000ad2 char strEngScientificName[] = "Scientific Name"; //40000ad8 char strEngSAOCatalog[] = "SAO Catalog"; //40000ae8 char strEngHRCatalog[] = "HR Catalog"; //40000af4 + char strEngSelect[] = "Select"; //40000aff char strEngAdd[] = "Add"; //40000b06 char strEngDelete[] = "Delete"; //40000b0a char strEngModify[] = "Modify"; //40000b11 char Data_40000b18[] = "Select"; + char Data_40000b1f[] = "Add"; char Data_40000b23[] = "Delete"; char Data_40000b2a[] = "Setup"; @@ -64,14 +67,17 @@ char strEngBackBoard[] = "BackBoard"; //40000b5b char strEngAccessory[] = "Accessory"; //40000b65 char strEngCountryAndCity[] = "Country & City"; //40000b6f char strEngCustomSite[] = "Custom Site"; //40000b7e + char Data_40000b8a[7] = "Select"; char Data_40000b91[4] = "Add"; char Data_40000b95[7] = "Delete"; char Data_40000b9c[7] = "Modify"; + char Data_40000ba3[7] = "Select"; char Data_40000baa[4] = "Add"; char Data_40000bae[7] = "Delete"; char Data_40000bb5[7] = "Modify"; + char strEngStarSpeed[] = "Star Speed"; //40000bbc char strEngSolarSpeed[] = "Solar Speed"; //40000bc7 char strEngMoonSpeed[] = "Moon Speed"; //40000bd3 @@ -342,8 +348,8 @@ char Data_40002878[] = "Hmdt:82RH"; //40002878 char Data_40002882[] = "APrs:0680Pa"; //40002882 char strSkyTarget[11] = "Sky Target"; //4000288e char strLandTarget[12] = "Land Target"; //40002899, size??? -char Data_400028a5[14] = "Alt Telescope"; //400028a5 -char Data_400028b3[14] = "Equ Telescope"; //400028b3, size??? +char strAltTelescope[14] = "Alt Telescope"; //400028a5 +char strEquTelescope[14] = "Equ Telescope"; //400028b3, size??? char strEngPleaseSetupOtaZero[22] = "Please setup OTA zero"; //400028c1 unsigned char Data_400028d7[10] = "Azi:000d "; //400028d7 unsigned char Data_400028e1[10] = "Alt: 00d "; //400028e1 @@ -415,20 +421,20 @@ void SwapLanguageStrings(void) strPoleAxisDev = strEngPoleAxisDev; strRaBklashCorr = strEngRaBklashCorr; strDecBklashCorr = strEngDecBklashCorr; - Data_40002f4c = " "; + strAlignmentSpare1 = " "; strSolarSystem = strEngSolarSystem; strConstellation = strEngConstellation; strFamousStar = strEngFamousStar; - Data_40002f68 = strEngMessierCatal; - Data_40002f6c = strEngNGCCatalog; - Data_40002f70 = strEngICCatalogue; - Data_40002f74 = strEngSh2Catalog; - Data_40002f78 = strEngBrightStarCat; - Data_40002f7c = strEngSAOStarCatal; - Data_40002f80 = strEngCustomerObjects; - Data_40002f84 = strEngInputRAandDEC; - Data_40002f88 = strEngCustomLandGoal; + g_pcstrMessierCatalogue = strEngMessierCatal; + g_pcstrNGCCatalogue = strEngNGCCatalog; + g_pcstrICCatalogue = strEngICCatalogue; + g_pcstrSh2Catalogue = strEngSh2Catalog; + g_pcstrBrightStarCatalogue = strEngBrightStarCat; + g_pcstrSAOStarCatalogue = strEngSAOStarCatal; + g_pcstrCustomerObjects = strEngCustomerObjects; + g_pcstrInputRAandDEC = strEngInputRAandDEC; + g_pcstrCustomLandGoal = strEngCustomLandGoal; strCurrentObjects = strEngCurrentObjects; Data_40002f90 = strEngObjectRiseSet; @@ -441,14 +447,15 @@ void SwapLanguageStrings(void) strParkposition = strEngParkposition; strTimeAndDate = strEngTimeAndDate; - Data_40002fb8 = strEngDaylightSaving; - Data_40002fbc = strEngSiteSetting; - Data_40002fc0 = strEngSkyLand; - Data_40002fc4 = strEngAzEqu; + g_pcstrDaylightSaving = strEngDaylightSaving; + g_pcstrEngSiteSetting = strEngSiteSetting; + g_pcstrSkyLand = strEngSkyLand; + g_pcstrAzEqu = strEngAzEqu; strTelescopeMount = strEngTelescopeMount; strTrackingRate = strEngTrackingRate; - Data_40002fd0 = strEngLanguage; + g_pcstrLanguage = strEngLanguage; strReset = strEngReset; + g_pcstrSetupSpare1 = " "; strScientificName = strEngScientificName; strSAOCatalog = strEngSAOCatalog; @@ -466,11 +473,11 @@ void SwapLanguageStrings(void) strAccessory = strEngAccessory; strCountryAndCity = strEngCountryAndCity; strCustomSite = strEngCustomSite; - Data_40003068 = Data_40000b8a; + Data_40003068 = Data_40000b8a; //"Select" Data_4000306c = Data_40000b91; Data_40003070 = Data_40000b95; Data_40003074 = Data_40000b9c; - Data_40003078 = Data_40000ba3; + Data_40003078 = Data_40000ba3; //"Select" Data_4000307c = Data_40000baa; Data_40003080 = Data_40000bae; Data_40003084 = Data_40000bb5; @@ -533,15 +540,15 @@ void SwapLanguageStrings(void) strSolarSystem = Data_40000fc2; strConstellation = Data_40000fe2; strFamousStar = Data_40001002; - Data_40002f68 = Data_40001022; - Data_40002f6c = Data_40001042; - Data_40002f70 = Data_40001062; - Data_40002f74 = Data_40001082; - Data_40002f78 = Data_400010a2; - Data_40002f7c = Data_400010c2; - Data_40002f80 = Data_400010e2; - Data_40002f84 = Data_40001102; - Data_40002f88 = Data_40001122; + g_pcstrMessierCatalogue = Data_40001022; + g_pcstrNGCCatalogue = Data_40001042; + g_pcstrICCatalogue = Data_40001062; + g_pcstrSh2Catalogue = Data_40001082; + g_pcstrBrightStarCatalogue = Data_400010a2; + g_pcstrSAOStarCatalogue = Data_400010c2; + g_pcstrCustomerObjects = Data_400010e2; + g_pcstrInputRAandDEC = Data_40001102; + g_pcstrCustomLandGoal = Data_40001122; strCurrentObjects = Data_40001142; Data_40002f90 = Data_40001162; Data_40002f94 = Data_40001182; @@ -553,13 +560,13 @@ void SwapLanguageStrings(void) strParkposition = Data_40001242; strTimeAndDate = Data_40001262; - Data_40002fb8 = Data_40001282; - Data_40002fbc = Data_400012a2; - Data_40002fc0 = Data_400012c2; - Data_40002fc4 = Data_400012e2; + g_pcstrDaylightSaving = Data_40001282; + g_pcstrEngSiteSetting = Data_400012a2; + g_pcstrSkyLand = Data_400012c2; + g_pcstrAzEqu = Data_400012e2; strTelescopeMount = Data_40001302; strTrackingRate = Data_40001322; - Data_40002fd0 = Data_40001342; + g_pcstrLanguage = Data_40001342; strReset = strGerReset; strScientificName = strEngScientificName; @@ -644,15 +651,15 @@ void SwapLanguageStrings(void) strSolarSystem = strFreSolarSystem; strConstellation = strFreConstellation; strFamousStar = Data_40001522; - Data_40002f68 = Data_40001542; - Data_40002f6c = Data_40001562; - Data_40002f70 = Data_40001582; - Data_40002f74 = Data_400015a2; - Data_40002f78 = Data_400015c2; - Data_40002f7c = Data_400015e2; - Data_40002f80 = Data_40001602; - Data_40002f84 = Data_40001622; - Data_40002f88 = Data_40001642; + g_pcstrMessierCatalogue = Data_40001542; + g_pcstrNGCCatalogue = Data_40001562; + g_pcstrICCatalogue = Data_40001582; + g_pcstrSh2Catalogue = Data_400015a2; + g_pcstrBrightStarCatalogue = Data_400015c2; + g_pcstrSAOStarCatalogue = Data_400015e2; + g_pcstrCustomerObjects = Data_40001602; + g_pcstrInputRAandDEC = Data_40001622; + g_pcstrCustomLandGoal = Data_40001642; strCurrentObjects = Data_40001662; Data_40002f90 = Data_40001682; Data_40002f94 = Data_400016a2; @@ -663,13 +670,13 @@ void SwapLanguageStrings(void) Data_40002fa8 = Data_40001742; strParkposition = Data_40001762; strTimeAndDate = Data_40001782; - Data_40002fb8 = Data_400017a2; - Data_40002fbc = Data_400017c2; - Data_40002fc0 = Data_400017e2; - Data_40002fc4 = Data_40001802; + g_pcstrDaylightSaving = Data_400017a2; + g_pcstrEngSiteSetting = Data_400017c2; + g_pcstrSkyLand = Data_400017e2; + g_pcstrAzEqu = Data_40001802; strTelescopeMount = Data_40001822; strTrackingRate = Data_40001842; - Data_40002fd0 = strFreLanguage; + g_pcstrLanguage = strFreLanguage; strReset = strFreReset; strScientificName = strEngScientificName; @@ -754,15 +761,15 @@ void SwapLanguageStrings(void) strSolarSystem = Data_40001a02; strConstellation = Data_40001a22; strFamousStar = Data_40001a42; - Data_40002f68 = Data_40001a62; - Data_40002f6c = Data_40001a82; - Data_40002f70 = Data_40001aa2; - Data_40002f74 = Data_40001ac2; - Data_40002f78 = Data_40001ae2; - Data_40002f7c = Data_40001b02; - Data_40002f80 = Data_40001b22; - Data_40002f84 = Data_40001b42; - Data_40002f88 = Data_40001b62; + g_pcstrMessierCatalogue = Data_40001a62; + g_pcstrNGCCatalogue = Data_40001a82; + g_pcstrICCatalogue = Data_40001aa2; + g_pcstrSh2Catalogue = Data_40001ac2; + g_pcstrBrightStarCatalogue = Data_40001ae2; + g_pcstrSAOStarCatalogue = Data_40001b02; + g_pcstrCustomerObjects = Data_40001b22; + g_pcstrInputRAandDEC = Data_40001b42; + g_pcstrCustomLandGoal = Data_40001b62; strCurrentObjects = Data_40001b82; Data_40002f90 = Data_40001ba2; Data_40002f94 = Data_40001bc2; @@ -773,13 +780,13 @@ void SwapLanguageStrings(void) Data_40002fa8 = Data_40001c62; strParkposition = Data_40001c82; strTimeAndDate = Data_40001ca2; - Data_40002fb8 = Data_40001cc2; - Data_40002fbc = Data_40001ce2; - Data_40002fc0 = Data_40001d02; - Data_40002fc4 = Data_40001d22; + g_pcstrDaylightSaving = Data_40001cc2; + g_pcstrEngSiteSetting = Data_40001ce2; + g_pcstrSkyLand = Data_40001d02; + g_pcstrAzEqu = Data_40001d22; strTelescopeMount = Data_40001d42; strTrackingRate = Data_40001d62; - Data_40002fd0 = Data_40001d82; + g_pcstrLanguage = Data_40001d82; strReset = Data_40001da2; strScientificName = strEngScientificName; @@ -864,15 +871,15 @@ void SwapLanguageStrings(void) strSolarSystem = Data_40001f22; strConstellation = Data_40001f42; strFamousStar = Data_40001f62; - Data_40002f68 = Data_40001f82; - Data_40002f6c = Data_40001fa2; - Data_40002f70 = Data_40001fc2; - Data_40002f74 = Data_40001fe2; - Data_40002f78 = Data_40002002; - Data_40002f7c = Data_40002022; - Data_40002f80 = Data_40002042; - Data_40002f84 = Data_40002062; - Data_40002f88 = Data_40002082; + g_pcstrMessierCatalogue = Data_40001f82; + g_pcstrNGCCatalogue = Data_40001fa2; + g_pcstrICCatalogue = Data_40001fc2; + g_pcstrSh2Catalogue = Data_40001fe2; + g_pcstrBrightStarCatalogue = Data_40002002; + g_pcstrSAOStarCatalogue = Data_40002022; + g_pcstrCustomerObjects = Data_40002042; + g_pcstrInputRAandDEC = Data_40002062; + g_pcstrCustomLandGoal = Data_40002082; strCurrentObjects = Data_400020a2; Data_40002f90 = Data_400020c2; Data_40002f94 = Data_400020e2; @@ -883,13 +890,13 @@ void SwapLanguageStrings(void) Data_40002fa8 = Data_40002182; strParkposition = Data_400021a2; strTimeAndDate = Data_400021c2; - Data_40002fb8 = Data_400021e2; - Data_40002fbc = Data_40002202; - Data_40002fc0 = Data_40002222; - Data_40002fc4 = Data_40002242; + g_pcstrDaylightSaving = Data_400021e2; + g_pcstrEngSiteSetting = Data_40002202; + g_pcstrSkyLand = Data_40002222; + g_pcstrAzEqu = Data_40002242; strTelescopeMount = strSpaTelescopeMount; strTrackingRate = Data_40002282; - Data_40002fd0 = Data_400022a2; + g_pcstrLanguage = Data_400022a2; strReset = Data_400022c2; strScientificName = strEngScientificName; diff --git a/applications/freertos_app/led.c b/applications/freertos_app/led.c new file mode 100644 index 0000000..736e2e3 --- /dev/null +++ b/applications/freertos_app/led.c @@ -0,0 +1,59 @@ + +#include "periph.h" +#include "led.h" + +unsigned char g_iLedTorchLevel; //40003195 + + +void HandleStarKey(void) +{ + switch (g_iLedTorchLevel) + { + case 0: + GPIO_LED1_3_OFF; + GPIO_LED2_OFF; + g_iLedTorchLevel = 1; + break; + + case 1: + GPIO_LED1_3_OFF; + GPIO_LED2_ON; + g_iLedTorchLevel = 2; + break; + + case 2: + GPIO_LED1_3_ON; + GPIO_LED2_ON; + g_iLedTorchLevel = 0; + break; + + default: + break; + } +} + +#ifdef LED_TASK +void vLEDTask( void *pvParameters ) +{ + int off = 1; + + GPIO_LED2_ON; + + for( ;; ) + { + vTaskDelay( ( TickType_t ) 1000 / portTICK_PERIOD_MS ); + + if (off) + { + GPIO_LED2_OFF; + off = 0; + } + else + { + GPIO_LED2_ON; + off = 1; + } + } +} +#endif + diff --git a/applications/freertos_app/led.h b/applications/freertos_app/led.h new file mode 100644 index 0000000..2497114 --- /dev/null +++ b/applications/freertos_app/led.h @@ -0,0 +1,7 @@ + + +extern void HandleStarKey(void); + +#ifdef LED_TASK +extern void vLEDTask(void *pvParameters); +#endif diff --git a/applications/freertos_app/main.c b/applications/freertos_app/main.c index 8dd2fdc..73aa785 100644 --- a/applications/freertos_app/main.c +++ b/applications/freertos_app/main.c @@ -9,6 +9,8 @@ #include "menu.h" #endif +#include "led.h" + #include "FreeRTOS.h" #include "task.h" #include "queue.h" @@ -18,40 +20,13 @@ extern void uart0_send(unsigned char* a, unsigned char b); +#ifdef INCLUDE_ALL_C_FILES #include "file_1f30.c" +#endif -/* 4ede4 - todo */ -void HandleStarKey(void) -{ - switch (bData_40003195) - { - case 0: - //0x4ee08 - IO0SET = (1 << 13); - IO0CLR = (1 << 16); - bData_40003195 = 1; - break; - - case 1: - //0x4ee30 - IO0SET = (1 << 13); - IO0SET = (1 << 16); - bData_40003195 = 2; - break; - - case 2: - //0x4ee58 - IO0CLR = (1 << 13); - IO0SET = (1 << 16); - bData_40003195 = 0; - break; - - default: - break; - } -} - +#ifdef INCLUDE_ALL_C_FILES #include "slew2.c" +#endif /* 4ff84 - todo */ void HandleAlarmInputData(void) @@ -62,7 +37,7 @@ void HandleAlarmInputData(void) if ((h > 23) || (m > 59) || (s > 59)) { - Data_40002c64_MenuContextId = 35001; + Data_40002c64_MenuContextId = MENU_CONTEXT_ALARM_INPUT; //35001; bCharacterInputPosition = 1; } else @@ -195,17 +170,17 @@ void PrepareCustomerSkyObjectInputData(void) /* 50778 - todo */ void HandleOTAZeroData(void) { - fData_4000329c = (unsigned short) atoi(&Data_400028d7[4]); //"Azi:%03d" - fData_400032a0 = (unsigned char) atoi(&Data_400028e1[5]); //"Alt: %02d" + g_fOtaZeroAzimuth = (unsigned short) atoi(&Data_400028d7[4]); //"Azi:%03d" + g_fOtaZeroAltitude = (unsigned char) atoi(&Data_400028e1[5]); //"Alt: %02d" - if ((fData_4000329c >= 0) && (fData_4000329c <= 360) && - (fData_400032a0 >= 0) && (fData_400032a0 <= 90)) + if ((g_fOtaZeroAzimuth >= 0) && (g_fOtaZeroAzimuth <= 360) && + (g_fOtaZeroAltitude >= 0) && (g_fOtaZeroAltitude <= 90)) { //50808 - Data_40004128.dData_192 = fData_4000329c; - Data_40004128.dData_200 = fData_400032a0; + Data_40004128.dData_192 = g_fOtaZeroAzimuth; + Data_40004128.dData_200 = g_fOtaZeroAltitude; - flash_write_ota_zero_data((unsigned short) fData_4000329c, (unsigned short) fData_400032a0); + flash_write_ota_zero_data((unsigned short) g_fOtaZeroAzimuth, (unsigned short) g_fOtaZeroAltitude); if (bData_40002f1e_SetupLocalData == 1) { @@ -228,121 +203,9 @@ void HandleOTAZeroData(void) } } -#include "file_5099c.c" - -/* 50b40 - todo */ -void HandleReset(void) -{ - char sp40[528]; - unsigned char customSiteName[20]; - float lon; - float lat; - int zone; - unsigned short i; - - lcd_display_clear(); - lcd_display_string(0, 4, 1, 21, "System resetting... "); - - i = 0; - for (i = 0; i < 16; i++) - { - //0x50b74 - flash_read((unsigned short)(0xddd + i), 0, sizeof(sp40), sp40); - flash_write((unsigned short)(0xdc9 + i), 0, sizeof(sp40), sp40); - } - - func_d2cc(); - func_5099c(); - - UART1_WRITE_HEADER(1); - uart1_write_byte(0x44); - - UART1_WRITE_HEADER(1); - uart1_write_byte(0x64); - - UART1_WRITE_HEADER(1); - uart1_write_byte(0x04); - - UART1_WRITE_HEADER(1); - uart1_write_byte(0x24); - - func_659c(10); - - if (bData_40002c1a == 1) - { - bData_40002e7a_MountType = MENU_MOUNT_TYPE_EQU; //1; - } - else - { - bData_40002e7a_MountType = MENU_MOUNT_TYPE_AZ; //0; - } - //50c98 - Data_400034d0 = 0.05; - Data_400034d8 = 0.045; - - flash_get_ota_zero_data(&fData_4000329c, &fData_400032a0); - - Data_40004128.dData_192 = fData_4000329c; - Data_40004128.dData_200 = fData_400032a0; - - flash_get_custom_site_data(customSiteName, &lon, &lat, &zone); - - Data_40004128.geographicLongitude = lon; - Data_40004128.geographicLatitude = lat; - - Data_40002e54_Zone = zone; - - strCustomSiteName[6] = customSiteName[0]; - strCustomSiteName[7] = customSiteName[1]; - strCustomSiteName[8] = customSiteName[2]; - strCustomSiteName[9] = customSiteName[3]; - strCustomSiteName[10] = customSiteName[4]; - strCustomSiteName[11] = customSiteName[5]; - strCustomSiteName[12] = customSiteName[6]; - strCustomSiteName[13] = customSiteName[7]; - - if (lon > 0) //BUG? East is negative! - { - //50d90 - sprintf(strCustomSiteLongitude, " Lon:E%03dd%02df ", - DEGREES_MINUTES(lon)); - } - else - { - //0x50edc - sprintf(strCustomSiteLongitude, " Lon:W%03dd%02df ", - DEGREES_MINUTES(lon)); //Bug: abs()? - } - //0x50f30 - if (lat > 0) - { - //50f40 - sprintf(strCustomSiteLatitude, " Lat:N%02dd%02df ", - DEGREES_MINUTES(lat)); - } - else - { - //0x50f98 - sprintf(strCustomSiteLatitude, " Lat:S%02dd%02df ", - DEGREES_MINUTES(lat)); //Bug: abs() - } - //0x50fec - if (zone > 0) - { - sprintf(strCustomSiteTimezone, " Zone:E%02d", zone); - } - else - { - //0x5100c - sprintf(strCustomSiteTimezone, " Zone:W%02d", zone); - } - - func_659c(2000); - beep1(2); - func_659c(100); - - Data_40002c64_MenuContextId = MENU_CONTEXT_MAIN; //0; -} +#ifdef INCLUDE_ALL_C_FILES +#include "HandleReset.c" +#endif /* 5104c - todo */ void HandleCustomSiteData(void) @@ -922,11 +785,11 @@ double func_52720(int a) } } +#ifdef INCLUDE_ALL_C_FILES #include "HandleEnterKey.c" - #include "HandleRightKey.c" - #include "HandleLeftKey.c" +#endif /* 59dd0 - todo */ void func_59dd0(void) @@ -1265,26 +1128,26 @@ void HandleLongListScroll(int upDown, int b) { case 11: //0x5a5d0 - if (bData_40003173 > 1) + if (g_bAlignmentFourLineMenuFocusItem > 1) { //5a5e4 - bData_40003173--; + g_bAlignmentFourLineMenuFocusItem--; } else { //0x5a5fc - bData_40003171--; + g_bAlignmentFourLineMenuTopItem--; } //0x5a610 - if (bData_40003172 > 1) + if (g_bAlignmentEightLineMenuFocusItem > 1) { //5a620 - bData_40003172--; + g_bAlignmentEightLineMenuFocusItem--; } else { //0x5a638 - bData_40003170--; + g_bAlignmentEightLineMenuTopItem--; } //0x5a64c -> 0x5a860 break; @@ -1343,13 +1206,17 @@ void HandleLongListScroll(int upDown, int b) bData_4000317d--; } - if (bData_4000317e > 1) + if (g_bSetupEightLineMenuFocusItem > 1) { - bData_4000317e--; + g_bSetupEightLineMenuFocusItem--; } else { - bData_4000317c--; +#if 0 + g_bSetupEightLineMenuTopItem--; +#else + g_bSetupEightLineMenuFocusItem = 7; +#endif } break; @@ -1389,22 +1256,22 @@ void HandleLongListScroll(int upDown, int b) { case 11: //0x5a8a8: Alignment items - if (bData_40003173 < 4) + if (g_bAlignmentFourLineMenuFocusItem < 4) { - bData_40003173++; + g_bAlignmentFourLineMenuFocusItem++; } else { - bData_40003171++; + g_bAlignmentFourLineMenuTopItem++; } - if (bData_40003172 < 8) + if (g_bAlignmentEightLineMenuFocusItem < 8) { - bData_40003172++; + g_bAlignmentEightLineMenuFocusItem++; } else { - bData_40003170++; + g_bAlignmentEightLineMenuTopItem++; } break; @@ -1465,14 +1332,25 @@ void HandleLongListScroll(int upDown, int b) bData_4000317d++; } - if (bData_4000317e < 8) +#if 0 + if (g_bSetupEightLineMenuFocusItem < 8) { - bData_4000317e++; + g_bSetupEightLineMenuFocusItem++; } else { - bData_4000317c++; + g_bSetupEightLineMenuTopItem++; + } +#else + if (g_bSetupEightLineMenuFocusItem < 7) + { + g_bSetupEightLineMenuFocusItem++; } + else + { + g_bSetupEightLineMenuFocusItem = 1; + } +#endif break; case 22: @@ -1510,9 +1388,10 @@ void HandleLongListScroll(int upDown, int b) } } +#ifdef INCLUDE_ALL_C_FILES #include "HandleDownKey.c" - #include "HandleUpKey.c" +#endif /* 5f0c0 - complete */ void SlewStop(void) @@ -1573,7 +1452,9 @@ void SlewStop(void) //0x5f228 } +#ifdef INCLUDE_ALL_C_FILES #include "HandleMinusKey.c" +#endif /* 60d54 - complete */ void HandlePlusKey(void) @@ -1647,7 +1528,9 @@ void HandleFKey(void) } } +#ifdef INCLUDE_ALL_C_FILES #include "HandleHelpKey.c" +#endif /* 61ecc - todo */ void func_61ecc(int a) @@ -2260,6 +2143,7 @@ void HandleCustomSiteInputChar(int key) } //switch (bData_40003262) } +#ifdef INCLUDE_ALL_C_FILES #include "Handle9Key.c" #include "Handle8Key.c" #include "Handle7Key.c" @@ -2268,7 +2152,7 @@ void HandleCustomSiteInputChar(int key) #include "Handle4Key.c" #include "Handle3Key.c" #include "Handle2Key.c" - +#endif /* 68394 - todo */ void func_68394(int a) @@ -2502,9 +2386,10 @@ void func_68394(int a) } //switch (bData_40003262) } +#ifdef INCLUDE_ALL_C_FILES #include "Handle1Key.c" - #include "Handle0Key.c" +#endif /* 6a0e4 - todo */ unsigned char ConvertKeyCode(void) @@ -2943,7 +2828,7 @@ void UserInterfaceCycle(void) bData_40002c68 = 1; //->6a948 - } + } //if (bData_40002c68 == 0) else { //6a91c @@ -3841,48 +3726,27 @@ void func_6c5e8(void) } /* 6c804 - complete */ -void ShowStartupScreen(void) +void ShowStartupScreen(int a) { - #ifdef UART0_DEBUG - lcd_display_string(0, 1, 1, 22, " OPEN GOTO SYSTEM "); - lcd_display_string(0, 2, 1, 22, "based on EXOS EQ v2.3 "); - lcd_display_string(0, 4, 1, 22, "github.com/Spitzbube/ "); - lcd_display_string(0, 5, 1, 22, "Commit: 08ba598fa99635"); - #else - lcd_display_string(0, 3, 1, 22, " BRESSER GOTO SYSTEM "); - lcd_display_string(0, 5, 1, 22, " EXOS EQ v2.3 "); - #endif -} - -#include "ascom.c" - - -static void vLEDTask( void *pvParameters ) -{ - int off = 1; - - //OFF - IO0SET = (1 << 16); - - for( ;; ) + if (a == 0) { - vTaskDelay( ( TickType_t ) 1000 / portTICK_PERIOD_MS ); - - if (off) - { - //ON - IO0CLR = (1 << 16); - off = 0; - } - else - { - //OFF - IO0SET = (1 << 16); - off = 1; - } + lcd_display_string(0, 1, 1, 22, " OPEN GOTO SYSTEM "); + lcd_display_string(0, 2, 1, 22, "based on EXOS EQ v2.3 "); + lcd_display_string(0, 4, 1, 22, "github.com/Spitzbube/ "); + lcd_display_string(0, 5, 1, 22, " Commit: d5e4963 "); + } + else + { + sprintf(g_MenuStringBuffer1, "Mount Type: %d", bData_40002c1a); + g_pcstrMenuLine1 = g_MenuStringBuffer1; + lcd_display_string(0, 7, 1, 22, g_pcstrMenuLine1); } } +#ifdef INCLUDE_ALL_C_FILES +#include "ascom.c" +#endif + static void vUART0Task( void *pvParameters ) { #if 0 @@ -3985,7 +3849,7 @@ static void vMainTask(void *pvParameters) flash_write(0xdcb, 0, 2, Data_40004c58); } - ShowStartupScreen(); + ShowStartupScreen(0); UART1_WRITE_HEADER(1); uart1_write_byte(0x44); @@ -4018,6 +3882,8 @@ static void vMainTask(void *pvParameters) bData_40002e7a_MountType = MENU_MOUNT_TYPE_AZ; //0; } + ShowStartupScreen(1); + bData_40003432 = 0; Data_400034d0 = 0.05; @@ -4026,10 +3892,10 @@ static void vMainTask(void *pvParameters) Data_40004128.dData_192 = 100.0; Data_40004128.dData_200 = 60.0; - flash_get_ota_zero_data(&fData_4000329c, &fData_400032a0); + flash_get_ota_zero_data(&g_fOtaZeroAzimuth, &g_fOtaZeroAltitude); - Data_40004128.dData_192 = fData_4000329c; - Data_40004128.dData_200 = fData_400032a0; + Data_40004128.dData_192 = g_fOtaZeroAzimuth; + Data_40004128.dData_200 = g_fOtaZeroAltitude; Data_40004128.dData_112 = -180.0; Data_40004128.dData_120 = 90.0; @@ -4127,8 +3993,8 @@ static void vMainTask(void *pvParameters) Data_40002c64_MenuContextId = MENU_CONTEXT_MAIN; //0; } //6d880 - Data_40002c1c = 0; - Data_40002c20 = 0; + g_iUart0GuideValueRa = 0; + g_iUart0GuideValueDec = 0; //6d894 -> 729ec //########################################################################## @@ -4155,9 +4021,6 @@ static void vMainTask(void *pvParameters) snprintf(buf, sizeof(buf)-1, "dData_40002df8: %f\n\r", dData_40002df8); uart0_send(buf, strlen(buf)); - - snprintf(buf, sizeof(buf)-1, "bData_40002c1a: %d\n\r", bData_40002c1a); - uart0_send(buf, strlen(buf)); } #endif @@ -4316,132 +4179,57 @@ static void vMainTask(void *pvParameters) } //0x6dfc4 dData_40002d78 /= 15.0; - #if 0 - sp64 = dData_400031f0 / 15.0; - sp56 = dData_40003420 / 15.0; - sp48 = dData_40002d78 - sp56; - sp40 = sp48 - sp64; - sp32 = fData_400034c8; - sp24 = sp32 - sp40; - fData_40003508 = sp24; - #else - fData_40003508 = fData_400034c8 - + + g_fSendToExternalRightAscension = g_fLocalSiderealTimerDuringTracking - ((dData_40002d78 - dData_40003420 / 15.0) - dData_400031f0 / 15.0); - #endif - if (fData_40003508 < 0) + + if (g_fSendToExternalRightAscension < 0) { //6e08c - fData_40003508 += 24; + g_fSendToExternalRightAscension += 24; } //0x6e0a4 - if (fData_40003508 > 24) + if (g_fSendToExternalRightAscension > 24) { //6e0b8 - fData_40003508 -= 24; + g_fSendToExternalRightAscension -= 24; } //0x6e0d0 - #if 0 - sp64 = dData_40003420 / 15.0; - sp56 = dData_40002d78 - sp64; - sp48 = sp56 + dData_400033e8; - Data_40002d68_OTARightAscensionHours = sp48; - #else Data_40002d68_OTARightAscensionHours = dData_40002d78 - dData_40003420 / 15.0 + dData_400033e8; - #endif - - #if 0 - sp64 = Data_40002d68_OTARightAscensionHours; - sp56 = dData_40003420 / 15.0; - sp48 = dData_40002d78 - sp56; - sp40 = sp48 + dData_400033e8; - sp32 = sp40 - sp64; - sp24 = sp32 * 60.0; - 40002d6c = sp24; - #else + Data_40002d6c_OTARightAscensionMinutes = 60 * (dData_40002d78 - dData_40003420 / 15.0 + dData_400033e8 - Data_40002d68_OTARightAscensionHours); - #endif - - #if 0 - sp64 = Data_40002d6c_OTARightAscensionMinutes; - sp56 = sp64 / 60.0; - sp48 = Data_40002d68_OTARightAscensionHours; - sp40 = dData_40003420 / 15.0; - sp32 = dData_40002d78 - sp40; - sp24 = sp32 + dData_400033e8; - sp16 = sp24 - sp48; - sp8 = sp16 - sp56; - sp = sp8 * 3600.0; - #else + fData_40002d70_OTARightAscensionSeconds = 3600.0 * ((dData_40002d78 - dData_40003420 / 15.0 + dData_400033e8 - Data_40002d68_OTARightAscensionHours) - Data_40002d6c_OTARightAscensionMinutes / 60.0); - #endif if ((bData_40003200 == 1) && (Data_40004128.dData_304 == 2.0)) { //6e2c0 dData_400033e8 = g_dObjectRightAcension - dData_40002d78; + Data_40002d68_OTARightAscensionHours = Data_40002cd8_ObjectRightAscensionHours; Data_40002d6c_OTARightAscensionMinutes = Data_40002cdc_ObjectRightAscensionMinutes; fData_40002d70_OTARightAscensionSeconds = fData_40002ce0_ObjectRightAscensionSeconds; } //0x6e30c - #if 0 - sp64 = dData_40002d98 - dData_40003428; - sp56 = sp64 - dData_400031f8; - fData_4000350c = sp56; - #else - fData_4000350c = dData_40002d98 - dData_40003428 - dData_400031f8; - #endif + g_fSendToExternalDeclination = dData_40002d98 - dData_40003428 - dData_400031f8; - #if 0 - sp64 = dData_40002d98 - dData_40003428; - sp56 = sp64 + dData_400033f0; - Data_40002d8c_OTADeclinationDegrees = sp56; - #else Data_40002d8c_OTADeclinationDegrees = dData_40002d98 - dData_40003428 + dData_400033f0; - #endif - - #if 0 - sp64 = Data_40002d8c_OTADeclinationDegrees; - sp56 = dData_40002d98 - dData_40003428; - sp48 = sp56 + dData_400033f0; - sp40 = sp48 - sp64; - sp32 = sp40 * 60.0; - Data_40002d90_OTADeclinationMinutes = sp32; - #else Data_40002d90_OTADeclinationMinutes = 60.0 * (dData_40002d98 - dData_40003428 + dData_400033f0 - Data_40002d8c_OTADeclinationDegrees); - #endif - - #if 0 - sp64 = Data_40002d90_OTADeclinationMinutes; - sp56 = sp64 / 60.0; - sp48 = Data_40002d8c_OTADeclinationDegrees; - sp40 = dData_40002d98 - dData_40003428; - sp32 = sp40 + dData_400033f0; - sp24 = sp32 - sp48; - sp16 = sp24 - sp56; - sp8 = sp16 * 3600.0; - #else fData_40002d94_OTADeclinationSeconds = 3600.0 * (dData_40002d98 - dData_40003428 + dData_400033f0 - Data_40002d8c_OTADeclinationDegrees - Data_40002d90_OTADeclinationMinutes / 60.0); - #endif if ((bData_40003201 == 1) && (Data_40004128.dData_312 == 2.0)) { //6e4f8 - #if 0 - sp64 = fData_40002d18_ObjectDeclination; - dData_400033f0 = sp64 - dData_40002d98; - #else dData_400033f0 = fData_40002d18_ObjectDeclination - dData_40002d98; - #endif Data_40002d8c_OTADeclinationDegrees = Data_40002d00_ObjectDeclinationDegrees; Data_40002d90_OTADeclinationMinutes = Data_40002d04_ObjectDeclinationMinutes; @@ -4452,6 +4240,7 @@ static void vMainTask(void *pvParameters) //6e558 else if (bData_40002c1a == 2) { +#if 0 //6e568 if (bData_40002e7a_MountType == MENU_MOUNT_TYPE_AZ) //0) { @@ -4492,7 +4281,7 @@ static void vMainTask(void *pvParameters) dData_40002dc0_Azimuth += 360; } //6e890 - fData_40003508 = dData_40002dc0_Azimuth - dData_40003410 - dData_400031f0; + g_fSendToExternalRightAscension = dData_40002dc0_Azimuth - dData_40003410 - dData_400031f0; Data_40002dac = dData_40002dc0_Azimuth - dData_40003410 + dData_400033e8; Data_40002db0 = (dData_40002dc0_Azimuth - dData_40003410 + dData_400033e8 - Data_40002dac) * 60.0; fData_40002db4 = (int)((dData_40002dc0_Azimuth - dData_40003410 + dData_400033e8 - @@ -4529,7 +4318,7 @@ static void vMainTask(void *pvParameters) dData_40002df8 = 180 - dData_40002df8; } //0x6eb8c - fData_4000350c = dData_40002df8 - dData_40003418 - dData_400031f8; + g_fSendToExternalDeclination = dData_40002df8 - dData_40003418 - dData_400031f8; Data_40002de0 = dData_40002df8 - dData_40003418 + dData_400033f0; Data_40002de4 = (dData_40002df8 - dData_40003418 + dData_400033f0 - Data_40002de0) * 60.0; fData_40002de8 = (int)((dData_40002df8 - dData_40003418 + dData_400033f0 - @@ -4635,17 +4424,17 @@ static void vMainTask(void *pvParameters) //0x6f328 dData_40002d78 /= 15; - fData_40003508 = fData_400034c8 - + g_fSendToExternalRightAscension = g_fLocalSiderealTimerDuringTracking - (dData_40002d78 - dData_40003420 / 15 - dData_400031f0 / 15); - if (fData_40003508 < 0) + if (g_fSendToExternalRightAscension < 0) { - fData_40003508 += 24; + g_fSendToExternalRightAscension += 24; } //0x6f408 - if (fData_40003508 > 24) + if (g_fSendToExternalRightAscension > 24) { - fData_40003508 -= 24; + g_fSendToExternalRightAscension -= 24; } //0x6f434 Data_40002d68_OTARightAscensionHours = dData_40002d78 - dData_40003420 / 15 + dData_400033e8; @@ -4663,7 +4452,7 @@ static void vMainTask(void *pvParameters) bData_40002d88 = 1; } //0x6f67c - fData_4000350c = dData_40002d98 - dData_40003428 - dData_400031f8; + g_fSendToExternalDeclination = dData_40002d98 - dData_40003428 - dData_400031f8; Data_40002d8c_OTADeclinationDegrees = dData_40002d98 - dData_40003428 + dData_400033f0; Data_40002d90_OTADeclinationMinutes = (dData_40002d98 - dData_40003428 + dData_400033f0 - Data_40002d8c_OTADeclinationDegrees) * 60; fData_40002d94_OTADeclinationSeconds = (dData_40002d98 - dData_40003428 + @@ -4680,6 +4469,7 @@ static void vMainTask(void *pvParameters) } //0x6f8d0 } +#endif } //else if (bData_40002c1a == 2) //6f8d0 if (bSystemInitialized == 0) @@ -4774,25 +4564,29 @@ static void vMainTask(void *pvParameters) g_bMaxSlewRampActive = 0; } } //if ((g_bMaxSlewRampActive != 0) && (g_stCurrentSlewRampValue.Data <= 4800)) - //6fb24 + + //6fb24: Handle External Guiding + if (bTrackingMode == MENU_TRACKING_MODE_TRACKING/*2*/) { //6fb34 ReceiveMountAutoguideValues(); - Data_40003488 = Data_40002c1c; - Data_4000348c = Data_40002c20; + g_iAscomGuideValueRa = g_iUart0GuideValueRa; + g_iAscomGuideValueDec = g_iUart0GuideValueDec; - Data_40004128.dAutoguideRa += (2 * Data_40003488 + iMountAutoguideRa) * + Data_40004128.dAutoguideRa += (2 * g_iAscomGuideValueRa + iMountAutoguideRa) * dGuidingSpeed * 0.00153; - Data_40004128.dAutoguideDec += (4 * Data_4000348c + iMountAutoguideDec) * + Data_40004128.dAutoguideDec += (4 * g_iAscomGuideValueDec + iMountAutoguideDec) * dGuidingSpeed * 0.00153; - Data_40002c1c = 0; - Data_40002c20 = 0; + g_iUart0GuideValueRa = 0; + g_iUart0GuideValueDec = 0; } - //6fd3c + + //6fd3c: Handle Meridian Flip + if ((bData_40003211 == 0) && (bTrackingMode == MENU_TRACKING_MODE_TRACKING/*2*/) && (g_dObjectRightAcension < 23.99999)) @@ -5061,6 +4855,7 @@ static void vMainTask(void *pvParameters) } //if (bData_40002c1a == 1) else { +#if 0 //70f38 if ((Data_40004128.bTrackingActive != 0) && (g_bSlewingStop != 1)) { @@ -5282,6 +5077,7 @@ static void vMainTask(void *pvParameters) } //switch (g_eSlewRateIndex) } } //if ((Data_40004128.bTrackingActive != 0) && (g_bSlewingStop != 1)) +#endif } //if (bData_40002c1a != 1) //72040 if ((g_iSlewStepDecAxis != 0) || (g_iSlewStepRaAxis != 0)) @@ -5306,7 +5102,7 @@ static void vMainTask(void *pvParameters) if (bData_40002e7a_MountType == MENU_MOUNT_TYPE_AZ) //0) { //720c0 - func_acd8(); + func_acd8(); //-> empty } else { @@ -5607,14 +5403,17 @@ int main(void) VICVectCntl2 = (1 << 5) | 7; // UART1 -> Slot 2 VICIntEnable = (1 << 7); // Enable UART1 - //ON - IO0CLR = (1 << 16); - +#ifdef LED_TASK + GPIO_LED2_OFF; xTaskCreate( vLEDTask, "LEDTask", /*configMINIMAL_STACK_SIZE*/100, NULL, tskIDLE_PRIORITY+1, NULL ); - xTaskCreate( vMainTask, "MainTask", /*configMINIMAL_STACK_SIZE*/1000, NULL, tskIDLE_PRIORITY+1, NULL ); +#endif + xTaskCreate( vTimerTask, "TimerTask", /*configMINIMAL_STACK_SIZE*/100, NULL, tskIDLE_PRIORITY+2, NULL ); + xTaskCreate( vMainTask, "MainTask", /*configMINIMAL_STACK_SIZE*/1000, NULL, tskIDLE_PRIORITY+2, NULL ); +#if 0 xTaskCreate( vUART0Task, "UART0Task", /*configMINIMAL_STACK_SIZE*/100, NULL, tskIDLE_PRIORITY+3, NULL ); xTaskCreate( vUART1Task, "UART1Task", /*configMINIMAL_STACK_SIZE*/100, NULL, tskIDLE_PRIORITY+3, NULL ); +#endif #if 0 { diff --git a/applications/freertos_app/periph.h b/applications/freertos_app/periph.h new file mode 100644 index 0000000..dea9928 --- /dev/null +++ b/applications/freertos_app/periph.h @@ -0,0 +1,39 @@ + +#include + +#define GPIO_LED2 (1 << 16) //P0.16 +#define GPIO_LED2_OFF (IO0CLR = GPIO_LED2) +#define GPIO_LED2_ON (IO0SET = GPIO_LED2) + +#define GPIO_LED1_3 (1 << 13) //P0.13 +#define GPIO_LED1_3_OFF (IO0SET = GPIO_LED1_3) +#define GPIO_LED1_3_ON (IO0CLR = GPIO_LED1_3) + +#define GPIO_FLASH_CS (1 << 24) //P1.24 +#define ENABLE_FLASH_CS (IO1CLR = GPIO_FLASH_CS) +#define DISABLE_FLASH_CS (IO1SET = GPIO_FLASH_CS) + +#define GPIO_FONTROM_CS (1 << 25) //P1.25 +#define ENABLE_FONTROM_CS (IO1CLR = GPIO_FONTROM_CS) +#define DISABLE_FONTROM_CS (IO1SET = GPIO_FONTROM_CS) + +#define GPIO_LCD_CS (1 << 10) //P0.10 +#define ENABLE_LCD_CS (IOCLR0 |= GPIO_LCD_CS) +#define DISABLE_LCD_CS (IOSET0 |= GPIO_LCD_CS) + +#define GPIO_LCD_SCLK (1 << 12) //P0.12 +#define LCD_SCLK_LO (IO0CLR |= GPIO_LCD_SCLK) +#define LCD_SCLK_HI (IO0SET |= GPIO_LCD_SCLK) + +#define GPIO_LCD_SID (1 << 15) //P0.15 +#define LCD_SID_LO (IO0CLR |= GPIO_LCD_SID) +#define LCD_SID_HI (IO0SET |= GPIO_LCD_SID) + +#define GPIO_LCD_RS (1 << 23) //P1.23 +#define LCD_RS_CONTROL (IO1CLR |= GPIO_LCD_RS) +#define LCD_RS_DATA (IO1SET |= GPIO_LCD_RS) + +#define GPIO_BUZZER (1 << 22) //P1.22 +#define BUZZER_HI (IO1SET = GPIO_BUZZER) +#define BUZZER_LO (IO1CLR = GPIO_BUZZER) + diff --git a/applications/freertos_app/uart.c b/applications/freertos_app/uart.c index b721507..9dafd90 100644 --- a/applications/freertos_app/uart.c +++ b/applications/freertos_app/uart.c @@ -86,6 +86,7 @@ void uart1_isr(void) __irq if (bData_40002c12_uart1ReceiveDataCount == bData_40002c15_uart1ReceiveHeader[3]) { #if 1 +#if 0 BaseType_t xHigherPriorityTaskWokenByPost = pdFALSE; xQueueSendFromISR(xQueueUart1, @@ -96,6 +97,7 @@ void uart1_isr(void) __irq { //portYIELD_FROM_ISR(); } +#endif #else int i; for (i = 0; i < bData_40002c12_uart1ReceiveDataCount; i++) @@ -217,22 +219,22 @@ void uart0_isr(void) __irq switch (uart0ReceiveDataBuffer[0]) { case 1: - Data_40002c1c = -1; + g_iUart0GuideValueRa = -1; uart0ReceiveFlag = 0; break; case 2: - Data_40002c1c = 1; + g_iUart0GuideValueRa = 1; uart0ReceiveFlag = 0; break; case 4: - Data_40002c20 = -1; + g_iUart0GuideValueDec = -1; uart0ReceiveFlag = 0; break; case 8: - Data_40002c20 = 1; + g_iUart0GuideValueDec = 1; uart0ReceiveFlag = 0; break; @@ -394,7 +396,7 @@ void uart1_write_byte(unsigned char a) { U1THR = a; while (!(U1LSR & 0x40)) {} -#if 1 +#if 0 { char buf[20]; snprintf(buf, sizeof(buf)-1, "Tx=0x%02x\n\r", a); diff --git a/applications/v2.3/file_5099c.c b/applications/v2.3/HandleReset.c similarity index 100% rename from applications/v2.3/file_5099c.c rename to applications/v2.3/HandleReset.c diff --git a/v2.3.dump b/v2.3.dump index 3ad7c66..6609493 100644 --- a/v2.3.dump +++ b/v2.3.dump @@ -115143,7 +115143,7 @@ Disassembly of section .text: 4ee88: e1a00000 nop ; (mov r0, r0) 4ee8c: e12fff1e bx lr - +: 4ee90: e92d41fe push {r1, r2, r3, r4, r5, r6, r7, r8, lr} 4ee94: e1a04000 mov r4, r0 4ee98: e1a05001 mov r5, r1 @@ -115830,7 +115830,7 @@ Disassembly of section .text: 4f934: e5d02000 ldrb r2, [r0] 4f938: e3a01004 mov r1, #4 4f93c: e3a00001 mov r0, #1 - 4f940: ebfffd52 bl 0x4ee90 + 4f940: ebfffd52 bl 0x4ee90 4f944: ea000020 b 0x4f9cc 4f948: e59f0bbc ldr r0, [pc, #3004] ; 0x5050c 4f94c: e5d03000 ldrb r3, [r0] @@ -115840,7 +115840,7 @@ Disassembly of section .text: 4f95c: e5d02000 ldrb r2, [r0] 4f960: e1a01003 mov r1, r3 4f964: e3a00003 mov r0, #3 - 4f968: ebfffd48 bl 0x4ee90 + 4f968: ebfffd48 bl 0x4ee90 4f96c: ea000016 b 0x4f9cc 4f970: e51f0914 ldr r0, [pc, #-2324] ; 0x4f064 = 40002c1a 4f974: e5d00000 ldrb r0, [r0] @@ -115854,7 +115854,7 @@ Disassembly of section .text: 4f994: e5d02000 ldrb r2, [r0] 4f998: e3a01004 mov r1, #4 4f99c: e3a00001 mov r0, #1 - 4f9a0: ebfffd3a bl 0x4ee90 + 4f9a0: ebfffd3a bl 0x4ee90 4f9a4: ea000008 b 0x4f9cc 4f9a8: e59f0b5c ldr r0, [pc, #2908] ; 0x5050c = 40002e7d 4f9ac: e5d03000 ldrb r3, [r0] @@ -115864,7 +115864,7 @@ Disassembly of section .text: 4f9bc: e5d02000 ldrb r2, [r0] 4f9c0: e1a01003 mov r1, r3 4f9c4: e3a00003 mov r0, #3 - 4f9c8: ebfffd30 bl 0x4ee90 + 4f9c8: ebfffd30 bl 0x4ee90 4f9cc: ea000001 b 0x4f9d8 4f9d0: e1a00000 nop ; (mov r0, r0) 4f9d4: e1a00000 nop ; (mov r0, r0) @@ -115953,7 +115953,7 @@ Disassembly of section .text: 4fb18: e5d02000 ldrb r2, [r0] 4fb1c: e3a01004 mov r1, #4 4fb20: e3a00001 mov r0, #1 - 4fb24: ebfffcd9 bl 0x4ee90 + 4fb24: ebfffcd9 bl 0x4ee90 4fb28: ea000020 b 0x4fbb0 4fb2c: e59f09d8 ldr r0, [pc, #2520] ; 0x5050c 4fb30: e5d03000 ldrb r3, [r0] @@ -115963,7 +115963,7 @@ Disassembly of section .text: 4fb40: e5d02000 ldrb r2, [r0] 4fb44: e1a01003 mov r1, r3 4fb48: e3a00003 mov r0, #3 - 4fb4c: ebfffccf bl 0x4ee90 + 4fb4c: ebfffccf bl 0x4ee90 4fb50: ea000016 b 0x4fbb0 4fb54: e51f0af8 ldr r0, [pc, #-2808] ; 0x4f064 = 40002c1a 4fb58: e5d00000 ldrb r0, [r0] @@ -115977,7 +115977,7 @@ Disassembly of section .text: 4fb78: e5d02000 ldrb r2, [r0] 4fb7c: e3a01004 mov r1, #4 4fb80: e3a00001 mov r0, #1 - 4fb84: ebfffcc1 bl 0x4ee90 + 4fb84: ebfffcc1 bl 0x4ee90 4fb88: ea000008 b 0x4fbb0 4fb8c: e59f0978 ldr r0, [pc, #2424] ; 0x5050c 4fb90: e5d03000 ldrb r3, [r0] @@ -115987,7 +115987,7 @@ Disassembly of section .text: 4fba0: e5d02000 ldrb r2, [r0] 4fba4: e1a01003 mov r1, r3 4fba8: e3a00003 mov r0, #3 - 4fbac: ebfffcb7 bl 0x4ee90 + 4fbac: ebfffcb7 bl 0x4ee90 4fbb0: ea000001 b 0x4fbbc 4fbb4: e1a00000 nop ; (mov r0, r0) 4fbb8: e1a00000 nop ; (mov r0, r0) @@ -116075,7 +116075,7 @@ Disassembly of section .text: 4fcf8: e5d02000 ldrb r2, [r0] 4fcfc: e3a01003 mov r1, #3 4fd00: e3a00001 mov r0, #1 - 4fd04: ebfffc61 bl 0x4ee90 + 4fd04: ebfffc61 bl 0x4ee90 4fd08: ea000020 b 0x4fd90 4fd0c: e59f07f8 ldr r0, [pc, #2040] ; 0x5050c 4fd10: e5d03000 ldrb r3, [r0] @@ -116085,7 +116085,7 @@ Disassembly of section .text: 4fd20: e5d02000 ldrb r2, [r0] 4fd24: e3a01003 mov r1, #3 4fd28: e1a00001 mov r0, r1 - 4fd2c: ebfffc57 bl 0x4ee90 + 4fd2c: ebfffc57 bl 0x4ee90 4fd30: ea000016 b 0x4fd90 4fd34: e51f0cd8 ldr r0, [pc, #-3288] ; 0x4f064 = 40002c1a 4fd38: e5d00000 ldrb r0, [r0] @@ -116099,7 +116099,7 @@ Disassembly of section .text: 4fd58: e5d02000 ldrb r2, [r0] 4fd5c: e3a01003 mov r1, #3 4fd60: e3a00001 mov r0, #1 - 4fd64: ebfffc49 bl 0x4ee90 + 4fd64: ebfffc49 bl 0x4ee90 4fd68: ea000008 b 0x4fd90 4fd6c: e59f0798 ldr r0, [pc, #1944] ; 0x5050c 4fd70: e5d03000 ldrb r3, [r0] @@ -116109,7 +116109,7 @@ Disassembly of section .text: 4fd80: e5d02000 ldrb r2, [r0] 4fd84: e3a01003 mov r1, #3 4fd88: e1a00001 mov r0, r1 - 4fd8c: ebfffc3f bl 0x4ee90 + 4fd8c: ebfffc3f bl 0x4ee90 4fd90: ea000001 b 0x4fd9c 4fd94: e1a00000 nop ; (mov r0, r0) 4fd98: e1a00000 nop ; (mov r0, r0) @@ -116196,7 +116196,7 @@ Disassembly of section .text: 4fed4: e5d02000 ldrb r2, [r0] 4fed8: e3a01003 mov r1, #3 4fedc: e3a00001 mov r0, #1 - 4fee0: ebfffbea bl 0x4ee90 + 4fee0: ebfffbea bl 0x4ee90 4fee4: ea000020 b 0x4ff6c 4fee8: e59f061c ldr r0, [pc, #1564] ; 0x5050c 4feec: e5d03000 ldrb r3, [r0] @@ -116206,7 +116206,7 @@ Disassembly of section .text: 4fefc: e5d02000 ldrb r2, [r0] 4ff00: e3a01003 mov r1, #3 4ff04: e1a00001 mov r0, r1 - 4ff08: ebfffbe0 bl 0x4ee90 + 4ff08: ebfffbe0 bl 0x4ee90 4ff0c: ea000016 b 0x4ff6c 4ff10: e51f0eb4 ldr r0, [pc, #-3764] ; 0x4f064 = 40002c1a 4ff14: e5d00000 ldrb r0, [r0] @@ -116220,7 +116220,7 @@ Disassembly of section .text: 4ff34: e5d02000 ldrb r2, [r0] 4ff38: e3a01003 mov r1, #3 4ff3c: e3a00001 mov r0, #1 - 4ff40: ebfffbd2 bl 0x4ee90 + 4ff40: ebfffbd2 bl 0x4ee90 4ff44: ea000008 b 0x4ff6c 4ff48: e59f05bc ldr r0, [pc, #1468] ; 0x5050c 4ff4c: e5d03000 ldrb r3, [r0] @@ -116230,7 +116230,7 @@ Disassembly of section .text: 4ff5c: e5d02000 ldrb r2, [r0] 4ff60: e3a01003 mov r1, #3 4ff64: e1a00001 mov r0, r1 - 4ff68: ebfffbc8 bl 0x4ee90 + 4ff68: ebfffbc8 bl 0x4ee90 4ff6c: ea000001 b 0x4ff78 4ff70: e1a00000 nop ; (mov r0, r0) 4ff74: e1a00000 nop ; (mov r0, r0)