-
Notifications
You must be signed in to change notification settings - Fork 5
/
CHK_F386.ASM
51 lines (41 loc) · 1.11 KB
/
CHK_F386.ASM
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
;******************************************************************************
; Free386 chcker
;******************************************************************************
;
;[TAB=8]
;------------------------------------------------------------------------------
%macro PRINT 1
mov edx,%1
mov ah,09h
int 21h
%endmacro
;------------------------------------------------------------------------------
segment text align=4 class=CODE use32
;------------------------------------------------------------------------------
..start:
mov ah ,30h
mov ebx,'RAHP'
int 21h
mov [ext_ver_str+1], ebx
mov bh, '.'
mov [ext_ver_str], bx
PRINT msg_ext_ver
mov ah ,30h
mov ebx,'F386'
int 21h
cmp edx,' ABK'
jne not_f386
PRINT msg_is_f386
int 0ffh
jmp end
not_f386:
PRINT msg_not_f386
end:
mov ah,4ch
xor al,al
int 21h
msg_ext_ver db 'DOS-Extender Version: '
ext_ver_str db 'X.XXX',13,10,'$'
msg_is_f386 db 'DOS-Extender is Free386!',13,10
db 'Do register dump by Free386 int 0ffh function.',13,10,13,10,'$'
msg_not_f386 db 'DOS-Extender is not Free386!',13,10,'$'