1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/devel/sdcc/files/asxxxx.diff
Steve Price a5d951b54b Initial import of sdcc version 2.1.8.
A tool for cross-compiling code for the 8051.

PR:		13446
Submitted by:	Doug Ambrisko <ambrisko@whistle.com>
1999-09-27 03:01:09 +00:00

47 lines
1.1 KiB
Diff

--- asxxxx/i51mch.c.orig Mon Jun 28 23:27:59 1999
+++ asxxxx/i51mch.c Mon Jun 28 23:47:41 1999
@@ -389,8 +389,8 @@
v1 = -3;
else
v1 = e1.e_addr - dot.s_addr - 1;
- /* if ((v1 < -128) || (v1 > 127))
- aerr(); */
+ if (((v1 < -128) || (v1 > 127)) && pass > 0)
+ aerr();
outab(v1);
} else {
outrb(&e1, R_PCR);
@@ -408,8 +408,8 @@
v1 = -2;
else
v1 = e1.e_addr - dot.s_addr - 1;
- /* if ((v1 < -128) || (v1 > 127))
- aerr();*/
+ if (((v1 < -128) || (v1 > 127)) && pass > 0)
+ aerr();
outab(v1);
} else {
outrb(&e1, R_PCR);
@@ -463,8 +463,8 @@
v1 = -3;
else
v1 = e1.e_addr - dot.s_addr - 1;
- /* if ((v1 < -128) || (v1 > 127))
- aerr(); */
+ if (((v1 < -128) || (v1 > 127)) && pass > 0)
+ aerr();
outab(v1);
} else {
outrb(&e1, R_PCR);
@@ -500,8 +500,8 @@
v1 = -3;
else
v1 = e1.e_addr - dot.s_addr - 1;
- /* if ((v1 < -128) || (v1 > 127))
- aerr(); */
+ if (((v1 < -128) || (v1 > 127)) && pass > 0)
+ aerr();
outab(v1);
} else {
outrb(&e1, R_PCR);