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
-1
votes
1 answer

Assembly Conversion hexadecimal to decimal (4 digit max)

This code converts 1 digit hexadecimal to decimal, it's working, copy the internet, but I want to understand a little better how it works, and add a loop where I can get up to 4 digits.I would like a help on how to perform this loop. I'm using…
Daniel Schiramm
  • 11
  • 1
  • 1
  • 2
-1
votes
1 answer

Assembly - can't understand what's wrong

Here is the code: proc ChangeColumnNumber1 inc [FirstColumnArray] mov [Player1Drawx], 25h mov [Player1Drawy], 87h jmp DrawPlayer1Disc endp ChangeColumnNumber1 DrawPlayer1Loop: mov bh,0h mov cx,[Player1Drawx] mov…
KatomPower
  • 119
  • 1
  • 3
  • 14
-1
votes
1 answer

How to run SDL 2.0 project setup executable using DOSBox?

I am newbie to SDL and developed a small SDL 2.0 project, trying to run setup under dosbox but it crash.
Sanjay Kumar
  • 369
  • 6
  • 23
-1
votes
1 answer

How to convert the first letter of each sentence to uppercase and all other letters to lowercase (Assembly)?

below is a program that makes the first letter of each sentence uppercase. However, I need to modify this program in order for it to make any other word letters lowercase. Also, there could be a lot of sentences. So far, I've noticed that the…
Pa2k3l1s
  • 1
  • 6
-1
votes
3 answers

NASM output prompt for user input

Related, but not helpful to my current situation: nasm dos interrupt (output string) (I just wanted to clarify this is not a duplicate) What I am trying to do is create a prompt that will say "Enter a Base 10 number: " to the user. After that, I…
Jud
  • 1,324
  • 3
  • 24
  • 47
-1
votes
3 answers

Win Vista - dosbox - gcc - hello world - console app not running

I have written the simple Hello World Application on windows xp file Name "hello.c" as: #include int main(){ printf("Hello World\n"); return 0; } compiled with the following command: gcc hello.c Now on another Machine with…
-2
votes
1 answer

How can I print numbers on assembly in graphic mode? I want to print a changing number (variable that changes among the time) and not a string

I'm building a game in assembly and I want to print the score every time, how can I do that? I made a variable named score but I don't know how to print it on the screen as a number
maya
  • 51
  • 2
-2
votes
1 answer

Cannot execute some DOS commands in DosBox

I'm trying to program batch script in dosbox, but there is no some commands. For example, if I execute this code: set var=helloworld echo %var:~1,5% I'll get empty line. Also I can't execute FOR command. It says: 'Illegal command FOR'
-2
votes
1 answer

Printing out a certain number of '#' depending on the value in the array

My program is stuck in an infinite loop when I try to print out the'#'s. How it should work is the user will input 2, 5, 8 and it should print: Each # represents 1 ## ##### ######## But if the max value is over 80, and for example, the input was…
-2
votes
1 answer

assembly code to find the max number of consecutive ones

How can I find the max number of consecutive ones in a byte when I took a character from user and determine the number of max consecutive ones in the byte. I tried this code but it is not working, it is print all ones in the number not the…
-2
votes
1 answer

Assembler debugging to get system time

I am attempting to try to get the system date for my PC with the DOS function AH = 2A. As you can see from the picture below, I'm having a bit of an issue getting DH, DL and AL. CX comes up when I run it and I'm able to get the year 2017.
DrSoloX
  • 1
  • 1
-2
votes
1 answer

Read user Input and put it into a dup() of words TASM

I need to get user input and put it into cArr dw 21 dup('') for later use, and I can't seem to figure out how to do it. Can someone help me?
-2
votes
4 answers

Print multiplication table assembly language

Hi m using dosbox and masm compilor how can i print multiplication table my code is as follows but it prints special characters. KIndly correct me here m doing wrong. Correct the code if any one can help me through this .MODEL SMALL …
anila
  • 119
  • 2
  • 3
  • 8
-2
votes
1 answer

Scan Codes For Arrow Keys

The "processKey" function below is made to recognize what key you have pressed on the keyboard and perform some action based on which key was pressed. All of the keys that are programmed below work. I need to add in to the function the ability to…
BCRwar1
  • 189
  • 5
  • 21
-3
votes
1 answer

Why is Turbo C++ showing this error in DOSBox on my Mac?

I don't understand why it couldn't recognise #include . I have mounted it in my C drive The link for the image of the error is here: The error it shows: What does "Unable to create output file mean? ERROR 2 ERROR 3
Zindagi
  • 27
  • 1
  • 5
1 2 3
34
35