All Questions
843
questions
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 ...
0
votes
1
answer
40
views
i get this error trying to jump to the end point [duplicate]
this the procedure for the esc press to exit
i am trying to jump from this proc to the exit to stop game whenever esc is pressed. but it says that escpressed is out of range
proc escpressed
mov ah,1h
...
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
33
views
Left Player's Paddle Keeps Moving After Key Release in TASM Assembly 8086 Pong Game
I'm working on an assembly language Pong game where the left player's paddle continues to move even after the key is released. The right player's paddle works fine, stopping when the key is not ...
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
votes
1
answer
32
views
How to shorten my code so it can meet command jumping length
I have this code that I'm trying to run but it tells me that it's too big of a jump.
At first it said "Relative jump out of range by 0015h bytes" when the code was this:
restart:
mov ax, ...
1
vote
1
answer
150
views
Struggling with TEA Algorithm in Assembly 8086 TASM
I’m attempting to implement the TEA algorithm in assembly language (8086 TASM). However, I’m encountering difficulties in two areas
String Input: I need assistance in implementing a mechanism to ...
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 ...
0
votes
0
answers
39
views
How to Print Strings in an Array Assembly TASM
I have an array, fruitNames db "Apple$", "Mango$", "Orange$", "Kiwi$", "Watermelon$". I want to print every fruit name and display them using loops. ...
1
vote
1
answer
53
views
Having troubles with creating sprites in tasm 8086
I want to create 5 submarine for the player and 5 to the computer (10 total) by using the sprites method. When i checked the DosBox for mistakes i saw that all of my sprites lines have the same error ...
0
votes
1
answer
24
views
Snake game, How to make the snake to not move in opposite directions?
I'm making the snake game and now doing the part where if you move up you can't move directly down and so on...
I think I wrote the code well and it'll work but the jump points are too big and I tried ...
0
votes
0
answers
41
views
Do you have any idea on how to do calculator in 4 decimal places in Assembly Language Programming?
We are required to do a Calculator in Assembly Language Programming for our final output, but the problem is, it should be in 4 decimal places, and I could not accomplish that and I do not get the ...
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
27
views
How can I fix my code in assembly language to enable me to input more than one digit and also to display the results accordingly?
.model small
.stack 1000h
.386
.data
prompt db "Welcome to the Main Menu", 13, 10, "1. Adding 2 numbers", 13, 10, "2. Odd and Even", 13, 10, "3. Positive and ...