From 82af6fdc4ebfa549308a2ec55708710fac3c9b04 Mon Sep 17 00:00:00 2001 From: sandeep Date: Wed, 14 Nov 2001 05:23:59 +0000 Subject: [PATCH] Added bpx Needed for 10bit stack pointer ds390 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1585 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- device/lib/Makefile.in | 2 +- device/lib/bpx.c | 26 ++++++++++++++++++++++++++ device/lib/libsdcc.lib | 1 + 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 device/lib/bpx.c diff --git a/device/lib/Makefile.in b/device/lib/Makefile.in index 4f282582..b9b62da8 100644 --- a/device/lib/Makefile.in +++ b/device/lib/Makefile.in @@ -57,7 +57,7 @@ SOURCES = _atoi.c _atol.c _autobaud.c _bp.c _schar2fs.c \ _strstr.c _strtok.c _uchar2fs.c _uint2fs.c \ _ulong2fs.c malloc.c serial.c ser_ir.c printfl.c \ printf_large.c vprintf.c puts.c gets.c \ - assert.c _strcat.c time.c printf_fast.c + assert.c _strcat.c time.c printf_fast.c bpx.c OBJECTS = $(patsubst %.c,$(PORTDIR)/%.rel,$(SOURCES)) diff --git a/device/lib/bpx.c b/device/lib/bpx.c new file mode 100644 index 00000000..e234198d --- /dev/null +++ b/device/lib/bpx.c @@ -0,0 +1,26 @@ +/*------------------------------------------------------------------------- + + bpx.c :- just declares bpx as a variable + + Written By - Sandeep Dutta . sandeep.dutta@usa.net (1999) + + This library is free software; you can redistribute it and/or modify it + under the terms of the GNU Library General Public License as published by the + Free Software Foundation; either version 2, 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 Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this program; if not, write to the Free Software + Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + In other words, you are welcome to use, share and improve this program. + You are forbidden to forbid anyone else to use, share and improve + what you give them. Help stamp out software-hoarding! +-------------------------------------------------------------------------*/ + +data unsigned int bpx ; diff --git a/device/lib/libsdcc.lib b/device/lib/libsdcc.lib index 022546a3..4732a292 100644 --- a/device/lib/libsdcc.lib +++ b/device/lib/libsdcc.lib @@ -44,3 +44,4 @@ printf_fast vprintf assert time +bpx \ No newline at end of file -- 2.30.2