mpw/toolbox/loader.h
2013-08-18 16:32:08 -04:00

33 lines
547 B
C++

#ifndef __mpw_loader_h__
#define __mpw_loader_h__
#include <string>
#include <unordered_map>
#include <cstdint>
namespace Loader {
namespace Native {
/*
* loads the file
* sets registers PC and A5.
* sets certain globals.
*
* Dependencies: MM, RM
*/
uint16_t LoadFile(const std::string &path);
// scans segments for MacsBug debug names.
// associates them with the start of the segment.
void LoadDebugNames(std::unordered_map<std::string, uint32_t> &table);
}
uint16_t UnloadSeg(uint16_t trap);
}
#endif