IonicWind Software

Aurora Compiler => General Discussion => Topic started by: Parker on December 19, 2005, 01:04:59 PM

Title: Request: Single line asm command
Post by: Parker on December 19, 2005, 01:04:59 PM
I suppose it doesn't matter all that much, but I just think that doing this
#asm
mov dword [$Variable], eax
#endasm

could be changed to this:
#asm mov dword [$Variable], eax
where the syntax is either
#asm
{statements}
#endasm

or

#asm {statement}
Title: Re: Request: Single line asm command
Post by: Parker on December 30, 2005, 08:45:08 PM
It seems like this hasn't been noticed. Well anyways, especially in the alpha stage for defining labels, and for some other stuff too,

#asm SomeLabel:

would be better than

#asm
SomeLabel:
#endasm

in my opinion...
Title: Re: Request: Single line asm command
Post by: Ionic Wind Support Team on December 30, 2005, 09:13:23 PM
I have no problems with labels here.  Both the colon form and goto work fin in every test.

And I did note your request.
Title: Re: Request: Single line asm command
Post by: Parker on December 30, 2005, 09:18:12 PM
Okay thanks, I hadn't seen that labels could be created now, I noticed a while ago that they couldn't.

Edit - Hmm, on my computer they don't seem to work - "syntax error - :" GOTO works fine though.
Title: Re: Request: Single line asm command
Post by: Ionic Wind Support Team on December 30, 2005, 09:38:06 PM
Lables have to be at the beginning of the line.
Title: Re: Request: Single line asm command
Post by: Parker on December 30, 2005, 10:05:09 PM
I see, it wasn't liking my label that began with a '_' character, maybe that could be fixed. This is what was causing the problem:
_Again_Whitespace:
Title: Re: Request: Single line asm command
Post by: Ionic Wind Support Team on December 30, 2005, 11:03:40 PM
That I can do ;)
Title: Re: Request: Single line asm command
Post by: sapero on January 11, 2006, 07:50:18 AM
i stick :)
It would be great if Paul would add two callbacks to external functions (somewhere implemented as "return true") into dll-startup stub like dllOnLoad and dllOnUnload

if we want to be notified for load_dll event we can use
global sub dllOnLoad(),bool
{
ÂÃ,  if exename="x" and exesize=y and logged_user="z" return true; // allow loading dll
ÂÃ,  return false; // deny
}

but if you do not write this function, default function from library (return true) will be linked into dll