GAMELIB16 その8

ここを見ていてX1でできるなら、メガドライブIBM JXでもXEVIOUSっぽいものを動かしたいと思いました。

http://85data.world.coocan.jp/02-info-soft-xevious01.html

以下が生成されたマップチップです。8×8ドットのチップが696個にもなりました。

マップチップを活用するためにBMPTOOLというものを開発してみました。上記サイトの生成されたマップチップを256色BMP形式に保存して試してみます。

http://www.geocities.jp/parallel_computer_inc/bmptool.zip

>bmptool.exe -i mapset.bmp
640 x 72 pixels 256 colors (0-719)
mapset.map is created

8x8ドットのチップが720個(0-719)ですね。このmapset.mapを書き換えることでAREA1~16のマップを生成していきます。

>type mapset.map
0000,0001,0002,0003,0004,0005,0006,0007,0008,0009,000a,000b,000c,000d,000e,000f,0010,0011,0012,0013,0014, ...
0050,0051,0052,0053,0054,0055,0056,0057,0058,0059,005a,005b,005c,005d,005e,005f,0060,0061,0062,0063,0064, ...
:

たとえばAREA1はこんな感じです。

http://www.geocities.jp/parallel_computer_inc/mapset.zip

>type mapset.map
02a8,028f,02aa,02ae,02b1,028b,02ac,02a8,028f,02aa,02ae,02b1,028b,02ac,02a8,028f,02aa,02ae,02b1,028b,02ac, ...
0292,0293,0290,0291,02a3,02a4,02a5,02a6,029c,029d,029e,029f,02a0,02a1,0294,02a2,0292,0293,0290,0291,02a3, ...
:

BMPTOOLを使ってmapset.bmpとmapset.mapからoutput.bmpを生成します。

>bmptool.exe -m mapset.bmp
output.bmp is created

f:id:tanam:20190105235418j:plain


GAMELIB16 その7

GAMELIB16のサンプルとして1つのソースコードで2機種のバイナリを生成しています。

http://www.geocities.jp/parallel_computer_inc/sprjr.zip

今回はメガドライブぴゅう太で動いているものをワンダースワンIBM JXで動かして行こうと思います。まずはBGを1枚絵(256x192 16色)で用意します。メガドライブPNG形式、ぴゅう太ワンダースワンIBM JXはBMP形式でツールを使って変換します。

bmp2binはIBM JXのために、BMP1枚絵(256x192 16色)を変換するものです。

bmp2bin.c

#include <stdio.h>
#include <stdlib.h>

char* s[192];

int main(int argc, char* argv[])
{
	int n, m;
	FILE *fpr;
	FILE *fpw;
	if (argc < 3) {
		printf("argc error\n");
		return -1;
	}

	if ((fpr = fopen(argv[1], "rb")) == NULL) {
		printf("read file open error\n");
		return -1;
	}

	if ((fpw = fopen(argv[2], "wb")) == NULL) {
		printf("write file open error\n");
		return -1;
	}
	m = 192;
	s[m]=malloc(128);
	if (NULL == fread(s[m], 0x76, 1, fpr)) {
		printf("read header error\n");
		return -1;
	}
	while (1) {
		m--;
		s[m]=malloc(128);
		if (NULL == fread(s[m], 128, 1, fpr)) break;
	}
	fclose(fpr);
	for (n = 0; n < 192; n++) {
		fwrite(s[n], 128, 1, fpw);
	}
	fclose(fpw);
	return 0;
}

5511emu その4


CGA+では320x200で16色が使えますので。TMS9918の画像(256x192)を表示してみました。

http://www.geocities.jp/parallel_computer_inc/YAKYUKEN.zip

f:id:tanam:20190101173938j:plain

CGA講座を参考にCGA+のプログラムを開発していきます。

http://geochemisthk.com/hp-200lx/cga/

上記YAKYUKEN.EXEはMS-DOSLSI C-86 試食版を使って以下の手順で作成しています。

>make clean
>make
>type Makefile
YAKYUKEN.EXE:           main.obj gamelib.obj yakyuken.obj
        lcc -o YAKYUKEN.EXE main.obj gamelib.obj yakyuken.obj

main.obj:               yakyuken.h gamelib.h main.c
        lcc -O -c main.c
gamelib.obj:            gamelib.h gamelib.c
        lcc -O -c gamelib.c
yakyuken.obj:           yakyuken.h yakyuken.c
        lcc -O -c yakyuken.c

clean:
        del YAKYUKEN.EXE *.OBJ

5511emu その3


つぎに5511emuでプログラムを開発していきます。

f:id:tanam:20181231101756j:plain

上記CGA.EXEはMS-DOSLSI C-86 試食版を使って以下の手順で作成できます。

>lcc cga.c

cga.c

#include <dos.h>
#include <stdio.h>

unsigned char far *vram1 =(unsigned char far *)0xB8000000L;
unsigned char far *vram2 =(unsigned char far *)0xBA000000L;
unsigned char far *vram3 =(unsigned char far *)0xBC000000L;
unsigned char far *vram4 =(unsigned char far *)0xBE000000L;

void set_video_mode(unsigned char mode)
{
    union REGS in, out;
    in.h.ah = 0;
    in.h.al = mode;
    int86(0x10, &in, &out);
}

void plot_pixel(unsigned int x, unsigned int y, unsigned char color)
{
    vram1[y * 160 + x] = color*16+color;
    vram2[y * 160 + x] = color*16+color;
    vram3[y * 160 + x] = color*16+color;
    vram4[y * 160 + x] = color*16+color;
}

int main(int argc, char* argv[])
{
    unsigned int i, j;

    set_video_mode(0x09);

    for (i = 0; i < 160; i++) {
        for (j = 0; j < 50; j++) {
            plot_pixel(i, j, i/10);
        }
    }

    getc(stdin);
    return 0;
}

5511emu その2

つぎに5511emuでPC-DOSを動かしてみます。

f:id:tanam:20181225083427j:plain

ディスクイメージは以下のFDDIMG98.COMでPC-9801をつかって取得できます。

https://bitbucket.org/hdk_2/5511emu/src/7e8d813db8b9fe9fcae3ab4dc421146414b8c19f/tools/dumpdisk/?at=default

上記FDDIMG98.COMはMS-DOSLSI C-86 試食版を使って以下の手順で作成できます。

>r86 fddimg98.a86
>lld -o fddimg98.com fddimg98.obj

5511emu その1

まずは5511emuをダウンロードします。

https://bitbucket.org/hdk_2/5511emu

f:id:tanam:20181225083704j:plain

ROMイメージを準備します。

  • BASE_E.ROM : E0000h-EFFFFh
  • BASE_F.ROM : F0000h-FFFFFh
  • FONT_8.ROM : Font ROM 80000h-8FFFFh
  • FONT_9.ROM : Font ROM 90000h-9FFFFh
  • FONT_A.ROM : Font ROM A0000h-AFFFFh
  • FONT_B.ROM : Font ROM B0000h-BFFFFh

上記FONT_8.ROM~FONT_B.ROM(00000-3FFFF)は以下のJXFONTDMP.COMで実機から取得できます。

https://bitbucket.org/hdk_2/5511emu/src/7e8d813db8b9fe9fcae3ab4dc421146414b8c19f/tools/dumpmem/?at=default

 

  • -e: Set window size for extended video mode
  • -d8 for D8000h, application, 32KiB extended video (Kakucho-hyoji) mode cartridge

上記EXTVIDO.ROM(38000-3FFFF)は以下のJXEXTTDMP.COMで実機から取得できます。

http://www.geocities.jp/parallel_computer_inc/dumpmem.zip

jxextdmp.s

# EXT VIDEO ROM dump program for JX
# Copyright (C) 2018 tanam1972

# To assemble:
# gcc -nostdlib -nostdinc -Wl,--oformat=binary -Wl,-Ttext,0x100 -o jxextdmp.com jxextdmp.s
	.code16

_start:	.global	_start
	mov	$0x11, %ax
	int	$0x10
	mov	$startm, %dx
	mov	$0x9, %ah
	int	$0x21
	push	%cs
	pop	%ds
	mov	$filnam, %dx
	xor	%cx, %cx
	mov	$0x3c, %ah
	int	$0x21
	jc	opener
	mov	%ax, %bx
	mov	$0xa000, %ax
1:	mov	%ax, %ds
	push	%ax
	xor	%si, %si
	push	%cs
	pop	%es
	mov	$buf, %di
	cld
	mov	$0x1ff, %dx
	mov	$0x3709, %cx
	cli
	call	outga
	inc	%cx
	call	outga
	mov	$0xb007, %cx
	call	outga
	mov	$0x4000 / 2, %cx
	rep	movsw
	mov	$0x3007, %cx
	call	outga
	mov	$0xb70a, %cx
	call	outga
	sti
	push	%cs
	pop	%ds
	mov	$buf, %dx
	mov	$0x4000, %cx
	mov	$0x40, %ah
	int	$0x21
	jc	writee
	cmp	$0x4000, %ax
	jne	writee
	pop	%ax
	add	$0x400, %ax
	cmp	$0xe000, %ax
	jb	1b
	mov	$0x3e, %ah
	int	$0x21
	mov	$endm, %dx
	mov	$0x9, %ah
	int	$0x21
	mov	$0x4c00, %ax
	int	$0x21
outga:	in	%dx, %al
	mov	%cx, %ax
	out	%al, %dx
	mov	%ah, %al
	out	%al, %dx
	ret
opener:	mov	$openms, %dx
1:	mov	$0x9, %ah
	int	$0x21
	mov	$0x4c01, %ax
	int	$0x21
writee:	mov	$writem, %dx
	jmp	1b
filnam:	.string	"extvido.rom"
startm:	.ascii	"EXT VIDEO ROM dump program for JX\r\n"
	.ascii	"Copyright (C) 2018 tanam1972\r\n$"
openms:	.ascii	"Create file failed\r\n$"
writem:	.ascii	"Write to file failed\r\n$"
endm:	.ascii	"Done\r\n$"
buf:

COLECOVISIONエミュレータをつくる その3

まずはSource Code Archive (12/18/2018)をダウンロードします。

http://takeda-toshiya.my.coocan.jp/common/index.html

好きなディレクトリに展開して、以下のプロジェクトを開きます。

source\vc++2008\coleco.vcprj
source\src\res\coleco.rc
              \coleco.ico
source\src\vm\coleco\coleco.cpp
                     coleco.h
                     keyboard.cpp
                     keyboard.h
                     memory.cpp
                     memory.h

SGM対応のために以下の変更をします。

http://www.geocities.jp/parallel_computer_inc/colecovision.zip

coleco.cpp

/*
	COLECO ColecoVision Emulator 'yaCOLECOVISION'

	Author : tanam
	Date   : 2016.08.14-

	[ virtual machine ]
*/

#include "colecovision.h"
#include "../../emu.h"
#include "../device.h"
#include "../event.h"

#include "../io.h"
#include "../sn76489an.h"
#include "../ay_3_891x.h"
#include "../tms9918a.h"
#include "../z80.h"

#ifdef USE_DEBUGGER
#include "../debugger.h"
#endif

#include "keyboard.h"
#include "memory.h"

// ----------------------------------------------------------------------------
// initialize
// ----------------------------------------------------------------------------

VM::VM(EMU* parent_emu) : VM_TEMPLATE(parent_emu)
{
	// create devices
	first_device = last_device = NULL;
	dummy = new DEVICE(this, emu);	// must be 1st device
	event = new EVENT(this, emu);	// must be 2nd device
	
	io = new IO(this, emu);
	dcsg = new SN76489AN(this, emu);
	psg = new AY_3_891X(this, emu);
	vdp = new TMS9918A(this, emu);
	cpu = new Z80(this, emu);
	
	key = new KEYBOARD(this, emu);
	memory = new MEMORY(this, emu);
	
	// set contexts
	event->set_context_cpu(cpu);
	event->set_context_sound(dcsg);
	event->set_context_sound(psg);

	vdp->set_context_irq(cpu, SIG_CPU_NMI, 1);
	key->set_context_cpu(cpu);
	
	// cpu bus
	cpu->set_context_mem(memory);
	cpu->set_context_io(io);
	cpu->set_context_intr(dummy);
#ifdef USE_DEBUGGER
	cpu->set_context_debugger(new DEBUGGER(this, emu));
#endif
	
	// i/o bus
	io->set_iomap_alias_w(0x50, psg, 0);		// PSG ch
	io->set_iomap_alias_w(0x51, psg, 1);		// PSG data
	io->set_iomap_alias_r(0x52, psg, 1);		// PSG data
	io->set_iomap_range_w(0x7f,0x7f, memory);	// LOWER 8K RAM(0000-1FFF)
	io->set_iomap_range_w(0x80, 0x9f, key);
	io->set_iomap_range_rw(0xbe, 0xbf, vdp);
	io->set_iomap_range_w(0xc0, 0xdf, key);
	io->set_iomap_range_r(0xfc, 0xff, key);
	io->set_iomap_range_w(0xff, 0xff, dcsg);
	
	// initialize all devices
	for(DEVICE* device = first_device; device; device = device->next_device) {
		device->initialize();
	}
}

VM::~VM()
{
	// delete all devices
	for(DEVICE* device = first_device; device;) {
		DEVICE *next_device = device->next_device;
		device->release();
		delete device;
		device = next_device;
	}
}

DEVICE* VM::get_device(int id)
{
	for(DEVICE* device = first_device; device; device = device->next_device) {
		if(device->this_device_id == id) {
			return device;
		}
	}
	return NULL;
}

// ----------------------------------------------------------------------------
// debugger
// ----------------------------------------------------------------------------

#ifdef USE_DEBUGGER
DEVICE *VM::get_cpu(int index)
{
	if(index == 0) {
		return cpu;
	}
	return NULL;
}
#endif

// ----------------------------------------------------------------------------
// drive virtual machine
// ----------------------------------------------------------------------------

void VM::reset()
{
	// reset all devices
	for(DEVICE* device = first_device; device; device = device->next_device) {
		device->reset();
	}
}

void VM::run()
{
	event->drive();
}

// ----------------------------------------------------------------------------
// draw screen
// ----------------------------------------------------------------------------

void VM::draw_screen()
{
	vdp->draw_screen();
}

// ----------------------------------------------------------------------------
// soud manager
// ----------------------------------------------------------------------------

void VM::initialize_sound(int rate, int samples)
{
	// init sound manager
	event->initialize_sound(rate, samples);
	
	// init sound gen
	dcsg->initialize_sound(rate, 3579545, 8000);
	psg->initialize_sound(rate, 3579545, samples, 0, 0);
}

uint16_t* VM::create_sound(int* extra_frames)
{
	return event->create_sound(extra_frames);
}

int VM::get_sound_buffer_ptr()
{
	return event->get_sound_buffer_ptr();
}

#ifdef USE_SOUND_VOLUME
void VM::set_sound_device_volume(int ch, int decibel_l, int decibel_r)
{
	if(ch == 0) {
		dcsg->set_volume(0, decibel_l, decibel_r);
		psg->set_volume(1, decibel_l, decibel_r);
	}
}
#endif

// ----------------------------------------------------------------------------
// user interface
// ----------------------------------------------------------------------------

void VM::open_cart(int drv, const _TCHAR* file_path)
{
	if(drv == 0) {
		memory->open_cart(file_path);
		reset();
	}
}

void VM::close_cart(int drv)
{
	if(drv == 0) {
		memory->close_cart();
		reset();
	}
}

bool VM::is_cart_inserted(int drv)
{
	if(drv == 0) {
		return memory->is_cart_inserted();
	} else {
		return false;
	}
}

bool VM::is_frame_skippable()
{
	return event->is_frame_skippable();
}

void VM::update_config()
{
	for(DEVICE* device = first_device; device; device = device->next_device) {
		device->update_config();
	}
}

#define STATE_VERSION	2

bool VM::process_state(FILEIO* state_fio, bool loading)
{
	if(!state_fio->StateCheckUint32(STATE_VERSION)) {
		return false;
	}
	for(DEVICE* device = first_device; device; device = device->next_device) {
		const char *name = typeid(*device).name() + 6; // skip "class "
		int len = strlen(name);
		
		if(!state_fio->StateCheckInt32(len)) {
			return false;
		}
		if(!state_fio->StateCheckBuffer(name, len, 1)) {
			return false;
		}
		if(!device->process_state(state_fio, loading)) {
			return false;
		}
	}
	return true;
}

coleco.h

/*
	COLECO ColecoVision Emulator 'yaCOLECOVISION'

	Author : tanam
	Date   : 2016.08.14-

	[ virtual machine ]
*/

#ifndef _COLECO_VISION_H_
#define _COLECO_VISION_H_

#define DEVICE_NAME		"COLECO ColecoVision"
#define CONFIG_NAME		"colecovision"

// device informations for virtual machine
#define FRAMES_PER_SEC		60
#define LINES_PER_FRAME		262
#define CPU_CLOCKS		3579545
#define SCREEN_WIDTH		256
#define SCREEN_HEIGHT		192
#define TMS9918A_VRAM_SIZE	0x4000
#define TMS9918A_LIMIT_SPRITES

// device informations for win32
#define USE_CART		1
#define USE_SOUND_VOLUME	2
#define USE_JOYSTICK
#define USE_DEBUGGER
#define USE_STATE

#include "../../common.h"
#include "../../fileio.h"
#include "../vm_template.h"

#ifdef USE_SOUND_VOLUME
static const _TCHAR *sound_device_caption[] = {
	_T("DCSG"),_T("PSG"),
};
#endif

class EMU;
class DEVICE;
class EVENT;

class IO;
class SN76489AN;
class AY_3_891X;
class TMS9918A;
class Z80;

class KEYBOARD;
class MEMORY;

class VM : public VM_TEMPLATE
{
protected:
	// devices
	EVENT* event;
	
	IO* io;
	SN76489AN* dcsg;
	AY_3_891X* psg;
	TMS9918A* vdp;
	Z80* cpu;
	
	KEYBOARD* key;
	MEMORY* memory;
	
public:
	// ----------------------------------------
	// initialize
	// ----------------------------------------
	
	VM(EMU* parent_emu);
	~VM();
	
	// ----------------------------------------
	// for emulation class
	// ----------------------------------------
	
	// drive virtual machine
	void reset();
	void run();
	double get_frame_rate()
	{
		return FRAMES_PER_SEC;
	}
	
#ifdef USE_DEBUGGER
	// debugger
	DEVICE *get_cpu(int index);
#endif
	
	// draw screen
	void draw_screen();
	
	// sound generation
	void initialize_sound(int rate, int samples);
	uint16_t* create_sound(int* extra_frames);
	int get_sound_buffer_ptr();
#ifdef USE_SOUND_VOLUME
	void set_sound_device_volume(int ch, int decibel_l, int decibel_r);
#endif
	
	// user interface
	void open_cart(int drv, const _TCHAR* file_path);
	void close_cart(int drv);
	bool is_cart_inserted(int drv);
	bool is_frame_skippable();
	
	void update_config();
	bool process_state(FILEIO* state_fio, bool loading);
	
	// ----------------------------------------
	// for each device
	// ----------------------------------------
	
	// devices
	DEVICE* get_device(int id);
};

#endif

memory.cpp

/*
	COLECO ColecoVision Emulator 'yaCOLECOVISION'

	Author : tanam
	Date   : 2016.08.14-

	[ memory ]
*/

#include "memory.h"

#define SET_BANK(s, e, w, r) { \
	int sb = (s) >> 12, eb = (e) >> 12; \
	for(int i = sb; i <= eb; i++) { \
		if((w) == wdmy) { \
			wbank[i] = wdmy; \
		} else { \
			wbank[i] = (w) + 0x1000 * (i - sb); \
		} \
		if((r) == rdmy) { \
			rbank[i] = rdmy; \
		} else { \
			rbank[i] = (r) + 0x1000 * (i - sb); \
		} \
	} \
}

void MEMORY::initialize()
{
	memset(cart, 0xff, sizeof(cart));
	memset(ipl, 0xff, sizeof(ipl));
	memset(ram, 0, sizeof(ram));
	memset(rdmy, 0xff, sizeof(rdmy));
	
	// load ipl
	FILEIO* fio = new FILEIO();
	if(fio->Fopen(create_local_path(_T("COLECO.ROM")), FILEIO_READ_BINARY)) {
		fio->Fread(ipl, sizeof(ipl), 1);
		fio->Fclose();
	}
	delete fio;
	
	// set memory map
	SET_BANK(0x0000, 0x1fff, wdmy, ipl);
	SET_BANK(0x2000, 0x7fff, ram+0x2000,  ram+0x2000);
	SET_BANK(0x8000, 0xffff, wdmy, cart);
	
	megarom=0;
	inserted = false;
}

void MEMORY::write_data8(uint32_t addr, uint32_t data)
{
	wbank[addr >> 12][addr & 0xfff] = data;
}

uint32_t MEMORY::read_data8(uint32_t addr)
{
	uint32_t page=0;
	addr &= 0xffff;
	if (megarom && addr>=(0xffff-megarom)) {
		page = (0xffff-addr);
		SET_BANK(0xc000, 0xffff, wdmy, cart+(megarom-page)* 0x4000);
	}
	return rbank[addr >> 12][addr & 0xfff];
}

void MEMORY::write_io8(uint32_t addr, uint32_t data)
{
	if (data==0x0d) {
		SET_BANK(0x0000, 0x1fff, ram, ram);
	} else {
		SET_BANK(0x0000, 0x1fff, wdmy, ipl);
	}
	return;
}

void MEMORY::open_cart(const _TCHAR* file_path)
{
	FILEIO* fio = new FILEIO();
	uint32_t size;
	if(fio->Fopen(file_path, FILEIO_READ_BINARY)) {
		memset(cart, 0xff, sizeof(cart));
		fio->Fseek(0, FILEIO_SEEK_END);
		size = fio->Ftell();
		fio->Fseek(0, FILEIO_SEEK_SET);
		fio->Fread(cart, sizeof(cart), 1);
		fio->Fclose();
		inserted = true;
		
		// set memory map
		if (size>0x8000) {
			megarom=(size/0x4000)-1;
			SET_BANK(0x8000, 0xbfff, wdmy, cart + megarom * 0x4000);
			SET_BANK(0xc000, 0xffff, wdmy, cart + megarom * 0x4000);
		} else {
			megarom=0;
			SET_BANK(0x8000, 0xffff, wdmy, cart);
		}
	}
	delete fio;
}

void MEMORY::close_cart()
{
	memset(cart, 0xff, sizeof(cart));
	megarom=0;
	inserted = false;
	
	// set memory map
	SET_BANK(0x0000, 0x1fff, wdmy, ipl);
	SET_BANK(0x2000, 0x7fff, ram+0x2000,  ram+0x2000);
	SET_BANK(0x8000, 0xffff, wdmy, cart);
}

#define STATE_VERSION	1

bool MEMORY::process_state(FILEIO* state_fio, bool loading)
{
	if(!state_fio->StateCheckUint32(STATE_VERSION)) {
		return false;
	}
	if(!state_fio->StateCheckInt32(this_device_id)) {
		return false;
	}
	state_fio->StateArray(ram, sizeof(ram), 1);
	state_fio->StateValue(inserted);
	
	// post process
	if(loading) {
		if(inserted) {
			SET_BANK(0x8000, 0xffff, wdmy, cart);
		} else {
			SET_BANK(0x0000, 0x1fff, wdmy, ipl);
			SET_BANK(0x2000, 0x7fff, ram+0x2000,  ram+0x2000);
		SET_BANK(0x8000, 0xffff, wdmy, cart);
		}
	}
	return true;
}

memory.h

/*
	COLECO ColecoVision Emulator 'yaCOLECOVISION'

	Author : tanam
	Date   : 2016.08.14-

	[ memory ]
*/

#ifndef _MEMORY_H_
#define _MEMORY_H_

#include "../vm.h"
#include "../../emu.h"
#include "../device.h"

class MEMORY : public DEVICE
{
private:
	// memory
	uint32_t megarom;
	uint8_t cart[0x80000];
	uint8_t ipl[0x2000];
	uint8_t ram[0x10000];
	
	uint8_t wdmy[0x10000];
	uint8_t rdmy[0x10000];
	uint8_t* wbank[16];
	uint8_t* rbank[16];
	
	bool inserted;
	
public:
	MEMORY(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
	{
		set_device_name(_T("Memory Bus"));
	}
	~MEMORY() {}
	
	// common functions
	void initialize();
	void write_data8(uint32_t addr, uint32_t data);
	uint32_t read_data8(uint32_t addr);
	void write_io8(uint32_t addr, uint32_t data);
	bool process_state(FILEIO* state_fio, bool loading);
	
	// unique functions
	void open_cart(const _TCHAR* file_path);
	void close_cart();
	bool is_cart_inserted()
	{
		return inserted;
	}
};

#endif

coleco.vcprj

<?xml version="1.0" encoding="shift_jis"?>
<VisualStudioProject
	ProjectType="Visual C++"
	Version="9.00"
	Name="colecovision"
	ProjectGUID="{26207C6A-4A3C-4BE2-A3D6-C8A2FF886A96}"
	RootNamespace="colecovision"
	TargetFrameworkVersion="131072"
	>
	<Platforms>
		<Platform
			Name="Win32"
		/>
	</Platforms>
	<ToolFiles>
	</ToolFiles>
	<Configurations>
		<Configuration
			Name="Debug|Win32"
			OutputDirectory=".\Debug"
			IntermediateDirectory=".\Debug"
			ConfigurationType="1"
			InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops"
			UseOfMFC="0"
			ATLMinimizesCRunTimeLibraryUsage="false"
			CharacterSet="2"
			>
			<Tool
				Name="VCPreBuildEventTool"
			/>
			<Tool
				Name="VCCustomBuildTool"
			/>
			<Tool
				Name="VCXMLDataGeneratorTool"
			/>
			<Tool
				Name="VCWebServiceProxyGeneratorTool"
			/>
			<Tool
				Name="VCMIDLTool"
				PreprocessorDefinitions="_DEBUG"
				MkTypLibCompatible="true"
				SuppressStartupBanner="true"
				TargetEnvironment="1"
				TypeLibraryName=".\Debug/colecovision.tlb"
				HeaderFileName=""
			/>
			<Tool
				Name="VCCLCompilerTool"
				Optimization="0"
				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_COLECOVISION"
				MinimalRebuild="true"
				BasicRuntimeChecks="3"
				RuntimeLibrary="1"
				PrecompiledHeaderFile=".\Debug/colecovision.pch"
				AssemblerListingLocation=".\Debug/"
				ObjectFile=".\Debug/"
				ProgramDataBaseFileName=".\Debug/"
				BrowseInformation="1"
				WarningLevel="3"
				SuppressStartupBanner="true"
				DebugInformationFormat="4"
			/>
			<Tool
				Name="VCManagedResourceCompilerTool"
			/>
			<Tool
				Name="VCResourceCompilerTool"
				PreprocessorDefinitions="_DEBUG"
				Culture="1041"
			/>
			<Tool
				Name="VCPreLinkEventTool"
			/>
			<Tool
				Name="VCLinkerTool"
				AdditionalDependencies="odbc32.lib odbccp32.lib winmm.lib imm32.lib"
				OutputFile=".\Debug/colecovision.exe"
				LinkIncremental="2"
				SuppressStartupBanner="true"
				GenerateManifest="false"
				GenerateDebugInformation="true"
				ProgramDatabaseFile=".\Debug/colecovision.pdb"
				SubSystem="2"
				RandomizedBaseAddress="1"
				DataExecutionPrevention="0"
				TargetMachine="1"
			/>
			<Tool
				Name="VCALinkTool"
			/>
			<Tool
				Name="VCManifestTool"
			/>
			<Tool
				Name="VCXDCMakeTool"
			/>
			<Tool
				Name="VCBscMakeTool"
				SuppressStartupBanner="true"
				OutputFile=".\Debug/colecovision.bsc"
			/>
			<Tool
				Name="VCFxCopTool"
			/>
			<Tool
				Name="VCAppVerifierTool"
			/>
			<Tool
				Name="VCPostBuildEventTool"
			/>
		</Configuration>
		<Configuration
			Name="Release|Win32"
			OutputDirectory=".\Release"
			IntermediateDirectory=".\Release"
			ConfigurationType="1"
			InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops"
			UseOfMFC="0"
			ATLMinimizesCRunTimeLibraryUsage="false"
			CharacterSet="2"
			>
			<Tool
				Name="VCPreBuildEventTool"
			/>
			<Tool
				Name="VCCustomBuildTool"
			/>
			<Tool
				Name="VCXMLDataGeneratorTool"
			/>
			<Tool
				Name="VCWebServiceProxyGeneratorTool"
			/>
			<Tool
				Name="VCMIDLTool"
				PreprocessorDefinitions="NDEBUG"
				MkTypLibCompatible="true"
				SuppressStartupBanner="true"
				TargetEnvironment="1"
				TypeLibraryName=".\Release/colecovision.tlb"
				HeaderFileName=""
			/>
			<Tool
				Name="VCCLCompilerTool"
				Optimization="2"
				InlineFunctionExpansion="2"
				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_COLECOVISION"
				StringPooling="true"
				RuntimeLibrary="0"
				EnableFunctionLevelLinking="true"
				EnableEnhancedInstructionSet="2"
				PrecompiledHeaderFile=".\Release/colecovision.pch"
				AssemblerListingLocation=".\Release/"
				ObjectFile=".\Release/"
				ProgramDataBaseFileName=".\Release/"
				BrowseInformation="1"
				WarningLevel="3"
				SuppressStartupBanner="true"
			/>
			<Tool
				Name="VCManagedResourceCompilerTool"
			/>
			<Tool
				Name="VCResourceCompilerTool"
				PreprocessorDefinitions="NDEBUG"
				Culture="1033"
			/>
			<Tool
				Name="VCPreLinkEventTool"
			/>
			<Tool
				Name="VCLinkerTool"
				AdditionalDependencies="odbc32.lib odbccp32.lib winmm.lib imm32.lib"
				OutputFile=".\Release/colecovision.exe"
				LinkIncremental="1"
				SuppressStartupBanner="true"
				GenerateManifest="false"
				ProgramDatabaseFile=".\Release/colecovision.pdb"
				SubSystem="2"
				RandomizedBaseAddress="1"
				DataExecutionPrevention="0"
				TargetMachine="1"
			/>
			<Tool
				Name="VCALinkTool"
			/>
			<Tool
				Name="VCManifestTool"
			/>
			<Tool
				Name="VCXDCMakeTool"
			/>
			<Tool
				Name="VCBscMakeTool"
				SuppressStartupBanner="true"
				OutputFile=".\Release/colecovision.bsc"
			/>
			<Tool
				Name="VCFxCopTool"
			/>
			<Tool
				Name="VCAppVerifierTool"
			/>
			<Tool
				Name="VCPostBuildEventTool"
			/>
		</Configuration>
	</Configurations>
	<References>
	</References>
	<Files>
		<Filter
			Name="Source Files"
			Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
			>
			<File
				RelativePath="..\src\common.cpp"
				>
				<FileConfiguration
					Name="Debug|Win32"
					>
					<Tool
						Name="VCCLCompilerTool"
						PreprocessorDefinitions=""
					/>
				</FileConfiguration>
				<FileConfiguration
					Name="Release|Win32"
					>
					<Tool
						Name="VCCLCompilerTool"
						PreprocessorDefinitions=""
					/>
				</FileConfiguration>
			</File>
			<File
				RelativePath="..\src\config.cpp"
				>
				<FileConfiguration
					Name="Debug|Win32"
					>
					<Tool
						Name="VCCLCompilerTool"
						PreprocessorDefinitions=""
					/>
				</FileConfiguration>
				<FileConfiguration
					Name="Release|Win32"
					>
					<Tool
						Name="VCCLCompilerTool"
						PreprocessorDefinitions=""
					/>
				</FileConfiguration>
			</File>
			<File
				RelativePath="..\src\fifo.cpp"
				>
				<FileConfiguration
					Name="Debug|Win32"
					>
					<Tool
						Name="VCCLCompilerTool"
						PreprocessorDefinitions=""
					/>
				</FileConfiguration>
				<FileConfiguration
					Name="Release|Win32"
					>
					<Tool
						Name="VCCLCompilerTool"
						PreprocessorDefinitions=""
					/>
				</FileConfiguration>
			</File>
			<File
				RelativePath="..\src\fileio.cpp"
				>
				<FileConfiguration
					Name="Debug|Win32"
					>
					<Tool
						Name="VCCLCompilerTool"
						PreprocessorDefinitions=""
					/>
				</FileConfiguration>
				<FileConfiguration
					Name="Release|Win32"
					>
					<Tool
						Name="VCCLCompilerTool"
						PreprocessorDefinitions=""
					/>
				</FileConfiguration>
			</File>
			<Filter
				Name="EMU Source Files"
				Filter="cpp"
				>
				<File
					RelativePath="..\src\debugger.cpp"
					>
					<FileConfiguration
						Name="Debug|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
					<FileConfiguration
						Name="Release|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
				</File>
				<File
					RelativePath="..\src\emu.cpp"
					>
					<FileConfiguration
						Name="Debug|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
					<FileConfiguration
						Name="Release|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
				</File>
			</Filter>
			<Filter
				Name="OSD Source Files"
				Filter="cpp"
				>
				<File
					RelativePath="..\src\win32\osd.cpp"
					>
					<FileConfiguration
						Name="Debug|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
					<FileConfiguration
						Name="Release|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
				</File>
				<File
					RelativePath="..\src\win32\osd_console.cpp"
					>
					<FileConfiguration
						Name="Debug|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
					<FileConfiguration
						Name="Release|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
				</File>
				<File
					RelativePath="..\src\win32\osd_input.cpp"
					>
					<FileConfiguration
						Name="Debug|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
					<FileConfiguration
						Name="Release|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
				</File>
				<File
					RelativePath="..\src\win32\osd_screen.cpp"
					>
					<FileConfiguration
						Name="Debug|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
					<FileConfiguration
						Name="Release|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
				</File>
				<File
					RelativePath="..\src\win32\osd_sound.cpp"
					>
					<FileConfiguration
						Name="Debug|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
					<FileConfiguration
						Name="Release|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
				</File>
				<File
					RelativePath="..\src\win32\winmain.cpp"
					>
					<FileConfiguration
						Name="Debug|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
					<FileConfiguration
						Name="Release|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
				</File>
			</Filter>
			<Filter
				Name="VM Common Source Files"
				Filter="cpp"
				>
				<File
					RelativePath="..\src\vm\event.cpp"
					>
					<FileConfiguration
						Name="Debug|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
					<FileConfiguration
						Name="Release|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
				</File>
				<File
					RelativePath="..\src\vm\io.cpp"
					>
					<FileConfiguration
						Name="Debug|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
					<FileConfiguration
						Name="Release|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
				</File>
				<File
					RelativePath="..\src\vm\sn76489an.cpp"
					>
					<FileConfiguration
						Name="Debug|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
					<FileConfiguration
						Name="Release|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
				</File>
				<File
					RelativePath="..\src\vm\ay_3_891x.cpp"
					>
					<FileConfiguration
						Name="Debug|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
					<FileConfiguration
						Name="Release|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
				</File>
				<File
					RelativePath="..\src\vm\tms9918a.cpp"
					>
					<FileConfiguration
						Name="Debug|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
					<FileConfiguration
						Name="Release|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
				</File>
				<File
					RelativePath="..\src\vm\z80.cpp"
					>
					<FileConfiguration
						Name="Debug|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
					<FileConfiguration
						Name="Release|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
				</File>
			</Filter>
			<Filter
				Name="fmgen Source Files"
				Filter="cpp"
				>
				<File
					RelativePath="..\src\vm\fmgen\fmgen.cpp"
					>
					<FileConfiguration
						Name="Debug|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
					<FileConfiguration
						Name="Release|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
				</File>
				<File
					RelativePath="..\src\vm\fmgen\fmtimer.cpp"
					>
					<FileConfiguration
						Name="Debug|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
					<FileConfiguration
						Name="Release|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
				</File>
				<File
					RelativePath="..\src\vm\fmgen\opna.cpp"
					>
					<FileConfiguration
						Name="Debug|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
					<FileConfiguration
						Name="Release|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
				</File>
				<File
					RelativePath="..\src\vm\fmgen\psg.cpp"
					>
					<FileConfiguration
						Name="Debug|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
					<FileConfiguration
						Name="Release|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
				</File>
			</Filter>
			<Filter
				Name="VM Driver Source Files"
				Filter="cpp"
				>
				<File
					RelativePath="..\src\vm\colecovision\keyboard.cpp"
					>
					<FileConfiguration
						Name="Debug|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
					<FileConfiguration
						Name="Release|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
				</File>
				<File
					RelativePath="..\src\vm\colecovision\memory.cpp"
					>
					<FileConfiguration
						Name="Debug|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
					<FileConfiguration
						Name="Release|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
				</File>
				<File
					RelativePath="..\src\vm\colecovision\colecovision.cpp"
					>
					<FileConfiguration
						Name="Debug|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
					<FileConfiguration
						Name="Release|Win32"
						>
						<Tool
							Name="VCCLCompilerTool"
							PreprocessorDefinitions=""
						/>
					</FileConfiguration>
				</File>
			</Filter>
		</Filter>
		<Filter
			Name="Header Files"
			Filter="h;hpp;hxx;hm;inl"
			>
			<File
				RelativePath="..\src\common.h"
				>
			</File>
			<File
				RelativePath="..\src\config.h"
				>
			</File>
			<File
				RelativePath="..\src\fifo.h"
				>
			</File>
			<File
				RelativePath="..\src\fileio.h"
				>
			</File>
			<Filter
				Name="EMU Header Files"
				Filter="h"
				>
				<File
					RelativePath="..\src\emu.h"
					>
				</File>
			</Filter>
			<Filter
				Name="OSD Header Files"
				Filter="h"
				>
				<File
					RelativePath="..\src\win32\osd.h"
					>
				</File>
			</Filter>
			<Filter
				Name="VM Common Header Files"
				Filter="h"
				>
				<File
					RelativePath="..\src\vm\debugger.h"
					>
				</File>
				<File
					RelativePath="..\src\vm\device.h"
					>
				</File>
				<File
					RelativePath="..\src\vm\event.h"
					>
				</File>
				<File
					RelativePath="..\src\vm\io.h"
					>
				</File>
				<File
					RelativePath="..\src\vm\sn76489an.h"
					>
				</File>
				<File
					RelativePath="..\src\vm\ay_3_891x.h"
					>
				</File>
				<File
					RelativePath="..\src\vm\tms9918a.h"
					>
				</File>
				<File
					RelativePath="..\src\vm\vm.h"
					>
				</File>
				<File
					RelativePath="..\src\vm\vm_template.h"
					>
				</File>
				<File
					RelativePath="..\src\vm\z80.h"
					>
				</File>
			</Filter>
			<Filter
				Name="fmgen Header Files"
				>
				<File
					RelativePath="..\src\vm\fmgen\diag.h"
					>
				</File>
				<File
					RelativePath="..\src\vm\fmgen\fmgen.h"
					>
				</File>
				<File
					RelativePath="..\src\vm\fmgen\fmgeninl.h"
					>
				</File>
				<File
					RelativePath="..\src\vm\fmgen\fmtimer.h"
					>
				</File>
				<File
					RelativePath="..\src\vm\fmgen\headers.h"
					>
				</File>
				<File
					RelativePath="..\src\vm\fmgen\misc.h"
					>
				</File>
				<File
					RelativePath="..\src\vm\fmgen\opna.h"
					>
				</File>
				<File
					RelativePath="..\src\vm\fmgen\psg.h"
					>
				</File>
			</Filter>
			<Filter
				Name="VM Driver Header Files"
				Filter="h"
				>
				<File
					RelativePath="..\src\vm\colecovision\keyboard.h"
					>
				</File>
				<File
					RelativePath="..\src\vm\colecovision\memory.h"
					>
				</File>
				<File
					RelativePath="..\src\vm\colecovision\colecovision.h"
					>
				</File>
			</Filter>
		</Filter>
		<Filter
			Name="Resource Files"
			Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
			>
			<File
				RelativePath="..\src\res\resource.h"
				>
			</File>
			<File
				RelativePath="..\src\res\colecovision.ico"
				>
			</File>
			<File
				RelativePath="..\src\res\colecovision.rc"
				>
				<FileConfiguration
					Name="Debug|Win32"
					>
					<Tool
						Name="VCResourceCompilerTool"
						PreprocessorDefinitions=""
						AdditionalIncludeDirectories="..\src\res"
					/>
				</FileConfiguration>
				<FileConfiguration
					Name="Release|Win32"
					>
					<Tool
						Name="VCResourceCompilerTool"
						PreprocessorDefinitions=""
						AdditionalIncludeDirectories="..\src\res"
					/>
				</FileConfiguration>
			</File>
		</Filter>
	</Files>
	<Globals>
	</Globals>
</VisualStudioProject>