Login
Forum Help



Post Your Message
Username: (Login)

Topic:
Message:
 


Previous Messages
Posted By

KiCHY
on 2006-07-11
12:46:02
 Re: Plus4IDE with AS65, include problem

Oh... So this is a limitation of the AS65 compiler. I know implementation of parsing the source is easier this way, but...
TY for fast help happy Lets start copy-paste!

Posted By

Csabo
on 2006-07-11
08:49:30
 Re: Plus4IDE with AS65, include problem

You just need to put a TAB character in front of the include. Anything that is directly at the beginning of the line is considered a label. You cannot use opcodes (including plus/4 opcodes like LDA, STA, etc, or AS65's built-in commands) as labels.

Posted By

KiCHY
on 2006-07-11
06:40:06
 Plus4IDE with AS65, include problem

Hi,

I tried to write a small program in Plus4IDE v1.59 with AS65 compiler. I tried to use the INCLUDE keyword to cut my source into smaller parts, but even if i follow the documentation, it doesnt work.

...
include "consts.i"
...
(and naturally the "consts.i" file exists, containing a few rows like this:
a = 10
b = 0xff

When the compiler reaches the row of INCLUDE, i get an error message: Opcode may not be used as label.

I just copy-pasted the contents of consts.i from the main source file.

Did NE1 of you meet this problem earlier? And how to solve it?
Cheers,
KiCHY


Copyright © Plus/4 World Team, 2001-2024. Support Plus/4 World on Patreon