Reduces an image's colors to those in a specific palette.
Does not directly consider other restrictions of said hardware.
In particular, you can get a lot more pixels in than most consoles had, which together with the dithering will look better than they could.
Also, a lot of early home computers could not do anything like full screen sprites, so even using their screen resolution is optimistic..