Subversion Repositories SvarDOS

Rev

Rev 1489 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1489 Rev 1490
Line 120... Line 120...
120
; if CX == 0 then found a LANG= match
120
; if CX == 0 then found a LANG= match
121
jcxz    FOUND_LANG
121
jcxz    FOUND_LANG
122
 
122
 
123
; otherwise jump to next var (look for nearest nul terminator)
123
; otherwise jump to next var (look for nearest nul terminator)
124
xor     al, al
124
xor     al, al
125
mov     cx, 0ffffh
125
mov     ch, 0ffh
126
repne   scasb                          ; compare AL with [ES:DI++]
126
repne   scasb                          ; compare AL with [ES:DI++]
127
jmp     short CMP_NEXT_VAR
127
jmp     short CMP_NEXT_VAR
128
 
128
 
129
; FOUND THE LANG VARIABLE (at ES:DI)
129
; FOUND THE LANG VARIABLE (at ES:DI)
130
FOUND_LANG:
130
FOUND_LANG:
Line 148... Line 148...
148
je      LANGIDOK
148
je      LANGIDOK
149
 
149
 
150
; skip string (look for its $ terminator) and repeat
150
; skip string (look for its $ terminator) and repeat
151
SKIPLANG:
151
SKIPLANG:
152
mov     al, '$'
152
mov     al, '$'
153
mov     cx, 0ffffh
153
mov     ch, 0ffh
154
repne   scasb                          ; compare AL with [ES:DI++]
154
repne   scasb                          ; compare AL with [ES:DI++]
155
jmp     short NEXTLANG
155
jmp     short NEXTLANG
156
 
156
 
157
LANGIDOK:
157
LANGIDOK:
158
mov     bp, di                         ; ptr to localized msg is always in BP
158
mov     bp, di                         ; ptr to localized msg is always in BP