June 23, 2024, 02:14:40 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Request: Single line asm command

Started by Parker, December 19, 2005, 01:04:59 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Parker

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}

Parker

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...

Ionic Wind Support Team

I have no problems with labels here.  Both the colon form and goto work fin in every test.

And I did note your request.
Ionic Wind Support Team

Parker

December 30, 2005, 09:18:12 PM #3 Last Edit: December 30, 2005, 09:20:03 PM by Parker
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.

Ionic Wind Support Team

Lables have to be at the beginning of the line.
Ionic Wind Support Team

Parker

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:

Ionic Wind Support Team

Ionic Wind Support Team

sapero

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