Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASM
.model tiny
.stack
.data
msgLED db "Turn off all LED at parallel port...$", 0ah, 0dh
.code
start:
mov ax, @data
mov ds, ax
mov dx, offset msgLED
mov ah, 09h
int 21h
mov al, 0h
mov dx, 378h
out dx, al
mov ax, 4c00h
int 21h
end start
 
according to my reasearch this code will turn off all the LED .
but it doesn't . .
it only display the message "Turn of all LED at parallel port " but
it does not affect the LED .
can someone tell me how this code work??
thank you
Posted 16-Mar-13 23:26pm
arjel29308
Edited 17-Mar-13 6:35am
v2
Comments
Andreas Gieriet at 17-Mar-13 6:26am
   
How do you think we can help?
1) never post the same question twice, this is annoying "noise" for the rest of us.
Improve the initial quesiton to make it attractive to help you.
2) If you do not provide a *concrete* question *including* concrete data, noone can really help.
Provide the code that fails, with concrete description what means "failed".
3) "Help me please..." is childish, sorry. No begging on CP please.
4) Ask yourself what help you expect! Do you expect anyone to spoon-feed you?
If it is a homework assignment consult your text book and talk to your class mates/teacher.
 
We are more that willing to help on concrete questions that allow "quick answers". This is the "quick answer" forum.
Cheers
Andi
PS: See my solution#1 to the original question.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You asked the same question yesterday: HOW TO MAKE LED Light USing PARALLEL PORT[^] pretty much.
 
Then you were asked: What have you done so far? What have you tried? Where are you stuck?
 
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.
 
Try it yourself, you may find it is not as difficult as you think!
  Permalink  
Comments
arjel29 at 17-Mar-13 5:05am
   
I try it by my self .
and i did not focus on what ive been post yesterday
itry my self to make my own code .
searching for internet for references. .
but nothing happened ..
 
my program had no errors but it did'nt light a single led at all
Nelek at 17-Mar-13 5:53am
   
So... if you tried it and it didn't work, use the "improve question" widget to add a piece of code giving you problems. It will make it much easier for the people here to help you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 565
1 Kornfeld Eliyahu Peter 409
2 Maciej Los 369
3 DamithSL 196
4 OriginalGriff 188
0 OriginalGriff 6,353
1 DamithSL 4,854
2 Maciej Los 4,466
3 Kornfeld Eliyahu Peter 4,058
4 Sergey Alexandrovich Kryukov 3,897


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 17 Mar 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100