; ; asm.s ; ; Assembly of instructions -- Blurg ; ; © 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: ; ; asm_assemble ; asm_register ; --- asm_assemble --- ; ; On entry: R0 == pointer to the instruction to assemble ; R1 == address at which to assemble instruction ; ; On exit: VC and R0 == the assembled instruction ; VS and R0 == pointer to an error ; ; Use: Assembles the given insruction, returning the result in ; R0. The instruction is NOT placed into the memory location ; passed in R1. IMPORT asm_assemble ; --- asm_register --- ; ; On entry: R8 == pointer into the instruction ; ; On exit: VS and R0 == pointer to error or ; VC and R0 == number, R8 updated appropriately ; ; Use: Reads in a register name IMPORT asm_register ;----- That's all, folks ---------------------------------------------------- END