bogax #1 Posted October 8, 2012 How many parameters can be passed to a Macro? Quote Share this post Link to post Share on other sites
+Gemintronic #2 Posted October 11, 2012 Not an answer, sorry. Unless SeaGtGruff knows the only way to answer this is to experiment and report back. R.T.'s command reference examples seem to go up to 3 parameters. Quote Share this post Link to post Share on other sites
+RevEng #3 Posted October 11, 2012 Testing shows that 46 is the limit. That makes sense, as statements are limited to 50 strings, and the command, macroname, and newline chars take up 4. No reason that couldn't be raised, but it seems sufficient. Quote Share this post Link to post Share on other sites
+Gemintronic #4 Posted October 11, 2012 As I understand it, macros don't actually save space, right? It's just a readability thing? Quote Share this post Link to post Share on other sites
+RevEng #5 Posted October 11, 2012 Yup that's right, but its also a maintainability thing too. If you cut and paste a routine 5 times, when you find a bug you need to update it in 5 places. If you had used macros, you'd just fix it once. Quote Share this post Link to post Share on other sites
bogax #6 Posted October 11, 2012 Macros are also a way to pass values to the assembler from bB. Quote Share this post Link to post Share on other sites
bogax #7 Posted October 11, 2012 Testing shows that 46 is the limit. That makes sense, as statements are limited to 50 strings, and the command, macroname, and newline chars take up 4. No reason that couldn't be raised, but it seems sufficient. Thanks for that. I would have eventually gotten around to trying it myself but I thought someone might know already. Quote Share this post Link to post Share on other sites