Author Topic: Problem in os.hhf  (Read 28959 times)

Offline hide2may

  • Newbie
  • *
  • Posts: 5
    • View Profile
Problem in os.hhf
« on: November 20, 2008, 04:51:17 PM »
Hi there,

I'm learning HLA using David's tutorial:-
http://docs.google.com/View?docID=d674v6b_21hfm8nm&revision=_latest&pli=1

The last program "testRandom" in chapter 06 doesn't seem to get compiled.
The message is as follows:-

   I:\projects\chap06>hla testRandom.hla
   Error in file "os.hhf" at line 5 [errid:107961/hlaparse.c]:
   syntax error, unexpected namespaceTkn, expecting DoOneValStmt.
   Near: << namespace >>

   os.hhf [4]:
   error: illegal instruction.

It sounds like the error is in "os.hhf", and
the first few lines of os.hhf reads:-

   #if( ! @define( os_hhf ))
   ?os_hhf := true;

   namespace os;

Any kind soul help me to tackle the problem?

Thanks in advance ^^

Offline David

  • Hero Member
  • *****
  • Posts: 647
    • View Profile
Re: Problem in os.hhf
« Reply #1 on: November 22, 2008, 05:46:08 AM »
Shalom h2m,

The program compiles for me and works as expected ok here ....

HLA (High Level Assembler - FASM back end, POLINK linker) Version 1.104 build 20477 (prototype)

But ... it would NOT compile here ... HIDE Version 1.32.02 ( the newest HIDE IDE, with HLA included )

The program has always worked just fine for me, until I now just tried it in the latest HIDE as per above ... where it would not compile (It did compile fine ... from my previous HIDE IDE).

The problem seems to have been introduced in the recent HIDE compile.

So ... please just use HLA.exe to compile ... or use an older version of the HIDE IDE.

Please let me know if this helps.

Shalom shalom,

David

Offline hide2may

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Problem in os.hhf
« Reply #2 on: November 23, 2008, 06:58:57 PM »
Sorry all Masters of HLA,

The problem was caused by my missing the leading line:-

    program testRandom;

 ~~8~
Your SS (Stupid Student),
-hide2may

Offline admin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 296
    • View Profile
Re: Problem in os.hhf
« Reply #3 on: November 24, 2008, 08:35:49 AM »
Thanks David for your help.

Don't worry hide2may all may forget  :)

Offline David

  • Hero Member
  • *****
  • Posts: 647
    • View Profile
Re: Problem in os.hhf
« Reply #4 on: November 29, 2008, 04:59:46 PM »
Quote
The problem was caused by my missing the leading line:-

Glad you found the cause ...

Your serendipity led to finding a real bug in the recent HIDE compile of HLA that might have otherwise gone undetected.

Great detective work ... Sherlock  ;)
« Last Edit: November 29, 2008, 05:07:10 PM by David »