Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!seismo!nbires!hao!hplabs!pyramid!amiga!skipper!cbmvax!carolyn From: carolyn@cbmvax.cbm.UUCP (Carolyn Scheppner) Newsgroups: net.micro.amiga Subject: Re: Looking for messages.i Message-ID: <485@cbmvax.cbmvax.cbm.UUCP> Date: Thu, 3-Jul-86 12:31:05 EDT Article-I.D.: cbmvax.485 Posted: Thu Jul 3 12:31:05 1986 Date-Received: Fri, 4-Jul-86 08:54:51 EDT References: <124@wlbreng1.UUCP> Reply-To: carolyn@cbmvax.UUCP (Carolyn Scheppner) Organization: Commodore Technology, West Chester, PA Lines: 54 In article <124@wlbreng1.UUCP> steve@wlbreng1.UUCP (Steve_Childress) writes: >I'm plodding my way through writing a hard disk driver for the Amiga. >From an AMICUS disk, I got a copy of a skeletal driver which is an >enhanced version of the one printed in the ROM Kernel Manual. Trouble is, >the code I have references a file named messages.i which I presume contains >the code for a macro named PUTMSG. This macro is apparently a simple version >of printf(), but for Assembly language folks. > Here's a modified PUTMSG that will work with the sample device Note that this is for sending debugging information out the serial port and is not intended for inclusion in a finished driver. --------------------------------------------------------------- ************************************************************************* * * * Copyright (C) 1985, Commodore Amiga Inc. All rights reserved. * * * ************************************************************************* XREF KPutFmt PUTMSG: MACRO * level,msg IFGE INFOLEVEL-\1 PEA myName(PC) MOVEM.L A0/A1/D0/D1,-(SP) LEA msg\@,A0 LEA 4*4(SP),A1 JSR KPutFmt MOVEM.L (SP)+,D0/D1/A0/A1 ADDQ.L #4,SP BRA.S end\@ msg\@ STRINGR <\2> DS.W 0 end\@ ENDC ENDM andy -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Carolyn Scheppner -- CBM >>Amiga Technical Support<< UUCP ...{allegra,caip,ihnp4,seismo}!cbmvax!carolyn PHONE 215-431-9180 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=