mirror of
https://github.com/zeldaret/tmc
synced 2026-05-24 07:11:07 -04:00
9 lines
341 B
C++
9 lines
341 B
C++
#include "offsets.h"
|
|
|
|
OffsetCalculator::OffsetCalculator(std::filesystem::path outputFile, int baseOffset): baseOffset(baseOffset) {
|
|
output = std::ofstream(outputFile);
|
|
}
|
|
|
|
void OffsetCalculator::addAsset(int start, std::string symbol) {
|
|
this->output << "\t.equiv offset_" << symbol << ", " << start - this->baseOffset << std::endl;
|
|
} |