You can download the latest version of code from Cisco.com-->support-->downloads.
The steps involved can also be located under support. You will need to log in to obtain this info.
http://www.cisco.com/c/en/us/support/security/asa-5520-adaptive-security-appliance/model.html#InstallandUpgradeGuides