Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional assembly #190

Open
RichardLH opened this issue Jun 7, 2012 · 2 comments
Open

Conditional assembly #190

RichardLH opened this issue Jun 7, 2012 · 2 comments

Comments

@RichardLH
Copy link

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

@kierenj
Copy link
Owner

kierenj commented Jun 7, 2012

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 reply@reply.github.com
To: Kieren Johnstone kierenj@gmail.com
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:
#190

@RichardLH
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants