-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
th05_gjinit.asm
74 lines (66 loc) · 1.78 KB
/
th05_gjinit.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
63
64
65
66
67
68
69
70
71
72
73
74
;
; +-------------------------------------------------------------------------+
; | This file has been generated by The Interactive Disassembler (IDA) |
; | Copyright (c) 2009 by Hex-Rays, <[email protected]> |
; +-------------------------------------------------------------------------+
;
; Input MD5 : 7C8F4CAB7F06B9A218E838D50BB4E314
; File Name : D:\Dev\PC98\Games\th05\zun_arc_g_gjinit.com
; Format : MS-DOS COM-file
; Base Address: 0h Range: 100h-21B9h Loaded length: 20B9h
; OS type : MS DOS
; Application type: Executable 16bit
.8086
.model tiny
.code
org 100h
; =============== S U B R O U T I N E =======================================
public start
start proc near
mov dx, offset aGaijiSetupProg ; "\x1B*GAIJI Setup Program "...
mov ah, 9
int 21h ; DOS - PRINT STRING
; DS:DX -> string terminated by "$"
mov si, offset _sGAIJI
mov al, 0Bh
out 68h, al
xor dx, dx
loc_110:
mov ax, dx
add ax, 5680h
and al, 7Fh
out 0A1h, al
mov al, ah
out 0A3h, al
mov cx, 10h
xor bl, bl
loc_122:
mov al, bl
or al, 20h
out 0A5h, al
lodsw
out 0A9h, al
mov al, bl
out 0A5h, al
mov al, ah
out 0A9h, al
inc bl
loop loc_122
inc dl
jnz short loc_110
mov al, 0Ah
out 68h, al
mov dx, offset aKooV ; "外字を定義しましたわ\r\n\r\n$"
mov ah, 9
int 21h ; DOS - PRINT STRING
; DS:DX -> string terminated by "$"
mov ax, 4C00h
int 21h ; DOS - 2+ - QUIT WITH EXIT CODE (EXIT)
start endp ; AL = exit code
; ---------------------------------------------------------------------------
.data
aGaijiSetupProg db 1Bh,'*GAIJI Setup Program Version 1.00 (C)1998 ZUN',0Dh,0Ah,'$'
aKooV db '外字を定義しましたわ',0Dh,0Ah
db 0Dh,0Ah,'$'
include th05/sprites/gaiji.asp
end start