Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / April 2007



Tip: Looking for answers? Try searching our database.

PowerPC assembly question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paolo B. - 26 Apr 2007 18:28 GMT
Using intel assembler I can create a jump table also to call procedure in
this way:

       mov  eax, 2    ;progressive number of procedure in jump table
       call dword ptr [MyProcTable][EAX*4]

and in data section I'll have:

MyProcTable:
       DD   offset Procedure0
       dd   offset Procedure1
       dd   offset Procedure2  ;in above example will be called this proc.

Using powerpc assembly is there a way to do same thing?
And in MyProcTable there will be absolute offset?

Thanks

Paolo
Reinder Verlinde - 26 Apr 2007 19:05 GMT
> Using intel assembler I can create a jump table also to call procedure in
> this way:
[quoted text clipped - 10 lines]
>
> Using powerpc assembly is there a way to do same thing?

See <http://wall.riscom.net/books/proc/ppc/cwg/code1.html#248386>. You
probably will find the rest of that book useful, too. In PDF form, you
can find it at
<http://www-306.ibm.com/chips/techlib/techlib.nsf/techdocs/852569B20050FF
7785256996007558C6>

Reinder
Paolo B. - 28 Apr 2007 12:21 GMT
>> Using powerpc assembly is there a way to do same thing?
>
[quoted text clipped - 3 lines]
> <http://www-306.ibm.com/chips/techlib/techlib.nsf/techdocs/852569B20050FF
> 7785256996007558C6>

Thanks you.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.