Mac 68k emulator

The Mac 68k emulator[1] is a software emulator built into all versions of the classic Mac OS for PowerPC. This emulator enabled running applications and system code that were originally written for the 680x0-based Macintosh models. With a few exceptions, notably Connectix's RAM Doubler, the emulator ran all software with no noticeable impact other than lower performance relative to the same program when compiled for PowerPC.

Origins

The first version was written by Gary Davidian, who had originally created it for use on the Motorola 88000 CPU, used in Apple's abortive first attempt at a RISC target platform.[2][3] A later version, using dynamic recompilation, was developed by Eric Traut, who later worked on successful emulation projects at Connectix such as Virtual Game Station and Virtual PC. Prior to Traut's arrival there, Connectix had released Speed Doubler, which included an even faster PowerPC 68k emulator.

Implementation

All versions of this emulator emulated the "user" subset of the 68EC040 instruction set with a 68020/68030 exception stack frame. Apple developer documents indicate that the emulator provided an operating environment most closely resembling that of the Macintosh Centris 610, a system based on the Motorola 68LC040 microprocessor.[4] Early versions emulated it by decoding each instruction and immediately carrying out a series of equivalent PowerPC instructions. For the PCI PowerMacs, the dynamic recompilation emulator was used to boost performance. Dynamic recompilation works by "recompiling" common sections of the code into faster, PowerPC-native, sequences that were locally cached. The emulator could recognise the same sequence of 680x0 code and run the previously-cached PowerPC code to avoid doing the translation again. This emulator was theoretically capable of emulating 680x0 code faster than any real 680x0 was capable of running it. The 68LC040 had no floating point instructions, making this feat slightly simpler but no less impressive.

One reason that this emulation was so successful is that many of the APIs for the Mac OS were originally implemented as traps on the 680x0 processor; therefore, calling an API actually was recognised by the 680x0 as the equivalent of an error condition, which would cause it to handle that error through one of its hardware vectors. In turn, this vector would look up and run the operating system routine from ROM or RAM. In the emulator, such traps could be replaced by native PowerPC code, so the only code being emulated was the application itself, and any system API it called could be accelerated with native PowerPC code. This also allowed Apple time to port the OS to the PowerPC. At first only time-critical aspects were rewritten in native code, leaving much of the OS emulated. Gradually most of the OS was rewritten to be native, so the OS got faster over time.

For the programmer, the transition to the PowerPC was made fairly painless, because the emulator was started and stopped automatically. This was achieved using a new type of pointer called a Universal Procedure Pointer (UPP). For 68k code, this pointer appeared to be an ordinary pointer to code and could be used as such. However, it actually led to a data structure which contained a special trap instruction and flags indicating the instruction set architecture (ISA) of the called code. From PowerPC code, this UPP could be passed to the CallUniversalProc( ) function to call it. The 68k emulator then dealt with details such as presenting passed parameters in the right order for the ISA in question, as well as starting and stopping the emulator as required. The compilers for Mac OS created such UPPs automatically when the proper macros were used, and the PowerPC system libraries contained native stubs to transparently call through to native or still-68k functions as needed. This meant that dealing with the dual architecture required very little work for the programmer, and just like the OS, applications themselves could mix and match 680x0 and PowerPC code fairly easily.

Current status

Because it was built into all PowerPC versions of the classic Mac OS, the emulator was also part of the Classic environment in Mac OS X. PowerPC Macintosh emulators such as SheepShaver therefore use the emulator as well when running the classic Mac OS. Native Mac OS X outside of Classic never used the emulator.

See also

References

  1. ^ "PowerBook: Information About ROM-in-RAM". Apple Support. 20 February 2012.
  2. ^ "The PowerPC Triumph". Retrieved 1 July 2011.
  3. ^ "Power Computing: Fighting Back for the Mac or Stealing Apple's Customers?". Low End Mac. Archived from the original on 26 March 2012. Retrieved 1 July 2011.
  4. ^ "The 68LC040 Emulator (IM: PS)". Apple Developer. 3 July 1996. Retrieved 1 July 2011.

Read other articles:

Untuk kegunaan lain, lihat Gula-gula (disambiguasi). Permen rasa buah. Permen (bahasa Inggris: candy) adalah makanan berkalori tinggi yang pada umumnya berbahan dasar gula, air, dan sirup fruktosa.[1] Tingginya kadar gula dalam permen membuatnya diklaim sebagai salah satu penyebab gigi berlubang.[1] Proses pembuatan permen Tekstur permen sangat ditentukan oleh lamanya campuran bahan dididihkan, suhu pendinginan, dan cara penanganan setelah pendinginan.[1] Bila camp...

يوهان فيلهلم (Jan Wellem في الألمانية الدنيا؛19 أبريل 1716 -8 يونيو 1658) هو سلالة فيتلسباخ كان ناخب بالاتينات (1690-1716)، ودوق نيوبورغ ( 1690-1716)، دوق يوليش و بيرغ (1679-1716)، ودوق بالاتينات العليا وتشام (1707-1714)، منذ عام 1697 أصبح يوهان فيلهلم كونت ميغين. كان نجل فيليب فيلهلم، ناخب بالاتينات و إليز...

VysokogorskyВысокого́рский райо́н (em russo)Биектау районы (em tártaro)   Distrito   Símbolos Bandeira Localização Localização do distrito de Vysokogorsky no TartaristãoLocalização do distrito de Vysokogorsky no Tartaristão País  Rússia República Tartaristão[1] Administração Sede Vysokaya Gora Características geográficas Área total 1 701,2 km² População total (2010) [2] 43 241 hab. Densidade 25...

BBVA México BBVA México S.A., Institución de Banca Múltiple, Grupo Financiero BBVA México Logo de BBVA Torre BBVA México en Paseo de la ReformaAcrónimo BBVATipo FilialSímbolo bursátil BIVA: BACOMERISIN MX01GF360007Industria Servicios financierosForma legal Sociedad anónimaFundación 15 de octubre de 1932 (91 años)Fundador Salvador Ugarte, Ernesto J. Amescua, Mario Domínguez, Antonio Signoret, Raúl Baillères Chávez, Manuel Gómez Morín, Graciano Guichard[1]​Nomb...

La Gran Muralla Patrimonio de la Humanidad de la Unesco Paso Shanhai en 2008.LocalizaciónPaís China ChinaCoordenadas 40°00′34″N 119°45′15″E / 40.009363888889, 119.75414444444Datos generalesTipo CulturalCriterios i, ii, iii, iv, viIdentificación 438Región Asia y OceaníaInscripción 1987 (XI sesión)[editar datos en Wikidata] El Paso Shanhai (chino simplificado: 山海关; chino tradicional: 山海關.) también conocido como Shanhaiguan, es uno de ...

Ryoko ShinoharaNama asal篠原 涼子Lahir13 Agustus 1973 (umur 50)Kiryū, Gunma, JapanPekerjaanAktris dan penyanyiTahun aktif1989–sekarangSuami/istriMasachika Ichimura ​(m. 2005)​Anak2 Ryōko Shinohara (篠原 涼子, Shinohara Ryōko) (lahir 13 Agustus 1973) adalah aktris dan penyanyi berkebangsaan Jepang. Ia dikenal melalui berbagai film layar lebar dan drama televisi sejak 1992. Pada 2018, ia memenangkan penghargaan Hochi Awards sebagai aktris...

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (ديسمبر 2022) حديقة الأسرة البلد  مصر المساحة 95 فدان الافتتاح 2015 تعديل مصدري - تعديل   حديقة الأسرة أو فاميلي بارك هي حديقة تقع في القاهرة الجديدة بجوار مدينة الرحاب ...

Russian BraziliansRusso-brasileirosРусские бразильцы Russian descendants in São Paulo.Total population1.8 million[1]Regions with significant populationsRio Grande do Sul, São Paulo, Minas Gerais, Goiás, Paraná, Rio de Janeiro, Santa Catarina and PernambucoLanguagesPortuguese · RussianReligionJudaism · Roman Catholicism · Russian OrthodoxRelated ethnic groupsOther Brazilians of Slavic origin, as well as Asian Brazilians, esp...

Moses WilliamsOrdnance Sergeant WilliamsBornOctober 10, 1845Carrollton, Louisiana, USDiedAugust 23, 1899Vancouver, Washington, USPlace of burialFort Vancouver Military Cemetery, Vancouver, WashingtonAllegianceUnited States of AmericaService/branchUnited States ArmyYears of service1866 - 1898RankOrdnance SergeantUnit9th Cavalry RegimentCoast Artillery Corps, Ft. Stevens, OregonBattles/warsAmerican Indian WarsAwardsMedal of Honor Moses Williams (October 10, 1845 – August 23, 1899) wa...

Ethnic group associated with the Indian state of Odisha Odias redirects here. For other uses, see Odia. This article may require copy editing for grammar, style, cohesion, tone, or spelling. You can assist by editing it. (February 2023) (Learn how and when to remove this template message) This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Odia pe...

Ruler of the Roman Empire during the imperial period For the list of Roman emperors, see List of Roman emperors. For the ruler of the Roman Kingdom in the archaic period, see King of Rome. For the dual chief magistrate during the Roman Republic, see Roman consul. Emperor of the Roman EmpireImperialVexillum of the emperorBust of Augustus wearing the corona civica DetailsStyleImperator, Caesar, Augustus, Princeps, Dominus Noster, Autokrator or Basileus (depending on period)First monarchAug...

Canadian ice hockey player (born 1993) Ice hockey player Xavier Ouellet Ouellet at the 2016 AHL All-Star GameBorn (1993-07-29) July 29, 1993 (age 30)Bayonne, FranceHeight 6 ft 0 in (183 cm)Weight 196 lb (89 kg; 14 st 0 lb)Position DefenceShoots LeftNHL team (P)Cur. teamFormer teams Pittsburgh PenguinsWBS Penguins (AHL)Detroit Red WingsMontreal CanadiensNHL Draft 48th overall, 2011Detroit Red WingsPlaying career 2013–present Xavier Ouelle...

Neste artigo, a lista de todas as brasileiras que disputaram o Miss Universo e suas respectivas classificações. O país começou a participar do evento em 1954 com a baiana Martha Rocha. Em 1990, problemas com a organização (na época sob responsabilidade do SBT) tiraram o país da edição que foi realizada em Los Angeles, Estados Unidos. Até o momento, o Brasil teve duas coroas, em 1963[1] e em 1968.[2] Classificação      A candidata tornou-se Miss Universo.  ...

1987 film This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) This article may require cleanup to meet Wikipedia's quality standards. The specific problem is: the plot is garbled. Please help improve this article if you can. (October 2022) (Learn how and when to remove this template message) This article needs additional citations for verification. Please help improve this article by adding c...

This list of the prehistoric life of Maryland contains the various prehistoric life-forms whose fossilized remains have been reported from within the US state of Maryland. Precambrian The Paleobiology Database records no known occurrences of Precambrian fossils in Maryland. Paleozoic Main article: List of the Paleozoic life of Maryland Selected Paleozoic taxa of Maryland †Amphiscapha †Amplexopora †Archimylacris †Atrypa †Atrypa reticularis – report made of unidentified related form...

1935 film Under the Pampas MoonDirected byJames TinlingWritten byErnest PascalStory byGordon MorrisProduced byBuddy G. DeSylvaCinematographyChester A. LyonsProductioncompanyFox Film CorporationDistributed byFox Film Corporation20th Century FoxRelease date June 1, 1935 (1935-06-01) Running time78 minutesCountryUnited States Under the Pampas Moon, also known as The Gaucho, is a 1935 American Western film directed by James Tinling and starring Warner Baxter and Ketti Gallian.[...

Arquidiócesis de San Francisco Archidioecesis Sancti Francisci in California (en latín) Escudo de la arquidiócesis Catedral de Santa María de la AsunciónInformación generalIglesia católicaIglesia sui iuris latinaRito romanoSufragánea(s) • Honolulu• Oakland• Sacramento• San José en California• Santa Rosa en California• StocktonFecha de erección 29 de julio de 1853 (como arquidiócesis)Bula de erección Ad animarum regimenSedeCatedral de Santa María de la AsunciónCiudad ...

1995 novel by Jonathan Lethem Amnesia Moon First edition coverAuthorJonathan LethemCover artistJacket design by Alexander Munn and Steven CooleyJacket illustration by Alexander MunnCountryUnited StatesLanguageEnglishGenreScience fiction novelPublisherHarcourt Brace & Co.Publication dateSeptember 1995Media typePrint (Hardcover & Paperback)Pages247 pp (first edition, hardcover)ISBN0-15-100091-3 (first edition, hardcover)OCLC32012520Dewey Decimal813/.54 20LC ClassPS3562.E8...

Canadian French-language television channel This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Unis TV channel – news · newspapers · books · scholar · JSTOR (August 2019) (Learn how and when to remove this template message) Television channel UnisCountryCanadaBroadcast areaNationalHeadquartersMontreal, Que...

United States historic placeThe Woman's Club of Fort WorthU.S. National Register of Historic PlacesRecorded Texas Historic Landmark The Woman's Club in 1926The Woman's Club of Fort WorthLocation of The Woman's Club of Fort Worth in TexasShow map of TexasThe Woman's Club of Fort WorthThe Woman's Club of Fort Worth (the United States)Show map of the United StatesLocation1316 Pennsylvania Ave. Fort Worth, TXCoordinates32°26′31″N 97°12′09″W / 32.441995°N 97.202424°W&#x...