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
70
votes
6 answers

Calculating the sum of two variables in a batch script

This is my first time on Stack Overflow so please be lenient with this question. I have been experimenting with programming with batch and using DOSbox to run them on my linux machine. Here is the code I have been using: @echo off set a=3 set…
swarajd
  • 977
  • 1
  • 10
  • 18
45
votes
4 answers

How to increase size of DOSBox window?

I am running Turbo C on DOSBox in Ubuntu 12.04. The problem is that two black stripes are coming on either of screen. I want to remove them. My computer is a Dell Studio 15z with screen resolution 1366x768. I don't have a problem even if distortion…
Mahi Singh
  • 643
  • 3
  • 8
  • 12
8
votes
1 answer

Define byte appearing in debug after a manually encoded far call

I couldn't get MASM to accept a far call instruction written as call 0f000h:1260h, probably because of the issues brought up in this question. Instead of messing around with cryptic MASM directives, I decided to manually encode it into my program…
bad
  • 939
  • 6
  • 18
7
votes
1 answer

Using 3Dh causes interrupt to only return "Acces Denied"

Configuration : MS-DOS 16 BIT (writing in a .asm file, then compiling them with TASM and TLINK) Windows 7 x64 I've made a simple program in Assembly that should only OPEN a file and write a text to it. Here is the code to it: assume cs:code,…
SnuKies
  • 1,578
  • 1
  • 16
  • 37
7
votes
1 answer

Weird Macros (TASM)

Consider the following macros: pixelFast MACRO ; This macro draws a pixel, assuming the coordinates are already loaded in cx&dx and the color is in al. xor bh, bh mov ah, 0ch int 10h ENDM drawRect MACRO x1, y1, x2, y2, color …
Itamar
  • 137
  • 1
  • 8
6
votes
1 answer

How to play sound on two different DOSBoxes simultaneously?

I have created the game "Angry Birds" in assembly 8086. My main problem now is that I want to play the song of the game while the main loop is running. I've already written the code for the music. I thought about using multi-threading but found out…
Boomer
  • 61
  • 3
6
votes
2 answers

Is it possible to embed binary data into DOS EXEs made in Turbo C?

I've set up a DOSBox development environment with Turbo C++ intending to make a game with my friends. I'm using C code, and am wondering how I'd link binary data into the EXE. (All my previous experience with C is libGBA, sorry if that's not…
6
votes
1 answer

8086 assembly on DOSBox: Bug with idiv instruction?

I was helping a friend of mine debug his program, and we narrowed it down to an issue which occurs even here: .MODEL small .STACK 16 .CODE start: mov ax, 044c0h mov bl, 85 idiv bl exit: mov ax, 4c00h int 21h end start After…
eequinox
  • 63
  • 1
  • 5
6
votes
3 answers

DosBox is buggy with int 15h ah = 86h

I am currently working on an assembly program, but I need to make the program wait every once in a while. So, I have been using int 15h/ah = 86h, but for some reason DosBox is giving me a hard time, and the program either gets confused with pixels…
elyking2001
  • 113
  • 9
6
votes
1 answer

Writing to a file in assembler

I'm tasked with creating a program that would write some string to a file. So far, I came up with this: org 100h mov dx, text mov bx, filename mov cx, 5 mov ah, 40h int 21h mov ax, 4c00h int 21h text db…
Marek M.
  • 3,799
  • 9
  • 43
  • 93
6
votes
2 answers

16 colors for background in MCGA BIOS text mode (AL = 03h)

MCGA supports 4-bits color depth, that is 16 colors. But when I try to print all of these colors, I get only first 8 of them and the rest 8 simply duplicate them as on the pic below. Can it be that I'm doing something wrong here or it is all because…
yulian
  • 1,601
  • 3
  • 21
  • 49
6
votes
2 answers

How to assemble 16-bit asm code using NASM, then debug it in Linux, before making an executable in DOSBox

We've been asked to write 16-bit assembly code and assemble it to run in DOSBox. I know that 16-bit assembly code just differs from normal x86 assembly code in that it uses bits 16 and also 16-bit registers (ax, bx ,cx, ...). I tried searching on…
MDuh
  • 415
  • 1
  • 7
  • 19
5
votes
1 answer

VS 2015 C-header error C2039: 'int_least8_t': is not a member of '`global namespace''

I'm having header-related issues apparently new to VS2015 while trying to compile DOSBox SVN Daum in Windows 10. Examples: Severity Code Description Project File Line Suppression State Error (active) the global scope has no…
5
votes
1 answer

How to increase the text size in assembly graphics?

Here is my code. .model small .stack .data .code ;setting video mode mov ah,0 mov al,12h int 10h ;setting cursor position mov ah,02h mov dh,10 ;row mov dl,40 ;column int 10h mov ah,09h mov bl,0eh ;colour mov cx,1 ;no.of…
Hamza Anis
  • 2,475
  • 1
  • 26
  • 36
5
votes
1 answer

my .exe program is not what I expected

my masm source file is as follows: qq.asm assume cs:codesegment codesegment segment mov ax, 0ffffh mov ds, ax mov al, 00ffh mov bx, 0006h mov [bx], al mov al, [0006] mov ah, 0 mov dx, 0 mov cx, 3 s: add dx, ax loop s mov ax, 4c00h int…
feng smith
  • 1,487
  • 2
  • 9
  • 22
1
2 3
34 35