Go to the source code of this file.
|
void | assemblyOutputData (std::ifstream &fin, std::ofstream &fout, std::streamoff sizeInBytes) |
|
◆ assemblyOutputData()
void assemblyOutputData |
( |
std::ifstream & |
fin, |
|
|
std::ofstream & |
fout, |
|
|
std::streamoff |
sizeInBytes |
|
) |
| |
|
inline |
Definition at line 17 of file inlineAssembly.h.
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;
uint32_t read32(std::ifstream &fin, Endianness e=Endianness::NATIVE)
References FileIO::read32().
Referenced by XilinxSeries7::disassemblerToAsm(), XilinxUltraScale::disassemblerToAsm(), and XilinxUltraScalePlus::disassemblerToAsm().