2014-07-02 17:18:32 +00:00
|
|
|
;
|
|
|
|
; +-------------------------------------------------------------------------+
|
|
|
|
; | This file has been generated by The Interactive Disassembler (IDA) |
|
|
|
|
; | Copyright (c) 2009 by Hex-Rays, <support@hex-rays.com> |
|
|
|
|
; +-------------------------------------------------------------------------+
|
|
|
|
;
|
|
|
|
; Input MD5 : 9FB2839DB50F38119D0B98D4FB70CD0E
|
|
|
|
|
|
|
|
; File Name : th02/OP.EXE
|
|
|
|
; Format : MS-DOS executable (EXE)
|
|
|
|
; Base Address: 0h Range: 0h-F9F0h Loaded length: E8F8h
|
|
|
|
; Entry Point : 0:0
|
|
|
|
; OS type : MS DOS
|
|
|
|
; Application type: Executable 16bit
|
|
|
|
|
2014-10-31 06:17:05 +00:00
|
|
|
.286 ; Force the .model directive to create 16-bit default segments...
|
2015-02-21 11:47:24 +00:00
|
|
|
.model large op_02_TEXT
|
2014-10-31 06:17:05 +00:00
|
|
|
__LARGE__ equ 1
|
|
|
|
.386 ; ... then switch to what we actually need.
|
|
|
|
; And yes, we can't move this to an include file for some reason.
|
2014-07-02 17:18:32 +00:00
|
|
|
|
2014-08-22 15:06:33 +00:00
|
|
|
include ReC98.inc
|
2019-09-20 19:02:20 +00:00
|
|
|
include th02/th02.inc
|
2015-02-19 06:46:36 +00:00
|
|
|
|
2014-07-02 17:18:32 +00:00
|
|
|
; ===========================================================================
|
|
|
|
|
|
|
|
; Segment type: Pure code
|
2015-02-18 11:07:37 +00:00
|
|
|
_TEXT segment word public 'CODE' use16
|
|
|
|
assume cs:_TEXT
|
2015-02-19 06:46:36 +00:00
|
|
|
assume es:nothing, ds:_DATA, fs:nothing, gs:nothing
|
2014-07-02 17:18:32 +00:00
|
|
|
|
2014-08-23 09:51:14 +00:00
|
|
|
include libs/master.lib/bfnt_entry_pat.asm
|
2014-08-23 10:23:03 +00:00
|
|
|
include libs/master.lib/bfnt_extend_header_skip.asm
|
2014-08-23 10:08:48 +00:00
|
|
|
include libs/master.lib/bfnt_header_read.asm
|
2014-08-23 11:18:32 +00:00
|
|
|
include libs/master.lib/bfnt_header_analysis.asm
|
2014-08-26 18:54:57 +00:00
|
|
|
include libs/master.lib/bcloser.asm
|
2014-08-10 09:47:36 +00:00
|
|
|
include libs/master.lib/bfill.asm
|
2014-08-23 14:56:01 +00:00
|
|
|
include libs/master.lib/bfnt_palette_set.asm
|
2014-08-26 19:23:54 +00:00
|
|
|
include libs/master.lib/bgetc.asm
|
2014-08-26 22:21:45 +00:00
|
|
|
include libs/master.lib/palette_black_in.asm
|
2014-08-26 22:33:43 +00:00
|
|
|
include libs/master.lib/palette_black_out.asm
|
2014-08-27 00:54:57 +00:00
|
|
|
include libs/master.lib/bopenr.asm
|
2014-08-26 19:34:06 +00:00
|
|
|
include libs/master.lib/bread.asm
|
2014-08-26 20:04:11 +00:00
|
|
|
include libs/master.lib/bseek.asm
|
2014-08-26 20:15:00 +00:00
|
|
|
include libs/master.lib/bseek_.asm
|
2014-08-23 01:03:17 +00:00
|
|
|
include libs/master.lib/dos_axdx.asm
|
2014-08-22 23:38:22 +00:00
|
|
|
include libs/master.lib/dos_setvect.asm
|
2014-08-20 20:24:05 +00:00
|
|
|
include libs/master.lib/egc.asm
|
2014-08-30 06:15:42 +00:00
|
|
|
include libs/master.lib/file_close.asm
|
2014-08-30 06:32:10 +00:00
|
|
|
include libs/master.lib/file_create.asm
|
2014-08-30 06:46:38 +00:00
|
|
|
include libs/master.lib/file_exist.asm
|
2014-08-30 07:00:31 +00:00
|
|
|
include libs/master.lib/file_read.asm
|
2014-08-30 07:12:17 +00:00
|
|
|
include libs/master.lib/file_ropen.asm
|
2014-08-30 07:21:44 +00:00
|
|
|
include libs/master.lib/file_seek.asm
|
2014-08-30 07:38:09 +00:00
|
|
|
include libs/master.lib/file_write.asm
|
2014-08-22 22:46:33 +00:00
|
|
|
include libs/master.lib/dos_close.asm
|
2014-08-21 20:07:58 +00:00
|
|
|
include libs/master.lib/dos_ropen.asm
|
2014-08-28 03:31:57 +00:00
|
|
|
include libs/master.lib/grcg_boxfill.asm
|
2014-08-31 06:36:33 +00:00
|
|
|
include libs/master.lib/grc_setclip.asm
|
2014-08-31 10:22:19 +00:00
|
|
|
include libs/master.lib/grcg_fill.asm
|
2014-08-27 22:17:57 +00:00
|
|
|
include libs/master.lib/grcg_hline.asm
|
2014-09-01 04:52:28 +00:00
|
|
|
include libs/master.lib/grcg_polygon_c.asm
|
2014-09-01 19:08:57 +00:00
|
|
|
include libs/master.lib/grcg_round_boxfill.asm
|
2014-08-27 04:52:58 +00:00
|
|
|
include libs/master.lib/grcg_setcolor.asm
|
2014-08-31 08:23:41 +00:00
|
|
|
include libs/master.lib/gaiji_backup.asm
|
2014-08-31 08:08:09 +00:00
|
|
|
include libs/master.lib/gaiji_entry_bfnt.asm
|
2014-08-31 02:56:17 +00:00
|
|
|
include libs/master.lib/gaiji_putca.asm
|
2014-08-31 03:05:48 +00:00
|
|
|
include libs/master.lib/gaiji_putsa.asm
|
2014-08-31 07:40:28 +00:00
|
|
|
include libs/master.lib/gaiji_read.asm
|
2014-08-31 07:50:38 +00:00
|
|
|
include libs/master.lib/gaiji_write.asm
|
2014-08-27 22:58:40 +00:00
|
|
|
include libs/master.lib/graph_400line.asm
|
2014-08-27 04:03:08 +00:00
|
|
|
include libs/master.lib/graph_clear.asm
|
2014-08-27 04:13:48 +00:00
|
|
|
include libs/master.lib/graph_copy_page.asm
|
2014-08-15 14:11:51 +00:00
|
|
|
include libs/master.lib/graph_extmode.asm
|
2014-09-14 15:39:30 +00:00
|
|
|
include libs/master.lib/graph_gaiji_putc.asm
|
2014-09-15 01:03:52 +00:00
|
|
|
include libs/master.lib/graph_gaiji_puts.asm
|
2014-08-21 23:39:42 +00:00
|
|
|
include libs/master.lib/graph_pi_free.asm
|
2014-08-22 19:15:44 +00:00
|
|
|
include libs/master.lib/graph_pi_load_pack.asm
|
2014-08-31 05:26:45 +00:00
|
|
|
include libs/master.lib/graph_pack_put_8.asm
|
2014-08-27 03:18:17 +00:00
|
|
|
include libs/master.lib/graph_show.asm
|
2014-08-27 23:16:54 +00:00
|
|
|
include libs/master.lib/graph_start.asm
|
2014-08-23 12:01:53 +00:00
|
|
|
include libs/master.lib/keybeep.asm
|
2014-08-31 16:08:50 +00:00
|
|
|
include libs/master.lib/draw_trapezoid.asm
|
2014-08-27 03:05:30 +00:00
|
|
|
include libs/master.lib/make_linework.asm
|
2014-08-23 14:18:30 +00:00
|
|
|
include libs/master.lib/palette_init.asm
|
2014-08-23 14:11:16 +00:00
|
|
|
include libs/master.lib/palette_show.asm
|
2014-08-27 01:11:13 +00:00
|
|
|
include libs/master.lib/pfclose.asm
|
2014-09-07 13:07:36 +00:00
|
|
|
include libs/master.lib/pfgetc.asm
|
2014-08-30 10:50:48 +00:00
|
|
|
include libs/master.lib/pfread.asm
|
2014-08-30 10:33:48 +00:00
|
|
|
include libs/master.lib/pfrewind.asm
|
2014-08-30 10:26:02 +00:00
|
|
|
include libs/master.lib/pfseek.asm
|
2014-08-30 10:13:04 +00:00
|
|
|
include libs/master.lib/random.asm
|
2014-08-31 03:14:54 +00:00
|
|
|
include libs/master.lib/palette_entry_rgb.asm
|
2014-08-23 01:15:17 +00:00
|
|
|
include libs/master.lib/rottbl.asm
|
2014-08-21 22:59:18 +00:00
|
|
|
include libs/master.lib/smem_release.asm
|
2014-08-21 23:04:46 +00:00
|
|
|
include libs/master.lib/smem_wget.asm
|
2014-10-20 15:20:04 +00:00
|
|
|
include libs/master.lib/text_clear.asm
|
|
|
|
include libs/master.lib/txesc.asm
|
2014-08-26 20:02:09 +00:00
|
|
|
include libs/master.lib/text_fillca.asm
|
2014-08-31 03:41:23 +00:00
|
|
|
include libs/master.lib/text_putca.asm
|
2014-08-31 03:52:43 +00:00
|
|
|
include libs/master.lib/text_putsa.asm
|
2014-08-26 21:58:08 +00:00
|
|
|
include libs/master.lib/vsync.asm
|
2014-08-26 22:11:29 +00:00
|
|
|
include libs/master.lib/vsync_wait.asm
|
2014-08-26 22:52:29 +00:00
|
|
|
include libs/master.lib/palette_white_in.asm
|
2014-08-21 23:19:52 +00:00
|
|
|
include libs/master.lib/hmem_lallocate.asm
|
2014-08-21 21:30:20 +00:00
|
|
|
include libs/master.lib/mem_assign_dos.asm
|
2014-08-21 21:05:54 +00:00
|
|
|
include libs/master.lib/mem_assign.asm
|
2014-08-21 22:17:53 +00:00
|
|
|
include libs/master.lib/memheap.asm
|
2014-09-08 18:30:15 +00:00
|
|
|
include libs/master.lib/mem_unassign.asm
|
2014-08-22 21:45:21 +00:00
|
|
|
include libs/master.lib/super_free.asm
|
2014-08-22 22:17:59 +00:00
|
|
|
include libs/master.lib/super_entry_pat.asm
|
2014-08-22 21:56:33 +00:00
|
|
|
include libs/master.lib/super_entry_at.asm
|
2014-08-23 16:07:02 +00:00
|
|
|
include libs/master.lib/super_entry_bfnt.asm
|
2014-08-22 21:33:18 +00:00
|
|
|
include libs/master.lib/super_cancel_pat.asm
|
2014-08-31 02:46:46 +00:00
|
|
|
include libs/master.lib/super_put_rect.asm
|
2014-08-28 00:13:13 +00:00
|
|
|
include libs/master.lib/super_put.asm
|
2014-11-16 03:00:41 +00:00
|
|
|
include libs/master.lib/pfint21.asm
|
2014-07-02 17:18:32 +00:00
|
|
|
db 0
|
2014-11-17 03:54:40 +00:00
|
|
|
include th02/formats/pfopen.asm
|
|
|
|
include libs/master.lib/pf_str_ieq.asm
|
2015-02-18 11:07:37 +00:00
|
|
|
_TEXT ends
|
2014-07-02 17:18:32 +00:00
|
|
|
|
|
|
|
; ===========================================================================
|
|
|
|
|
2015-02-21 11:47:24 +00:00
|
|
|
op_01_TEXT segment byte public 'CODE' use16
|
|
|
|
op_01_TEXT ends
|
2014-07-02 17:18:32 +00:00
|
|
|
|
|
|
|
; ===========================================================================
|
|
|
|
|
2015-02-21 11:47:24 +00:00
|
|
|
op_02_TEXT segment word public 'CODE' use16
|
|
|
|
op_02_TEXT ends
|
2014-07-02 17:18:32 +00:00
|
|
|
|
|
|
|
; ===========================================================================
|
|
|
|
|
2015-02-21 13:13:58 +00:00
|
|
|
op_03_TEXT segment word public 'CODE' use16
|
2015-02-21 11:47:24 +00:00
|
|
|
op_03_TEXT ends
|
2014-07-02 17:18:32 +00:00
|
|
|
|
2015-02-18 11:07:37 +00:00
|
|
|
.data
|
2014-08-19 20:33:43 +00:00
|
|
|
|
2014-08-23 10:08:48 +00:00
|
|
|
include libs/master.lib/bfnt_id[data].asm
|
2014-08-27 20:57:18 +00:00
|
|
|
include libs/master.lib/clip[data].asm
|
2014-08-27 22:05:06 +00:00
|
|
|
include libs/master.lib/edges[data].asm
|
2014-08-30 05:49:51 +00:00
|
|
|
include libs/master.lib/fil[data].asm
|
2014-08-21 20:07:58 +00:00
|
|
|
include libs/master.lib/dos_ropen[data].asm
|
2014-08-31 08:23:41 +00:00
|
|
|
include libs/master.lib/gaiji_backup[data].asm
|
2014-08-31 08:08:09 +00:00
|
|
|
include libs/master.lib/gaiji_entry_bfnt[data].asm
|
2014-08-27 03:42:48 +00:00
|
|
|
include libs/master.lib/grp[data].asm
|
2014-08-23 13:47:05 +00:00
|
|
|
include libs/master.lib/pal[data].asm
|
2014-08-27 00:40:09 +00:00
|
|
|
include libs/master.lib/pf[data].asm
|
2014-08-30 10:13:04 +00:00
|
|
|
include libs/master.lib/rand[data].asm
|
2014-08-28 05:54:38 +00:00
|
|
|
include libs/master.lib/sin8[data].asm
|
2014-08-15 12:26:44 +00:00
|
|
|
include libs/master.lib/tx[data].asm
|
2014-09-16 02:11:09 +00:00
|
|
|
include libs/master.lib/version[data].asm
|
2014-08-26 20:52:26 +00:00
|
|
|
include libs/master.lib/vs[data].asm
|
2014-08-27 23:37:48 +00:00
|
|
|
include libs/master.lib/wordmask[data].asm
|
2014-08-21 20:53:12 +00:00
|
|
|
include libs/master.lib/mem[data].asm
|
2014-08-23 16:07:02 +00:00
|
|
|
include libs/master.lib/super_entry_bfnt[data].asm
|
2014-08-22 20:31:44 +00:00
|
|
|
include libs/master.lib/superpa[data].asm
|
2014-11-17 03:54:40 +00:00
|
|
|
include th02/formats/pfopen[data].asm
|
2014-08-17 21:55:59 +00:00
|
|
|
|
2015-02-18 11:07:37 +00:00
|
|
|
.data?
|
|
|
|
|
2014-08-27 20:57:18 +00:00
|
|
|
include libs/master.lib/clip[bss].asm
|
2014-08-30 05:49:51 +00:00
|
|
|
include libs/master.lib/fil[bss].asm
|
2014-08-23 13:47:05 +00:00
|
|
|
include libs/master.lib/pal[bss].asm
|
2014-08-26 20:52:26 +00:00
|
|
|
include libs/master.lib/vs[bss].asm
|
2014-08-26 21:58:08 +00:00
|
|
|
include libs/master.lib/vsync[bss].asm
|
2014-08-21 20:53:12 +00:00
|
|
|
include libs/master.lib/mem[bss].asm
|
2014-08-22 20:31:44 +00:00
|
|
|
include libs/master.lib/superpa[bss].asm
|
2014-08-31 02:46:46 +00:00
|
|
|
include libs/master.lib/super_put_rect[bss].asm
|
[Reverse-engineering] 32-bit VRAM plane pointers
I've looked at every openly available piece of PC-98 documentation, and there
don't seem to be any official names for the individual planes. The closest
thing I could find was the description at
http://island.geocities.jp/cklouch/column/pc98bas/pc98disphw2.htm
explaining that they represent the blue, red, green, and brightness component
when using the default PC-98 palette. However, these planes correspond to
nothing else but the 4 individual bits of the final index into the color
palette, and you can assign any color to every single palette slot. Therefore,
it's merely a convention that your own palettes don't have to follow (and in
Touhou, they don't).
Nevertheless, there doesn't seem to be an alternative, and the Neko Project II
source code uses the same B/R/G/E convention, so I'll go with that as well.
2015-02-10 22:43:34 +00:00
|
|
|
include th01/hardware/vram_planes[bss].asm
|
2014-11-18 16:56:13 +00:00
|
|
|
include th02/formats/pi_slots[bss].asm
|
2014-11-16 03:00:41 +00:00
|
|
|
include libs/master.lib/pfint21[bss].asm
|
2015-02-22 21:33:07 +00:00
|
|
|
include th02/hardware/input_sense[bss].asm
|
2015-03-15 21:54:15 +00:00
|
|
|
include th02/snd/snd[bss].asm
|
|
|
|
include th02/snd/load[bss].asm
|
2019-12-30 14:48:17 +00:00
|
|
|
public _resident
|
|
|
|
_resident dd ?
|
2014-07-02 17:18:32 +00:00
|
|
|
db ? ;
|
2015-03-16 21:35:52 +00:00
|
|
|
public _lives
|
|
|
|
_lives db ?
|
|
|
|
public _bombs
|
|
|
|
_bombs db ?
|
2014-07-05 21:03:42 +00:00
|
|
|
dd ? ;
|
|
|
|
dd ? ;
|
2014-07-02 17:18:32 +00:00
|
|
|
|
2015-02-19 06:46:36 +00:00
|
|
|
end
|