- #1
snoggerT
- 186
- 0
So I'm having a problem in some code I'm working on in Assembly(8086). I've tried everything I can think of, but I can't seem to figure out the problem. So I have a circuit that I built with a DB25 plug so that it can communicate with the parallel port on the computer. All we had to do is make a simple down counter that was displayed to the LEDs on the circuit. The problem is that I can't get the correct port to work. The port should be 378H, but it only seems to sort of work with 3BCH. I've even tried the following simple code to just get a single number to output using port 378H:
.MODEL SMALL
.STACK 64
.DATA
.CODE
MAIN PROC FAR
MOV AL, 55H
MOV DX, 378H
OUT DX, AL
mov AH,4Ch ; return to DOS
int 21h
MAIN ENDP
END MAIN
Can anyone think of a reason that this won't work? Also, I have tested the circuit, and it seems to be working correctly.
.MODEL SMALL
.STACK 64
.DATA
.CODE
MAIN PROC FAR
MOV AL, 55H
MOV DX, 378H
OUT DX, AL
mov AH,4Ch ; return to DOS
int 21h
MAIN ENDP
END MAIN
Can anyone think of a reason that this won't work? Also, I have tested the circuit, and it seems to be working correctly.