* src/pic/gen.c (popGetExternal): augmented to also create references
[fw/sdcc] / device / lib / pic / libsdcc / shadowregs.c
diff --git a/device/lib/pic/libsdcc/shadowregs.c b/device/lib/pic/libsdcc/shadowregs.c
new file mode 100644 (file)
index 0000000..8824ba5
--- /dev/null
@@ -0,0 +1,19 @@
+/*
+ * shadowregs.c - provide shadow register for use during interrupts
+ *
+ * (c) 2007 by Raphael Neider <rneider @ web.de>
+ * 
+ * This file is part of SDCC's pic14 library and distributed under
+ * the terms of the GPLv2 with linking exception; see COPYING in some
+ * parent directory for details.
+ */
+
+/* 
+ * We should make sure these always reside in the same bank,
+ * so that we can save two BANKSELs in the interrupt entry code.
+ */
+
+unsigned char __sdcc_saved_fsr;
+//unsigned char __sdcc_saved_pclath;
+//unsigned char __sdcc_saved_status;
+