559 questions
2
votes
1
answer
122
views
Code rendering of Mandelbrot set doesn't match instructor image, and I can't understand why
This post is a direct continuation of this post from a few days ago.
I'll quickly explain the premise:
We're using DOSBox with the 8086 package and MASM, and we have a small exercise in assembly ...
4
votes
2
answers
156
views
Render of mandelbrot set not fitting what the instructor showed and I can't locate the discrepancy
We're using DOSBox with the 8086 package, and we were have a small exercise in assembly language. We were supposed to print to the screen (of the DOSBox) an approximation of the Mandelbrot set with ...
2
votes
1
answer
120
views
Stuck on Second Stage Bootloader – Turbo C + TASM + DOSBox + QEMU Setup
I'm working on a retro programming project and running into trouble with my bootloader setup. I'm using:
Turbo Assembler 4.01 for the first-stage bootloader (x86 Assembly)
Turbo C 2.0 for the second-...
1
vote
1
answer
48
views
Where can I assemble my assembly file aside from TASM that supports .STACK
I am just following the book from my university to run this simple code I found as an example for my coding practice. I am new to assembly language.
The problem is that I only know how to assemble in ...
-1
votes
2
answers
141
views
Switch text mode to video mode in assembly
I have a project I am doing in assembly. I am making a kahoot style quiz game in x86 assembly, running it in DOSBox.
I made the entire thing with no graphics but I need to make it with graphics so I ...
1
vote
0
answers
183
views
387 FPU instructions to load to stack not doing anything?
So I'm coding some stuff in assembly (TASM) for DOS with DOSBox (long story short: for our assembly course assignments the professor says we need to use an environment from the 90s for some reason, ...
1
vote
1
answer
62
views
Assembler step-mode interrupt handler
I am writing a step-mode interrupt handler in x86 architecture assembler and can't figure out how to find and print out mov byte ptr [bx] and bx registers.
So far i have this and in theory it should ...
0
votes
0
answers
100
views
How to set/force EXE stack size with 1988 Turbo C 2.0 for a reverse engineering project
i try to reconstruct a Turbo C 2.0 DOS small-memory-model executable C source exact-as-possible from disassembly (its an DOS reverse-engineering project and im using IDA Pro disassembling and UASM for ...
0
votes
0
answers
66
views
The DOS program seemingly ignores the 'print *' instruction?
This simple program (16-bit assembly using debug on FreeDOS, code below) expects a one-digit integer. It stops if the integer is either 0 or >1. If it's 1, it generates a new line, prints '*', then ...
1
vote
1
answer
67
views
Resident Program structure and logic
Using 8086 microprocesor and DOSBox.
This resident program is done with those 2 commands:
TASM.exe program.asm &
TLINK.exe /t program.obj
Why is it not working when I run another .exe which has to ...
1
vote
1
answer
85
views
Multiple counts of "Invalid combination of opcode and operands" error
I have written an assembly program that sorts an array using bubble sort. I am getting errors.
This is the full code:
org 100h
section .data
array db 5, 3, 7, 1, 4, 9, 2, 8, 6
array_size db 9
...
2
votes
1
answer
52
views
Procedure for printing numbers doesn't work
I'm working with TASM (in DosBOX emulator).
I'm a beginner and I don't know much yet.
Below is my full code. The problem is that it prints out not just expected output (25 + 10 = 35 and 25 - 10 = 15) ...
-4
votes
1
answer
80
views
Swap 2 lines in text file using assembler
this is my code for swapping 2 lines in DosBox assembly. I can not find out why is it printing the same thing from input.txt to out.txt. I think the problem is with line numbers (and user input). ...
0
votes
1
answer
57
views
Swap 2 lines in text file with assembler
could someone provide an example how to swap 2 lines in txt document using assembly? I would be using it as an example, because right now i'm able to copy contents from one txt file to another, but ...
0
votes
1
answer
73
views
Replace digit with a word and write to a file using assembler 8086 [closed]
I'm writing a program that converts digits into words and also writes every other character unchanged to output file. But for some reason the output buffer overwrites characters on top of each other.
...
