Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Got Problem with coding for assembly lang. (TASM)

Got Problem with coding for assembly lang. (TASM)

Got Problem with coding for assembly lang. (TASM)

hello..i just finish writing a program but can't seems to be able to compile it because of some errors which i'm unable to solve..here's the scenario and my coding:

Problem statement:
Write a program to provide the given ON/OFF time to three lights(Green,Yellow, and Red) and 2 pedestrian signs(WALK and DON'T WALK) \. The signal lights and signs are turned on/off by the data bits of an output port shown:

Lights          Data Bits                      On Time
1. Green            D0 (0 is subscript)         15 secs
2. Yellow           D2 (2 is subscript)          5 secs
3. Red              D4 (4 is subscript)         20 secs
4. Walk             D6 (6 is subscript)         15 secs
5. Don't Walk       D7 (7 is subscript)         25 secs

The traffic and pedestrian slow are in the same direction;the pedestrian should cross road when the green light is on.


LXI SP,XX99        
Start: MVI A,41H   
       MVI B, 0Fh
       MVI A,84H
       MVI B,05
       MVI A,90H
       MVI B,14H
       JMP START

        PUSG PSW
Loop:   DCX,D
        MOV A,D
        ORA E
        JNZ LOOP
        DCR B
        JNZ SECOND
        POP PSW
        POP D

ok..so what's the prob with this coding above...anyone can give some advice or help me solve it? Thanks..

RE: Got Problem with coding for assembly lang. (TASM)

this is more a PC orientated forum but heres my 10p worth :)

you need a technical manual for the microcontroller that you are using.

you need a manual for the assembler that you are using to program the microcontroller.

try searching www.google.com using keywords like the microcontroller serial number ie 80x86 or manufacturer name ie mitsubishi etc

find out a traffic lights contractor via your local council contact the contractor and explain you are doing a college project on traffic lights and they may give you the info you require.

"People who have nothing to say, say it too loud and have little knowledge. It's the quiet ones you need to worry about!"

RE: Got Problem with coding for assembly lang. (TASM)

Some uC's cannot call code that have higher adress. You maybe must move the sub routine to top?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close