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


Ignore:
Timestamp:
May 9, 2012, 7:12:53 PM (12 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Addressing modes are now NORMAL, LARGE and LBA.
  • L-CHS parameters are now generated differently for drives with 8192 or less cylinders.
File:
1 edited

Legend:

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

    r417 r421  
    185185
    186186g_szAddressingModes:
    187 g_szLCHS:       ; db    "L-CHS",NULL
    188                 ; db     4ch,  2dh,  43h,  48h,  53h,  00h    ; uncompressed
    189                   db     52h,  28h,  49h,  4eh,  99h          ; compressed
    190 
    191 g_szPCHS:       ; db    "P-CHS",NULL
    192                 ; db     50h,  2dh,  43h,  48h,  53h,  00h    ; uncompressed
    193                   db     56h,  28h,  49h,  4eh,  99h          ; compressed
    194 
    195 g_szLBA28:      ; db    "LBA28",NULL
    196                 ; db     4ch,  42h,  41h,  32h,  38h,  00h    ; uncompressed
    197                   db     52h,  48h,  47h,  2ch,  11h          ; compressed
    198 
    199 g_szLBA48:      ; db    "LBA48",NULL
    200                 ; db     4ch,  42h,  41h,  34h,  38h,  00h    ; uncompressed
    201                   db     52h,  48h,  47h,  2eh,  11h          ; compressed
    202 
    203 g_szAddressingModes_Displacement equ (g_szPCHS - g_szAddressingModes)
     187g_szNORMAL:     ; db    "NORMAL",NULL
     188                ; db     4eh,  4fh,  52h,  4dh,  41h,  4ch,  00h    ; uncompressed
     189                  db     54h,  55h,  58h,  53h,  47h,  92h          ; compressed
     190
     191g_szLARGE:      ; db    "LARGE ",NULL
     192                ; db     4ch,  41h,  52h,  47h,  45h,  20h,  00h    ; uncompressed
     193                  db     52h,  47h,  58h,  4dh,  4bh,  00h          ; compressed
     194
     195g_szLBA:        ; db    "LBA   ",NULL
     196                ; db     4ch,  42h,  41h,  20h,  20h,  20h,  00h    ; uncompressed
     197                  db     52h,  48h, 0c7h,  20h,  00h                ; compressed
     198
     199wantToRemoveThis:   ; db    "4",NULL    ; String compression want '4' somewhere
     200                    ; db     34h,  00h    ; uncompressed
     201                      db     0eh          ; compressed
     202
     203g_szAddressingModes_Displacement equ (g_szLARGE - g_szAddressingModes)
    204204;
    205205; Ensure that addressing modes are correctly spaced in memory
    206206;
    207207%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
    208 %if g_szLCHS <> g_szAddressingModes
     208%if g_szNORMAL <> g_szAddressingModes
    209209%error "g_szAddressingModes Displacement Incorrect 1"
    210210%endif
    211 %if g_szPCHS <> g_szLCHS + g_szAddressingModes_Displacement
     211%if g_szLARGE <> g_szNORMAL + g_szAddressingModes_Displacement
    212212%error "g_szAddressingModes Displacement Incorrect 2"
    213213%endif
    214 %if g_szLBA28 <> g_szPCHS + g_szAddressingModes_Displacement
     214%if g_szLBA <> g_szLARGE + g_szAddressingModes_Displacement
    215215%error "g_szAddressingModes Displacement Incorrect 3"
    216 %endif
    217 %if g_szLBA48 <> g_szLBA28 + g_szAddressingModes_Displacement
    218 %error "g_szAddressingModes Displacement Incorrect 4"
    219216%endif
    220217%endif
     
    299296                          db     3eh,  3bh                ; compressed
    300297
    301     ; db    "Addr.",SINGLE_VERTICAL,"Block",SINGLE_VERTICAL,"Bus",SINGLE_VERTICAL,  "IRQ",SINGLE_VERTICAL,"Reset",LF,CR
    302     ; db     41h,  64h,  64h,  72h,  2eh, 0b3h,  42h,  6ch,  6fh,  63h,  6bh, 0b3h,  42h,  75h,  73h, 0b3h,  49h,  52h,  51h, 0b3h,  52h,  65h,  73h,  65h,  74h,  0ah,  0dh    ; uncompressed
    303       db     47h,  6ah,  6ah,  78h,  29h,  23h,  48h,  72h,  75h,  69h,  71h,  23h,  48h,  7bh,  79h,  23h,  4fh,  58h,  57h,  23h,  58h,  6bh,  79h,  6bh,  7ah,  3bh          ; compressed
     298    ; db    "Addr. ",SINGLE_VERTICAL,"Block",SINGLE_VERTICAL,"Bus",SINGLE_VERTICAL,  "IRQ",SINGLE_VERTICAL,"Reset",LF,CR
     299    ; db     41h,  64h,  64h,  72h,  2eh,  20h, 0b3h,  42h,  6ch,  6fh,  63h,  6bh, 0b3h,  42h,  75h,  73h, 0b3h,  49h,  52h,  51h, 0b3h,  52h,  65h,  73h,  65h,  74h,  0ah,  0dh    ; uncompressed
     300      db     47h,  6ah,  6ah,  78h,  29h,  20h,  23h,  48h,  72h,  75h,  69h,  71h,  23h,  48h,  7bh,  79h,  23h,  4fh,  58h,  57h,  23h,  58h,  6bh,  79h,  6bh,  7ah,  3bh          ; compressed
    304301
    305302    ; db       "%s",SINGLE_VERTICAL, "%5-u",SINGLE_VERTICAL, "%s",SINGLE_VERTICAL," %2-I",SINGLE_VERTICAL,"%5-x" ,NULL
     
    362359;$translate{ord('2')} = 12;    [StringsCompress Processed]
    363360;$translate{ord('3')} = 13;    [StringsCompress Processed]
    364 ;$translate{ord('4')} = 14;    [StringsCompress Processed]
     361;$translate{ord('4')} = 14; ; Not used at the moment    [StringsCompress Processed]
    365362;$translate{ord('5')} = 15;    [StringsCompress Processed]
    366363;$translate{ord('6')} = 16;    [StringsCompress Processed]
     
    478475;; translated usage stats
    479476;; 33:1
    480 ;; 32:22
     477;; 32:26
    481478;; 181:1
    482479;; 53:2
     
    486483;; 179:8
    487484;; 44:1
    488 ;; 50:3
     485;; 50:2
    489486;; 51:3
    490487;; 47:2
     
    493490;; 34:3
    494491;; 49:1
    495 ;; 56:6
    496 ;; 45:3
     492;; 56:4
     493;; 45:1
    497494;; 175:1
    498495;; 171:2
     
    522519;; 63,?:
    523520;; 64,@:1
    524 ;; 65,A:3
    525 ;; 66,B:9
    526 ;; 67,C:4
     521;; 65,A:4
     522;; 66,B:8
     523;; 67,C:2
    527524;; 68,D:10
    528 ;; 69,E:2
     525;; 69,E:3
    529526;; 70,F:4
    530 ;; 71,G:2
    531 ;; 72,H:4
     527;; 71,G:3
     528;; 72,H:2
    532529;; 73,I:1
    533530;; 74,J:
    534531;; 75,K:1
    535532;; 76,L:4
    536 ;; 77,M:4
    537 ;; 78,N:1
    538 ;; 79,O:1
    539 ;; 80,P:2
     533;; 77,M:5
     534;; 78,N:2
     535;; 79,O:2
     536;; 80,P:1
    540537;; 81,Q:1
    541 ;; 82,R:5
    542 ;; 83,S:5
     538;; 82,R:7
     539;; 83,S:3
    543540;; 84,T:
    544541;; 85,U:2
Note: See TracChangeset for help on using the changeset viewer.