chiark / gitweb /
treat NUL specially
authorian <ian>
Sat, 19 Jan 2008 14:28:56 +0000 (14:28 +0000)
committerian <ian>
Sat, 19 Jan 2008 14:28:56 +0000 (14:28 +0000)
hostside/startup.c

index 04d844a46d68334345d5bb0e2e5a22742424e11f..7efdc1a48fc4c23e74621ab271a5c8563937b153 100644 (file)
@@ -198,6 +198,7 @@ void on_pic_detect1(const PicInsnInfo *pii, const PicInsn *pi, int segn) {
 /*---------- fixme move these to where they want to go ----------*/
 
 void on_pic_nmradone(const PicInsnInfo *pii, const PicInsn *pi, int objnum) {
+  if (!objnum) die("PIC sent NUL!");
   if (sta_state <= Sta_Settling) return;
   if (sta_state != Sta_Run) die("PIC sent NMRADONE in Resolving");