17 inline void assemblyOutputData(std::ifstream& fin, std::ofstream& fout, std::streamoff sizeInBytes)
19 std::streamoff numOfWords = sizeInBytes/(std::streamoff)4;
20 for(std::streamoff i = 0 ; i < numOfWords ; i++){
22 fout <<
".word " <<
"0x" << std::uppercase << std::hex << std::setw(8) << std::setfill(
'0') << aWord << std::endl;
24 std::streamoff numOfBytes = sizeInBytes % (std::streamoff)4;
25 for(std::streamoff i = 0 ; i < numOfBytes ; i++){
27 fout <<
".byte " <<
"0x" << std::uppercase << std::hex << std::setw(2) << std::setfill(
'0') << aByte << std::endl;
void assemblyOutputData(std::ifstream &fin, std::ofstream &fout, std::streamoff sizeInBytes)
uint32_t read32(std::ifstream &fin, Endianness e=Endianness::NATIVE)