Microsoft MVP성태의 닷넷 이야기
개발 환경 구성: 672. DosBox를 이용한 Turbo C, Windows 3.1 설치 [링크 복사], [링크+제목 복사],
조회: 10863
글쓴 사람
정성태 (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

비밀번호

댓글 작성자
 



2024-09-04 08시16분
If Windows 3.11 required a 32-bit processor, why was it called a 16-bit operating system?
; https://devblogs.microsoft.com/oldnewthing/20100517-00/?p=14013

Why did Windows 95 setup use three operating systems?
; https://devblogs.microsoft.com/oldnewthing/20241112-00/?p=110507

Did the Windows 95 setup team forget that MS-DOS can do graphics?
; https://devblogs.microsoft.com/oldnewthing/20250211-00/?p=110862
정성태

[1]  2  3  4  5  6  7  8  9  10  11  12  13  14  15  ...
NoWriterDateCnt.TitleFile(s)
13893정성태2/27/2025351Linux: 115. eBPF (bpf2go) - ARRAY / HASH map 기본 사용법
13892정성태2/24/2025674닷넷: 2325. C# - PowerShell과 연동하는 방법파일 다운로드1
13891정성태2/23/2025838닷넷: 2324. C# - 프로세스의 성능 카운터용 인스턴스 이름을 구하는 방법파일 다운로드1
13890정성태2/21/20251007닷넷: 2323. C# - 프로세스 메모리 중 Private Working Set 크기를 구하는 방법(Win32 API)파일 다운로드1
13889정성태2/20/20251183닷넷: 2322. C# - 프로세스 메모리 중 Private Working Set 크기를 구하는 방법(성능 카운터, WMI) [1]파일 다운로드1
13888정성태2/17/20251050닷넷: 2321. Blazor에서 발생할 수 있는 async void 메서드의 부작용
13887정성태2/17/20251184닷넷: 2320. Blazor의 razor 페이지에서 code-behind 파일로 코드를 분리하는 방법
13886정성태2/15/20251260VS.NET IDE: 196. Visual Studio - Code-behind처럼 cs 파일을 그룹핑하는 방법
13885정성태2/14/20251264닷넷: 2319. ASP.NET Core Web API / Razor 페이지에서 발생할 수 있는 async void 메서드의 부작용
13884정성태2/13/20251387닷넷: 2318. C# - (async Task가 아닌) async void 사용 시의 부작용파일 다운로드1
13883정성태2/12/20251320닷넷: 2317. C# - Memory Mapped I/O를 이용한 PCI Configuration Space 정보 열람파일 다운로드1
13882정성태2/10/20251265스크립트: 70. 파이썬 - oracledb 패키지 연동 시 Thin / Thick 모드
13881정성태2/7/20251359닷넷: 2316. C# - Port I/O를 이용한 PCI Configuration Space 정보 열람파일 다운로드1
13880정성태2/5/20251151오류 유형: 947. sshd - Failed to start OpenSSH server daemon.
13879정성태2/5/20251418오류 유형: 946. Ubuntu - N: Updating from such a repository can't be done securely, and is therefore disabled by default.
13878정성태2/3/20251219오류 유형: 945. Windows - 최대 절전 모드 시 DRIVER_POWER_STATE_FAILURE 발생 (pacer.sys)
13877정성태1/25/20251720닷넷: 2315. C# - PCI 장치 열거 (레지스트리, SetupAPI)파일 다운로드1
13876정성태1/25/20251945닷넷: 2314. C# - ProcessStartInfo 타입의 Arguments와 ArgumentList파일 다운로드1
13875정성태1/24/20251899스크립트: 69. 파이썬 - multiprocessing 패키지의 spawn 모드로 동작하는 uvicorn의 workers
13874정성태1/24/20251912스크립트: 68. 파이썬 - multiprocessing Pool의 기본 프로세스 시작 모드(spawn, fork)
13873정성태1/23/20251825디버깅 기술: 217. WinDbg - PCI 장치 열거
13872정성태1/23/20251715오류 유형: 944. WinDbg - 원격 커널 디버깅이 연결은 되지만 Break (Ctrl + Break) 키를 눌러도 멈추지 않는 현상
13871정성태1/22/20251791Windows: 278. Windows - 윈도우를 다른 모니터 화면으로 이동시키는 단축키 (Window + Shift + 화살표)
13870정성태1/18/20252035개발 환경 구성: 741. WinDbg - 네트워크 커널 디버깅이 가능한 NIC 카드 지원 확대
13869정성태1/18/20252223개발 환경 구성: 740. WinDbg - _NT_SYMBOL_PATH 환경 변수에 설정한 경로로 심벌 파일을 다운로드하지 않는 경우
[1]  2  3  4  5  6  7  8  9  10  11  12  13  14  15  ...