27

Well, sh*t.

There is special hell for people using GOTO in C and even more special hell for people using it in *this* context.

Comments
  • 3
    At least it’s commented 😂
    That’s got to get brownie points somewhere.
  • 1
    What is this shit
  • 0
    @rEaL-jAsE Yes! The yellow avatar is back. It has been a long time man.
  • 2
    "near static unsigned char"

    That a thing?

    I really need to dig into C.
  • 1
    @PrivateGER It's code I inherited for one lighting controller. It is pretty old now (development log starts in 2008). It is actually full of such gems.
  • 4
    @Cyanide It's specialty regarding to CPU's 16-bit architecture and address space bigger than 16-bit. Therefore you end with near and far jumps and you can force compiler to use one of them (and near is obviously faster for access since it is in CPU native address space). Although widely used on those architectures, near and far are not part of C standard.
  • 1
    @argorain Thanks man!
  • 1
    A PIC, is't it?
  • 0
    Yup, let's call from inline asm without being aware of compiler-generated preamble
    Enjoy your stack issues
Add Comment