Questions tagged [dos]

A family of disk-based operating systems (Disk Operating System) for mainframes and minicomputers in the 1960s and 1970s, and subsequently IBM PCs and compatibles of the 1980s and 1990s, including MS-DOS. DO NOT USE THIS TAG FOR QUESTIONS ABOUT THE WINDOWS COMMAND PROMPT! Instead, use the [windows], [batch-file], [windows-console], and/or [cmd] tags. For questions about denial-of-service (DoS) attacks, use [denial-of-service].

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

How to trouble shoot PS/2 mouse not working on a Japanese Dos 5.5 based machine

Have problem with connecting a PS/2 mouse to a Japanese DOS 5.5 system. How to determining whether the necessary drivers are already installed and, if not, how to install them. The computer has a ...
J. Vas's user avatar
  • 21
0 votes
1 answer
97 views

How to get the Study Instance UID (0020,000d) from DOS and display it in a memo with Delphi/Delphi 5 correctly? (DICOM)

i'm currently trying to implement a procedure called "GetDosOutput" in Delphi 5/ Delphi 10. In this procedure I want to get the DOS output from a worklist query (via DCMTK toolbox) and ...
Robert's user avatar
  • 3
0 votes
1 answer
29 views

How can I read a file, char by char until it reaches '|' in 8086?

I want to read the characters one by one and have it stop when reaching the '|' character. I'm using dosbox and 8086. MOV AX, @DATA MOV DS, AX lea si, buffer ; Open the file for ...
Loo Ren Hao 's user avatar
1 vote
1 answer
62 views

Assembly in dosbox clear screen

I wanna clear screen on the display but then when I try it's always either the screen is cleared but then it will be zoomed in or the screen is cleared but my cursor is gone and all my code details ...
Joseph Lim's user avatar
0 votes
1 answer
45 views

In DosBox-X batch, how to get user string input?

I need a text input in Dosbox, so it goes into an enviroment variable. None of the solutions on Stack Overflow worked. set /p doesn't work. W.bat doesn't work too. I can use other programs besides the ...
stysan's user avatar
  • 313
0 votes
0 answers
57 views

Saving screen at 320x200x246

i'm writing a program in MASM 6.0 using assembly to run it in MS-DOS i've a main screen where users create some images/blocks and i have a help screen when user press F1, i use all memory in a buffer ...
Mario Augusto's user avatar
0 votes
1 answer
38 views

how to get the mouse position in assembly

here is a part of my code, this should draw a pixel on the mouse position: mov ax,3h ;set interruption to getting the mouse pos int 33h ;after the interruption: cx=x, dx=y mov ah, 0Ch ...
plsHelpMe's user avatar
0 votes
0 answers
61 views

How do I launch MS-DOS VM on Proxmox VE?

How should I do ? My hardware is N5105 mini PC. And proxmox version: pve-manager/7.2-3/c743d6c1 (running kernel: 5.15.30-2-pve) I want launch a MS-DOS VM on Proxmox VE. And I have searched the Proxmox ...
hong539's user avatar
0 votes
1 answer
55 views

Implementing vertical sync MS DOS C++

I'm right now developing a game for ms dos in C++ (compiler: DJGPP) and need to test if the VGA card is currently in the vertical blanking interval. Is there a memory address I can just read? How can ...
user avatar
0 votes
0 answers
50 views

How to read CSV Files in C with MS-DOS and Macintosh formatting?

I am quite new to C and right now I try to read my first CSV files. But somehow I just cant read the MS-DOS formatted files. On top of that (and what confuses me the most) is, that my program reads ...
nicht hier 8D's user avatar
0 votes
0 answers
18 views

Windows 11 graftabl command isn't there anymore?

I just noticed this today on win 11 pro. The graftabl command gives a "'graftabl' is not recognized as an internal or external command, operable program or batch file." It's still mentioned ...
sproketboy's user avatar
  • 8,987
0 votes
0 answers
65 views

Is there a software solution for LPT port emulation?

Is there a software solution for simulating a printer for an old program under DOS or an old Windows (type 98 or XP), which sends a text stream through the LPT port to the printer, intercepts this ...
Kadel's user avatar
  • 17
1 vote
1 answer
31 views

Python code to replicate DOS Copy command - Binary

In DOS there is a simple command: copy /b file1 file2 file3 This will do a Binary copy that concatenates file1+file2 outputting file3. It may seem odd but I need to attach an existing file (xml) as ...
kscott's user avatar
  • 11
0 votes
0 answers
14 views

Function recursion searching for files in directory

I'm trying to write a program to search the hard drive for a file specified by the user. However, when I run the program, I either get 'stack overflow' errors or it doesn't properly walk all ...
Charlie Dobson's user avatar
3 votes
1 answer
150 views

Why does there appear to be an inconsistency with the DOS PSP's unformatted parameter area?

For both MS-DOS and IBM-DOS, the latter of which I am using, starting at address 80h, there is a reserved portion in memory for command line arguments passed along. Address 80h is a counter for how ...
Missingno50's user avatar
0 votes
1 answer
94 views

assembly 8086 tic tac toe proc not working

Assembly 8086 procedure for checking winner in a tic tac toe game is only checking the first row Im making a ultimate tic tac toe, and ive almost made the entire game, im mapping to the array, im ...
Tomás Ramos's user avatar
0 votes
2 answers
171 views

Printing Contents of a .txt file in x86 NASM Assembly Language

I am learning Assembly Language and am trying to print a .txt file. Here's my code: [org 0x0100] jmp start filename: db 'test1.txt', 0 ;file that is to be loaded buffer: times 4096 db 0 ;...
WatchingSafe's user avatar
0 votes
0 answers
40 views

Is it possible to find out the amount of RAM in turbo pascal, and if so, how?

I need a program for dos Thanks in advance I searched on the Internet but did not find anything for turbo pascal, only for pascal ABC
Alex Frolov's user avatar
1 vote
0 answers
32 views

Confused about how to switch from redirection to keyboard input

I am attempting 'fix' a DOS application (assembly source available) from years back in regards to using redirection properly. The DOS application is a command line application that uses keyboard ...
rfdes's user avatar
  • 69
1 vote
0 answers
41 views

Bios Firmware - How to step through software interrupt [closed]

I have a desire to reverse engineer the INT 1A software interrupt on an old Phoenix Bios from the late '90s. The bios firmware is shadowed so I can debug in RAM. I've been trying several old DOS ...
rfdes's user avatar
  • 69
1 vote
1 answer
165 views

Why is my program crashing when it reaches the for loop?

I have a problem with memset and a big for loop in Turbo C. I was programming a small Graphics library based on Mode 13h with Turbo C++ 3.00 on MS-DOS 6.22 on Virtual Box, when the code started ...
SlickSpore's user avatar
0 votes
0 answers
59 views

DIR & FINDSTR to search multiple keywords and pipe only top 2 search results from each keyword search to CLIP

In Excel VBA, I am trying to search C:\ folders and sub-folders for multiple keywords using WScript.Shell with DIR, FINDSTR & CLIP commands. Here is a snippet of the DOS command: dir c:\ /s /b /ad|...
sifar's user avatar
  • 1,104
-1 votes
1 answer
55 views

Dos batch script: using script manipulation deletes the variable entirely

I'm using batch file on DosBox (0.74-3), and i have a variable holding a filename. when i try to remove/replace the file extention using %file_name:~0,-3% or %file_name:.in=% (or even %file_name:% for ...
binyamin alony's user avatar
0 votes
0 answers
37 views

How do I associate 16-bit programs in WINE with a shell script?

I would like to use DOSBox to run 16 bit DOS programs. Since WINE does not do that natively, I needed to run a shell script when a 16 bit EXE is executed to configure DOSBox appropriately. The wine ...
KJ7LNW's user avatar
  • 1,435
0 votes
0 answers
36 views

Emulator displays "error INT 21h, AH=09h - address: 0722F byte 24h not found after 2000 bytes."

.model small .stack 100h .data a db ? b db ? c db "Insert first value: ?" d db 10,13,"Insert second value: ?" e db 10,13,"Result: ?" .code main proc mov ax,@data ...
Mohammad Nahin Islam's user avatar
0 votes
0 answers
71 views

Printing user string input twice in the same line in Assembly Language

I am currently studying how to print user input in Assembly Language. My goal is to print the input twice on the same line. However, what I currently did is printing them on different lines. What ...
LeNewbiee's user avatar
0 votes
0 answers
12 views

Using the Move Command

I'd like a way to "move" files to a certain folder based on part of their name, not extension. Files could be in any folder now. Trying to organize drive and information. Example: move ...
DrDOS's user avatar
  • 1
0 votes
1 answer
56 views

use dos set variables in if statement to set the ip address of a machine

I am trying to use the variables from the set command in dos, namely the %computername% to set a static IP address for a machine or two. I am a bit crap at writing code, so I have broken it down into ...
tommyketchup's user avatar
0 votes
0 answers
19 views

Why when I run my application DOS shows me the SIGSEGV error?

I'm trying to make a game for MS-DOS in DOSBox with DJGPP and Allegro 4. But when I try to draw a shape or show a sprite on screen I get the SIGSEGV error. This is my code: RGB palette[256]; ...
Mau_RyT0's user avatar
1 vote
0 answers
48 views

DOS 01h Read character behavior on EOF

Using 01h interrupt (AH = 01h - READ CHARACTER FROM STANDARD INPUT, WITH ECHO), what will be output at the end of stdin for a cat program? Is ^Z (1Ah) used to mark the end of stdin by convention? ...
qwr's user avatar
  • 9,555
0 votes
0 answers
54 views

Command prompt failed to execute command with syntax-FOR-Command Results

In one of my Windows device, it failed to execute the command with syntax-FOR-Command Results FOR /f %I IN ('dir') DO ECHO %I Already tried to edit the regedit by deleting all values under Computer\...
C.Andrew's user avatar
0 votes
0 answers
88 views

count number of words in a txt file

I'm a beginner in coding especially on assembly language. So I got a problem on the code that I make. The task is to design an assembly code, and test a program that prompts the user to enter the name ...
MuuN's user avatar
  • 1
0 votes
0 answers
46 views

Checking for substring in DOS

I have this code and I want to check if the second string is found in the first. If so, display "yes", otherwise "no", also the positions where it is found. .model small .stack ...
Ana Camen's user avatar
2 votes
1 answer
54 views

The DOS.GetSystemTime function 2Ch is not accurate

The DOS.GetSystemTime function 2Ch returns the current time as hours (CH), minutes (CL), seconds (DH), and hundredths of a second (DL). As it turns out these 'hundredths of a second' are more like '...
Sep Roland's user avatar
0 votes
0 answers
68 views

Why can't I access variables through the DS segment register?

I wrote the following real-mode 8086 assembly program that's supposed to fill the whole screen with asterisks but it's not working properly - it seems that the position variable cannot be accessed ...
sajmon's user avatar
  • 131
0 votes
0 answers
107 views

Execute a third application in DOS with Int 21h/4Bh using MASM

I do not understand, why the int21h/4Bh make this problems for MASM. I found a ASM code for FASM that seems to work. But with MASM it won't. The problem seems that in FASM INC files are in the ...
Born34's user avatar
  • 49
-1 votes
1 answer
43 views

How to return to main code after jump in x86 assembly?

.stack 100h .data ~the offsets here total db 0 mesajfinal db ' intrebari corecte din 4',13,10,'$' **.code** mov ax,@data mov ds,ax mov ah,9h mov dx,offset m11 int 21h mov ah,9h mov dx,...
P4th0 88's user avatar
2 votes
1 answer
495 views

Intel 8086 assembly code: reading from terminal

I need help with my task in assembly (Intel 8086 CPU). The task is: A program to try reading from the terminal line by line: Read input from the terminal line by line with INT 21h AH=0x0a and find ...
Loosos's user avatar
  • 83
-3 votes
1 answer
243 views

assembly encryption decryption program

hello if anyone can help me with this code that im facing a problem with i dont know where exactly is the error but its only working with the first few steps then when it coms to letting the user ...
Maryam Abdulla's user avatar
2 votes
2 answers
171 views

Compiled COM files with empty project is over 10 KiB large in Turbo Pascal

I have a problem with the binary's size of old Pascal versions. We need very small simple programs. We would like to use Turbo Pascal 2 in MS-DOS (higher is the same problem) to compile COM files. But ...
Born34's user avatar
  • 49
1 vote
1 answer
58 views

Counting how many times a substring occurs in a string

The university has asked me to write code in x86 assembler that counts how many times a substring is contained in a string. For example, how many times does the string "QWWQQWWQQW" contain ...
Veselchak's user avatar
0 votes
1 answer
232 views

Write and run a program that adds 5 bytes of data and saves the result

Write and run a program that adds 5 bytes of data and saves the result. The data should be the following hex numbers: 25, 12, 15, IF, and 2B. Show the program and the snapshot of the output. The ...
kishan raj's user avatar
1 vote
1 answer
57 views

How to transfer data from one file to another in YASM with interrupt

I am writing my own interrupt, to transfer 100 bytes from one file to another file. (My interrupt code is 0x88). What the interrupt does: the interrupt gets two addresses DS:DX - input file; ES:CX - ...
KazlLaur's user avatar
0 votes
0 answers
23 views

Multiplying each buffer string in x86 [duplicate]

I have a part of code where I need to multiply number from 0-9 and print it out, but I do it by taking one integer at a time and multiplying it by 4 this time, but I don't know what to do when after ...
lulzo's user avatar
  • 11
0 votes
0 answers
51 views

vDos (DOS emulator) shows incorrect character

that is some sort of unusual question. A friend uses an old MS-DOS program on XP to handle some database operations (.dbf files). For instance, the application shows information about product e.g. the ...
link's user avatar
  • 511
0 votes
1 answer
484 views

How use mov ah,1 int 21h for single inputs?

So I have this code for single input but it does output multiple characters every time. So now my question is how to apply the single character input only using int 21h ah 1? Still confused and ...
Midorin's user avatar
  • 11
1 vote
1 answer
75 views

Checking if the right mouse button was clicked and then "unclicked" in Assembly

I have a relatively simple TASM program that needs to draw using left mouse button, show cursor coordinates and change colors on right mouse click. The problem is it skips over some colors if you hold ...
Easyman121's user avatar
0 votes
0 answers
30 views

How do I get my character to move back left across the screen in asm?

I am trying to get my inputted character to move left and right. I have it working to move the character to the right but I can't figure out how to get it to move back to the left in another for loop. ...
Learning2Code's user avatar
1 vote
1 answer
245 views

Working with strings from file YASM (8086)

I have one task to do. I will try to explain it as clearly as possible. When you run the program, it asks to input (reading file and writing file). Reading file has lines in range [1; 999]. Every line ...
Kurbamit's user avatar
0 votes
1 answer
53 views

Create directory but only when not running from floppy

I'm trying to get my application to create a directory if it doesn't exist, but only if the application isn't running from a floppy drive. I'm making the assumption that drives A: and B: are floppies....
Charlie Dobson's user avatar

1
2 3 4 5
56