I don’t think 1mb expansions were available until the late 80s though.
See these 512 kbit 1983 vintage EPROM chips:
https://www.ebay.com/itm/INTEL-D27512-27512-IC-28Pin-DIP-EPR...
16 of these 512 kbit chips, some address decoding and banking logic. 1 MB cart.
Very much doable with off-the-shelf parts even way back then.