Microsoft MVP성태의 닷넷 이야기
개발 환경 구성: 672. DosBox를 이용한 Turbo C, Windows 3.1 설치 [링크 복사], [링크+제목 복사],
조회: 3954
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

DosBox를 이용한 Turbo C, Windows 3.1 설치

DosBox를 다운로드해 설치하고,

DosBox
; https://www.dosbox.com/download.php?main=1

실행하면 5.0에 준하는 DOS 운영체제가 미리 설치된 화면이 하나 뜹니다. Z 드라이브가 매핑된 상태고 0 bytes free라서 할 수 있는 것이 없습니다. 대신 현재 윈도우 시스템의 특정 폴더를 마운팅할 수 있는데요, 따라서 C:\ 드라이브 역할을 할 수 있게 아무 디렉터리나 하나 만들어서 연결합니다.

Z:\> mount c c:\temp\cdrive
Drive C is mounted as local directory c:\temp\cdrive\

Z:\> c:

C:\> dir
Directory of C:\.
.       <DIR>       09-04-2023 9:51
..      <DIR>       09-04-2023 9:52
    0 File(s)               0 Bytes
    2 Dir(s)      262,111,744 Bytes Free.

물론 위의 설정은 다시 dosbox를 실행하면 없어집니다. 게다가 Z:\에 있는 autoexec.bat 파일은 동적으로 구성되는 것이며, Z: 드라이브의 모든 내용에 대해 변경이 허용되지 않습니다.

대신 Autoexec.bat에 대한 설정을 dosbox conf 파일에 할 수 있습니다. 제가 설치한 버전의 경우 다음의 경로에서 찾을 수 있었는데,

// DOSBox Status Window에 경로가 출력됩니다.

%USERPROFILE%\AppData\Local\DOSBox\dosbox-0.74-3.conf

이 파일을 편집해 (마지막에 있을) [autoexec] 섹션에 다음과 같이 추가합니다.

[autoexec]
# Lines in this section will be run at startup.
# You can put your MOUNT lines here.

mount c c:\temp\cdrive
C:\

그럼, DOSBox 실행 시마다 C:\ 드라이브에서 Prompt를 시작할 수 있습니다.




하는 김에 Turbo C도 설치해 볼까요? ^^ 방법은 지난 글에 설치한 것과 같습니다. "Borland Turbo C 2.01 (1989) (3.5-720k)" 파일의 압축을 풀어 나온 Compiler.img, Header.img, Install.img 3개 파일도 다시 압축을 푼 다음 아래와 같은 식으로 구성하고,

.\Install
         .\Compiler
         .\Header

위의 Install 디렉터리를 C:\ 드라이브로 매핑한 c:\temp\cdrive 디렉터리에 복사합니다. 일단, 복사만 하면 실행 중인 DOSBox에 해당 디렉터리가 곧바로 인식되지 않습니다. 물론 재시작하면 되지만, 그냥 Ctrl + F4 단축키를 눌러 재인식하는 것이 가능합니다.

이제 남은 작업은, .\Install\Install.exe 파일을 실행해 Turbo C를 설치하면 됩니다. 모두 설치한 이후에는 역시 dosbox conf 파일의 autoexec 섹션에 PATH 등을 연결하는 것도 잊지 마시고.

[autoexec]
# Lines in this section will be run at startup.
# You can put your MOUNT lines here.

mount c c:\temp\cdrive
PATH=C:\TC;Z:\
C:\




역시 이번에도 Windows 3.1을 설치해 볼까요? ^^ 구독자 다운로드 센터에서 구한 en_win311.exe을 실행해 압축을 푼 후, 그 디렉터리를 c:\temp\cdrive 하위에 복사합니다. Ctrl+F4로 재인식하고, 마운팅된 디렉터리에 setup.exe를 실행해 설치해 줍니다.

완료 후, 재부팅을 해야 하는데 마찬가지로 dosbox conf에 편의상 PATH를 하나 등록해 줍니다.

[autoexec]
# Lines in this section will be run at startup.
# You can put your MOUNT lines here.

mount c c:\temp\cdrive
PATH=C:\TC;C:\Windows;Z:\
C:\

이후, win.com을 실행하면 곧바로 Windows 3.1 화면으로 진입하는데요, 오호~~~ 윈도우 내에서 마우스도 잘 동작해 아래와 같이 ^^ 지뢰찾기 게임도 할 수 있습니다.

dosbox_1.png

3.1 정도의 무거운(?) 응용 프로그램을 정상적으로 호스팅할 정도면 제법 훌륭하게 도스 호환성을 구현한 것 같습니다.

참고로, 아래는 DOSBox에서의 단축키인데,

ALT-ENTER     Switch to full screen and back.
ALT-PAUSE     Pause emulation (hit ALT-PAUSE again to continue).
CTRL-F1       Start the keymapper.
CTRL-F4       Change between mounted floppy/CD images. Update directory cache for all drives.
CTRL-ALT-F5   Start/Stop creating a movie of the screen. (avi video capturing)
CTRL-F5       Save a screenshot. (PNG format)
CTRL-F6       Start/Stop recording sound output to a wave file.
CTRL-ALT-F7   Start/Stop recording of OPL commands. (DRO format)
CTRL-ALT-F8   Start/Stop the recording of raw MIDI commands.
CTRL-F7       Decrease frameskip.
CTRL-F8       Increase frameskip.
CTRL-F9       Kill DOSBox.
CTRL-F10      Capture/Release the mouse.
CTRL-F11      Slow down emulation (Decrease DOSBox Cycles).
CTRL-F12      Speed up emulation (Increase DOSBox Cycles)*.
ALT-F12       Unlock speed (turbo button/fast forward)**.
F11, ALT-F11  (machine=cga) change tint in NTSC output modes***
F11           (machine=hercules) cycle through amber, green, white colouring***

아마도 마우스와 전체 화면 정도 기능만 알아도 당장은 크게 불편함 없이 사용할 수 있을 것입니다.

이 외, 기타 도움말은 사이트에도 공개돼 있고,

Basic Setup and Installation of DosBox
; https://www.dosbox.com/wiki/Basic_Setup_and_Installation_of_DosBox

DOSBox v0.74-3 Manual
; https://www.dosbox.com/DOSBoxManual.html

"C:\Program Files (x86)\DOSBox-0.74-3\DOSBox 0.74-3 Manual.txt" 파일로도 제공됩니다.




[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]







[최초 등록일: ]
[최종 수정일: 4/9/2023]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




[1]  2  3  4  5  6  7  8  9  10  11  12  13  14  15  ...
NoWriterDateCnt.TitleFile(s)
13613정성태5/1/202444닷넷: 2253. C# - Video Capture 장치(Camera) 열거 및 지원 포맷 조회파일 다운로드1
13612정성태4/30/202477오류 유형: 902. Visual Studio - error MSB3021: Unable to copy file
13611정성태4/29/2024222닷넷: 2252. C# - GUID 타입 전용의 UnmanagedType.LPStruct - 두 번째 이야기파일 다운로드1
13610정성태4/28/2024303닷넷: 2251. C# - 제네릭 인자를 가진 타입을 생성하는 방법 - 두 번째 이야기
13609정성태4/27/2024366닷넷: 2250. PInvoke 호출 시 참조 타입(class)을 마샬링하는 [IN], [OUT] 특성파일 다운로드1
13608정성태4/26/2024750닷넷: 2249. C# - 부모의 필드/프로퍼티에 대해 서로 다른 자식 클래스 간에 Reflection 접근이 동작할까요?파일 다운로드1
13607정성태4/25/2024947닷넷: 2248. C# - 인터페이스 타입의 다중 포인터를 인자로 갖는 C/C++ 함수 연동
13606정성태4/24/2024949닷넷: 2247. C# - tensorflow 연동 (MNIST 예제)파일 다운로드1
13605정성태4/23/2024942닷넷: 2246. C# - Python.NET을 이용한 파이썬 소스코드 연동파일 다운로드1
13604정성태4/22/2024963오류 유형: 901. Visual Studio - Unable to set the next statement. Set next statement cannot be used in '[Exception]' call stack frames.
13603정성태4/21/20241010닷넷: 2245. C# - IronPython을 이용한 파이썬 소스코드 연동파일 다운로드1
13602정성태4/20/2024999닷넷: 2244. C# - PCM 오디오 데이터를 연속(Streaming) 재생 (Windows Multimedia)파일 다운로드1
13601정성태4/19/20241016닷넷: 2243. C# - PCM 사운드 재생(NAudio)파일 다운로드1
13600정성태4/18/20241029닷넷: 2242. C# - 관리 스레드와 비관리 스레드
13599정성태4/17/2024956닷넷: 2241. C# - WAV 파일의 PCM 사운드 재생(Windows Multimedia)파일 다운로드1
13598정성태4/16/20241006닷넷: 2240. C# - WAV 파일 포맷 + LIST 헤더파일 다운로드2
13597정성태4/15/20241014닷넷: 2239. C# - WAV 파일의 PCM 데이터 생성 및 출력파일 다운로드1
13596정성태4/14/20241129닷넷: 2238. C# - WAV 기본 파일 포맷파일 다운로드1
13595정성태4/13/20241082닷넷: 2237. C# - Audio 장치 열기 (Windows Multimedia, NAudio)파일 다운로드1
13594정성태4/12/20241105닷넷: 2236. C# - Audio 장치 열람 (Windows Multimedia, NAudio)파일 다운로드1
13593정성태4/8/20241104닷넷: 2235. MSBuild - AccelerateBuildsInVisualStudio 옵션
13592정성태4/2/20241251C/C++: 165. CLion으로 만든 Rust Win32 DLL을 C#과 연동
13591정성태4/2/20241224닷넷: 2234. C# - WPF 응용 프로그램에 Blazor App 통합파일 다운로드1
13590정성태3/31/20241095Linux: 70. Python - uwsgi 응용 프로그램이 k8s 환경에서 OOM 발생하는 문제
13589정성태3/29/20241202닷넷: 2233. C# - 프로세스 CPU 사용량을 나타내는 성능 카운터와 Win32 API파일 다운로드1
[1]  2  3  4  5  6  7  8  9  10  11  12  13  14  15  ...