HLA v1.69 crashes over this source!

From: Purple_Cochoa (green_cochoa_at_yahoo.com)
Date: 08/21/04


Date: 21 Aug 2004 03:43:29 -0700

Hi,

I've recently downloaded and messed around with Randy
Hyde's HLA version 1.69 from webster. As I am a rank
beginner, I'm sure I've made horrible mistakes in the
HLA syntax, especially if I'm right, with the JUMP labels.

However, what's surprising is that instead of just
reporting the error, hlaparse.exe also crashes on my
WinXP box, bringing up the usual, "hlaparse has encountered
a error and needs to close bla-bla-bla" XP dialog box.

The source HLA crashes over is a simple, (though probably
syntactically incorrect), ten liner and is appended to
this post.

I just thought I'd bring this to Randy's attention so
that he'll be able to sort out the fault in HLA v1.69.

The source that crashes HLA v1.69:

program GrandTotal;
#include( "stdlib.hhf" )

static
GrandTotal: int32;
CurrentInput: int32;
NoOfInputs: int32 := 0;

begin GrandTotal;

stdout.put( nl, "This HLA program keeps track othe
running total of"
nl, "signed integer values, and when '0' is entered, it "
"prints", nl, "the total number of values entered, their"
" grand total and exits.", nl );

get_next_value:

stdout.put( nl, "Enter ", (NoOfInputs + 1), " value: " );
stdin.get( CurrentInput );

mov( CurrentInput, eax );
cmp( eax, 0 );
jz( do_exit );
inc( NoOfInputs );
add( eax, GrandTotal );
jmp( get_next_value );

do_exit:
stdout.put( nl, nl, "You entered ", NoOfInputs, " values.", nl,
"The grand total of all values is: ", GrandTotal, nl );

end GrandTotal;

sorry if format isn't nice, but I'd think Randy can
figure it out.

I'm also including below, a little of the error
information reported by WinXP:

Exception info:
code: 0xc0000005 Flags: 0x00000000
Record: 0x0000000000000000 Address: 0x0000000000498237

Thread 1
Thread ID: 0x000006a8
Context:
EDI: 0x7ffdf000 ESI: 0x00000000 EAX: 0x01df0000
EBX: 0x014947e0 ECX: 0x00001000 EDX: 0x00000000
EIP: 0x7ffe0304 EBP: 0x01494834 SegCs: 0x0000001b
EFlags: 0x00000202 ESP: 0x01494798 SegCs: 0x00000023



Relevant Pages

  • Re: What the hell is that !?!
    ... Guess where HLA got a lot of its ideas. ... not look like any assembler syntax I have seen so far... ... mov eax, someVar ... shr(shift, edx); ...
    (alt.lang.asm)
  • Re: Conditional Assembly
    ... > The useful set of conditional statements I consider an absolute minimum ... Not sure what you mean by macro symbol, ... In HLA, there is no exact equivalent (even in C, what you've ... > test eax, eax ...
    (alt.lang.asm)
  • Re: my assembler is better than your assembler
    ... I doubt *very* much if you're interested in using HLA - ... mov eax,figure; ... involve eax at all - it's going to be "trashed" by returning the count. ... you can pass parameters on the stack without the "whole ...
    (alt.lang.asm)
  • Re: RosAsm jut got a 3X Speedup !!!
    ... > if he wants to use a manual geared car later? ... Manual Transmission Auto= HLA. ... add eax, ebx ... mov, eax ...
    (alt.lang.asm)
  • Re: my assembler is better than your assembler
    ... Then there's the "HLA language". ... records) if the routine is complex ... involve eax at all - it's going to be "trashed" by returning the count. ... you can pass parameters on the stack without the "whole ...
    (alt.lang.asm)