8086 assembly code


by ws0619
Tags: 8086, assembly, code
ws0619
ws0619 is offline
#1
Aug3-10, 12:04 AM
P: 54
Hi!
I am new to assembly language.
I wrote for a simple program for complementing the content of address 0300:0 and save it in address 0300:1.

Here is my program

OUTPUT 2500AD
ORG 2000H
MOV DX,0FFE6H
MOV AX,82H
OUT DX,AL
NEXT:MOV AX,3000H
MOV BX,0000H
CALL DISP
NOT AL
MOV 3001H,AL
MOV BX,0100H
CALL DISP
JMP SHORT NEXT
DISP:PUSH AX
MOV CX,1
CALL FAR 0FF00:0B12H
POP AX
RET
END
I am using 8086 trainer kit to test it.But this program takes the 3000H as the data and shows on the data display.The result that complemented is 30FFH on address display.Can someone tell me what goes wrong in my program?
I had initially loaded 20H as the 1 byte data in address 3000H.
Thanks!
Phys.Org News Partner Engineering news on Phys.org
SensaBubble: It's a bubble, but not as we know it (w/ video)
WSU innovation improves drowsy driver detection
Faster computation of electromagnetic interference on an electronic circuit board

Register to reply

Related Discussions
assembly code microprocessor 8088 for seven segment LED Engineering, Comp Sci, & Technology Homework 10
Outputting to the parallel port (assembly 8086) Engineering, Comp Sci, & Technology Homework 4
math operation in assembly code Programming & Computer Science 2
Assembly code Programming & Computer Science 4
68000 Assembly code Introductory Physics Homework 0