Menu

error in attiny44,44a,84,84a ... but works in attiny85 "a-d.h (1777): Warning: Bad Source parameter in ASM."

2021-02-02
2021-02-03
  • Andreas Zeidler

    Andreas Zeidler - 2021-02-02

    a-d.h (1777): Warning: Bad Source parameter in ASM. The compiler has failed to optimise correctly. Try adding element(s) to complete the array definition, or, changing mathematical order with constants at end of order, or, post to support forum for advice/resolution.

    #chip tiny84a, 1 mhz
    
    dim feuchte as Byte
    
    feuchte = ReadAD(AN2)
    
    do
    
    loop
    
     
    • Anobium

      Anobium - 2021-02-02

      Hello,

      What version of the compiler?
      Press Shift-f7 in the IDE and look at the top line.. like this

      ;Program compiled by Great Cow BASIC (0.98.<<>> 2020-06-02 (Windows 64 bit))


      This compiles here.

      #chip tiny84a, 1 mhz
      dim feuchte as Byte
      feuchte = ReadAD(AN2)
      do
      loop
      
       
  • Andreas Zeidler

    Andreas Zeidler - 2021-02-02

    Compiler Version: 0.98.07 RC38 2021-01-07 (Windows 64 bit)

     
  • Anobium

    Anobium - 2021-02-02

    Attach your code. Please attach, do not post into the thread.

    cheers

     
  • Anobium

    Anobium - 2021-02-02

    I can reproduce the error here.

    Choices. Wait a few days for the next RC release, or, go back to a version that works.

    Your choice would be?

     
  • Anobium

    Anobium - 2021-02-02

    Or.... you can fix....

    Line 1613 in a-d.h has a typo.. a missing '

    [canskip]REFS0=b'0'

     
    • Andreas Zeidler

      Andreas Zeidler - 2021-02-03

      thanks! it works ...

       
  • Anobium

    Anobium - 2021-02-03

    The core issue is the improvement in syntax checking is finding more latent typos. This variable assignment has probably been like it for a long time.

    All sorted. :-)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.