All Questions
2,784
questions
2
votes
0
answers
55
views
NASM ORG doesn't like SECTION [closed]
Looks like NASM ORG directive doesn't behave correctly in the presence of SECTION directive, in spite that it's compiled to the binary format. I wonder if there's an alternative for ORG in NASM which ...
2
votes
1
answer
50
views
Why does the code show only some white lines when you compiled it?
.MODEL SMALL
.STACK 100h
.DATA
COLUMNA DW ?
FILA DW ?
AVANCEH DW ?
AVANCEV DW ?
.CODE
DETENER_POR_TIEMPO PROC
MOV CX, 2000h
MOV DX, 2000h
MOV BX, 2000h
NOP
RET
DETENER_POR_TIEMPO ...
-1
votes
1
answer
44
views
Why does my code not check for the second button press?
Here is my code for checking both presses. I don't understand why does the second button doesn't work
proc whatPress
pusha
call setUpMagicNumbers
call startscreen
mov ax,00
int 33h
...
2
votes
2
answers
73
views
How to make DosBox stop blinking when printing on the screen?
I'm new to assembler. I'm trying to do an "Space Invaders" game, but encountered a problem.
Every time I print the main spaceship and the enemies, I erase the whole screen, and then print ...
1
vote
1
answer
35
views
why does my code shows the starting screen and losing screen together even if i dont call the losing screen at any point
i want to make a start screen for my game and an end screen. when i start it shows my start screen for a second and than immidiately changes to the lose screen, the button are still working to start ...
2
votes
1
answer
47
views
assembly 8086 space invaders project, int 10h doesnt work
im making a space invaders project to school and im trying to check if the aliens got to the button of the screen. i used the int 10h d (it takes the color of a pixel on the screen) on my code and it ...
2
votes
1
answer
50
views
How does the string "PiLo" get referenced without the use of a label?
I'm puzzled by the code from the Pintos OS, named loader.S. I don't get how the string .string "PiLo" is used by puts when there's no label involved.
sub %dx, %dx # Serial ...
0
votes
1
answer
28
views
Having trouble wih the mouse and outpot
I want to allow the user to click on his chosen submarine (which are already located:)) and then he clicks another time on the screen and the submarine appers there. For some reason no matter what i ...
1
vote
1
answer
43
views
binary division using TASM. Having hard time to get an accurate quotient when running it
This is the code, what do you think is something wrong on why it keeps producing incorrect quotient.
divide proc
; Set cursor position for PROMPT_1
mov ah, 02h
mov bh, 00h
mov dh, 0Bh ;...
1
vote
1
answer
30
views
error in displaying result and executing the chosen arithmetic operation
.model small
.stack 100h
.data
greeting db 'WELCOME TO YOUR CALCULATOR', 0Dh, 0Ah, '$'
menu db '1 - ADDITION', 0Dh, 0Ah, '2 - SUBTRACTION', 0Dh, 0Ah, '3 - MULTIPLICATION', 0Dh, 0Ah, '4 - ...
0
votes
0
answers
57
views
Celsius to Fahrenheit assembly
I am was trying to convert Celsius to Fahrenheit. Then display your Name and Fahrenheit value.
This is the output I get
and here's the code
DATA_SEG SEGMENT
MSG_ENTER_FIRST DB 13,10,'Enter the ...
1
vote
1
answer
56
views
Comparing 3 numbers (every number is three-digit) in TASM 8086
mov ah, 09h
lea dx, msg1
int 21h
; Read 1st number
mov ah, 01h
int 21h
mov bh, al
mov ah, 01h
int 21h
mov bl, al
mov ax,bx
and ax,0F0Fh
aad ;0X0X --> 00XX
mov bl,al ;1ST NUMBER
...
1
vote
1
answer
35
views
Adding up to 3 digits number with carry over 1000 in assembly
This is the code I have tried and it only works with 3 digits numbers but the sum does not exceed 1000 for adding 3 digit numbers that exceeds 1000 just outputs 1000. I also have a problem fixing ...
0
votes
1
answer
15
views
there is always an warning message and also when I type in the right student number it always show access denied
.model small
.stack 64
.data
.data
username_buffer DB 20 DUP(?) ; Buffer to store the username
prompt_username DB "Enter your username: $"
msg_wrong_username DB "Wrong ...
-1
votes
1
answer
35
views
Assembly Intel 8086 64-bits operands calculator
Please I need the full program of a calculator that calculates the sum, the subtraction, the multiplication, and the division of 2 operands 64 bits each.
Because the registers in 8086 microprocessor ...