Author Topic: Colon Labels  (Read 2089 times)

0 Members and 1 Guest are viewing this topic.

Charles Pegge

  • Guest
Colon Labels
« on: September 20, 2011, 02:59:14 AM »
Hi Peter,

I am still working on the colon labels dilemma. I think the best solution is to ensure that colon labels are on a line which does not contain other statements. Then the compiler can assume that if there is a colon and another statement follows it on the same line then it is not a label.

In some assembly coding styles the label is placed on the same line as a instruction. We will have to exclude this possibility with colon labels but Oxygen will still allow you to do this with dot labels.

abc:    mov eax,1

.abc    mov eax,1

With these rules, Oxygen will not be sensitive to commands and procedures immediately followed by colons.

WinEnd: ExitProcess 0

I think this the best compromise, and I hope works in your favour Peter :)

Charles


« Last Edit: September 20, 2011, 03:01:22 AM by Charles Pegge »

Peter

  • Guest
Re: Colon Labels
« Reply #1 on: September 20, 2011, 05:46:57 AM »
Charles,

must be there a space after the point?   . abc or .abc

Charles Pegge

  • Guest
Re: Colon Labels
« Reply #2 on: September 20, 2011, 06:29:54 AM »
.abc
It's all one word Peter,  as in most Assemblers.