chiark
/
gitweb
/
~ijackson
/
trains.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c711d6f
)
treat NUL specially
author
ian
<ian>
Sat, 19 Jan 2008 14:28:56 +0000
(14:28 +0000)
committer
ian
<ian>
Sat, 19 Jan 2008 14:28:56 +0000
(14:28 +0000)
hostside/startup.c
patch
|
blob
|
history
diff --git
a/hostside/startup.c
b/hostside/startup.c
index 04d844a46d68334345d5bb0e2e5a22742424e11f..7efdc1a48fc4c23e74621ab271a5c8563937b153 100644
(file)
--- a/
hostside/startup.c
+++ b/
hostside/startup.c
@@
-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");