Original system regs were 8 MB RAM. You can run it on 4 MB and can shave off some more but you need 16-bit bus ~MB's of RAM to run it.
Edit: yep, https://oldpcgaming.net/doom-1-review/
The point is you can't run doom on hundreds of bytes or even several kilobytes or in 8 bit microcontroller.