mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-23 00:30:17 +00:00
47ba87a015
- Improve FormatCharCopy() to not buffer overflow - Improve FormatOpcodeBytes() to not buffer overflow - Improve FormatNopcodeBytes() to not buffer overflow - Change FormatDisassemblyLine() to return std::string
23 lines
966 B
C++
23 lines
966 B
C++
#pragma once
|
|
|
|
int GetDisassemblyLine(const WORD nOffset, DisasmLine_t& line_);
|
|
std::string FormatDisassemblyLine(const DisasmLine_t& line);
|
|
void FormatOpcodeBytes(WORD nBaseAddress, DisasmLine_t& line_);
|
|
void FormatNopcodeBytes(WORD nBaseAddress, DisasmLine_t& line_);
|
|
|
|
std::string FormatAddress(WORD nAddress, int nBytes);
|
|
char* FormatCharCopy(char* pDst, const char* pEnd, const char* pSrc, const int nLen);
|
|
|
|
char FormatCharTxtAsci(const BYTE b, bool* pWasAsci_ = NULL);
|
|
char FormatCharTxtCtrl(const BYTE b, bool* pWasCtrl_ = NULL);
|
|
char FormatCharTxtHigh(const BYTE b, bool* pWasHi_ = NULL);
|
|
char FormatChar4Font(const BYTE b, bool* pWasHi_, bool* pWasLo_);
|
|
|
|
void GetTargets_IgnoreDirectJSRJMP(const BYTE iOpcode, int& nTargetPointer);
|
|
|
|
void DisasmCalcTopFromCurAddress(bool bUpdateTop = true);
|
|
void DisasmCalcCurFromTopAddress();
|
|
void DisasmCalcBotFromTopAddress();
|
|
void DisasmCalcTopBotAddress();
|
|
WORD DisasmCalcAddressFromLines(WORD iAddress, int nLines);
|