From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FROM_NUMERIC_TLD autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,75ac07b9469f604c X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!news.clara.net!wagner.news.clara.net!hamilton.zen.co.uk!zen.net.uk!dedekind.zen.co.uk!news-peer-lilac.gradwell.net!not-for-mail From: "Stuart" Newsgroups: comp.lang.ada References: <1iwjgj2.1gcbtto1mbvuicN%csampson@inetworld.net> Subject: Re: PowerPC ISA Date: Mon, 16 Mar 2009 08:37:45 -0000 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 Message-ID: <49be0b5b$1_1@glkas0286.greenlnk.net> X-Original-NNTP-Posting-Host: glkas0286.greenlnk.net NNTP-Posting-Host: 20.133.0.1 X-Trace: 1237192668 news.gradwell.net 507 dnews/20.133.0.1:13705 X-Complaints-To: news-abuse@gradwell.net Xref: g2news1.google.com comp.lang.ada:4138 Date: 2009-03-16T08:37:45+00:00 List-Id: "Charles H. Sampson" wrote in message news:1iwjgj2.1gcbtto1mbvuicN%csampson@inetworld.net... > Has anyone developed an Ada type that describes the PowerPC > instruction set architecture? Failing that, does anyone know of an > available description of how a PowerPC CPU might decode instructions? ... > I've got the IBM book that describes the PowerPC but it's not laid > out to answer my questions. If I get no joy here, I'll figure it out > myself but I have no interest at all in reinventing the wheel. I need > to get this done as quickly and cheaply as possible. It's not entirely clear what you want to achieve with this Ada type, but if it is to create machine code inserts, then you might want to look at package Machine_Code for the compiler you are using. It is also not clear what questions you are seeking answers for that are not adequately explained by the manual you have. As you are describing some stack corruption then it may be that you are trying to understand how things are set up on the stack. This is not necessarily best described by a PowerPC processor manual as the processor does not have a stack register; only by convention is r1 used as the stack pointer. If this is what you are trying to deal with you will probably want to get hold of a copy of the PowerPC Embedded Application Binary Interface (EABI) which describes the conventions recommended (and widely observed) for the PowerPC. Regards -- Stuart