Date : Sun, 28 Nov 2004 13:04:10 GMT
From : Pete Turnbull <pete@...>
Subject: Re: ...at line ___
On Nov 27 2004, 22:08, Andrew W wrote:
> It seems to be something wrong with the labels. I don't know if
this'll
> be much use (I don't think the second two LDA&75's are necessary
> either) but when &75 is 79 or 119 I get the error:
>
> .scan1 LDA&75:CMP#39:BEQ scan4:JMP scan5
> .scan5 LDA&75:CMP#79:BEQ scan4:JMP scan6
> .scan6 LDA&75:CMP#119:BNE scan2
> .scan4
I edited the above slightly to remove the comment, and put the code at
scan1 al on the same line (was it originally three lines or two?). Is
it exactly what you have? You don't get the error if &75 contains 39?
If there are no other lines (ie nothing changes A in between the tests)
you could rewrite the above as
.scan1 LDA&75:CMP#39:BEQ scan4
.scan5 CMP#79:BEQ scan4
.scan6 CMP#119:BNE scan2
.scan4
What's at scan4? You are running two assembler passes through this,
with a loop, setting OPT correctly each time, aren't you?
--
Pete Peter Turnbull
Network Manager
University of York