Skip to content

Commit 37b43e1

Browse files
1st push
1 parent 7b574b9 commit 37b43e1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+23052
-0
lines changed

.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.git/
2+
Debug/
3+
Release/
4+
Release/mz700win.tlog/
5+
Release/*.obj
6+
Release/*.exe.receipe
7+
Release/*.log
8+
Release/*.pdb
9+
Release/*.txt
10+
ROMS/*
11+
.vs/
12+
src_backup/
13+
CMOS.RAM
14+
debug.log
15+
key.def
16+
mz700fon.dat
17+
mz700fon.jp
18+
./mz700win.exe
19+
MZ700WIN.INI
20+
Rlease/

README.md

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
<!-- コメント -->
2+
# mz700win version 0.56
3+
code by Marukun, Youkan, Snail
4+
5+
Specifically, please visit there.
6+
Marukun: [http://retropc.net/mz-memories/mz700/]
7+
Youkan: [http://www.maroon.dti.ne.jp/youkan/mz700/]
8+
Snail: []
9+
10+
- To build this project, Please use Visual Studio 2022. "Fullscreen" is disabled. Because It doesn't run yet.
11+
12+
13+
0.58(Snail)
14+
| Fixed the flag behavior of Z80 add, adc, sub, sbc instruction
15+
2017.07.16 0.57(Marukun) | Fixed a bug that caused crash when writing 0 to the 8253 ch#0 counter
16+
| Some bugs are fixed | Further support for MZF
17+
| but unreleased... | Speed control up to 200%
18+
: | Bug about port $E5 is fixed
19+
2017.04.03 0.56a(Youkan) |
20+
|Bug about port $E5 is fixed |
21+
| |
22+
+----------------------------+
23+
|
24+
2016.09.10 0.56(Youkan)
25+
| Supports XInput(Cursor, Space, Shift, Z, X)
26+
|
27+
2016.08.28 0.55b(Youkan)
28+
|
29+
0.55a(Youkan)
30+
|
31+
0.55(Youkan)
32+
|
33+
2008.02.11 0.53(Marukun)
34+
35+
---
36+
## master (2016/09/10)
37+
### branch ver_2016_09_03 was merged.
38+
39+
このバージョンでXInput対応 Windows用 XBOXゲームパッドに対応しました。
40+
何故DirectInputではなくてXInputなのか?
41+
それは、作者がWindows用 XBOXゲームパッドを持っていたという事と、
42+
XInputのほうが将来性がありそうだと思ったからです。
43+
ゲームパッドとMZキーの対応は下記の通りです。
44+
方向キー = カーソルキー
45+
Aボタン = スペースキー
46+
Bボタン = SHIFTキー
47+
Xボタン = Zキー
48+
Yボタン = Xキー
49+
……キーコンフィグ? 今のところは無いです。将来暇が出来たらやるかもしれません。
50+
---
51+
This version is implemented XInput for XBOX360 Gamepad for Windows.
52+
Why isn't it DirectInput, and XInput?
53+
Author (Marukun) had a 'XBOX360 Gamepad for Windows' in that.
54+
It's because I thought XInput seemed to be with a bright future.
55+
... Key Gonfig ?
56+
I don't have that for the moment. If leisure is done in the future, it may be done.
57+
58+
---
59+
## MZ700Win Version 0.56
60+
### branch ver_2016_09_03 (2016/09/09)
61+
62+
To build, You need DirectX SDK Feb2010. It includes 'ddraw.lib' and 'XInput.lib'.
63+
You can get it from below link.
64+
[http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=2c7da5fb-ffbb-4af6-8c66-651cbd28ca15](http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=2c7da5fb-ffbb-4af6-8c66-651cbd28ca15)
65+
MZ700Win needed 'ddraw.lib' and 'XInput.lib' from this version.
66+
But full screen mode doesn't yet.
67+
It'll be merged with master branch later.
68+
69+
** DirectX SDK Jun2010 is not include 'ddraw.lib'. Please don't use this version. **
70+
71+
---
72+
### branch ver_2016_09_03 (2016/09/08)
73+
Allocation of game pad and keyboard was implemented by fixing.
74+
ARROW Key = CURSOR key
75+
A button = SPACE key
76+
B button = SHIFT key
77+
X button = Z key
78+
Y button = X key
79+
80+
---
81+
## Version 0.55b (2016/08/28)
82+
Screen size setting is expanded even x4 for a person with 4K monitor.

inc/COMMON.H

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#ifndef mz700win_common_h
2+
#define mz700win_common_h
3+
4+
//
5+
#ifndef NDEBUG
6+
#define D3D_DEBUG_INFO
7+
#define _CRTDBG_MAP_ALLOC
8+
#endif //_DEBUG
9+
10+
//
11+
#define WIN32_LEAN_AND_MEAN
12+
#include <windows.h>
13+
#include <windowsx.h>
14+
#include <stdio.h>
15+
#include <string.h>
16+
#ifndef NDEBUG
17+
#include <crtdbg.h>
18+
#endif //NDEBUG
19+
20+
#define TRUE 1
21+
#define FALSE 0
22+
23+
#define FD_DRIVES 2 // FDD ƒhƒ‰ƒCƒu”
24+
/*
25+
#define FASTCALL __fastcall
26+
#ifndef INLINE
27+
#define INLINE static __inline
28+
#endif
29+
*/
30+
void Error(const char* s);
31+
32+
#endif //mz700win_common_h

inc/MZXInput.h

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
//
2+
// XInput.h by Takeshi Maruyama
3+
// 2016/09/01-
4+
// now digital pad only....
5+
//
6+
7+
//#pragma once
8+
// 移植性のため、pragma once は使わないことにした
9+
10+
#ifndef __MZXINPUT_H__
11+
12+
#define __MZXINPUT_H__
13+
14+
//#define WIN32_LEAN_AND_MEAN // Except the part which isn't used from windows header.
15+
// Windows Header files:
16+
//#include <windows.h>
17+
#include <Xinput.h>
18+
19+
#ifdef __cplusplus
20+
extern "C"
21+
{
22+
#endif //__cplusplus
23+
24+
// Forward
25+
BOOL XInput_Init();
26+
BOOL XInput_Cleanup();
27+
BOOL XInput_Update();
28+
29+
BOOL XI_Is_GamePad_Connected(int);
30+
DWORD XI_Get_GamePad_RAW(int);
31+
32+
#ifdef __cplusplus
33+
}
34+
#endif //__cplusplus
35+
36+
// DEFINE
37+
#define PAD_RAW_LEFT 0x00000001 // LEFT
38+
#define PAD_RAW_RIGHT 0x00000002 // RIGHT
39+
#define PAD_RAW_UP 0x00000004 // UP
40+
#define PAD_RAW_DOWN 0x00000008 // DOWN
41+
42+
#define PAD_RAW_A 0x00000010 // A button
43+
#define PAD_RAW_B 0x00000020 // B button
44+
#define PAD_RAW_X 0x00000040 // X button
45+
#define PAD_RAW_Y 0x00000080 // Y button
46+
#define PAD_RAW_L 0x00000100 // L button
47+
#define PAD_RAW_R 0x00000200 // R button
48+
#define PAD_RAW_BACK 0x00000400 // BACK button
49+
#define PAD_RAW_START 0x00000800 // START button
50+
51+
#endif // __MZXINPUT_H__

0 commit comments

Comments
 (0)