This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Registers definition when C -> SRC

Hello!

Could All kindly tell me where is to be specified which registers are defined with "DEFR" instructions automatically (when C166 compiles C code to ASM), and which aren't.

E.g. I need to get "ADDRSEL2" name available to include my own ASM code to C project, so I have to manually define it as follows:

	ADDRSEL2 DEFR 0FE1AH

Parents
  • I determined that if I use those registers (which are not DEFR'ed on default) in C-part of a function, and then use them in asm insertion, then there's no error (for they are DEFR'ed in this case), and all works fine.

    So that's a better solution I know at the moment -- to "declare" these registers by assigning them some value before using them in asm insertions.

Reply
  • I determined that if I use those registers (which are not DEFR'ed on default) in C-part of a function, and then use them in asm insertion, then there's no error (for they are DEFR'ed in this case), and all works fine.

    So that's a better solution I know at the moment -- to "declare" these registers by assigning them some value before using them in asm insertions.

Children
No data