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

constant macro

Hello,

can I print the  macros like __MODEL__? Would it be possible to do this in an batch file in Options / User?

Thanks in advance

Parents
  • >can I print the  macros like __MODEL__?

    I don't know where you want to print this macro. You can use this macro in your source code the same way as Ronan already showed you in this small function. According to our manual, __MODEL__ represents a number from 0 to 7 depending on the memory model you have selected for your project. C166 manuals are not available online, but you can see the values in the file C:\Keil_v5\C166\hlp\c166.chm chapter  'Preprocessor - Macros - Predefined Macros'.

    >Would it be possible to do this in an batch file in Options / User?

    As mentioned above, you can use this macro in your C source file. It is not a so-called 'Key sequence' :

    developer.arm.com/.../Key-Sequence-for-Tool-Parameters

Reply
  • >can I print the  macros like __MODEL__?

    I don't know where you want to print this macro. You can use this macro in your source code the same way as Ronan already showed you in this small function. According to our manual, __MODEL__ represents a number from 0 to 7 depending on the memory model you have selected for your project. C166 manuals are not available online, but you can see the values in the file C:\Keil_v5\C166\hlp\c166.chm chapter  'Preprocessor - Macros - Predefined Macros'.

    >Would it be possible to do this in an batch file in Options / User?

    As mentioned above, you can use this macro in your C source file. It is not a so-called 'Key sequence' :

    developer.arm.com/.../Key-Sequence-for-Tool-Parameters

Children