All Questions
886
questions
1
vote
1
answer
40
views
how to use speaker (msdos) in new computers? [closed]
I'm programming in assembly, and want to use the speaker, I can do that with out 43, al and out 61, al, this in Dosbox. But i've a notebook with DOS 6.22 in hd, all the program works well, but the ...
0
votes
0
answers
35
views
MASM Fatal error: unmatched blocked nesting : DELETE
I am trying to find why is my code in assembly not compiling. I am a beginner in this language and I don't seem to know the problem. I tried changing the DELETE variable into DELETESG but the same ...
0
votes
1
answer
134
views
How to implement Unreal mode with NASM (DOS)?
I'd like to implement Unreal mode (access all 4GB memory) with NASM in DOS. I've found a TASM implementation:
.386p
RealSeg Segment Para Public Use16
Assume cs:RealSeg, ds:RalSeg
Real_Start:
cli
...
1
vote
1
answer
50
views
Centering Text in Assembly Language Programming
Do you have any idea on how I can center the text or string in Assembly Language Programming?
Here's my source code:
.model small
.stack 100h
.data
;**********************************************
...
1
vote
0
answers
42
views
MASM x86 program printing random symbols
I was trying to run my assembly language program written in MASM x86 when I found that every time when I print out my receipt, all burgers are printed with random symbols behind them. The original ...
2
votes
0
answers
87
views
allocate memory in a 32-bit DOS program written in assembly
Here is my 32-bit DOS program written in assembly:
; hellod.asm
.386
.model flat
.code
_start:
mov ax, 901h ; Enable virtual interrupts.
int 31h
mov ah, 9
mov edx, offset message
int 21h
mov ax, ...
1
vote
1
answer
48
views
How to set the register from the data from memory using the CMOVG instruction?
The problem is inside the Graphic subroutine at row 236. (4th, 13th and 16th row in sublabel .writePixel).
In this subroutine I browse the graphic pixel from 280 to 487 column and 368 to 385 row. (...
1
vote
1
answer
65
views
DOSbox automatically freezes and crashes without any prompt warnings
I was trying to run my assembly language program and it is when i try to enter the 2nd input, the cursor freezes and the DOSbox emulator would crash after a few seconds of delay.
I've tried running ...
0
votes
1
answer
40
views
Move string to end of file assembly
I need to move my message string to the end of program and the program need to output it correctly. How can I do that?
.model small
.stack 100h
.data
.code
main:
mov ax, @data
mov ds, ax
...
0
votes
1
answer
35
views
Unknown error in assembly language code, the result of multiplication operation is always random symbol
I have just started learning assembly language and i tried to write a program on my own with notepad++ and dosbox emulator for multiplication operations. However, the result is always random symbol ...
0
votes
0
answers
54
views
"Symbol not defined : @STACK " error in ASM code for 8086. Compiled using DOSBOX ,MASM
This is a code to add all numbers between 50 and 150 and display the result in decimal form.I have created the stack segment .STACK 32 to store the remainders to convert the hex result to decimal ...
-3
votes
1
answer
100
views
Why does code in MS-DOS Debug does not run and makes the prompt disappear? [closed]
I'm writing this code in DOSBox-0.74-3, making use of MS-DOS Debug and once I run it makes the prompt disappear and it does not do anything else.
mov cx,16
db 0d,0a,"placeholder",0d,0a,24
...
1
vote
3
answers
72
views
Error in emulator output for pong game in assembly language
Pong game in assembly language
I am trying to make a small pong game for my own practice in assembly language as I'm a beginner in this area.
I'm running the code on my x86 64-bit Windows pc. I'm ...
1
vote
1
answer
87
views
x86 MS Macro Assembler Hello World program crashes
I have, just for fun, started learning assembler for the x86 architecture, its something i always wanted to know more about. I am using Microsoft Macro Assembler v6.11 running under IBM PC DOS 2000 (...
0
votes
0
answers
57
views
Checking for collision of snake with border in 8088 assembly language
org 0x100
jmp start
checkBorder:
push bp
mov bp,sp
push ax
push bx
push cx
push dx
mov ax,[bp+6]
mov bx,[bp+4]
cmp ax,17
jz over
cmp ax,54
jz over
...