Microsoft MVP성태의 닷넷 이야기
개발 환경 구성: 672. DosBox를 이용한 Turbo C, Windows 3.1 설치 [링크 복사], [링크+제목 복사]
조회: 3743
글쓴 사람
정성태 (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)
13576정성태3/8/20241543닷넷: 2228. .NET Profiler - IMetaDataEmit2::DefineMethodSpec 사용법
13575정성태3/7/20241676닷넷: 2227. 최신 C# 문법을 .NET Framework 프로젝트에 쓸 수 있을까요?
13574정성태3/6/20241557닷넷: 2226. C# - "Docker Desktop for Windows" Container 환경에서의 IPv6 DualMode 소켓
13573정성태3/5/20241563닷넷: 2225. Windbg - dumasync로 분석하는 async/await 호출
13572정성태3/4/20241641닷넷: 2224. C# - WPF의 Dispatcher Queue로 알아보는 await 호출의 hang 현상파일 다운로드1
13571정성태3/1/20241618닷넷: 2223. C# - await 호출과 WPF의 Dispatcher Queue 동작 확인파일 다운로드1
13570정성태2/29/20241631닷넷: 2222. C# - WPF의 Dispatcher Queue 동작 확인파일 다운로드1
13569정성태2/28/20241545닷넷: 2221. C# - LoadContext, LoadFromContext 그리고 GAC파일 다운로드1
13568정성태2/27/20241606닷넷: 2220. C# - .NET Framework 프로세스의 LoaderOptimization 설정을 확인하는 방법파일 다운로드1
13567정성태2/27/20241617오류 유형: 898. .NET Framework 3.5 이하에서 mscoree.tlb 참조 시 System.BadImageFormatException파일 다운로드1
13566정성태2/27/20241630오류 유형: 897. Windows 7 SDK 설치 시 ".NET Development" 옵션이 비활성으로 선택이 안 되는 경우
13565정성태2/23/20241478닷넷: 2219. .NET CLR2 보안 모델에서의 개별 System.Security.Permissions 제어
13564정성태2/22/20241614Windows: 259. Hyper-V Generation 1 유형의 VM을 Generation 2 유형으로 바꾸는 방법
13563정성태2/21/20241644디버깅 기술: 196. windbg - async/await 비동기인 경우 메모리 덤프 분석의 어려움
13562정성태2/21/20241644오류 유형: 896. ASP.NET - .NET Framework 기본 예제에서 System.Web에 대한 System.IO.FileNotFoundException 예외 발생
13561정성태2/20/20241742닷넷: 2218. C# - (예를 들어, Socket) 비동기 I/O에 대한 await 호출 시 CancellationToken을 이용한 취소파일 다운로드1
13560정성태2/19/20241746디버깅 기술: 195. windbg 분석 사례 - Semaphore 잠금으로 인한 Hang 현상 (닷넷)
13559정성태2/19/20242623오류 유형: 895. ASP.NET - System.Security.SecurityException: 'Requested registry access is not allowed.'
13558정성태2/18/20241819닷넷: 2217. C# - 최댓값이 1인 SemaphoreSlim 보다 Mutex 또는 lock(obj)를 선택하는 것이 나은 이유
13557정성태2/18/20241619Windows: 258. Task Scheduler의 Author 속성 값을 변경하는 방법
13556정성태2/17/20241684Windows: 257. Windows - Symbolic (hard/soft) Link 및 Junction 차이점
13555정성태2/15/20241952닷넷: 2216. C# - SemaphoreSlim 사용 시 주의점
13554정성태2/15/20241708VS.NET IDE: 189. Visual Studio - 닷넷 소스코드 디컴파일 찾기가 안 될 때
13553정성태2/14/20241735닷넷: 2215. windbg - thin/fat lock 없이 동작하는 Monitor.Wait + Pulse
13552정성태2/13/20241685닷넷: 2214. windbg - Monitor.Enter의 thin lock과 fat lock
13551정성태2/12/20242016닷넷: 2213. ASP.NET/Core 웹 응용 프로그램 - 2차 스레드의 예외로 인한 비정상 종료
1  [2]  3  4  5  6  7  8  9  10  11  12  13  14  15  ...