h6. [[Debugger]] h6(. » [[Debugger SWI Calls|SWI Calls]] h6((. » Debugger_Disassemble h2. Debugger_Disassemble h5. (SWI &40380) |_<^{width:4em}. Entry | | |<^. R0 |<^. Instruction to disassemble | |<^. R1 |<^. Address to disassemble relative to | |_<^{width:4em}. Exit | | |<^. R1 |<^. Pointer to null-terminated string containing disassembly | |<^. R2 |<^. Length of string (excluding terminator) | h4. Use The purpose of this call is to disassemble a 32bit ARM instruction word. R1 should contain the address that the instruction came from - this allows the Debugger module to display absolute addresses for the target of PC-relative instructions (e.g. branches). h4. Notes The string returned in R1 is located within the Debugger module's workspace. Therefore care must be taken to take a copy of the string before another call to the Debugger module overwrites it. In addition to containing the assembler mnemonic that best represents the instruction, the disassembly may also contain a comment (marked with ';') that gives additional information, for example warnings about potential code bugs or potential CPU incompatibilities. h4. See also * [[*MemoryI]] * [[Debugger_DisassembleThumb]]