If you connect to the Dedicated Admin Connection (DAC) you can run this query against the restored copy of master to retrieve the previous setting:
SELECT value AS [max server memory (MB)]
FROM new_name_of_master.sys.sysobjvalues
WHERE valclass = 50
AND objid = 1544;
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato