x86-16 Questions
3
Solved
As the question suggests, I have to write a MASM program to convert an integer to binary. I have tried many different approaches, but none of them helped me at all. The final code I'm working on is...
1
Solved
I'm beginner and I need help with converting 16-bit binary number to hex. I have done most of the code, but I need help with a couple of things.
How to make it only accept 0 and 1 in input and ig...
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...
1
Solved
Is there any way to change every flag manually? Or do you have to use a command with a result that you know will change them?
Basically I'm working with the command RCL, and I don't want to get 1...
2
Solved
I read this article: http://static.patater.com/gbaguy/day3pc.htm
It includes the sentence
DON'T EVER CHANGE CS!!
But what exactly would happen if you did modify the CS segment register? Why i...
Ackerman asked 4/9, 2012 at 12:41
2
Solved
I'm programming using MASM 6.11 on an old Windows 95 laptop, and I'm having a problem switching between data segments.
For the sake of organization I wanted to use a different data segment to hol...
1
Solved
I'm a beginner at 8086 assembly. I'm learning from an old early 90s book I found in a thrift store. I thought it might be fun to program like it's 1992.
Anyway I'm done with the book and now i've ...
1
Solved
I know I can print an ASCII character if it's representation is in AL with:
DrawChar:
MOV AL, 0x45
MOV AH, 0x0E
MOV BL, 0x07
MOV BH, 0x00
INT 0x10
RET
Is there a way I can use INT 10H to p...
Muumuu asked 12/7, 2016 at 0:33
1
Solved
I'm new to operating system development and I'm curious about a problem I've run into while developing my own bootloader. My operating system is going to be written in assembly and will run in 16-b...
1
Solved
I used all the memory in the first sector, now I want to store a new variable string in the second sector (second stage) and print it. For instance:
hello db 'Hello World'
The new string should ...
Ninon asked 28/6, 2016 at 9:38
1
Solved
When running a boot-loader program on a modern-day x86 processor, the processor will be running in real-address mode. Will its instruction pipelining features be active in real mode, or not?
Forta asked 15/6, 2016 at 7:41
1
Solved
I have been writing kernel in C. I've been using the GCC cross-compiler, writing on a Windows system and targeting 16bit Real Mode. I don't have the C library available to write the kernel. I have ...
2
Solved
I am learning Operating system tutorials. I created 2 files.
boot.asm
kernel.c
The kernel.c is as follows :
int main()
{
char *src = (char *)0xB8000000L;
*src = 'M';
src += 2;
*src = 'D';...
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
I prompt the user for input:
mov ah, 0Ah
mov dx, OFFSET buffer
int 21h
My assignment tells me that ctrl-c should "abort the program with an appropriate error message".
I was told that int 23h i...
1
Solved
I am learning the assembly language. I wrote a simple bootloader. After testing it out, it didn't work. Here is my code:
[bits 16]
[org 0x7c00]
jmp start
data:
wolf_wel_msg db 'Welcome to Bootlo...
Guayule asked 16/3, 2016 at 19:0
1
Solved
I am learning assembly language (specific to x86). I have understood that the
SAL and SHL works in similar way (clearing the lsb and carrying the msb to CF) from here Difference between SHL and SA...
6
Solved
My problem is that I have written a code that is supposed to output a result into a set of LEDs connected to the parallel port. When I ran the code it pretty much did nothing. My instructor told me...
1
Solved
In my textbook, its given that the ASSUME directive tells the assembler the names of the logical segments to use as the physical segments. And that it uses displacements from the start of the speci...
2
Solved
Assembly:
[BITS 16]
global _start
_start:
mov ax, 0x07C0
mov ds, ax
mov si, hw
call print_string
jmp $
print_string:
mov ah, 0x0E
.char:
lodsb
cmp al, 0
je .exit
int 0x10
jmp .char
...
Boastful asked 25/1, 2016 at 14:41
1
Solved
I've been messing around with x86-16 assembly and running it with VirtualBox. For some reason when I read from memory and try to print it as a character, I get completely different results from wha...
Siam asked 22/12, 2015 at 8:21
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!...
3
Solved
I am converting a program from EMU8086 environment to NASM. When assembling NASM gives these errors :
system\kernel.asm:14: error: invalid combination of opcode and operands
system\kernel.asm...
Thetos asked 6/12, 2015 at 19:58
2
Solved
I have a problem while writing an x86 real mode assembly program that runs as a bootloader in QEMU. I'm trying to print text through BIOS interrupt 0x10. My code is:
print:
pusha
.loop:
mov AL, ...
Posthaste asked 28/11, 2015 at 17:15
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...
© 2022 - 2024 — McMap. All rights reserved.