4004 Assembler Problem

Back to General discussions forum

marcin_l     2015-09-28 17:59:10

Hi, I have a problem with Fibonacci Randomizer. When I try to run my program compiler whines and throws "Error: %x format: a number is required, not str". I don't know what does it want from me, since there are no strings and when I compile same code here it works fine.

Rodion (admin)     2015-09-29 04:00:51
User avatar

Hi! Thank you for your question!

Could you post the code temporarily here - so that I can try it too and find out what it is complaining about? (I'll be able to remove it later to prevent spoiling solution)

marcin_l     2015-09-29 08:43:59

Here it is:

// code removed to prevent spoiling solution - admin :)
TestUser     2015-09-29 10:39:51
User avatar

(it's me, admin, from test account)

Thank you!

I've tried your code - it seems silly, but the message you get is shown when using uppercase labels, i.e. MOD128 and FIBONACCI.

Surely it should be case-tolerant, so I'll try to take care about it. Right now it seems like the easiest workaround is to use lowercase identifiers instead. (though the code reaches million instructions limit then)

Thanks once more for reporting the bug!

marcin_l     2015-09-29 10:56:03

Thanks for help. About that million instructions limit, it turns out that last NOP has to be at the last address, I forgot it's not HLT.

Please login and solve 5 problems to be able to post at forum