mpw/toolbox/loader.h

33 lines
547 B
C
Raw Normal View History

2013-08-16 03:35:39 +00:00
#ifndef __mpw_loader_h__
#define __mpw_loader_h__
2013-08-18 20:32:08 +00:00
#include <string>
#include <unordered_map>
2013-08-16 03:35:39 +00:00
#include <cstdint>
namespace Loader {
2013-08-17 23:01:43 +00:00
namespace Native {
/*
* loads the file
* sets registers PC and A5.
* sets certain globals.
*
* Dependencies: MM, RM
*/
uint16_t LoadFile(const std::string &path);
2013-08-18 20:32:08 +00:00
// scans segments for MacsBug debug names.
// associates them with the start of the segment.
void LoadDebugNames(std::unordered_map<std::string, uint32_t> &table);
2013-08-17 23:01:43 +00:00
}
2013-08-16 03:35:39 +00:00
uint16_t UnloadSeg(uint16_t trap);
}
#endif