• RSS
  • Twitter
  • FaceBook

Security Forums

Log in

FAQ | Search | Usergroups | Profile | Register | RSS | Posting Guidelines | Recent Posts

problem with try exception endtry in Hla

Users browsing this topic:0 Security Fans, 0 Stealth Security Fans
Registered Security Fans: None
Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> Programming and More

View previous topic :: View next topic  
Author Message
vaticinator
Just Arrived
Just Arrived


Joined: 27 Sep 2005
Posts: 0


Offline

PostPosted: Thu Dec 29, 2005 5:33 pm    Post subject: problem with try exception endtry in Hla Reply with quote

recently i decide to learn assembly language,then i choose The Art of Assembly Language as my textbook.Instead of learning assembly language,i first learn high level assembly language.here is the source code of a very simply program:
program inttest;
#include("stdlib.hhf");
var
i8 : int8;
goodint : boolean;
begin inttest;
repeat
mov(false,goodint);
try
stdout.put("input a number between -128 and 127:");
stdin.geti8();
mov(true,goodint);
mov(al,iCool;
exception(al.ValueOutOfRange);
stdout.put("error!input again!",nl);
endtry;
until(goodint);
end inttest;


when the hla compiles the source code into .asm form,it says:line 14 syntax error, unexpected '.', expecting coloncolonTkn
that is exception(al.ValueOutOfRange) . i am really confused.i check it for several times,and i found it is excatly the same as the code in the textbook. can anyone help me ? or can any guy give me some advice on learning assembly language? Thanks!
Back to top
View user's profile Send private message
hugo
Forum Fanatic
Forum Fanatic


Joined: 14 Jun 2003
Posts: 16777215
Location: Netherlands, Europe

Offline

PostPosted: Sat Jan 07, 2006 12:05 pm    Post subject: Re: problem with try exception endtry in Hla Reply with quote

vaticinator wrote:
Code:
exception(al.ValueOutOfRange);

Isn't al a register?

I don't recognize this specific language, but it seems that the al.ValueOutOfRange bit is trying to access a 'member' of a structure al which I guess is incorrect.

After Googling a bit, I'm guessing it should be something like exception(ex.ValueOutOfRange) ?

Hope this helps.
Back to top
View user's profile Send private message
vaticinator
Just Arrived
Just Arrived


Joined: 27 Sep 2005
Posts: 0


Offline

PostPosted: Fri Jan 13, 2006 12:56 pm    Post subject: Reply with quote

the problem is solved, thanks.
Back to top
View user's profile Send private message
Display posts from previous:   

Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> Programming and More All times are GMT + 2 Hours
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Community Area

Log in | Register