Robert was very close in his suggestion below... It turns out that cbuf.lib was modified sometime between DC7.33P3 and DC 8.x, and the opcodes for the new codes were all in upper case (all ZWorld asm I have seen is in lower case). There was a poorly named #define in the code I was working on for ADD which of course, caused the problem.
Thanks to Robert and others for their suggestions.
Cheers,
Nathan
-----Original Message-----
From: Robert Richter
[mailto:r...@hildalecity.com]
Sent: Tuesday, 22 June 2004
2:44 AM
To: r...@yahoogroups.com
Subject: Re: [rabbit-semi]
DC7.33P3 -> DC8.30 Difficulties (cbuf.lib)
Is there a #define in your
program for "SBC", "HL", or
"BC"?
----------
> From: Nathan Johnston
<n...@dominion.net.au>
> To: Rabbit eGroup
(r...@yahoogroups.com)
> Subject: [rabbit-semi] DC7.33P3 -> DC8.30
Difficulties (cbuf.lib)
> Date: Sunday, June 20,
2004 8:49
PM
>
I'm trying to get an application that ran OK
in
DC7.33P3 to run in DC8.30
and I've come across a weird
one...
I'm only getting two error
messages:
line 499 : ERROR
CBUF.LIB : Bad or Missing
Opcode
line 499 : ERROR
CBUF.LIB : Syntax error - or garbage at end
of
program.
Both are from the cbuf.lib library (a DC library),
which I have not touched
(I've also tried on another PC's
installation of
8.30). Here are the
relevant lines from the library:
498
SBC HL,BC
; (back-front+1+mask)&mask
499
ADD HL,DE
;
500
INC HL
;
Does anyone have any idea what could be going on
here? I'm really
scratching
my head over this one, especially when the only
error messages are coming
from the Dynamic C libraries. "ADD" is
definitely a valid opcode :-).
(I also added a #class static to program given
that it had been written
before the class change).
Regards,
Nathan