# 68k Mac OS

IDA is the most powerful disassembler for Max OS 8 and Mac OS 9 PEF files.

The Motorola 68K family of processors is huge and very widely used. A few sample parts: MC68000, MC68010, MC68020, MC68030, MC68040, MC68330, MC68882, MC68851, MC68020EX, MC68302 Integrated Communication Processor, MC68306 68K/ColdFire, MC68331 68K/ColdFire, MC68332 68K/ColdFire, MC68336 68K/ColdFire, MC68340 68K/ColdFire, MC68360 Integrated Communication Processor, MC68F375 68K/ColdFire, MC68376 68K/ColdFire, etc.

Assembler code

```armasm
seg000:40800530
seg000:40800530 ; =============== S U B R O U T I N E =======================================
seg000:40800530
seg000:40800530
seg000:40800530 sub_0_40800530:                         ; CODE XREF: sub_0_40800194+164↑p
seg000:40800530                 pea     -4(a5)
seg000:40800534                 _InitGraf               ; f
seg000:40800536                 pea     -$200(a6)
seg000:4080053A                 _OpenCPort              ; ort
seg000:4080053C                 movea.l (a5),a2
seg000:4080053E                 pea     -$6C(a2)
seg000:40800542                 _SetCursor              ; or
seg000:40800544                 lea     -$74(a2),a0
seg000:40800548                 move.l  a0,-(sp)
seg000:4080054A                 lea     ($9FA).w,a1
seg000:4080054E                 move.l  a1,-(sp)
seg000:40800550                 move.l  a1,-(sp)
seg000:40800552                 move.l  (a0)+,(a1)+
seg000:40800554                 move.l  (a0),(a1)
seg000:40800556                 move.l  #-$20003,-(sp)
seg000:4080055C                 _InsetRect              ; ct
seg000:4080055E                 move.l  #$30003,-(sp)
seg000:40800564                 _PenSize
seg000:40800566                 move.l  #$160016,-(sp)
seg000:4080056C                 _FrameRoundRect         ; undRect
seg000:4080056E                 _PenNormal              ; al
seg000:40800570                 move.l  #$100010,-(sp)
seg000:40800576                 pea     -$18(a2)
seg000:4080057A                 _FillRoundRect          ; ndRect
seg000:4080057C                 rts
seg000:4080057C ; End of function sub_0_40800530
seg000:4080057C
seg000:4080057C ; ---------------------------------------------------------------------------
seg000:4080057E                 align $10
seg000:40800580
seg000:40800580 ; =============== S U B R O U T I N E =======================================
seg000:40800580
seg000:40800580
seg000:40800580 sub_0_40800580:                         ; CODE XREF: sub_0_40800194+80↑p
seg000:40800580                 clr.w   -(sp)
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hex-rays.com/8.4/user-guide/disassembler/disassembly-gallery/68k-mac-os.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
