--- simulpic-2005-1-28.orig/Makefile +++ simulpic-2005-1-28/Makefile @@ -8,7 +8,7 @@ ALLSRC=$(IECSRC) $(SRCS) $(INCLUDES) Makefile Copyright README simulpic.doc simulpic.1 -CFLAGS= -g -fPIC -O -Wall -fwritable-strings -fno-exceptions \ +CFLAGS= -g -fPIC -O2 -Wall -fno-exceptions \ -I. -I/usr/include/g++-3 --- simulpic-2005-1-28.orig/tpic.cc +++ simulpic-2005-1-28/tpic.cc @@ -300,7 +300,7 @@ { unsigned char NewDC = (((literal & 0x0F) | 0x10) - (W & 0x0F) >= 0x10); unsigned char NewC = (((unsigned int) literal) | 0x0100) - ((unsigned int) W) >= 0x0100; - W-=literal; + W=literal-W; Regs.STATUS=Bit_Write(Regs.STATUS, STATUS_C, NewC); Regs.STATUS=Bit_Write(Regs.STATUS, STATUS_DC, NewDC); Regs.STATUS=Bit_Write(Regs.STATUS, STATUS_Z, W==0); --- simulpic-2005-1-28.orig/tpic.h +++ simulpic-2005-1-28/tpic.h @@ -89,11 +89,11 @@ TRegister Bit_Read(TRegister reg, TBit_Address pos); TRegister Bit_Write(TRegister reg, TBit_Address pos, TBool bit); - TBool TPic::RB_Change_Event(); - TBool TPic::INT_Event(); - TBool TPic::RTCC_Event(); - void TPic::Update_RTCC(); - TBool TPic::Update_WDT(); + TBool RB_Change_Event(); + TBool INT_Event(); + TBool RTCC_Event(); + void Update_RTCC(); + TBool Update_WDT(); /**** PIC16C84 - Instruction Set ****/ --- simulpic-2005-1-28.orig/debian/control +++ simulpic-2005-1-28/debian/control @@ -0,0 +1,13 @@ +Source: simulpic +Maintainer: Aurelien Jarno +Section: electronics +Priority: optional +Standards-Version: 3.7.3 +Build-Depends: debhelper (>> 4.0.0) + +Package: simulpic +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: simulator for Microchip PIC16F84 microcontroller + This software allows to simulate the execution of any program on a Microchip + PIC16F84 microcontroller. --- simulpic-2005-1-28.orig/debian/dirs +++ simulpic-2005-1-28/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/share/man/man1 --- simulpic-2005-1-28.orig/debian/compat +++ simulpic-2005-1-28/debian/compat @@ -0,0 +1 @@ +4 --- simulpic-2005-1-28.orig/debian/copyright +++ simulpic-2005-1-28/debian/copyright @@ -0,0 +1,44 @@ +This is the Debian prepackaged version of Microchip PIC device simulator. +It was Debianised by Samuel Tardieu , using files obtained +from http://www.dseetharam.org/software/ + +Copyright and licence notice: + +/* + * Copyright (c) 2004 Deva Seetharam deva@alum.mit.edu + * All rights reserved. + + * Copyright (c) 1996 Tommaso Cucinotta, Alessandro Evangelista, Luigi Rizzo + * All rights reserved. + * + * Dip. di Ingegneria dell'Informazione, Universita of Pisa, + * via Diotisalvi 2 -- 56126 Pisa. + * email: simulpic@iet.unipi.it + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * This product includes software developed by + * Tommaso Cucinotta, Alessandro Evangelista and Luigi Rizzo + * 4. The name of the author may not be used to endorse or promote products + * derived from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, + * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN + * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + --- simulpic-2005-1-28.orig/debian/docs +++ simulpic-2005-1-28/debian/docs @@ -0,0 +1,2 @@ +README +simulpic.doc --- simulpic-2005-1-28.orig/debian/rules +++ simulpic-2005-1-28/debian/rules @@ -0,0 +1,77 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) + CFLAGS += -g +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +build: build-stamp +build-stamp: + dh_testdir + $(MAKE) + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + $(MAKE) clean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/simulpic. + install -p -m 755 -o root -g root $(CURDIR)/simulpic $(CURDIR)/debian/simulpic/usr/bin + install -p -m 644 -o root -g root $(CURDIR)/simulpic.1 $(CURDIR)/debian/simulpic/usr/share/man/man1 + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs + dh_installexamples + dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit + dh_installcron + dh_installman + dh_installinfo + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- simulpic-2005-1-28.orig/debian/changelog +++ simulpic-2005-1-28/debian/changelog @@ -0,0 +1,127 @@ +simulpic (1:2005-1-28-8) unstable; urgency=low + + * Build with -O2. + + -- Aurelien Jarno Fri, 09 May 2008 00:15:39 +0200 + +simulpic (1:2005-1-28-7) unstable; urgency=low + + * Updated Standard-Version to 3.7.3 (no changes). + * Don't ignore make clean errors. + + -- Aurelien Jarno Sun, 02 Mar 2008 19:04:44 +0100 + +simulpic (1:2005-1-28-6) unstable; urgency=low + + * g++ 4.1 fixes by Martin Michlmayr (closes: bug#357064). + + -- Aurelien Jarno Wed, 15 Mar 2006 17:07:03 +0100 + +simulpic (1:2005-1-28-5) unstable; urgency=low + + * Added simulpic.doc to the documentation (closes: bug#335401). + + -- Aurelien Jarno Sun, 23 Oct 2005 21:52:22 +0200 + +simulpic (1:2005-1-28-4) unstable; urgency=low + + * Fixed the SUBLW instruction (closes: bug#335010). + * Updated Standard-Version to 3.6.2. + + -- Aurelien Jarno Fri, 21 Oct 2005 16:10:21 +0200 + +simulpic (1:2005-1-28-3) unstable; urgency=low + + * Simple rebuild for C++ ABI transition. + + -- Aurelien Jarno Wed, 13 Jul 2005 00:52:25 +0200 + +simulpic (1:2005-1-28-2) unstable; urgency=low + + * Applied patch from Andreas Jochens to fix an FTBFS with gcc-4.0 + (closes: bug#294619). Thanks! + + -- Aurelien Jarno Fri, 4 Mar 2005 15:41:25 +0100 + +simulpic (1:2005-1-28-1) unstable; urgency=low + + * New upstream and new version! The first in more than 8 years (closes: + bug#280088). + * Updated copyright. + * This version is now designed for the PIC16F84: updated description. + + -- Aurelien Jarno Fri, 28 Jan 2005 10:07:12 +0100 + +simulpic (19960826-9) unstable; urgency=low + + * Dont Build-Depends on make, it is an essential package. + * Updated Standard-Version to 3.6.1. + + -- Aurelien Jarno Wed, 5 May 2004 09:23:39 +0200 + +simulpic (19960826-8) unstable; urgency=low + + * Depends on ${misc:Depends}. + * Uses debian/compat instead of DH_COMPAT. + + -- Aurelien Jarno Wed, 5 Mar 2003 21:23:29 +0100 + +simulpic (19960826-7) unstable; urgency=low + + * Fixed a bug caused by using a 8-bit PC in CALL and GOTO. + + -- Aurelien Jarno Fri, 17 Jan 2003 00:00:36 +0100 + +simulpic (19960826-6) unstable; urgency=low + + * New maintainer. (Closes: #154106) + * Rebuilt with gcc-3.2. + * Rewritten debian/ from scratch using debhelper and dpatch. + * Updated Standard-Version to 3.5.8. + + -- Aurelien Jarno Wed, 15 Jan 2003 17:45:27 +0100 + +simulpic (19960826-5) unstable; urgency=low + + * Upgrade policy version. + * Acknowledge NMU. Closes: #104830. + + -- Samuel Tardieu Tue, 17 Jul 2001 14:44:05 +0200 + +simulpic (19960826-4.1) unstable; urgency=low + + * NMU + * Change definition of main() to meet standard. Closes: #104830 + + -- LaMont Jones Mon, 16 Jul 2001 00:30:38 -0600 + +simulpic (19960826-4) unstable; urgency=low + + * Use a newer yada. Closes: #84857. + * Remove useless g++ build dependency. + + -- Samuel Tardieu Sun, 4 Feb 2001 22:28:20 +0100 + +simulpic (19960826-3) unstable; urgency=low + + * Instate /usr/doc symlink to make lintian happy. + + -- Samuel Tardieu Tue, 2 Nov 1999 15:58:32 +0100 + +simulpic (19960826-2) unstable; urgency=low + + * Change section to electronics (bug #43696). + * Switch to yada. + * Put manpages into /usr/share/man and documentation into /usr/share/doc. + + -- Samuel Tardieu Mon, 13 Sep 1999 14:20:35 +0200 + +simulpic (19960826-1) unstable; urgency=low + + * Initial Release. + + -- Samuel Tardieu Fri, 15 Jan 1999 22:31:54 +0100 + +Local variables: +mode: debian-changelog +End: