Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!nrl-cmf!mailrus!tut.cis.ohio-state.edu!erd From: erd@tut.cis.ohio-state.edu (Ethan R. Dicks) Newsgroups: comp.sys.amiga Subject: Re: Short assembler program to determine CPU type (and a plea for help) Message-ID: <8317@tut.cis.ohio-state.edu> Date: 15 Mar 88 07:10:34 GMT References: <8271@tut.cis.ohio-state.edu> <45416@sun.uucp> Organization: The Ohio State University Dept of Computer and Information Science Lines: 18 Keywords: assembler tiny In article <45416@sun.uucp> cmcmanis@sun.UUCP (Chuck McManis) writes: >Nice program, but it is faster to check the CPU type in ExecBase. > >--Chuck McManis Thanks, but it does. I realize that the code is at the opposite pole from clear, but that is how it works. The program looks through the pointer at 4 (absexecbase), then at offset 0x129 from that pointer: equvalent to execbase.AttnFlags in C. The reason for posting it is to admit my ignorance in programming 68000 specifically for the Amiga and to ask for help in using the include files. I got the offset 0x129 from dissassembling a version of this program written in C to see where it looked. -ethan -- Ethan R. Dicks | ###### This signifies that the poster is a member in Specialized Software| ## good sitting of Inertia House: Bodies at rest. 2101 Iuka Ave. | ## Columbus OH 43201 | ###### "You get it, you're closer."