; ; diss.s ; ; Superior Disassembly of ARM instructions ; ; © 1994-1998 Straylight ; ;----- Licensing note ------------------------------------------------------- ; ; This file is part of Straylight's Sledgehammer debugger. ; ; Sledgehammer is free software; you can redistribute it and/or modify ; it under the terms of the GNU General Public License as published by ; the Free Software Foundation; either version 2, or (at your option) ; any later version. ; ; Sledgehammer is distributed in the hope that it will be useful, ; but WITHOUT ANY WARRANTY; without even the implied warranty of ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ; GNU General Public License for more details. ; ; You should have received a copy of the GNU General Public License ; along with Sledgehammer. If not, write to the Free Software Foundation, ; 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ;----- Overview ------------------------------------------------------------- ; ; Functions provided: ; ; diss_setOptions ; diss_address ; diss_disassemble ; diss_regTable ; diss_init ; --- diss_setOptions --- ; ; On entry: R0 == new options field ; ; On exit: -- ; ; Use: Sets up the new display options for the disassembly IMPORT diss_setOptions ; --- diss_address --- ; ; On entry: R0 == address to start disassembly ; ; On exit: -- ; ; Use: Initialises the disassembly to start at the given address IMPORT diss_address ; --- diss_disassemble --- ; ; On entry: R0 == address of the instruction ; ; On exit: R0 == pointer to buffer containing disassembly of ; next instruction ; ; Use: Disassembles the instruction pointered to, and places ; the resulting string in the returned buffer. IMPORT diss_disassemble ; --- diss_regTable --- ; ; On entry: -- ; ; On exit: R0 == pointer to register table ; ; Use: Returns a pointer to the register name table, so that the ; assembler can get its grubby paws on it. IMPORT diss_regTable ; --- diss_init --- ; ; On entry: R12 == pointer to workspace ; ; On exit: -- ; ; Use: Initialises the disassembler segment nicely. IMPORT diss_init ;----- That's all, folks ---------------------------------------------------- END