Accueil > Réalisations > Publications > Ouvrages > Ouvrages sur la HP48 s/sx > HP48 Machine Language - A Journey to the Center of the HP48 s/sx - Read the (...)

HP48 Machine Language - A Journey to the Center of the HP48 s/sx - Read the book online

mardi 12 juin 2007, par Paul Courbis

If you don’t want to download the book, you can read it online here...

A paper version of this book is avalable via Amazon !

hp48ml - page 079 - Courbis, acteur de l'Internet depuis 1988
Section précédente : The Saturn Microprocessor Page précédente Sommaire Page suivante Section suivante : The Saturn Instruction Set

The Saturn Microprocessor

(c) Courbis www.courbis.fr   79h ttp:  //ww  w.c  our  bis.  com  PD Ff iles  av aila  ble on  htt p:// ww  w.c  our bis .co m-  Re  dis trib  utio  no  rm irro rin gs  tric  tly pro hib  ited  .  MiscellaneousNotes TheSaturnmicroprocessorhasapeculiaritytobeawareof:Itreverses everythingitreads.Forexample,ifinmemorylocation#00000hthereis a2,andin#00001hthereisa 3,reading2nibblesfrom#00000hwould returnthevalue32.Forthisreason,allvaluesinmemorymustbewritten inreverseU*forallreadingandwritingoperationstoandfromtheregisters.  Saturnmicroprocessorinstructionsarelistedusingtwodifferentmethods:  ' Byfunctiontype:Thisisusefulwhenyouarelookingforacertain  operationwithoutknowingtheexactsyntaxortheregistersused. (Thislistisfoundinthefollowingchapter).  ' Bycode:Thislistingisfoundintheappendix,andisexcellentasa  referencecardforprogrammerswhoarealreadyfamiliarwithhow theoperationswork,orforsomeonewhoisdisassemblinganexist- ingprogram.  OnelastnoteabouttheregistersusedbytheHP48:  ' D0pointstothenextinstructiontobeexecuted(sowealwaysfinish  amachinelanguageprogrambywritingtothisaddress).  ' D1pointstothefirstlevelofthestack.Reading5nibblesfromthis  addressreturnstheaddressoftheobjectinlevel1.  ' Bpointstothereturnstack.Asweexecuteinstructions,wemay  needtostorereturnaddresses.Bpointstothenextfreelocationin thereturnstack.(Caution:ThisstackisnottheRSTKregister).  Theseregistersareusedbythesystem.Theymaybeusedinamachine languageprogram,buttheiroriginalvaluemustberestoredattheendof programexecution.Theflags12to15arealsousedbythesystem(for interrupts),but,unlikethethreesystemregisters,theymustneverbemod- ified.NotethatFlag15istheonethatcanbeusedtochangethewaykey- boardinterruptsarehandled.Flag10maybeusedandmodified,butitis alsousedbytheHP48formemoryallocations.Ifweclearthisflagbefore tryingtoreservememory,itwillbesetifgarbagecollectionwasneces- sary.  9.TheSaturnMicroprocessor  PM65-002.p65 11/07/2001,08:3679
Section précédente : The Saturn Microprocessor Page précédente Sommaire Page suivante Section suivante : The Saturn Instruction Set
© Courbis 1988-2010
Tous droits réservés
Permalien
Faire un don avec Paypal Le livre est entièrement gratuit mais vous pouvez
avec Paypal pour participer aux frais d'hébergement de ce site... Merci !

Messages

Un message, un commentaire ?

modération a priori

Ce forum est modéré a priori : votre contribution n’apparaîtra qu’après avoir été validée par un administrateur du site.

Qui êtes-vous ?
Votre message

Pour créer des paragraphes, laissez simplement des lignes vides.

Les spams donneront systématiquement lieu à dépôt de plainte. Les messages peu aimables ou comportant trop de fautes d'orthographe seront purement et simplement supprimés sans publication. Aucune obligation de publication ne pourra être opposée au webmaster, sauf éventuel droit de réponse dûment justifié.
ipv6 ready ipv6 test
Suivre ce site :
Recommander cette page :
Bookmark and Share
Traduire :