Questions tagged [dosbox]

x86 Emulator for old PC applications

DOSBox is an x86 emulator.

The purpose is to allow newer machines to run older programs that can not be run under modern operating systems such as Windows XP, 7, etc.

Information at: http://www.dosbox.com/wiki/Main_Page

515 questions
5
votes
1 answer

How do I properly allocate a memory buffer to apply double buffering in dosbox using turbo c?

Okay so I am trying to apply a double buffering technique in an emulated environment (DosBox) while using the IDE Turbo C++ 3.0 I am running windows 7 64bit(Not sure if that matters) and I have no clue how to properly execute the buffering routine…
Drozerix
  • 53
  • 6
5
votes
2 answers

DOSBox Exit to error: CPU_SetSegGeneral: Stack segment zero

I am trying to run an old Clipper application. It runs fine on Win 7 32bit but when I try using the DOSBox 0.74 it crashes with the following error: Exit to error: CPU_SetSegGeneral: Stack segment zero Are there some settings I forget to set when…
Boro
  • 7,913
  • 4
  • 43
  • 85
4
votes
1 answer

color palette not working on certain colors in VGA

I'm trying to set the VGA(640x480x16) color palette in assembler on DOSBox but specifically colors 6, 8-F don't change. I have tried using interrupts and directly through ports both work for other colors but not for those. I'm using DOSBox 0.74-3 on…
Saar BS
  • 43
  • 3
4
votes
1 answer

In Windows 3.1 WinAPI How To Lock A File?

I was trying to run Visual Basic 4 (16-bit) in Windows 3.1 running within DosBox. However it failed to launch with error: SHARE.exe must be installed in order to run Visual Basic Some old MS-DOS applications just check for existence of the EXE and…
Malcolm McCaffery
  • 2,468
  • 1
  • 22
  • 43
4
votes
1 answer

error: unrecognised directive [ORG]

I was trying to write a boot-loader to use in dos-box I wrote the following code [BITS 16] ;tell the assembler that its a 16 bit code [ORG 0x7C00] ;Origin, tell the assembler that where the code will ;be in memory after it is been loaded JMP $…
Ammar Atef
  • 96
  • 1
  • 11
4
votes
1 answer

How to subtract two 64 bit integers in 8086 assembly

Write a program called SUB64 to subtract the 64-bit integer in memory locations 0x0150 and 0x0154 from the 64-bit integer in 0x0160 and 0x0164. Store the result in memory location 0x0170 and 0x0174. I understand the logic behind separating it into…
Penrose5833
  • 107
  • 2
  • 10
4
votes
0 answers

ASM: INT 20 doesn`t work on Debug DOSbox

I've only done that and the window turns frozen while executing the program: debug.exe -a0100 073F:0100 MOV AX,0002 073F:0103 MOV BX,0004 073F:0106 ADD AX,BX 073F:0108 INT 20 073F:010A -g ...and it fails. It doesn't fail if I try: -g108 Because,…
4
votes
0 answers

Any insights on this Microsoft C 5.1 floating point and DOSBox weirdness?

This is a fantastically strange bug that has been tweaking my noodle for the better part of a day; it took me some time to boil it down to this. The setup: Microsoft C 5.10 (~1988) DOSBox 0.74 Windows 10 (64-bit) The code (double.c): #include…
Neil C. Obremski
  • 18,696
  • 24
  • 83
  • 112
4
votes
4 answers

Change the background color of dosbox console when executing a tasm program

I am trying to display x in the center of the screen and then change the background color of the console to blue. I have the following code that accomplishes everything except for changing the background color: TITLE screen1.ASM .MODEL…
SoulRider
  • 145
  • 2
  • 3
  • 11
4
votes
2 answers

Program solving expression in assembly

I have a problem with my simple program in assembly. I'm using DOSBox and TASM. The problem is that the operand types don't match in lines 76, 78, and 80. This is after multiplication. I tried to make some changes by using a different variable…
Mack
  • 81
  • 1
  • 2
  • 7
4
votes
1 answer

What is the best way to move an object on the screen?

I wanted to know what is the best way for moving an object on the screen - for example: if some kind of shape presented on the screen (on graphic mode), I would like to move it left and right using the keyboard's arrows keys. I know how to read the…
Orange
  • 79
  • 3
  • 9
4
votes
2 answers

Vectors header file in DosBox

I am using DosBox 0.74 and I want to use vectors function, but I can't locate its header file ? its not nor . I tried it with Visual Studio and it was working fine. It has a different name in DosBox or what ? Please help me, since…
Syed Rafay
  • 55
  • 7
3
votes
1 answer

Multi Defined symbol masm 5.0

sorry I would have a probelam. In practice The MASM Assembler does not recognize my macro labels, or rather, even if I define them as local, the following returns to me: ERROR A2005 Multidefined Symbol .... This for more and more time I'll…
mattstack
  • 103
  • 6
3
votes
2 answers

What is causing this bootloader to fail on hardware but not in DOSBOX? It displays all registers

I recently wrote an x86 'bootloader' program that shows the values of the hardware registers after the BIOS jumps to my program. For the purpose of testing, I set the AX register to a known value to ensure that the program runs correctly. BITS…
はるき
  • 141
  • 1
  • 9
3
votes
1 answer

Assembly - Program works like expected, but when ran a second time, prints gibberish

I'm making a program in TASM assembly (i honestly have no idea if it's 16 bit, x86, 64 bit maybe 8086?. I'm using TASM inside DOSBox for assembling, linking, and testing. The user inputs characters until the user presses Enter key. then echos what…
ori6151
  • 592
  • 5
  • 11
1
2
3
34 35