![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Feb 2005
Posts: 11
Rep Power: 0
![]() |
hello
in interfacing the PC through parrallel port 25 pin, what is wrong with windows 2000 & the outpot pins? if i am outputing the decima l sequence from 0--9 to a seven segment display, & using Windows 2000 as OS, Turbo pascal as editor, assembly language for 8088/8086 microprocessor. the numbers are coming out but not in the right order, is this due to a problem with Win2000, (this was working well with Win95 & Win98).& if iam using the input & output together, then there would be no problem. is this right, or there might be another reason? |
|
|
|
|
|
#2 |
|
Newbie
Join Date: Mar 2005
Location: South Africa
Posts: 21
Rep Power: 0
![]() |
Can you help try by showing the code you used?
__________________
Small is beautiful |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Feb 2005
Posts: 11
Rep Power: 0
![]() |
Sure
MOV DX,3BCH
@START: SUB AL,AL ;so AL=0
@NEXT: OUT DX,AL
CALL @DELAY
INC AL ;AL=AL+1
CMP AL,10
JZ @START ;if AL=10 go to start
JMP @NEXT if AL not equal 10, then output it to display
@DELAY: PUSH AX
PUSH BX
PUSH CX
MOV AX,9
@LOOP1: DEC AX
CMP AX,-1
JZ @EXIT
MOV BX,0FFFH
@LOOP2: DEC BX
JZ @LOOP1
MOV CX,0FFFH
@LOOP3: DEC CX
JNZ @LOOP3
JMP @LOOP2
@EXIT: POP CX
POP BX
POP AX
RET |
|
|
|
|
|
#4 |
|
Newbie
Join Date: Mar 2005
Location: South Africa
Posts: 21
Rep Power: 0
![]() |
Not sure what's wrong there, can't see anything that would be influenced by the OS. Try debugging it.
__________________
Small is beautiful |
|
|
|
|
|
#5 | |
|
Hobbyist Programmer
Join Date: Dec 2004
Location: a cardboard box
Posts: 118
Rep Power: 4
![]() |
Quote:
__________________
... |
|
|
|
|
|
|
#6 |
|
Newbie
Join Date: Feb 2005
Posts: 11
Rep Power: 0
![]() |
Very lovely, very nice. Thank you very much for passing by. & thanku for mentioning Microsoft, i forgot totally about it.
ilove this forum |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|