OpenCores
URL https://opencores.org/ocsvn/copyblaze/copyblaze/trunk

Subversion Repositories copyblaze

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /copyblaze
    from Rev 43 to Rev 44
    Reverse comparison

Rev 43 → Rev 44

/trunk/copyblaze/sw/tools/comp/pbcc/doc/pbccv2_user_manual.pdf Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
trunk/copyblaze/sw/tools/comp/pbcc/doc/pbccv2_user_manual.pdf Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: trunk/copyblaze/sw/tools/comp/pbcc/doc/pbcc_user_manual.pdf =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/copyblaze/sw/tools/comp/pbcc/doc/pbcc_user_manual.pdf =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/doc/pbcc_user_manual.pdf (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/doc/pbcc_user_manual.pdf (revision 44)
trunk/copyblaze/sw/tools/comp/pbcc/doc/pbcc_user_manual.pdf Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/math.h =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/math.h (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/math.h (revision 44) @@ -0,0 +1,106 @@ +/*------------------------------------------------------------------------- + math.h: Floating point math function declarations + + Copyright (C) 2001, Jesus Calvino-Fraga, jesusc@ieee.org + + This library 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.1, or (at your option) any + later version. + + This library 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 this library; see the file COPYING. If not, write to the + Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, + MA 02110-1301, USA. + + As a special exception, if you link this library with other files, + some of which are compiled with SDCC, to produce an executable, + this library does not by itself cause the resulting executable to + be covered by the GNU General Public License. This exception does + not however invalidate any other reasons why the executable file + might be covered by the GNU General Public License. +-------------------------------------------------------------------------*/ + +/* Version 1.0 - Initial release */ + +#ifndef _INC_MATH +#define _INC_MATH + +#define HUGE_VALF 3.402823466e+38 + +#define PI 3.1415926536 +#define TWO_PI 6.2831853071 +#define HALF_PI 1.5707963268 +#define QUART_PI 0.7853981634 +#define iPI 0.3183098862 +#define iTWO_PI 0.1591549431 +#define TWO_O_PI 0.6366197724 + +/* EPS=B**(-t/2), where B is the radix of the floating-point representation + and there are t base-B digits in the significand. Therefore, for floats + EPS=2**(-12). Also define EPS2=EPS*EPS. */ +#define EPS 244.14062E-6 +#define EPS2 59.6046E-9 + +union float_long +{ + float f; + long l; +}; + +#if defined(SDCC_MATH_LIB) && defined(SDCC_mcs51) && !defined(SDCC_USE_XSTACK) && !defined(SDCC_STACK_AUTO) && !defined(_SDCC_NO_ASM_LIB_FUNCS) +/* Compile the mcs51 assembly version only when all these + conditions are met. Since not all the functions are + reentrant, do not compile with --stack-auto is used. */ +#define MATH_ASM_MCS51 +#endif + + +/* Functions on the z80 & gbz80 are always reentrant and so the "reentrant" */ +/* keyword is not defined. */ +#if defined(SDCC_z80) || defined(SDCC_gbz80) +#define _FLOAT_FUNC_REENTRANT +#else +#define _FLOAT_FUNC_REENTRANT __reentrant +#endif + +/********************************************** + * Prototypes for float ANSI C math functions * + **********************************************/ + +/* Trigonometric functions */ +float sinf(const float x) _FLOAT_FUNC_REENTRANT; +float cosf(const float x) _FLOAT_FUNC_REENTRANT; +float tanf(const float x) _FLOAT_FUNC_REENTRANT; +float cotf(const float x) _FLOAT_FUNC_REENTRANT; +float asinf(const float x) _FLOAT_FUNC_REENTRANT; +float acosf(const float x) _FLOAT_FUNC_REENTRANT; +float atanf(const float x) _FLOAT_FUNC_REENTRANT; +float atan2f(const float x, const float y); + +/* Hyperbolic functions */ +float sinhf(const float x) _FLOAT_FUNC_REENTRANT; +float coshf(const float x) _FLOAT_FUNC_REENTRANT; +float tanhf(const float x) _FLOAT_FUNC_REENTRANT; + +/* Exponential, logarithmic and power functions */ +float expf(const float x); +float logf(const float x) _FLOAT_FUNC_REENTRANT; +float log10f(const float x) _FLOAT_FUNC_REENTRANT; +float powf(const float x, const float y); +float sqrtf(const float a) _FLOAT_FUNC_REENTRANT; + +/* Nearest integer, absolute value, and remainder functions */ +float fabsf(const float x) _FLOAT_FUNC_REENTRANT; +float frexpf(const float x, int *pw2); +float ldexpf(const float x, const int pw2); +float ceilf(float x) _FLOAT_FUNC_REENTRANT; +float floorf(float x) _FLOAT_FUNC_REENTRANT; +float modff(float x, float * y); + +#endif /* _INC_MATH */ Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/Makefile.in =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/Makefile.in (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/Makefile.in (revision 44) @@ -0,0 +1,128 @@ +# +# +# + +VERSION = @VERSION@ +VERSIONHI = @VERSIONHI@ +VERSIONLO = @VERSIONLO@ +VERSIONP = @VERSIONP@ + +SHELL = /bin/sh +CPP = @CPP@ +INSTALL = @INSTALL@ +CP = @CP@ + +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ + +prefix = @prefix@ +exec_prefix = @exec_prefix@ +bindir = @bindir@ +libdir = @libdir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +includedir = @includedir@ +mandir = @mandir@ +man1dir = $(mandir)/man1 +man2dir = $(mandir)/man2 +infodir = @infodir@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +include_dir_suffix = @include_dir_suffix@ + +sdcc_includedir = $(DESTDIR)$(datadir)/$(include_dir_suffix) + +CPPFLAGS = @CPPFLAGS@ -I$(top_builddir) + + +# Compiling entire program or any subproject +# ------------------------------------------ +all: + +# Compiling and installing everything and running test +# ---------------------------------------------------- +install: all installdirs + $(CP) -r $(srcdir)/asm $(srcdir)/*.h $(sdcc_includedir) + if [ "`grep mcs51 $(top_builddir)/ports.build`" = mcs51 ]; then \ + $(CP) $(srcdir)/mcs51/*.h $(sdcc_includedir)/mcs51; \ + fi + if [ "`grep ds390 $(top_builddir)/ports.build`" = ds390 ]; then \ + $(CP) $(srcdir)/ds390/*.h $(sdcc_includedir)/ds390; \ + fi + if [ "`grep ds400 $(top_builddir)/ports.build`" = ds400 ]; then \ + $(CP) $(srcdir)/ds400/*.h $(sdcc_includedir)/ds400; \ + fi + if [ "`grep xa51 $(top_builddir)/ports.build`" = xa51 ]; then \ + $(CP) $(srcdir)/xa51/*.h $(sdcc_includedir)/xa51; \ + fi + if [ "`grep pic14 $(top_builddir)/ports.build`" = pic14 ]; then \ + $(CP) $(srcdir)/pic14/*.h $(sdcc_includedir)/pic14; \ + $(CP) $(srcdir)/pic14/*.inc $(sdcc_includedir)/pic14; \ + $(CP) $(srcdir)/pic14/*.txt $(sdcc_includedir)/pic14; \ + $(CP) $(srcdir)/pic14/pic14devices.txt $(sdcc_includedir)/pic14; \ + fi + if [ "`grep pic16 $(top_builddir)/ports.build`" = pic16 ]; then \ + $(CP) $(srcdir)/pic16/*.h $(sdcc_includedir)/pic16; \ + $(CP) $(srcdir)/pic16/*.txt $(sdcc_includedir)/pic16; \ + fi + if [ "`grep z80 $(top_builddir)/ports.build`" = z80 ]; then \ + $(CP) $(srcdir)/z80/*.h $(sdcc_includedir)/z80; \ + fi + if [ "`grep hc08 $(top_builddir)/ports.build`" = hc08 ]; then \ + $(CP) $(srcdir)/hc08/*.h $(sdcc_includedir)/hc08; \ + fi + rm -rf `find $(sdcc_includedir) -type d -name '.svn'` + # some files in CVS are executable :-( + find $(sdcc_includedir) -type f -exec chmod 644 {} \; + + +# Deleting all the installed files +# -------------------------------- +uninstall: + rm -rf $(sdcc_includedir) + + +# Performing self-test +# -------------------- +check: + + +# Performing installation test +# ---------------------------- +installcheck: + + +# Creating installation directories +# --------------------------------- +installdirs: + [ -d $(sdcc_includedir) ] || mkdir -p $(sdcc_includedir) + [ -d $(sdcc_includedir)/mcs51 ] || mkdir -p $(sdcc_includedir)/mcs51 + [ -d $(sdcc_includedir)/ds390 ] || mkdir -p $(sdcc_includedir)/ds390 + [ -d $(sdcc_includedir)/ds400 ] || mkdir -p $(sdcc_includedir)/ds400 + [ -d $(sdcc_includedir)/xa51 ] || mkdir -p $(sdcc_includedir)/xa51 + [ -d $(sdcc_includedir)/pic14 ] || mkdir -p $(sdcc_includedir)/pic14 + [ -d $(sdcc_includedir)/pic16 ] || mkdir -p $(sdcc_includedir)/pic16 + [ -d $(sdcc_includedir)/z80 ] || mkdir -p $(sdcc_includedir)/z80 + [ -d $(sdcc_includedir)/hc08 ] || mkdir -p $(sdcc_includedir)/hc08 + + +# Creating dependencies +# --------------------- +dep: + +include $(srcdir)/clean.mk + +# My rules +# -------- + + +# Remaking configuration +# ---------------------- +checkconf: + @if [ -f $(top_builddir)/devel ]; then \ + $(MAKE) -f $(srcdir)/conf.mk srcdir="$(srcdir)" top_builddir="$(top_builddir)" \ + freshconf; \ + fi + +# End of main_in.mk/main.mk Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/ds80c390.h =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/ds80c390.h (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/ds80c390.h (revision 44) @@ -0,0 +1,194 @@ +/*------------------------------------------------------------------------- + ds80c390.h - Register Declarations for the DALLAS DS80C390 Processor + far from complete, e.g. no CAN + + Copyright (C) 2000, Johan Knol + + This library 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.1, or (at your option) any + later version. + + This library 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 this library; see the file COPYING. If not, write to the + Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, + MA 02110-1301, USA. + + As a special exception, if you link this library with other files, + some of which are compiled with SDCC, to produce an executable, + this library does not by itself cause the resulting executable to + be covered by the GNU General Public License. This exception does + not however invalidate any other reasons why the executable file + might be covered by the GNU General Public License. +-------------------------------------------------------------------------*/ + +#ifndef DS80C390_H +#define DS80C390_H + +__sfr __at 0x80 P4; /* ce3..ce0, a19..a16 */ +__sfr __at 0x81 SP; /* stack pointer */ +__sfr __at 0x82 DPL; /* data pointer 0 lsb */ +__sfr __at 0x83 DPH; /* data pointer 0 msb */ +__sfr __at 0x84 DPL1; /* data pointer 1 lsb */ +__sfr __at 0x85 DPH1; /* data pointer 1 msb */ +__sfr __at 0x86 DPS; /* data pointer select */ +__sfr __at 0x87 PCON; /* power control */ +__sfr __at 0x88 TCON; /* timer/counter control */ + __sbit __at 0x88 IT0; + __sbit __at 0x89 IE0; + __sbit __at 0x8a IT1; + __sbit __at 0x8b IE1; + __sbit __at 0x8c TR0; + __sbit __at 0x8d TF0; + __sbit __at 0x8e TR1; + __sbit __at 0x8f TF1; +__sfr __at 0x89 TMOD; /* timer mode control */ +__sfr __at 0x8a TL0; /* timer 0 lsb */ +__sfr __at 0x8b TL1; /* timer 1 msb */ +__sfr __at 0x8c TH0; /* timer 0 msb */ +__sfr __at 0x8d TH1; /* timer 1 msb */ +__sfr __at 0x8e CKCON; /* clock control */ +__sfr __at 0x90 P1; + __sbit __at 0x90 T2; + __sbit __at 0x91 T2EX; + __sbit __at 0x92 RXD1; + __sbit __at 0x93 TXD1; + __sbit __at 0x94 INT2; + __sbit __at 0x95 INT3; + __sbit __at 0x96 INT4; + __sbit __at 0x97 INT5; +__sfr __at 0x91 EXIF; /* external interrupt flag */ +__sfr __at 0x92 P4CNT; +__sfr __at 0x93 DPX; /* extended datapointer 0 */ +__sfr __at 0x95 DPX1; /* extended datapointer 1 */ +__sfr __at 0x98 SCON0; /* serial 0 control */ + __sbit __at 0x98 RI_0; + __sbit __at 0x99 TI_0; + __sbit __at 0x9a RB8_0; + __sbit __at 0x9b TB8_0; + __sbit __at 0x9c REN_0; + __sbit __at 0x9d SM2_0; + __sbit __at 0x9e SM1_0; + __sbit __at 0x9f SM0_0; + __sbit __at 0x9f FE_0; /* depending on SMOD0 */ +__sfr __at 0x99 SBUF0; /* serial 0 data buffer */ +__sfr __at 0x9b ESP; /* extended stack pointer */ +__sfr __at 0x9c AP; /* address page */ +__sfr __at 0x9d ACON; /* address control */ +__sfr __at 0xa0 P2; /* never mind the sbits */ +__sfr __at 0xa1 P5; +__sfr __at 0xa2 P5CNT; +__sfr __at 0xa8 IE; /* interrupt enable */ + __sbit __at 0xa8 EX0; + __sbit __at 0xa9 ET0; + __sbit __at 0xaa EX1; + __sbit __at 0xab ET1; + __sbit __at 0xac ES0; + __sbit __at 0xad ET2; + __sbit __at 0xae ES1; + __sbit __at 0xaf EA; +__sfr __at 0xb0 P3; + __sbit __at 0xb0 RXD0; + __sbit __at 0xb1 TXD0; + __sbit __at 0xb2 INT0; + __sbit __at 0xb3 INT1; + __sbit __at 0xb4 T0; + __sbit __at 0xb5 T1; + __sbit __at 0xb6 WR; + __sbit __at 0xb7 RD; +__sfr __at 0xb8 IP; /* interupt priority */ + __sbit __at 0xb8 PX0; /* external 0 */ + __sbit __at 0xb9 PT0; /* timer 0 */ + __sbit __at 0xba PX1; /* external 1 */ + __sbit __at 0xbb PT1; /* timer 1 */ + __sbit __at 0xbc PS0; /* serial port 0 */ + __sbit __at 0xbd PT2; /* timer 2 */ + __sbit __at 0xbe PS1; /* serial port 1 */ +__sfr __at 0xc0 SCON1; /* serial 1 control */ + __sbit __at 0xc0 RI_1; + __sbit __at 0xc1 TI_1; + __sbit __at 0xc2 RB8_1; + __sbit __at 0xc3 TB8_1; + __sbit __at 0xc4 REN_1; + __sbit __at 0xc5 SM2_1; + __sbit __at 0xc6 SM1_1; + __sbit __at 0xc7 SM0_1; + __sbit __at 0xc7 FE_1; /* depending on SMOD0 */ +__sfr __at 0xc1 SBUF1; /* serial 1 data buffer */ +__sfr __at 0xc4 PMR; /* power managment */ +__sfr __at 0xc6 MCON; /* memory control register */ +__sfr __at 0xc7 TA; /* timed access register */ +__sfr __at 0xc8 T2CON; /* timer 2 control */ + __sbit __at 0xc8 CP_RL; /* capture/reload */ + __sbit __at 0xc9 C_T; /* count/timer */ + __sbit __at 0xca TR2; /* stop/run */ + __sbit __at 0xcb EXEN2; + __sbit __at 0xcc TCLK; + __sbit __at 0xcd RCLK; + __sbit __at 0xce EXF2; + __sbit __at 0xcf TF2; /* overflow flag */ +__sfr __at 0xc9 T2MOD; /* timer 2 mode */ +__sfr __at 0xca RCAP2L; /* timer 2 capture/reload */ +__sfr __at 0xca RTL2; /* depends on CP_RL */ +__sfr __at 0xcb RCAP2H; +__sfr __at 0xcb RTH2; +__sfr __at 0xcc TL2; /* timer 2 lsb */ +__sfr __at 0xcd TH2; /* timer 2 msb */ +__sfr __at 0xd0 PSW; /* program status word (byte actually) */ + __sbit __at 0xd0 P; /* parity */ + __sbit __at 0xd1 F1; /* user flag 1 */ + __sbit __at 0xd2 OV; /* overflow flag */ + __sbit __at 0xd3 RS0; /* register select l */ + __sbit __at 0xd4 RS1; /* register select h */ + __sbit __at 0xd5 F0; /* user flag 0 */ + __sbit __at 0xd6 AC; /* auxiliary carry flag */ + __sbit __at 0xd7 CY; /* carry flag */ +__sfr __at 0xd1 MCNT0; /* arithmetic accellerator */ +__sfr __at 0xd2 MCNT1; +__sfr __at 0xd3 MA; +__sfr __at 0xd4 MB; +__sfr __at 0xd5 MC; +__sfr __at 0xd8 WDCON; /* watch dog */ + __sbit __at 0xd8 RWT; + __sbit __at 0xd9 EWT; + __sbit __at 0xda WDRF; + __sbit __at 0xdb WDIF; + __sbit __at 0xdc PFI; + __sbit __at 0xdd EPFI; + __sbit __at 0xde POR; + __sbit __at 0xdf SMOD_1; +__sfr __at 0xe0 ACC; /* accumulator */ +__sfr __at 0xe8 EIE; /* extended interrupt enable */ + __sbit __at 0xe8 EX2; + __sbit __at 0xe9 EX3; + __sbit __at 0xea EX4; + __sbit __at 0xeb EX5; + __sbit __at 0xec EWDI; + __sbit __at 0xed C1IE; + __sbit __at 0xee C0IE; + __sbit __at 0xef CANBIE; +__sfr __at 0xea MXAX; /* extended address register */ +__sfr __at 0xf0 B; /* aux accumulator */ +__sfr __at 0xf8 EIP; /* extended interrupt priority */ + __sbit __at 0xf8 PX2; + __sbit __at 0xf9 PX3; + __sbit __at 0xfa PX4; + __sbit __at 0xfb PX5; + __sbit __at 0xfc PWDI; + __sbit __at 0xfd C1IP; + __sbit __at 0xfe C0IP; + __sbit __at 0xff CANBIP; + +/* WORD/DWORD Registers */ + +__sfr16 __at (0x8C8A) TMR0; /* TIMER 0 COUNTER */ +__sfr16 __at (0x8D8B) TMR1; /* TIMER 1 COUNTER */ +__sfr16 __at (0xCDCC) TMR2; /* TIMER 2 COUNTER */ +__sfr16 __at (0xCBCA) RCAP2; /* TIMER 2 CAPTURE REGISTER WORD */ + +#endif /* DS80C390_H */ Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/limits.h =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/limits.h (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/limits.h (revision 44) @@ -0,0 +1,64 @@ +/*------------------------------------------------------------------------- + limits.h - ANSI defines constants for sizes of integral types + + Copyright (C) 1999, Sandeep Dutta . sandeep.dutta@usa.net + + This library 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.1, or (at your option) any + later version. + + This library 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 this library; see the file COPYING. If not, write to the + Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, + MA 02110-1301, USA. + + As a special exception, if you link this library with other files, + some of which are compiled with SDCC, to produce an executable, + this library does not by itself cause the resulting executable to + be covered by the GNU General Public License. This exception does + not however invalidate any other reasons why the executable file + might be covered by the GNU General Public License. +-------------------------------------------------------------------------*/ + +#ifndef __SDC51_LIMITS_H +#define __SDC51_LIMITS_H 1 + +#define CHAR_BIT 8 /* bits in a char */ +#define SCHAR_MAX 127 +#define SCHAR_MIN -128 +#define UCHAR_MAX 0xff +#define UCHAR_MIN 0 +#ifdef SDCC_CHAR_UNSIGNED +#define CHAR_MAX UCHAR_MAX +#define CHAR_MIN UCHAR_MIN +#else +#define CHAR_MAX SCHAR_MAX +#define CHAR_MIN SCHAR_MIN +#endif +#define INT_MIN -32768 +#define INT_MAX 32767 +#define SHRT_MAX INT_MAX +#define SHRT_MIN INT_MIN +#define UINT_MAX 0xffff +#define UINT_MIN 0 +#define USHRT_MAX UINT_MAX +#define USHRT_MIN UINT_MIN +#define LONG_MIN -2147483648 +#define LONG_MAX 2147483647 +#define ULONG_MAX 0xffffffff +#define ULONG_MIN 0 + + +#endif + + + + + + Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/assert.h =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/assert.h (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/assert.h (revision 44) @@ -0,0 +1,42 @@ +/*------------------------------------------------------------------------- + assert.h - header file for assert ANSI routine + + Copyright (C) 1999, Sandeep Dutta . sandeep.dutta@usa.net + + This library 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.1, or (at your option) any + later version. + + This library 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 this library; see the file COPYING. If not, write to the + Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, + MA 02110-1301, USA. + + As a special exception, if you link this library with other files, + some of which are compiled with SDCC, to produce an executable, + this library does not by itself cause the resulting executable to + be covered by the GNU General Public License. This exception does + not however invalidate any other reasons why the executable file + might be covered by the GNU General Public License. +-------------------------------------------------------------------------*/ + +#undef assert + +#ifdef NDEBUG + +/* Debugging disabled -- do not evaluate assertions. */ +#define assert(x) ((void)0) + +#else + +/* Debugging enabled -- verify assertions at run time. */ +void _assert(char *, const char *, unsigned int); +#define assert(x) ((x) == 0 ? _assert(#x, __FILE__, __LINE__):(void)0) + +#endif Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/clean.mk =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/clean.mk (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/clean.mk (revision 44) @@ -0,0 +1,22 @@ +# Deleting all files created by building the program +# -------------------------------------------------- +clean: + rm -f *core *[%~] *.[oa] + rm -f .[a-z]*~ + + +# Deleting all files created by configuring or building the program +# ----------------------------------------------------------------- +distclean: clean + rm -f Makefile *.dep + + +# Like clean but some files may still exist +# ----------------------------------------- +mostlyclean: clean + + +# Deleting everything that can reconstructed by this Makefile. It deletes +# everything deleted by distclean plus files created by bison, etc. +# ----------------------------------------------------------------------- +realclean: distclean Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/ctype.h =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/ctype.h (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/ctype.h (revision 44) @@ -0,0 +1,67 @@ +/*------------------------------------------------------------------------- + ctype.h - ANSI functions forward declarations + + Copyright (C) 1998, Sandeep Dutta . sandeep.dutta@usa.net + + Revisions: + 1.0 - June.1.2000 1.0 - Bela Torok / bela.torok@kssg.ch + order: function definitions -> macros + corretced macro: isalpha(c) + added macros: _tolower(c), _toupper(c), tolower(c), toupper(c) toascii(c) + + This library 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.1, or (at your option) any + later version. + + This library 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 this library; see the file COPYING. If not, write to the + Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, + MA 02110-1301, USA. + + As a special exception, if you link this library with other files, + some of which are compiled with SDCC, to produce an executable, + this library does not by itself cause the resulting executable to + be covered by the GNU General Public License. This exception does + not however invalidate any other reasons why the executable file + might be covered by the GNU General Public License. +-------------------------------------------------------------------------*/ + +#ifndef __SDC51_CTYPE_H +#define __SDC51_CTYPE_H 1 + +#include + +extern char iscntrl (unsigned char ) ; +extern char isdigit (unsigned char ) ; +extern char isgraph (unsigned char ) ; +extern char islower (unsigned char ) ; +extern char isupper (unsigned char ) ; +extern char isprint (unsigned char ) ; +extern char ispunct (unsigned char ) ; +extern char isspace (unsigned char ) ; +extern char isxdigit (unsigned char ) ; + +#define isalnum(c) (isalpha(c) || isdigit(c)) +#define isalpha(c) (isupper(c) || islower(c)) + +/* ANSI versions of _tolower & _toupper +#define _tolower(c) ((c) - ('a' - 'A')) +#define _toupper(c) ((c) + ('a' - 'A')) +*/ + +/* The _tolower & _toupper functions below can applied to any + alpha characters regardless of the case (upper or lower) */ +#define _tolower(c) (char)(((c) | (char)('a' - 'A'))) +#define _toupper(c) (char)(((c) & ~(char)('a' - 'A'))) + +#define tolower(c) ((isupper(c)) ? _tolower(c) : (c)) +#define toupper(c) ((islower(c)) ? _toupper(c) : (c)) +#define toascii(c) ((c) & 0x7F) + +#endif Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/float.h =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/float.h (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/float.h (revision 44) @@ -0,0 +1,102 @@ +/*------------------------------------------------------------------------- + float.h - ANSI functions forward declarations + + Copyright (C) 1998, Sandeep Dutta . sandeep.dutta@usa.net + + This library 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.1, or (at your option) any + later version. + + This library 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 this library; see the file COPYING. If not, write to the + Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, + MA 02110-1301, USA. + + As a special exception, if you link this library with other files, + some of which are compiled with SDCC, to produce an executable, + this library does not by itself cause the resulting executable to + be covered by the GNU General Public License. This exception does + not however invalidate any other reasons why the executable file + might be covered by the GNU General Public License. +-------------------------------------------------------------------------*/ + +#ifndef __SDC51_FLOAT_H +#define __SDC51_FLOAT_H 1 + +#include + +#define FLT_RADIX 2 +#define FLT_MANT_DIG 24 +#define FLT_EPSILON 1.192092896E-07F +#define FLT_DIG 6 +#define FLT_MIN_EXP (-125) +#define FLT_MIN 1.175494351E-38F +#define FLT_MIN_10_EXP (-37) +#define FLT_MAX_EXP (+128) +#define FLT_MAX 3.402823466E+38F +#define FLT_MAX_10_EXP (+38) + +/* the following deal with IEEE single-precision numbers */ +#define EXCESS 126 +#define SIGNBIT ((unsigned long)0x80000000) +#define __INFINITY ((unsigned long)0x7F800000) +#define HIDDEN (unsigned long)(1ul << 23) +#define SIGN(fp) (((unsigned long)(fp) >> (8*sizeof(fp)-1)) & 1) +#define EXP(fp) (((unsigned long)(fp) >> 23) & (unsigned int) 0x00FF) +#define MANT(fp) (((fp) & (unsigned long)0x007FFFFF) | HIDDEN) +#define NORM 0xff000000 +#define PACK(s,e,m) ((s) | ((unsigned long)(e) << 23) | (m)) + +float __uchar2fs (unsigned char); +float __schar2fs (signed char); +float __uint2fs (unsigned int); +float __sint2fs (signed int); +float __ulong2fs (unsigned long); +float __slong2fs (signed long); +unsigned char __fs2uchar (float); +signed char __fs2schar (float); +unsigned int __fs2uint (float); +signed int __fs2sint (float); +unsigned long __fs2ulong (float); +signed long __fs2slong (float); + +float __fsadd (float, float); +float __fssub (float, float); +float __fsmul (float, float); +float __fsdiv (float, float); + +char __fslt (float, float); +char __fseq (float, float); +char __fsgt (float, float); + + +#if defined(SDCC_FLOAT_LIB) && defined(SDCC_mcs51) && !defined(SDCC_USE_XSTACK) && !defined(_SDCC_NO_ASM_LIB_FUNCS) + +#define FLOAT_ASM_MCS51 + +/* This adds extra code for proper round-off, in + an attempt to match the results from gcc. */ +#define FLOAT_FULL_ACCURACY + +/* This adds about 66 bytes to the code size and + significantly speeds up shift operations more + than 8 bits (common when subtracting numbers + of significantly different magnitude and scaling + to fixed point) */ +#define FLOAT_SHIFT_SPEEDUP + +#define sign_a psw.1 +#define sign_b psw.5 +#define exp_a dpl +#define exp_b dph +#endif /* using mcs51 assembly */ + + +#endif /* __SDC51_FLOAT_H */ + Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/conf.mk =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/conf.mk (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/conf.mk (revision 44) @@ -0,0 +1,10 @@ +# +# Makefile targets to remake configuration +# + +freshconf: Makefile + +Makefile: $(srcdir)/Makefile.in $(top_srcdir)/configure.in + cd $(top_builddir) && $(SHELL) ./config.status + +# End of conf.mk Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/errno.h =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/errno.h (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/errno.h (revision 44) @@ -0,0 +1,41 @@ +/*------------------------------------------------------------------------- + errno.h: Error codes used in the math functions + + Copyright (C) 2001, Jesus Calvino-Fraga, jesusc@ieee.org + + This library 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.1, or (at your option) any + later version. + + This library 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 this library; see the file COPYING. If not, write to the + Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, + MA 02110-1301, USA. + + As a special exception, if you link this library with other files, + some of which are compiled with SDCC, to produce an executable, + this library does not by itself cause the resulting executable to + be covered by the GNU General Public License. This exception does + not however invalidate any other reasons why the executable file + might be covered by the GNU General Public License. +-------------------------------------------------------------------------*/ + +/* Version 1.0 - Initial release */ + +#ifndef _INC_ERRNO +#define _INC_ERRNO + +extern int errno; + +/* Error Codes: */ + +#define EDOM 33 /* Math argument out of domain of functions */ +#define ERANGE 34 /* Math result not representable */ + +#endif /* _INC_ERRNO */ Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/malloc.h =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/malloc.h (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/malloc.h (revision 44) @@ -0,0 +1,50 @@ +/*------------------------------------------------------------------------- + malloc.h - malloc header file + + Copyright (C) 1997, Dmitry S. Obukhov + + This library 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.1, or (at your option) any + later version. + + This library 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 this library; see the file COPYING. If not, write to the + Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, + MA 02110-1301, USA. + + As a special exception, if you link this library with other files, + some of which are compiled with SDCC, to produce an executable, + this library does not by itself cause the resulting executable to + be covered by the GNU General Public License. This exception does + not however invalidate any other reasons why the executable file + might be covered by the GNU General Public License. +-------------------------------------------------------------------------*/ + +#ifndef __SDCC51_MALLOC_H +#define __SDCC51_MALLOC_H +#include +#include + +#if _SDCC_MALLOC_TYPE_MLH + +void * calloc (size_t nmemb, size_t size); +void * malloc (size_t size); +void * realloc (void * ptr, size_t size); +void free (void * ptr); + +#else + +extern void __xdata * calloc (size_t nmemb, size_t size); +extern void __xdata * malloc (size_t size); +extern void __xdata * realloc (void * ptr, size_t size); +extern void free (void * ptr); + +#endif + +#endif Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/Makefile =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/Makefile (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/device/include/Makefile (revision 44) @@ -0,0 +1,128 @@ +# +# +# + +VERSION = 3.0.1 +VERSIONHI = 3 +VERSIONLO = 0 +VERSIONP = 1 + +SHELL = /bin/sh +CPP = gcc -E +INSTALL = /usr/bin/install -c +CP = cp + +top_builddir = ../.. +top_srcdir = ../.. + +prefix = /usr/local +exec_prefix = ${prefix} +bindir = ${exec_prefix}/bin +libdir = ${exec_prefix}/lib +datadir = ${datarootdir} +datarootdir = ${prefix}/share +includedir = ${prefix}/include +mandir = ${datarootdir}/man +man1dir = $(mandir)/man1 +man2dir = $(mandir)/man2 +infodir = ${datarootdir}/info + +srcdir = . + +include_dir_suffix = sdcc/include + +sdcc_includedir = $(DESTDIR)$(datadir)/$(include_dir_suffix) + +CPPFLAGS = -I$(top_builddir) + + +# Compiling entire program or any subproject +# ------------------------------------------ +all: + +# Compiling and installing everything and running test +# ---------------------------------------------------- +install: all installdirs + $(CP) -r $(srcdir)/asm $(srcdir)/*.h $(sdcc_includedir) + if [ "`grep mcs51 $(top_builddir)/ports.build`" = mcs51 ]; then \ + $(CP) $(srcdir)/mcs51/*.h $(sdcc_includedir)/mcs51; \ + fi + if [ "`grep ds390 $(top_builddir)/ports.build`" = ds390 ]; then \ + $(CP) $(srcdir)/ds390/*.h $(sdcc_includedir)/ds390; \ + fi + if [ "`grep ds400 $(top_builddir)/ports.build`" = ds400 ]; then \ + $(CP) $(srcdir)/ds400/*.h $(sdcc_includedir)/ds400; \ + fi + if [ "`grep xa51 $(top_builddir)/ports.build`" = xa51 ]; then \ + $(CP) $(srcdir)/xa51/*.h $(sdcc_includedir)/xa51; \ + fi + if [ "`grep pic14 $(top_builddir)/ports.build`" = pic14 ]; then \ + $(CP) $(srcdir)/pic14/*.h $(sdcc_includedir)/pic14; \ + $(CP) $(srcdir)/pic14/*.inc $(sdcc_includedir)/pic14; \ + $(CP) $(srcdir)/pic14/*.txt $(sdcc_includedir)/pic14; \ + $(CP) $(srcdir)/pic14/pic14devices.txt $(sdcc_includedir)/pic14; \ + fi + if [ "`grep pic16 $(top_builddir)/ports.build`" = pic16 ]; then \ + $(CP) $(srcdir)/pic16/*.h $(sdcc_includedir)/pic16; \ + $(CP) $(srcdir)/pic16/*.txt $(sdcc_includedir)/pic16; \ + fi + if [ "`grep z80 $(top_builddir)/ports.build`" = z80 ]; then \ + $(CP) $(srcdir)/z80/*.h $(sdcc_includedir)/z80; \ + fi + if [ "`grep hc08 $(top_builddir)/ports.build`" = hc08 ]; then \ + $(CP) $(srcdir)/hc08/*.h $(sdcc_includedir)/hc08; \ + fi + rm -rf `find $(sdcc_includedir) -type d -name '.svn'` + # some files in CVS are executable :-( + find $(sdcc_includedir) -type f -exec chmod 644 {} \; + + +# Deleting all the installed files +# -------------------------------- +uninstall: + rm -rf $(sdcc_includedir) + + +# Performing self-test +# -------------------- +check: + + +# Performing installation test +# ---------------------------- +installcheck: + + +# Creating installation directories +# --------------------------------- +installdirs: + [ -d $(sdcc_includedir) ] || mkdir -p $(sdcc_includedir) + [ -d $(sdcc_includedir)/mcs51 ] || mkdir -p $(sdcc_includedir)/mcs51 + [ -d $(sdcc_includedir)/ds390 ] || mkdir -p $(sdcc_includedir)/ds390 + [ -d $(sdcc_includedir)/ds400 ] || mkdir -p $(sdcc_includedir)/ds400 + [ -d $(sdcc_includedir)/xa51 ] || mkdir -p $(sdcc_includedir)/xa51 + [ -d $(sdcc_includedir)/pic14 ] || mkdir -p $(sdcc_includedir)/pic14 + [ -d $(sdcc_includedir)/pic16 ] || mkdir -p $(sdcc_includedir)/pic16 + [ -d $(sdcc_includedir)/z80 ] || mkdir -p $(sdcc_includedir)/z80 + [ -d $(sdcc_includedir)/hc08 ] || mkdir -p $(sdcc_includedir)/hc08 + + +# Creating dependencies +# --------------------- +dep: + +include $(srcdir)/clean.mk + +# My rules +# -------- + + +# Remaking configuration +# ---------------------- +checkconf: + @if [ -f $(top_builddir)/devel ]; then \ + $(MAKE) -f $(srcdir)/conf.mk srcdir="$(srcdir)" top_builddir="$(top_builddir)" \ + freshconf; \ + fi + +# End of main_in.mk/main.mk Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdldgb.exe =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdldgb.exe =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdldgb.exe (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdldgb.exe (revision 44)
trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdldgb.exe Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdcclib.exe =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdcclib.exe =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdcclib.exe (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdcclib.exe (revision 44)
trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdcclib.exe Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdasgb.exe =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdasgb.exe =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdasgb.exe (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdasgb.exe (revision 44)
trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdasgb.exe Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/makebin.exe =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/makebin.exe =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/makebin.exe (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/makebin.exe (revision 44)
trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/makebin.exe Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/cygreadline7.dll =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/cygreadline7.dll =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/cygreadline7.dll (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/cygreadline7.dll (revision 44)
trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/cygreadline7.dll Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/cygintl-8.dll =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/cygintl-8.dll =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/cygintl-8.dll (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/cygintl-8.dll (revision 44)
trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/cygintl-8.dll Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdas8051.exe =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdas8051.exe =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdas8051.exe (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdas8051.exe (revision 44)
trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdas8051.exe Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/cyggcc_s-1.dll =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/cyggcc_s-1.dll =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/cyggcc_s-1.dll (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/cyggcc_s-1.dll (revision 44)
trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/cyggcc_s-1.dll Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdcpp.exe =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdcpp.exe =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdcpp.exe (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdcpp.exe (revision 44)
trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdcpp.exe Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/cygiconv-2.dll =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/cygiconv-2.dll =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/cygiconv-2.dll (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/cygiconv-2.dll (revision 44)
trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/cygiconv-2.dll Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sh.exe =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sh.exe =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sh.exe (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sh.exe (revision 44)
trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sh.exe Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdld6808.exe =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdld6808.exe =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdld6808.exe (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdld6808.exe (revision 44)
trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdld6808.exe Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdcc.exe =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdcc.exe =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdcc.exe (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdcc.exe (revision 44)
trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdcc.exe Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/as2gbmap =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/as2gbmap (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/as2gbmap (revision 44) @@ -0,0 +1,177 @@ +#!/usr/bin/env python + +# as2gbmap - asxxxx to gb map file converter +# +# Copyright (c) 2010 Borut Razem +# +# This file is part of sdcc. +# +# This software is provided 'as-is', without any express or implied +# warranty. In no event will the authors be held liable for any damages +# arising from the use of this software. +# +# Permission is granted to anyone to use this software for any purpose, +# including commercial applications, and to alter it and redistribute it +# freely, subject to the following restrictions: +# +# 1. The origin of this software must not be misrepresented; you must not +# claim that you wrote the original software. If you use this software +# in a product, an acknowledgment in the product documentation would be +# appreciated but is not required. +# 2. Altered source versions must be plainly marked as such, and must not be +# misrepresented as being the original software. +# 3. This notice may not be removed or altered from any source distribution. +# +# Borut Razem +# borut.razem@siol.net + +import sys +import os +import re +from optparse import OptionParser +import operator + +def main(): + '''asxxxx to gb map file converter''' + usage = "usage: %prog [options] [ []]" + parser = OptionParser(usage = usage, version = "1.0") + parser.set_defaults(no_gmb = False) + parser.add_option("-j", "--no$gmb", action = "store_true", dest = "no_gmb", help = "generate no$gmb symbol file (default: rrgb)") + (options, args) = parser.parse_args() + + if len(args) > 0 and args[0] != "-": + try: + fin = open(args[0], "r") + except IOError, (errno, strerror): + print >> sys.stderr, "%s: can't open %s: %s" % (os.path.basename(sys.argv[0]), args[0], strerror) + return 1 + else: + fin = sys.stdin + + if len(args) > 1 and args[1] != "-": + try: + fout = open(args[1], "w") + except IOError, (errno, strerror): + print >> sys.stderr, "%s: can't create %s: %s" % (os.path.basename(sys.argv[1]), args[1], strerror) + return 1 + else: + fout = sys.stdout; + + areas = [] + modules = [] + libraries = [] + ubads = [] + + radix = 'HEX' + state = None + area = None + + # process asxxxx map file + for line in fin: + if re.match(r"^Hexadecimal$", line): + radix = 'HEX'; + continue + + if re.match(r"^Area +Addr +Size +Decimal +Bytes +\(Attributes\)$", line): + line = fin.next() + if re.match(r"^[- ]+$", line): + line = fin.next() + m = re.match(r"^([^ ]+) +([0-9A-Fa-f]{4}) +([0-9A-Fa-f]{4}) += +\d+\. +\w+ +\(([^\)]+)\)$", line) + if m: + if area: + if m.group(1) != area['area']: + areas.append(area) + area = {'area': m.group(1), 'radix': radix, 'base': int(m.group(2), 16), 'size': int(m.group(3), 16), 'attrib': m.group(4).replace(',', ' '), 'globals': []} + else: + area = {'area': m.group(1), 'radix': radix, 'base': int(m.group(2), 16), 'size': int(m.group(3), 16), 'attrib': m.group(4).replace(',', ' '), 'globals': []} + state = 'IN_AREA' + continue + + m = re.match(r"^ +([0-9A-Fa-f]{4}) +([^ ]+) +$", line) + if state == 'IN_AREA' and m: + area['globals'].append({'value': int(m.group(1), 16), 'global': m.group(2)}) + continue + + m = re.match(r"Files Linked +\[ module\(s\) \]$", line) + if m: + state = 'IN_MODULES' + continue + + m = re.match(r"Libraries Linked +\[ object file \]$", line) + if m: + state = 'IN_LIBRARIES' + continue + + m = re.match(r"User Base Address Definitions$", line) + if m: + state = 'IN_UBAD' + continue + + m = re.match(r"^([^ ]+) +\[ ([^ ]*) \]$", line) + if m: + if state == 'IN_MODULES': + modules.append({'file': m.group(1), 'name': m.group(2)}) + continue + + if state == 'IN_LIBRARIES': + libraries.append({'library': m.group(1), 'module': m.group(2)}) + continue + + m = re.match(r"^([^ ]+) += +0x([0-9A-Fa-f]{4})$", line) + if state == 'IN_UBAD' and m: + ubads.append({'symbol': m.group(1), 'value': m.group(2)}) + continue + + if area: + areas.append(area) + + + if options.no_gmb: + # generate no$gmp map file + print >> fout, '; no$gmb format .sym file' + print >> fout, '; Generated automagically by %s' % os.path.basename(sys.argv[0]) + for e in areas: + print >> fout, '; Area: %s' % e['area'] + if e['globals']: + e['globals'].sort(key = operator.itemgetter('value')) + for g in e['globals']: + if g['global'][0:3] != 'l__': + if g['value'] > 0x7FFF: + print >> fout, '00:%04X %s' % (g['value'], g['global']) + else: + print >> fout, '%02X:%04X %s' % (g['value'] // 16384, g['value'], g['global']) + else: + # generate rrgb map file + for e in areas: + print >> fout, 'AREA %s' % e['area'] + print >> fout, '\tRADIX %s' % e['radix'] + print >> fout, '\tBASE %04X' % e['base'] + print >> fout, '\tSIZE %04X' % e['size'] + print >> fout, '\tATTRIB %s' % e['attrib'] + if e['globals']: + e['globals'].sort(key = operator.itemgetter('value')) + print >> fout, '\tGLOBALS' + for g in e['globals']: + print >> fout, '\t\t%s\t%04X' % (g['global'], g['value']) + + if modules: + print >> fout, 'MODULES' + for m in modules: + print >> fout, '\tFILE %s' % m['file'] + if m['name']: + print >> fout, '\t\tNAME %s' % m['name'] + + if libraries: + print >> fout, 'LIBRARIES' + for m in libraries: + print >> fout, '\tLIBRARY %s' % m['library'] + print >> fout, '\t\tMODULE %s' % m['module'] + + if ubads: + print >> fout, 'USERBASEDEF' + for m in ubads: + print >> fout, '\t%s = 0x%04X' % (m['symbol'], int(m['value'], 16)) + return 0 + +if __name__ == '__main__': + sys.exit(main()) Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/README =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/README (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/README (revision 44) @@ -0,0 +1,4 @@ +sdcc/bin +-------- + +Where binary files end up. Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdcdb.exe =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdcdb.exe =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdcdb.exe (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdcdb.exe (revision 44)
trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdcdb.exe Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdas6808.exe =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdas6808.exe =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdas6808.exe (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdas6808.exe (revision 44)
trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdas6808.exe Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/cygncurses-9.dll =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/cygncurses-9.dll =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/cygncurses-9.dll (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/cygncurses-9.dll (revision 44)
trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/cygncurses-9.dll Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdld.exe =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdld.exe =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdld.exe (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdld.exe (revision 44)
trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdld.exe Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/packihx.exe =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/packihx.exe =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/packihx.exe (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/packihx.exe (revision 44)
trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/packihx.exe Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdldz80.exe =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdldz80.exe =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdldz80.exe (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdldz80.exe (revision 44)
trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdldz80.exe Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/asranlib.exe =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/asranlib.exe =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/asranlib.exe (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/asranlib.exe (revision 44)
trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/asranlib.exe Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdasz80.exe =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdasz80.exe =================================================================== --- trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdasz80.exe (nonexistent) +++ trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdasz80.exe (revision 44)
trunk/copyblaze/sw/tools/comp/pbcc/pbccv2-bin-win32-cygwin-2011-10-24/bin/sdasz80.exe Property changes : Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.