Changeset 492 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/StringsCompressed.asm


Ignore:
Timestamp:
Dec 21, 2012, 1:01:55 AM (11 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Removed the dependency between MODULE_BOOT_MENU and MODULE_HOTKEYS. With these changes, 0, 1, or 2 of them can be included in a build. This change also means that the hotkeys don't work while the menu is up. But the most important hotkey there was for Rom Boot, and that has been added to the menu as a choice proper. Lots of changes across the board in the hotkeys code - even if we eventually back this change out (becaue, for example we want hotkeys to work in the menu) we should probably start from this base and add that functionality back in, as these changes results in approximately 120 bytes of savings and includes new functionality, such as the Rom Boot menu item and the Com Detect hotkey.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/StringsCompressed.asm

    r491 r492  
    129129                          db     48h,  75h,  75h,  7ah,  6fh,  74h, 0edh,  3ch,  24h,  3ch,  19h                                  ; compressed
    130130
    131 g_szBootSectorNotFound: ; db    "Boot sector "
     131g_szBootSectorNotFound: ; db    "Boot sector "          ; String fall through...
    132132                        ; db     42h,  6fh,  6fh,  74h,  20h,  73h,  65h,  63h,  74h,  6fh,  72h,  20h    ; uncompressed
    133133                          db     48h,  75h,  75h, 0fah,  79h,  6bh,  69h,  7ah,  75h, 0f8h                ; compressed
     
    145145%ifdef MODULE_HOTKEYS
    146146; Hotkey Bar strings
    147 g_szFDD:        ; db    "FDD [%c]",NULL         ; "FDD [A]"
    148                 ; db     46h,  44h,  44h,  20h,  5bh,  25h,  63h,  5dh,  00h    ; uncompressed
    149                   db     4ch,  4ah, 0cah,  61h,  3ch, 0a3h                      ; compressed
    150 
    151 g_szHDD:        ; db    "HDD [%c]",NULL         ; "HDD [C]"
    152                 ; db     48h,  44h,  44h,  20h,  5bh,  25h,  63h,  5dh,  00h    ; uncompressed
    153                   db     4eh,  4ah, 0cah,  61h,  3ch, 0a3h                      ; compressed
    154 
    155 g_szBootMenu:   ; db    "%sMnu",NULL            ; "BootMnu"
    156                 ; db     25h,  73h,  4dh,  6eh,  75h,  00h    ; uncompressed
    157                   db     3dh,  53h,  74h, 0bbh                ; compressed
    158 
    159 g_szRomBoot:    ; db    "Rom%s",NULL            ; "RomBoot"
    160                 ; db     52h,  6fh,  6dh,  25h,  73h,  00h    ; uncompressed
    161                   db     58h,  75h,  73h,  1dh                ; compressed
    162 
    163 g_szBoot:       ; db    "Boot",NULL
    164                 ; db     42h,  6fh,  6fh,  74h,  00h    ; uncompressed
    165                   db     48h,  75h,  75h, 0bah          ; compressed
    166 
    167 g_szHotkey:     ; db    "%A%c%c%A%s%A ",NULL    ; "C»HDD [A] ", "F2BootMnu " or "F8RomBoot "
    168                 ; db     25h,  41h,  25h,  63h,  25h,  63h,  25h,  41h,  25h,  73h,  25h,  41h,  20h,  00h    ; uncompressed
    169                   db     3bh,  3ch,  3ch,  3bh,  3dh,  3bh,  00h                                              ; compressed
    170 
     147g_szFDD:                ; db    "FDD [%c]",NULL         ; "FDD [A]"
     148                        ; db     46h,  44h,  44h,  20h,  5bh,  25h,  63h,  5dh,  00h    ; uncompressed
     149                          db     4ch,  4ah, 0cah,  61h,  3ch, 0a3h                      ; compressed
     150
     151g_szHDD:                ; db    "HDD [%c]",NULL         ; "HDD [C]"
     152                        ; db     48h,  44h,  44h,  20h,  5bh,  25h,  63h,  5dh,  00h    ; uncompressed
     153                          db     4eh,  4ah, 0cah,  61h,  3ch, 0a3h                      ; compressed
     154
     155%ifdef MODULE_BOOT_MENU
     156g_szBootMenu:           ; db    "BootMnu%c",NULL        ; "BootMnu", location of %c doesn't matter
     157                        ; db     42h,  6fh,  6fh,  74h,  4dh,  6eh,  75h,  25h,  63h,  00h    ; uncompressed
     158                          db     48h,  75h,  75h,  7ah,  53h,  74h,  7bh,  1ch                ; compressed
     159
     160%endif ; MODULE_BOOT_MENU
     161g_szHotkey:             ; db    "%A%c%c%A%s%A ",NULL    ; "C»HDD [A] ", "F2BootMnu " or "F8RomBoot "
     162                        ; db     25h,  41h,  25h,  63h,  25h,  63h,  25h,  41h,  25h,  73h,  25h,  41h,  20h,  00h    ; uncompressed
     163                          db     3bh,  3ch,  3ch,  3bh,  3dh,  3bh,  00h                                              ; compressed
     164
     165%ifdef MODULE_SERIAL
     166g_szHotComDetect:       ; db    "ComDtct%c",NULL        ; "ComDtct", location of %c doesn't matter
     167                        ; db     43h,  6fh,  6dh,  44h,  74h,  63h,  74h,  25h,  63h,  00h    ; uncompressed
     168                          db     49h,  75h,  73h,  4ah,  7ah,  69h,  7ah,  1ch                ; compressed
     169
     170%endif ; MODULE_SERIAL
     171%endif ; MODULE_HOTKEYS
     172
     173%ifdef MODULE_BOOT_MENU
     174g_szRomBootDash:        ; db    " -  "                  ; String fall through to g_szRomBoot
     175                        ; db     20h,  2dh,  20h,  20h    ; uncompressed
     176                          db     20h,  28h,  20h,  20h    ; compressed
     177
     178%endif
     179%ifdef MODULE_HOTKEYS OR MODULE_BOOT_MENU       
     180g_szRomBoot:            ; db    "Rom%cBoot", NULL       ; "RomBoot" or "Rom Boot"
     181                        ; db     52h,  6fh,  6dh,  25h,  63h,  42h,  6fh,  6fh,  74h,  00h    ; uncompressed
     182                          db     58h,  75h,  73h,  3ch,  48h,  75h,  75h, 0bah                ; compressed
     183
     184%endif
    171185
    172186
     
    353367; which is checked at assembly time below.
    354368;
     369g_szDriveNumSpace:      ; db    " "                         ; leading space, used if drive number is less than 0fh
     370                        ; db     20h    ; uncompressed
     371                          db     20h    ; compressed
     372
     373; must come immediately before g_szDriveNum!
    355374g_szBootMenuPrintStart:
    356375g_szDriveNum:           ; db    "%x %s",NULL
     
    358377                          db     37h,  20h,  1dh                      ; compressed
    359378
     379g_szDriveNumBNSpace:    ; db    " "                         ; leading space, used if drive number is less than 0fh
     380                        ; db     20h    ; uncompressed
     381                          db     20h    ; compressed
     382
     383; must come immediately before g_szDriveNumBOOTNFO!
    360384g_szDriveNumBOOTNFO:    ; db    "%x %z",NULL
    361385                        ; db     25h,  78h,  20h,  25h,  7ah,  00h    ; uncompressed
     
    376400%error "g_szBootMenuPrint* strings must start on the same 256 byte page, required by the BootMenuPrint_* routines.  Please move this block up or down within Strings.asm"
    377401%endif
     402%if g_szDriveNumSpace+1 != g_szDriveNum || g_szDriveNumBNSpace+1 != g_szDriveNumBOOTNFO
     403%error "g_szDriveNumSpace or g_szDriveNumBNSpace are out of position"
     404%endif
    378405%endif
    379406
    380407%endif ; MODULE_BOOT_MENU
    381 %endif ; MODULE_HOTKEYS
    382408
    383409
     
    528554;; translated usage stats
    529555;; 33:1
    530 ;; 32:29
     556;; 32:34
    531557;; 181:1
    532558;; 53:2
     
    543569;; 49:1
    544570;; 56:7
    545 ;; 45:1
     571;; 45:2
    546572;; 175:1
    547573;; 171:2
     
    554580;; 5-u:2
    555581;; x:5
    556 ;; s:16
     582;; s:14
    557583;; 5-x:1
    558584;; nl:12
    559585;; 2-I:1
    560586;; u:6
    561 ;; c:10
     587;; c:13
    562588;; z:2
    563589;; total format: 11
     
    572598;; 64,@:1
    573599;; 65,A:5
    574 ;; 66,B:8
    575 ;; 67,C:2
    576 ;; 68,D:10
     600;; 66,B:9
     601;; 67,C:3
     602;; 68,D:11
    577603;; 69,E:3
    578604;; 70,F:3
     
    605631;; 97,a:7
    606632;; 98,b:
    607 ;; 99,c:5
     633;; 99,c:6
    608634;; 100,d:6
    609635;; 101,e:15
     
    615641;; 107,k:4
    616642;; 108,l:5
    617 ;; 109,m:1
     643;; 109,m:2
    618644;; 110,n:11
    619 ;; 111,o:17
     645;; 111,o:20
    620646;; 112,p:3
    621647;; 113,q:
    622648;; 114,r:11
    623649;; 115,s:7
    624 ;; 116,t:12
     650;; 116,t:15
    625651;; 117,u:4
    626652;; 118,v:3
Note: See TracChangeset for help on using the changeset viewer.