HLA v1.69 crashes over this source!
From: Purple_Cochoa (green_cochoa_at_yahoo.com)
Date: 08/21/04
- Next message: Beth: "Re: order of operands in HLA"
- Previous message: Alex McDonald: "Re: Structures in Assembly Language"
- Next in thread: NoDot: "Re: HLA v1.69 crashes over this source!"
- Reply: NoDot: "Re: HLA v1.69 crashes over this source!"
- Reply: Randall Hyde: "Re: HLA v1.69 crashes over this source!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Beth: "Re: order of operands in HLA"
- Previous message: Alex McDonald: "Re: Structures in Assembly Language"
- Next in thread: NoDot: "Re: HLA v1.69 crashes over this source!"
- Reply: NoDot: "Re: HLA v1.69 crashes over this source!"
- Reply: Randall Hyde: "Re: HLA v1.69 crashes over this source!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|