Menu

IntOn / IntOff does not produce asm code

2016-12-24
2017-01-05
  • Frank Steinberg

    Frank Steinberg - 2016-12-24

    Hi,

    while playing with my TinyTx sample programs, I noticed, that the IntOn / IntOff command does not produce any asm code. This is similar for PIC and AVR.

    Compiler Version: 0.96.00 2016-12-14

    Frank

     
  • William Roth

    William Roth - 2017-01-05

    Hi Frank,

    INTOFF and INTON will not produce any ASM code unless Interrupts were previously
    enabled using "On Interrupt" as there is nothing to do as far as the compiler is concerned.

    Another option that will produce ASM is to manually set the related bits.

    If you want to see which registers/bits are changed in order to help write ASM code, then temporarily use ON Interrupt in GCB Source BASIC then look at the ASM produced by the Compiler, This saves having to look it up in the respective datasheets.

    William

     

    Last edit: William Roth 2017-01-05

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.