Microsoft MVP성태의 닷넷 이야기
개발 환경 구성: 672. DosBox를 이용한 Turbo C, Windows 3.1 설치 [링크 복사], [링크+제목 복사],
조회: 3950
글쓴 사람
정성태 (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)
13539정성태1/26/20242371개발 환경 구성: 703. Visual Studio - launchSettings.json을 이용한 HTTP/HTTPS 포트 바인딩
13538정성태1/25/20242425닷넷: 2211. C# - NonGC(FOH) 영역에 .NET 개체를 생성파일 다운로드1
13537정성태1/24/20242526닷넷: 2210. C# - Native 메모리에 .NET 개체를 생성파일 다운로드1
13536정성태1/23/20242599닷넷: 2209. .NET 8 - NonGC Heap / FOH (Frozen Object Heap) [1]
13535정성태1/22/20242471닷넷: 2208. C# - GCHandle 구조체의 메모리 분석
13534정성태1/21/20242260닷넷: 2207. C# - SQL Server DB를 bacpac으로 Export/Import파일 다운로드1
13533정성태1/18/20242482닷넷: 2206. C# - TCP KeepAlive의 서버 측 구현파일 다운로드1
13532정성태1/17/20242366닷넷: 2205. C# - SuperSimpleTcp 사용 시 주의할 점파일 다운로드1
13531정성태1/16/20242272닷넷: 2204. C# - TCP KeepAlive에 새로 추가된 Retry 옵션파일 다운로드1
13530정성태1/15/20242209닷넷: 2203. C# - Python과의 AES 암호화 연동파일 다운로드1
13529정성태1/15/20242087닷넷: 2202. C# - PublishAot의 glibc에 대한 정적 링킹하는 방법
13528정성태1/14/20242231Linux: 68. busybox 컨테이너에서 실행 가능한 C++, Go 프로그램 빌드
13527정성태1/14/20242156오류 유형: 892. Visual Studio - Failed to launch debug adapter. Additional information may be available in the output window.
13526정성태1/14/20242240닷넷: 2201. C# - Facebook 연동 / 사용자 탈퇴 처리 방법
13525정성태1/13/20242209오류 유형: 891. Visual Studio - Web Application을 실행하지 못하는 IISExpress
13524정성태1/12/20242296오류 유형: 890. 한국투자증권 KIS Developers OpenAPI - GW라우팅 중 오류가 발생했습니다.
13523정성태1/12/20242098오류 유형: 889. Visual Studio - error : A project with that name is already opened in the solution.
13522정성태1/11/20242241닷넷: 2200. C# - HttpClient.PostAsJsonAsync 호출 시 "Transfer-Encoding: chunked" 대신 "Content-Length" 헤더 처리
13521정성태1/11/20242302닷넷: 2199. C# - 한국투자증권 KIS Developers OpenAPI의 WebSocket Ping, Pong 처리
13520정성태1/10/20242070오류 유형: 888. C# - Unable to resolve service for type 'Microsoft.Extensions.ObjectPool.ObjectPool`....'
13519정성태1/10/20242128닷넷: 2198. C# - Reflection을 이용한 ClientWebSocket의 Ping 호출파일 다운로드1
13518정성태1/9/20242383닷넷: 2197. C# - ClientWebSocket의 Ping, Pong 처리
13517정성태1/8/20242218스크립트: 63. Python - 공개 패키지를 이용한 위성 이미지 생성 (pystac_client, odc.stac)
13516정성태1/7/20242339닷넷: 2196. IIS - AppPool의 "Disable Overlapped Recycle" 옵션의 부작용
13515정성태1/6/20242616닷넷: 2195. async 메서드 내에서 C# 7의 discard 구문 활용 사례 [1]
13514정성태1/5/20242295개발 환경 구성: 702. IIS - AppPool의 "Disable Overlapped Recycle" 옵션
1  2  3  [4]  5  6  7  8  9  10  11  12  13  14  15  ...