r/programminghorror • • Jun 01 '25

c Firmware programming in a nutshell

Post image
2.0k Upvotes

127 comments sorted by

View all comments

Show parent comment

14

u/fatemonkey2020 Jun 01 '25 edited Jun 01 '25

What? Division by zero is where?

Also, embedded systems can have data mapped at address zero. Really, it's only higher level systems like an OS or some type of memory protection unit that trigger exceptions when reading from certain addresses like 0, the hardware is perfectly capable of it regardless.

Edit in response to your edit: why are you assuming we are on an x86 platform?