bugAVR C Runtime Library - Bugs: bug #42001, 6.3 The first Assambler Example...

 
 

bug #42001: 6.3 The first Assambler Example Program has wrong Labels for the Jumps.

Submitted by:  zool <zool>
Submitted on:  Sun 30 Mar 2014 09:53:05 AM UTC  
 
Category: DocumentationSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Documentation
Status: InvalidPercent Complete: 0%
Assigned to: Joerg Wunsch <joerg_wunsch>Open/Closed: Closed
Release: 1.8.0Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 30 Mar 2014 10:13:14 AM UTC, comment #1:

Sorry, this is wrong. The labels used there are local labels.

Please learn about the concept of Unix assembler local labels
here:

https://sourceware.org/binutils/docs/as/Symbol-Names.html#Symbol-Names

Btw., the example has been tested on hardware. ;-)

Joerg Wunsch <joerg_wunsch>
Project AdministratorIn charge of this item.
Sun 30 Mar 2014 09:53:05 AM UTC, original submission:

Chapter 6.3 page 33,34: The first Assembler Example Program has wrong Labels for the Jumps.
On the Homepage: "avr-libc and assembler programs"
http://www.nongnu.org/avr-libc/user-manual/assembler.html
"The following annotated example features a simple 100 kHz square wave generator using an AT90S1200 clocked with a 10.7 MHz crystal. Pin PD6 will be used for the square wave output."

The Labels are named: 1,1,2... -> After a short look on the relative jumps the labels should be: 1b,1f,2f

zool <zool>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by joerg_wunsch (Posted a comment)
  • -unavailable- added by zool (Submitted the item)
  • -unavailable- added by zool
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 30 Mar 2014 10:13:14 AM UTCjoerg_wunschStatusNone=>Invalid
      Assigned toNone=>joerg_wunsch
      Open/ClosedOpen=>Closed
    Sun 30 Mar 2014 09:53:05 AM UTCzoolCarbon-Copy-=>Added zool

    Back to the top


    Powered by Savane 3.1-cleanup1