0x10c-DevKit icon indicating copy to clipboard operation
0x10c-DevKit copied to clipboard

Conditional assembly

Open RichardLH opened this issue 12 years ago • 2 comments

Implement

if

else

endif

To allow for conditional assembly such as

if DEBUG

jsr print_debug

endif

or

if (parameter == 0)

set pc, default

else

set pc, parameter

endif

inside Macros

RichardLH avatar Jun 07 '12 11:06 RichardLH

Great idea. Should #define X in a file define it just in that file or the whole project?  I would intend on having it as an option on project options too.

Sent from Samsung Galaxy Note

-------- Original message -------- Subject: [0x10c-DevKit] Conditional assembly (#190) From: RichardLH [email protected] To: Kieren Johnstone [email protected] CC:

Implement

#if #else #endif

To allow for conditional assembly such as

#if DEBUG   set


Reply to this email directly or view it on GitHub: https://github.com/kierenj/0x10c-DevKit/issues/190

kierenj avatar Jun 07 '12 11:06 kierenj

I suppose, Global, Project, File scopes would all be possible. I would settle for simple File scope to start with.

It would also aid debugging/testing if this could be represented in some way in the UI to see which values are being assembled.

RichardLH avatar Jun 07 '12 13:06 RichardLH