emu8086 Questions
2
Solved
Here I have tried something to print 10 to 0 decimal numbers in emu8086.
.MODEL SMALL
.STACK 100H
.DATA
NUM DB 58D
.CODE
MAIN PROC
MOV AX,@DATA
MOV DS,AX
START:
CMP NUM,48D
JGE PRIN...
2
I am using assembly 8086emu and I need a numbers generator for 8 numbers.
I tried to use this piece of code by @johnfound:
RANDGEN: ; generate a rand no using the system time
RANDSTART:
MOV AH, 0...
1
I just wanted to ask: why is it that when I write :
MOV DL, [BX]
it works, but when I write:
MOV DL, [AX]
it doesn't?
1
Can anyone explain for me why the sign of the remainder is different in these cases? Is this an emulator bug or do real CPUs do this, too?
8 / -3 : quotient(AL) = -2 remainder(AH) = 2
-8 / 3 : q...
Mydriasis asked 29/12, 2018 at 3:37
1
Solved
Looking at the picture, on line 34 I had to write the word ptr for this to work, while on line 44 I didn't.
Why is that?
Can't the compiler know that 0020h is a word just like 0FF20h is a word?
A...
1
Solved
I have a variable that is called average and in my DATASEG, it changes every time because the user enters a different input every time. What I want to do is to go to the graphics mode (VGA) and the...
2
I am new to assembly and would like to know how to write a program in EMU8086 that prints a different random number in every run of it. Is it possible to do it without using interrupts?
1
Solved
Why doesn't the following code assign new value to a symbol X using Assignment Directive ( = ) in emu8086:
.model small
.data
X = 8
.code
.startup
mov ax, @data
mov ds, ax
mov bx, X
X = ...
3
I am trying to find if the CARRY flag is 1 or not, but I don't know how to check it. I wrote the below code, but I need some help for question marks I put in.
LEA DX, MSG
MOV AH, 09H
INT 21H
...
3
Solved
I'm having trouble just making clear EQU directive in assembler (8086).
abc EQU xyz
Does EQU literally swaps abc when found in code with xyz, whatever xyz represents, value etc?
i.e. Can i writ...
3
Solved
Hello im trying to display the actual time hours/minutes/seconds this is my code sample:
MOV AH, 2Ch
INT 21h
MOV AH, 0Eh
MOV AL, CH
INT 10h
MOV AL, 3Ah
INT 10h
MOV AL, CL
INT 10h
MOV AL, 3Ah
...
2
Solved
I just started learning assembly language and I am already stuck on the part to "display the decimal values stored in a register on the screen". Im using the emu8086, any help would be appreciated!...
2
Solved
I am trying to assign variable to register here is the code:
ORG 100h
var1 DB 10 ;
var2 DB 20 ;
MOV BX,var1 ; error : operands do not match: 16 bit register and 8 bit address
RET
END
But i...
1
Solved
I'm using emu8086. I've a question which tasked me to display what we see on seven segment displays after converting from its hexa inputs. I should input my data in hexa, if it matches the hexa inp...
Sherbet asked 1/10, 2014 at 16:6
1
© 2022 - 2024 — McMap. All rights reserved.