kierenj / 0x10c-DevKit

0x10c DevKit
http://0x10c-devkit.com/
39 stars 4 forks source link

Conditional assembly #190

Open RichardLH opened 12 years ago

RichardLH commented 12 years ago

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 commented 12 years ago

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: https://github.com/kierenj/0x10c-DevKit/issues/190

RichardLH commented 12 years ago

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.