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 processor is the AMD186ES. I am not working with the OS - just baremetal stuff.
I need to generate real-mode 16-bit 8086 machine code from C++.
...
Hi,I got stuck at this thing,I want to see if right shift button has been pressed,so I have this assambler code:
mov ah,2
int 16h ;calling INT 16,2 - Read Keyboard Flags interrupt
mov ah,10000000b
shl al,7
and al,10000000b
cmp al,ah ;check if first bit is 1
je rshift
jmp final
rshift:
mov ah,9
lea dx,rsh ;rs...
is there a 8086 emulator for mac. If yes, which is the best
...
Hi guys
I am working on a project in 8086 assembly on windows machine and I need to know which mouse button has been clicked. What are the interrupts for this? or how do I go about finding this out?
Thanks
...
I'm a bit ashamed about asking this, but how do i output the value of a byte in assembler?
Suppose I have the number 62 in the AL register. I'm targeting an 8086. There seem to be available only interrupts that output it's ascii value.
Edit: Thank you Nick D, that was what i was looking for. To answer a couple of questions, i'm actually...
hi
I write a program to delete a file from somewhere of my harddisk in 8086
but when i use int 21h (ah=41h) an error happens and carry set to 1.and I cannot delete that.
does anyone know what can I do?
I think it should be from protected mode which does not allow my program to delete another file.I want the answer and language is not mat...
I'm studying 8086 assembly language at high school and I have this question:
For example I have this number ABCD (hex). How is it stored on the memory?
Does the AB go for example to memory address 01 and the CD goes to address 02?
...
Hello,I study assembly on High-school and I would like to try to make assembly programs at home.
I downloaded NASM but I don't understand how to run the .s files with it - if you can write a simple way here to run it I'd glad :-)
and in addition I have a question: when I use ADC for exmaple: AL = 01 and BL = 02, and CF = 1, when I make ...
When I use ADC for exmaple:
AL = 01 and BL = 02, and CF = 1
when I make this:
ADC AL,BL
Will AL be 3 or 4? (with the CF addition or without?)
...
I v porblem in assembly 8086, I can't use 2D array
when I m using like this
mov ar[cx][dx]
then arising error and when I want to us SI and DI both in arrary then also find error.
I need answer quickly
thanks for your help
...
I am assigning some value in a variable
ar db 107,106,105,104,103,102,101,100,99,98
and also not run string
msg db "this is not printed by tasm ","$"
but this is run on emu8086 emulator
The actual code
The Bubble Sort
data segment
ar db 107,106,105,104,103,102,101,100,99,98
ends
code segment
start:
assume cs:code,ds:data
mov ...
I am taking a hardware class than involves a lab, the lab is about Intel 8086 processors and I have a lab final tomorrow. Other than the information provided in the lab, what other sources can you provide me with to study for it (done the labs, need more resources, code, slides, and experiments to try on my own machine)?
...
Since the original 8086 and 8088 do not have a software exception for illegal instructions, how do they behave when fed such, for instance "FF FF" (not an opcode) ? Do they stall, do it reset itself, possibly emitting a special cycle indication on its control bus ?
...
I am taking an assembly course now, and the guy who checks our home assignments is a very pedantic old-school optimization freak. For example he deducts 10% if he sees:
mov ax, 0
instead of:
xor ax,ax
even if it's only used once.
I am not a complete beginner in assembly programing but I'm not an optimization expert, so I need yo...
I'm studying x86 and Real Time Systems, and I have a question, that is:
Which steps x86 follows to handle any interrupt ?
...
How can a extend memory space at 8086 up to 1 GB ???
...
To find an Assembly programmer is very hard to help me
I'm a established Delphi programmer that has an old copy of Delphi that is not .net
And I have a *.dll that I'm converting into Delphi code for .net
I'm on a big learning curve hear as i know little of .net yet.
I've just got a computer with .net today!!!!!!
I've run the *.dll thro...
Hi guys.
I know the ABSOLUTE ADDRESS of the next instruction is located 50000 (hex), and I know that the hex value that should be in the IP Register is 4000 (hex). My question is... Why does it work like this?
I have the other registry values available if they're needed.
Any idea?
...
Hey guys, Im new to the 8086 architecture and have not been able to find much on Google related to the following:
On the i8086 or i8088 (ie 16bit, segmented addressing) what happens if an instruction fetch occurs with the instruction pointer (program counter) at 0xFFFF? I assume the CPU increments the IP and it overflows and becomes 0x0...
I need to read in about 1KB or so of data at a time, manipulate it, and write it to another file. I need to do this for at least 100 MB. I have never done any file IO in assembly before.
What interrupts do I need to call and what needs to be in what registers?
...