billroy / bitlash

Bitlash: a programmable command shell for arduino
http://bitlash.net
MIT License
344 stars 73 forks source link

peep command shows EEPROM addresses starting at 0xe000 #21

Open matthijskooijman opened 10 years ago

matthijskooijman commented 10 years ago

See https://github.com/billroy/bitlash/blob/master/src/bitlash-eeprom.c#L252

This is obviously intentional, but I can't quite figure out where this magical 0xe000 constant comes from. Care to enlighten me?

PS, it seems that the issue tracker might not be the best place for discussions / questions like these. Is there any other forum or mailing list better suited that I missed? Perhaps an IRC channel?

billroy commented 10 years ago

You are welcome to email me directly, but the issue tracker preserves the discussion for others to see, so it’s probably best.

That 0xe000 is a kludge. There wasn’t room to add a way to print right-justified text when the eeprom code was written (for the ‘168), but the eeprom map looked ugly with the addresses coming out variable length. Adding the constant simply makes the printout columns come out right.

This could certainly be improved now that there is more space.

-br

On Jan 28, 2014, at 2:40 AM, Matthijs Kooijman notifications@github.com wrote:

See https://github.com/billroy/bitlash/blob/master/src/bitlash-eeprom.c#L252

This is obviously intentional, but I can't quite figure out where this magical 0xe000 constant comes from. Care to enlighten me?

PS, it seems that the issue tracker might not be the best place for discussions / questions like these. Is there any other forum or mailing list better suited that I missed? Perhaps an IRC channel?

— Reply to this email directly or view it on GitHub.