-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path605E.asm
64 lines (55 loc) · 1.48 KB
/
605E.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
52
53
54
55
56
57
58
59
60
61
62
*Title Disassembling CGEN.COM Hi-Tech C v3.09
*Heading Checking recreated code with original
; File - 605E.asm Created 09.03.2019 Last Modified 31.01.2021
;=========================================================
; sub_605E OK++
;=========================================================
global _sub_605E ; global _sub_605E
global ncsv,cret,indir ; global ncsv,cret,indir
global csv ; global csv
psect text
; Disassembled version ; After compiling C source code
_sub_605E:
call csv ; call csv
ld l,(ix+6) ; ld l,(ix+6)
ld h,(ix+7) ; ld h,(ix+7)
ld a,h ; ld a,h
or a ; or a
jr nz,loc_6084 ; jp nz,l12
ld a,l ; ld a,l
cp 2 ; cp 2
jr z,loc_6084 ; jp z,l12
cp 1Eh ; cp 30
jr z,loc_6090 ; jp z,l15
cp 20h ; cp 32
jr z,loc_6096 ; jp z,l16
cp 29h ; cp 41
jr z,loc_608A ; jp z,l17
cp 2Dh ; cp 45
jr z,loc_60A2 ; jp z,l18
cp 2Eh ; cp 46
jr z,loc_609C ; jp z,l19
loc_6084: ;l12:
ld hl,29h ; ld hl,41
jp cret ; jp cret
loc_608A: ;l17:
ld hl,2 ; ld hl,2
jp cret ; jp cret
loc_6090: ;l15:
ld hl,2Eh ; ld hl,46
jp cret ; jp cret
loc_6096: ;l16:
ld hl,2Dh ; ld hl,45
jp cret ; jp cret
loc_609C: ;l19:
ld hl,1Eh ; ld hl,30
jp cret ; jp cret
loc_60A2: ;l18:
ld hl,20h ; ld hl,32
jp cret ; jp cret
; Compiler generates identical code from restored source
; program in C, however, location of branches associated
; with case constants is different from original.
; This does not affect the function.
; End of function sub_605E
; End of file 605E.asm