Assembler Developer

Moderators: None (Apply to moderate this forum)
Number of threads: 1030
Number of posts: 1828

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Need help with Motorola MC68HC05 programming Posted by methi on 16 May 2005 at 11:09 AM
Hi..I am learning the assembly language of the Motorola MC68HC05 chip..and have some doubts regd the programming

LOOP BRA LOOP
followed by some instructions

Wat would this do?

As far as I know...BRA is Branch Always..tat wud mean it wud keep coming back to LOOP...so when does it come out of the LOOP and execute the instructions following it?

Thanks alot
Report
Re: Need help with Motorola MC68HC05 programming Posted by DrMarten on 4 Jul 2005 at 4:04 PM
: Hi..I am learning the assembly language of the Motorola MC68HC05 chip..and have some doubts regd the programming
:
: LOOP BRA LOOP
: followed by some instructions
:
: Wat would this do?
:
: As far as I know...BRA is Branch Always..tat wud mean it wud keep coming back to LOOP...so when does it come out of the LOOP and execute the instructions following it?
:
: Thanks alot
:
==============

I do not think it would exit this loop unless a another BRANCH condition was entered within the loop or a call to exit the program.

Hope this helps.


Report
Re: Need help with Motorola MC68HC05 programming Posted by htakeuchi on 20 Jul 2005 at 10:12 PM
This message was edited by htakeuchi at 2005-7-20 22:12:47

: : Hi..I am learning the assembly language of the Motorola MC68HC05 chip..and have some doubts regd the programming
: :
: : LOOP BRA LOOP
: : followed by some instructions
: :
: : Wat would this do?
: :
: : As far as I know...BRA is Branch Always..tat wud mean it wud keep coming back to LOOP...so when does it come out of the LOOP and execute the instructions following it?
: :
: : Thanks alot
: :
: ==============
:
: I do not think it would exit this loop unless a another BRANCH condition was entered within the loop or a call to exit the program.
:
: Hope this helps.

This is an idle loop. The loop can only be "exited" by hardware interrupts. Microcontrollers generally have a number of peripherals that can be programmed to produce interrupts.





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.