x86-16 Questions

6

Solved

So, as the question states, what is the purpose of CS and IP registers in intel's 8086 I found this explanation: Code segment (CS) is a 16-bit register containing address of 64 KB segment with ...
Hymenopterous asked 21/7, 2013 at 21:32

2

Solved

I am reading this wonderful skript on operating system programming http://www.cs.bham.ac.uk/~exr/lectures/opsys/10_11/lectures/os-dev.pdf On Page 12 there is a simple bootloader. If I understand...
Weisberg asked 3/10, 2015 at 14:16

2

Solved

I have the following code, where I am trying to implement a function that prints string using the BIOS functions: int printString(char* string) { int i = 0; while (*(string + i) != '\0') { cha...
Finish asked 2/3, 2015 at 14:7

2

Solved

Basic question here, I wrote the following block: IDEAL MODEL small STACK 100h DATASEG Var1 db 4 Var2 db 2 CODESEG start: mov ax, @data mov ds, ax xor ax, ax mov al, [Var1] cmp al,...
Varney asked 30/9, 2015 at 17:43

1

Solved

I'm writing small operation system - for practice. I started with bootloader. I want to create small command system that runs in 16 bit real mode (for now). I've created bootloader that resets driv...
Compendium asked 21/9, 2015 at 18:6

2

Solved

I'm using TASM 1.4 and I'm trying to make an output that will display different colored sentences, all in the same screen. I can make something that displays colored texts, but the words all have t...
Chantress asked 17/9, 2015 at 15:8

3

Solved

I'm studying for a test in assembly and in the subject of "Position-Independent-Code" I find the difference between a relative jump and an absolute jump confusing. How can I tell what kind of jump ...
Incitement asked 21/7, 2015 at 15:59

1

I am making a calculator-type program, and I use this to get a number from the user and store it: mov ah, 01h int 21h mov offset num1, al and at the end of the code I have num1 set up as a byte ...
Lovmilla asked 26/6, 2015 at 6:5

1

Solved

Hi, x86 assembler geeks! I have an interesting problem to test your assembler programming skills. I'm the author of this problem, so I know the correct answer. Your task is to implement log...
Trio asked 10/6, 2015 at 15:53

2

I'm a little bit confused with stack segment (ss) and stack pointer (sp) registers . when the stack is empty, is the sp value equal to the ss value ? I read that when we push a word (2bytes) to th...
Monochord asked 23/5, 2015 at 23:26

1

Solved

I am reading about the architecture of intel's 8086 and can't figure out the following things about segmentation: I know that segment registers point to segments respectively and contain the base a...
Tichonn asked 22/4, 2015 at 1:11

1

Solved

I wanted to know what is the best way for moving an object on the screen - for example: if some kind of shape presented on the screen (on graphic mode), I would like to move it left and right using...
Schrock asked 10/4, 2015 at 23:39

4

Solved

I have a problem with my assembly code. I want to print number stored in register cx, but when i tried to print it, it printed ascii character instead of ascii number, so I decided to write a proce...
Kessinger asked 25/3, 2013 at 17:39

2

Solved

I am working on an assembly program (8086) that plays music on the PC speaker. Everything works fine but I've got one problem. Program falls in endless sleep (with speaker on) on 78th note, no mat...
Inez asked 10/1, 2015 at 15:21

2

in MS-DOS ,Why the initialization of the DS and ES registers must be done manually by the programmer, although it's operating system responsibility to initialize these registers. why mustn'...
Hazard asked 10/12, 2014 at 17:17

1

I am fairly new to Assembly and TASM and i have the following question. I want to use the extended version of the registers, specifically EBX. By using the code below, but without the ".386" direc...
Castorena asked 9/11, 2014 at 13:16

2

Solved

Consider the below program. int a = 0x45; int main() { int i = a; return 0; } ;; asm code call 0x401780 <__main> mov 0x402000,%eax // why does it allocate 0x402000 only for global 'a'? mo...
Predispose asked 19/10, 2014 at 12:49

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

2

OK, this question sounds simple but I am taken by surprise. In the ancient days when 1 Megabyte was a huge amount of memory, Intel was trying to figure out how to use 16 bits to access 1 Megabyte o...
Doelling asked 27/8, 2013 at 16:19

10

Solved

I am working on an embedded systems project and have run into an issue of the compiler being programatically embedded in the Paradigm C++ IDE. I would like to be able to automate building. The pro...
Tillion asked 22/10, 2008 at 22:29

5

Solved

I want to learn how to programming with assembly language for 8086/88 processor, but I couldn't find any IDE and assembler for this reason.
Outer asked 23/11, 2011 at 14:52

2

Solved

First of all, I am very new to 8086 Assembly and it has been pretty difficult for me the grab the knowledge. Nevertheless, I'll do my best. I have been trying to write a code to generate a random ...
Addressograph asked 25/7, 2013 at 10:43

4

Solved

So I'm writing a game in c++ for MS-DOS and I'm including some inline assembly for speed. This particular block of code would draw a star into the video memory (0A000h). The problem with my code is...
Loblolly asked 15/6, 2012 at 16:25

2

Solved

Please look at the following program, the error is invalid effective address calculation and i have mentioned that line please tell me why its invalid effective address calculation here is th...
Letters asked 11/5, 2010 at 8:39

3

Solved

I took x86 assembly as a hobby this past january so I could make games that would work on old 8086-powered computers like the PCj and Tandy 1000, but the books I found don't exactly teach much on t...
Virtuosity asked 9/5, 2012 at 22:15

© 2022 - 2024 — McMap. All rights reserved.