EASy68K  
It is currently Tue Dec 11, 2018 12:11 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed May 18, 2011 1:04 am 
Offline

Joined: Thu May 12, 2011 11:58 am
Posts: 4
hi everyone!
i have a total newbie in easy68k.i would like to know what is passing parameter?


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 18, 2011 2:57 am 
Offline

Joined: Mon Jul 26, 2010 11:43 pm
Posts: 198
Location: Aurora, IL
Do you have familiarity with any high level language like C or PASCAL? Passing parameters is how you convey information to subroutines.

Code:
test1(123, 456); // Parameter#1 123, Parameter#2 456
test1(654, 321);


68K equivalent using registers to pass parameter to a subroutine.

Code:
 MOVE.W #123,D0 ; Parameter#1, First Call
 MOVE.W #456,D1 ; Parameter#2
 BSR  test1

 MOVE.W #654,D0 ; Parameter#1, Second Call
 MOVE.W #321,D1 ; Parameter#2
 BSR  test1


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 18, 2011 6:59 pm 
Offline

Joined: Thu May 12, 2011 11:58 am
Posts: 4
thanks for the reply clive!yup,i learn abit of java and c...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group