HLA example question?

  • Follow


Using the example AoA [12.4 Programming in C/C++ and HLA]:

unit ReturnHWUnit;

     procedure ReturnHW; external( "_ReturnHW" );
     procedure ReturnHW; nodisplay; noframe; noalignstk;

     begin ReturnHW;

	   lea( eax, "Hello World" );
	   ret();

     end ReturnHW;

end ReturnHWUnit;

I tried to compile using: "hla -c rhw.hla" and got:

linux:~/hla> hla -c rhw.hla
Error in file "t.hla" at line 4 [errid:99124/hlaparse.c]:
syntax error, unexpected UndefID.
Near: << nodisplay >>

If I comment out: "nodisplay; noframe; noalignstk;" (i.e., procedure
ReturnHW; //nodisplay; noframe; noalignstk;) it works.  Why?

---Thanks for your time

0
Reply spamtrap2 (1628) 12/6/2005 7:47:19 PM

spamtrap@crayne.org wrote:
> Using the example AoA [12.4 Programming in C/C++ and HLA]:
>
> unit ReturnHWUnit;
>
>      procedure ReturnHW; external( "_ReturnHW" );
>      procedure ReturnHW; nodisplay; noframe; noalignstk;
>
>      begin ReturnHW;
>
> 	   lea( eax, "Hello World" );
> 	   ret();
>
>      end ReturnHW;
>
> end ReturnHWUnit;
>
> I tried to compile using: "hla -c rhw.hla" and got:
>
> linux:~/hla> hla -c rhw.hla
> Error in file "t.hla" at line 4 [errid:99124/hlaparse.c]:
> syntax error, unexpected UndefID.
> Near: << nodisplay >>
>
> If I comment out: "nodisplay; noframe; noalignstk;" (i.e., procedure
> ReturnHW; //nodisplay; noframe; noalignstk;) it works.  Why?
>
> ---Thanks for your time

Because the syntax for nodisplay, noframe, and noalignstk have changed.
Use @nodisplay, @noframe, and @noalignstack instead.
Cheers,
Randy Hyde

0
Reply randyhyde 12/7/2005 4:41:58 AM


1 Replies
240 Views

(page loaded in 2.701 seconds)

Similiar Articles:













7/22/2012 5:32:19 AM


Reply: