Thread Closed

8086 assembly code

 
Share Thread Thread Tools
Aug3-10, 12:04 AM   #1
 

8086 assembly code


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!
PhysOrg.com
PhysOrg
engineering news on PhysOrg.com

>> PNNL-developed injection molding process recognized with emerging technologies award
>> How soon could car seats enter the 3-D comfort zone?
>> NASA: Austin, calling Austin. 3-D pizzas to go
Thread Closed
Thread Tools


Similar Threads for: 8086 assembly code
Thread Forum Replies
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 & Comp Sci 2
Assembly code Programming & Comp Sci 4
68000 Assembly code Introductory Physics Homework 0