home *** CD-ROM | disk | FTP | other *** search
/ hackzapple.com / www.hackzapple.com.tar / www.hackzapple.com / phpBB2 / viewtopic.php?t=123&start=0&postdays=0&postorder=asc&highlight=.orig < prev    next >
Text File  |  2010-10-06  |  81KB  |  2,370 lines

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html dir="LTR">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  5. <meta http-equiv="Content-Style-Type" content="text/css">
  6.  
  7. <link rel="top" href="./index.php" title=" Index du Forum" />
  8. <link rel="search" href="./search.php" title="Rechercher" />
  9. <link rel="help" href="./faq.php" title="FAQ" />
  10. <link rel="author" href="./memberlist.php" title="Liste des Membres" />
  11. <link rel="prev" href="viewtopic.php?t=123&view=previous" title="Voir le sujet prΘcΘdent" />
  12. <link rel="next" href="viewtopic.php?t=123&view=next" title="Voir le sujet suivant" />
  13. <link rel="up" href="viewforum.php?f=13" title="PROTECTION MALEFIQUE" />
  14. <link rel="chapter forum" href="viewforum.php?f=1" title="REGLES DE BASE DU FORUM" />
  15. <link rel="chapter forum" href="viewforum.php?f=2" title="PRESENTATION DES MEMBRES" />
  16. <link rel="chapter forum" href="viewforum.php?f=3" title="FAQ" />
  17. <link rel="chapter forum" href="viewforum.php?f=24" title="LES VENDEURS DE Q et assimilΘs..." />
  18. <link rel="chapter forum" href="viewforum.php?f=4" title="APPLE II et II+" />
  19. <link rel="chapter forum" href="viewforum.php?f=5" title="APPLE IIe" />
  20. <link rel="chapter forum" href="viewforum.php?f=6" title="APPLE IIc et IIc Plus" />
  21. <link rel="chapter forum" href="viewforum.php?f=7" title="APPLE IIGS" />
  22. <link rel="chapter forum" href="viewforum.php?f=8" title="ITT2020" />
  23. <link rel="chapter forum" href="viewforum.php?f=9" title="BELL & HOWELL" />
  24. <link rel="chapter forum" href="viewforum.php?f=25" title="APPLE I" />
  25. <link rel="chapter forum" href="viewforum.php?f=10" title="APPLE /// et ///Plus" />
  26. <link rel="chapter forum" href="viewforum.php?f=11" title="LISA 1,  2, 2/5,  2/10 et ... XL" />
  27. <link rel="chapter forum" href="viewforum.php?f=12" title="PROBLEMES DIVERS" />
  28. <link rel="chapter forum" href="viewforum.php?f=13" title="PROTECTION MALEFIQUE" />
  29. <link rel="chapter forum" href="viewforum.php?f=23" title="EMULATION" />
  30. <link rel="chapter forum" href="viewforum.php?f=14" title="CARTES COPROCESSEUR" />
  31. <link rel="chapter forum" href="viewforum.php?f=15" title="CARTES MEMOIRE" />
  32. <link rel="chapter forum" href="viewforum.php?f=16" title="CARTES POUR DISQUES" />
  33. <link rel="chapter forum" href="viewforum.php?f=17" title="AUTRES CARTES" />
  34. <link rel="chapter forum" href="viewforum.php?f=18" title="PERIPHERIQUES" />
  35. <link rel="chapter forum" href="viewforum.php?f=19" title="Recherches techniques (hard ou soft)" />
  36. <link rel="chapter forum" href="viewforum.php?f=20" title="ACHATS,VENTES ET/OU ECHANGES" />
  37. <link rel="chapter forum" href="viewforum.php?f=21" title="DIVERS...MAIS TOUJOURS EN RELATION AVEC APPLE!" />
  38. <link rel="chapter forum" href="viewforum.php?f=22" title="LES PETITS MAUDITS A EVITER" />
  39.  
  40. <title> :: Voir le sujet - Snake Byte (Sirius Software, 1981-1982)</title>
  41. <!-- link rel="stylesheet" href="templates/subSilver/subSilver.css" type="text/css" -->
  42. <style type="text/css">
  43. <!--
  44. /*
  45.   The original subSilver Theme for phpBB version 2+
  46.   Created by subBlue design
  47.   http://www.subBlue.com
  48.  
  49.   NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2
  50.   theme administration centre. When you have finalised your style you could cut the final CSS code
  51.   and place it in an external file, deleting this section to save bandwidth.
  52. */
  53.  
  54. /* General page style. The scroll bar colours only visible in IE5.5+ */
  55. body {
  56.     background-color: #E5E5E5;
  57.     scrollbar-face-color: #DEE3E7;
  58.     scrollbar-highlight-color: #FFFFFF;
  59.     scrollbar-shadow-color: #DEE3E7;
  60.     scrollbar-3dlight-color: #D1D7DC;
  61.     scrollbar-arrow-color:  #006699;
  62.     scrollbar-track-color: #EFEFEF;
  63.     scrollbar-darkshadow-color: #98AAB1;
  64. }
  65.  
  66. /* General font families for common tags */
  67. font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif }
  68. a:link,a:active,a:visited { color : #006699; }
  69. a:hover        { text-decoration: underline; color : #DD6900; }
  70. hr    { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;}
  71.  
  72. /* This is the border line & background colour round the entire page */
  73. .bodyline    { background-color: #FFFFFF; border: 1px #98AAB1 solid; }
  74.  
  75. /* This is the outline round the main forum tables */
  76. .forumline    { background-color: #FFFFFF; border: 2px #006699 solid; }
  77.  
  78. /* Main table cell colours and backgrounds */
  79. td.row1    { background-color: #EFEFEF; }
  80. td.row2    { background-color: #DEE3E7; }
  81. td.row3    { background-color: #D1D7DC; }
  82.  
  83. /*
  84.   This is for the table cell above the Topics, Post & Last posts on the index.php page
  85.   By default this is the fading out gradiated silver background.
  86.   However, you could replace this with a bitmap specific for each forum
  87. */
  88. td.rowpic {
  89.         background-color: #FFFFFF;
  90.         background-image: url(templates/subSilver/images/cellpic2.jpg);
  91.         background-repeat: repeat-y;
  92. }
  93.  
  94. /* Header cells - the blue and silver gradient backgrounds */
  95. th    {
  96.     color: #FFA34F; font-size: 11px; font-weight : bold;
  97.     background-color: #006699; height: 25px;
  98.     background-image: url(templates/subSilver/images/cellpic3.gif);
  99. }
  100.  
  101. td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom {
  102.             background-image: url(templates/subSilver/images/cellpic1.gif);
  103.             background-color:#D1D7DC; border: #FFFFFF; border-style: solid; height: 28px;
  104. }
  105.  
  106. /*
  107.   Setting additional nice inner borders for the main table cells.
  108.   The names indicate which sides the border will be on.
  109.   Don't worry if you don't understand this, just ignore it :-)
  110. */
  111. td.cat,td.catHead,td.catBottom {
  112.     height: 29px;
  113.     border-width: 0px 0px 0px 0px;
  114. }
  115. th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR {
  116.     font-weight: bold; border: #FFFFFF; border-style: solid; height: 28px;
  117. }
  118. td.row3Right,td.spaceRow {
  119.     background-color: #D1D7DC; border: #FFFFFF; border-style: solid;
  120. }
  121.  
  122. th.thHead,td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; }
  123. th.thSides,td.catSides,td.spaceRow     { border-width: 0px 1px 0px 1px; }
  124. th.thRight,td.catRight,td.row3Right     { border-width: 0px 1px 0px 0px; }
  125. th.thLeft,td.catLeft      { border-width: 0px 0px 0px 1px; }
  126. th.thBottom,td.catBottom  { border-width: 0px 1px 1px 1px; }
  127. th.thTop     { border-width: 1px 0px 0px 0px; }
  128. th.thCornerL { border-width: 1px 0px 0px 1px; }
  129. th.thCornerR { border-width: 1px 1px 0px 0px; }
  130.  
  131. /* The largest text used in the index page title and toptic title etc. */
  132. .maintitle    {
  133.     font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif;
  134.     text-decoration: none; line-height : 120%; color : #000000;
  135. }
  136.  
  137. /* General text */
  138. .gen { font-size : 12px; }
  139. .genmed { font-size : 11px; }
  140. .gensmall { font-size : 10px; }
  141. .gen,.genmed,.gensmall { color : #000000; }
  142. a.gen,a.genmed,a.gensmall { color: #006699; text-decoration: none; }
  143. a.gen:hover,a.genmed:hover,a.gensmall:hover    { color: #DD6900; text-decoration: underline; }
  144.  
  145. /* The register, login, search etc links at the top of the page */
  146. .mainmenu        { font-size : 11px; color : #000000 }
  147. a.mainmenu        { text-decoration: none; color : #006699;  }
  148. a.mainmenu:hover{ text-decoration: underline; color : #DD6900; }
  149.  
  150. /* Forum category titles */
  151. .cattitle        { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #006699}
  152. a.cattitle        { text-decoration: none; color : #006699; }
  153. a.cattitle:hover{ text-decoration: underline; }
  154.  
  155. /* Forum title: Text and link to the forums used in: index.php */
  156. .forumlink        { font-weight: bold; font-size: 12px; color : #006699; }
  157. a.forumlink     { text-decoration: none; color : #006699; }
  158. a.forumlink:hover{ text-decoration: underline; color : #DD6900; }
  159.  
  160. /* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */
  161. .nav            { font-weight: bold; font-size: 11px; color : #000000;}
  162. a.nav            { text-decoration: none; color : #006699; }
  163. a.nav:hover        { text-decoration: underline; }
  164.  
  165. /* titles for the topics: could specify viewed link colour too */
  166. .topictitle,h1,h2    { font-weight: bold; font-size: 11px; color : #000000; }
  167. a.topictitle:link   { text-decoration: none; color : #006699; }
  168. a.topictitle:visited { text-decoration: none; color : #5493B4; }
  169. a.topictitle:hover    { text-decoration: underline; color : #DD6900; }
  170.  
  171. /* Name of poster in viewmsg.php and viewtopic.php and other places */
  172. .name            { font-size : 11px; color : #000000;}
  173.  
  174. /* Location, number of posts, post date etc */
  175. .postdetails        { font-size : 10px; color : #000000; }
  176.  
  177. /* The content of the posts (body of text) */
  178. .postbody { font-size : 12px; line-height: 18px}
  179. a.postlink:link    { text-decoration: none; color : #006699 }
  180. a.postlink:visited { text-decoration: none; color : #5493B4; }
  181. a.postlink:hover { text-decoration: underline; color : #DD6900}
  182.  
  183. /* Quote & Code blocks */
  184. .code {
  185.     font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600;
  186.     background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
  187.     border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
  188. }
  189.  
  190. .quote {
  191.     font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%;
  192.     background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
  193.     border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
  194. }
  195.  
  196. /* Copyright and bottom info */
  197. .copyright        { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;}
  198. a.copyright        { color: #444444; text-decoration: none;}
  199. a.copyright:hover { color: #000000; text-decoration: underline;}
  200.  
  201. /* Form elements */
  202. input,textarea, select {
  203.     color : #000000;
  204.     font: normal 11px Verdana, Arial, Helvetica, sans-serif;
  205.     border-color : #000000;
  206. }
  207.  
  208. /* The text input fields background colour */
  209. input.post, textarea.post, select {
  210.     background-color : #FFFFFF;
  211. }
  212.  
  213. input { text-indent : 2px; }
  214.  
  215. /* The buttons used for bbCode styling in message post */
  216. input.button {
  217.     background-color : #EFEFEF;
  218.     color : #000000;
  219.     font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif;
  220. }
  221.  
  222. /* The main submit button option */
  223. input.mainoption {
  224.     background-color : #FAFAFA;
  225.     font-weight : bold;
  226. }
  227.  
  228. /* None-bold submit button */
  229. input.liteoption {
  230.     background-color : #FAFAFA;
  231.     font-weight : normal;
  232. }
  233.  
  234. /* This is the line in the posting page which shows the rollover
  235.   help line. This is actually a text box, but if set to be the same
  236.   colour as the background no one will know ;)
  237. */
  238. .helpline { background-color: #DEE3E7; border-style: none; }
  239.  
  240. /* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */
  241. @import url("templates/subSilver/formIE.css");
  242. -->
  243. </style>
  244. </head>
  245. <body bgcolor="#E5E5E5" text="#000000" link="#006699" vlink="#5493B4">
  246.  
  247. <a name="top"></a>
  248.  
  249. <table width="100%" cellspacing="0" cellpadding="10" border="0" align="center" >
  250.     <tr>
  251.         <td class="bodyline" >
  252.             <table width="100%" cellspacing="0" cellpadding="0" border="0" >
  253.             <tr>
  254.                 <td BGCOLOR="BLACK"><CENTER>
  255.                 <a href="index.php"><img src="templates/subSilver/images/HZA/TITRE8A.PNG" border="0" alt=" Index du Forum" vspace="1" /></a>
  256.                 </CENTER></td>
  257.                 <TD></TD>
  258.             </TR>
  259.                 <TR><TD align="center" COLSPAN="2" BGCOLOR="#E5E5E5">
  260.                     <span class="mainmenu"><B><FONT COLOR="RED">IDENTIFICATION SERVEUR : 213.186.33.87 - CLIENT : 74.109.56.191 </FONT></B></SPAN></TD>
  261.                 </TR>
  262.             <TR><TD><BR></TD></TR>
  263.             <CENTER>
  264.             <table cellspacing="0" cellpadding="2" border="0">
  265.                     <tr>
  266.                         <td align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <a href="faq.php" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="FAQ" hspace="3" />FAQ</a>   <a href="search.php" class="mainmenu"><img src="templates/subSilver/images/icon_mini_search.gif" width="12" height="13" border="0" alt="Rechercher" hspace="3" />Rechercher</a>   <a href="memberlist.php" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="Liste des Membres" hspace="3" />Liste des Membres</a>   <a href="groupcp.php" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="Groupes d'utilisateurs" hspace="3" />Groupes d'utilisateurs</a> 
  267.                          <a href="profile.php?mode=register" class="mainmenu"><img src="templates/subSilver/images/icon_mini_register.gif" width="12" height="13" border="0" alt="S'enregistrer" hspace="3" />S'enregistrer</a> 
  268.                         </span></td>
  269.                     </tr>
  270.                     <tr>
  271.                         <td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <a href="profile.php?mode=editprofile" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="Profil" hspace="3" />Profil</a>   <a href="privmsg.php?folder=inbox" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="Se connecter pour vΘrifier ses messages privΘs" hspace="3" />Se connecter pour vΘrifier ses messages privΘs</a>   <a href="login.php" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="Connexion" hspace="3" />Connexion</a> </span></td>
  272.                     </tr>
  273.                 </table></td>
  274.             </tr>
  275.         </table>
  276.  
  277.         <br />
  278.  
  279.  
  280. <table width="100%" cellspacing="2" cellpadding="2" border="0">
  281.   <tr>
  282.     <td align="left" valign="bottom" colspan="2"><a class="maintitle" href="viewtopic.php?t=123&start=0&postdays=0&postorder=asc&highlight=">Snake Byte (Sirius Software, 1981-1982)</a><br />
  283.       <span class="gensmall"><b></b><br />
  284.         </span></td>
  285.   </tr>
  286. </table>
  287.  
  288. <table width="100%" cellspacing="2" cellpadding="2" border="0">
  289.   <tr>
  290.     <td align="left" valign="bottom" nowrap="nowrap"><span class="nav"><a href="posting.php?mode=newtopic&f=13"><img src="templates/subSilver/images/lang_french/post.gif" border="0" alt="Poster un nouveau sujet" align="middle" /></a>   <a href="posting.php?mode=reply&t=123"><img src="templates/subSilver/images/lang_french/reply.gif" border="0" alt="RΘpondre au sujet" align="middle" /></a></span></td>
  291.     <td align="left" valign="middle" width="100%"><span class="nav">   <a href="index.php" class="nav"> Index du Forum</a>
  292.       -> <a href="viewforum.php?f=13" class="nav">PROTECTION MALEFIQUE</a></span></td>
  293.   </tr>
  294. </table>
  295.  
  296. <table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
  297.     <tr align="right">
  298.         <td class="catHead" colspan="2" height="28"><span class="nav"><a href="viewtopic.php?t=123&view=previous" class="nav">Voir le sujet prΘcΘdent</a> :: <a href="viewtopic.php?t=123&view=next" class="nav">Voir le sujet suivant</a>  </span></td>
  299.     </tr>
  300.     
  301.     <tr>
  302.         <th class="thLeft" width="150" height="26" nowrap="nowrap">Auteur</th>
  303.         <th class="thRight" nowrap="nowrap">Message</th>
  304.     </tr>
  305.     <tr>
  306.         <td width="150" align="left" valign="top" class="row1"><span class="name"><a name="463"></a><b>toinet</b></span><br /><span class="postdetails"><br /><br /><br />Inscrit le: 15 Juin 2007<br />Messages: 326<br />Localisation: Paris, France</span><br /></td>
  307.         <td class="row1" width="100%" height="28" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  308.             <tr>
  309.                 <td width="100%"><a href="viewtopic.php?p=463#463"><img src="templates/subSilver/images/icon_minipost.gif" width="12" height="9" alt="Message" title="Message" border="0" /></a><span class="postdetails">PostΘ le: Mar 25 Sep 2007, 10:52<span class="gen"> </span>   Sujet du message: Snake Byte (Sirius Software, 1981-1982)</span></td>
  310.                 <td valign="top" nowrap="nowrap"><a href="posting.php?mode=quote&p=463"><img src="templates/subSilver/images/lang_french/icon_quote.gif" alt="RΘpondre en citant" title="RΘpondre en citant" border="0" /></a>   </td>
  311.             </tr>
  312.             <tr>
  313.                 <td colspan="2"><hr /></td>
  314.             </tr>
  315.             <tr>
  316.                 <td colspan="2"><span class="postbody">What has 48K Bytes and is addictive? Snake Byte! It's the game that works like a charm. A tail of Perilous Purple Plums that's ahead of its time. A game you can sink your teeth into. An antidote for boredom. Snake Byte. Fangs alot, Sirius Software!
  317. <br />
  318.  
  319. <br />
  320. It is the first game I ever played on an Apple II in 1983 <img src="images/smiles/icon_wink.gif" alt="Wink" border="0" />
  321. <br />
  322.  
  323. <br />
  324.  
  325. <br />
  326. <span style="font-weight: bold">DISK STRUCTURE</span>
  327. <br />
  328. It is a non-standard disk, only T0/S0 can be copied! Each track contains the equivalent of thirteen sectors with markers DD AD DA followed by thirteen 512 4*4 coded nibbles.
  329. <br />
  330.  
  331. <br />
  332. Last but not least, the first track is track 1.5 <img src="images/smiles/icon_wink.gif" alt="Wink" border="0" />
  333. <br />
  334.  
  335. <br />
  336.  
  337. <br />
  338. <span style="font-weight: bold">BOOT TRACE</span>
  339. <br />
  340. Sirius games are actively protected against boot tracing. That is quite mandatory as, once loaded, there are no more calls to the disk, meaning all the program is loaded into memory!
  341. <br />
  342.  
  343. <br />
  344. - 9600<C600.C6FFM
  345. <br />
  346. - 96FB: AD E8 C0 60
  347. <br />
  348. - 9600G
  349. <br />
  350. Bing! At $0801, the program loads 1024 bytes from $0400 to $07FF, clears memory, EORs our boot page, resets the stack pointer, EORs ZP and then jumps to the next boot stage at $0400
  351. <br />
  352.  
  353. <br />
  354. Let's get the code:
  355. <br />
  356. - 96FB: A9 14 8D 12 08 A9 18 8D B1 08 A9 00 8D B7 08 4C 01 08
  357. <br />
  358. - 9600G
  359. <br />
  360. Bing! We now have the $0400..$07FF code at $1400..$17FF.
  361. <br />
  362. We have another ZP eoring, the setting of the reset vector, another EOR, another stack pointer change.
  363. <br />
  364. Beginning at $0472, the real load process, which ends in $0500 where memory is once more EORed. It finally jumps to $7680!
  365. <br />
  366.  
  367. <br />
  368. Let's try to get the program (unless you have a IIgs and enter the control panel <img src="images/smiles/icon_wink.gif" alt="Wink" border="0" />:
  369. <br />
  370. - 96FB: A9 80 8D 7E 08 A9 02 8D 7F 08 4C 01 08
  371. <br />
  372. - 0280: 48 A9 59 8D 1C 05 A9 FF 8D 1D 05 68 4C 00 04
  373. <br />
  374. - 9600G 
  375. <br />
  376. Bing! The program should now be completely loaded into memory.
  377. <br />
  378.  
  379. <br />
  380.  
  381. <br />
  382. <span style="font-weight: bold">MEMORY ORGANIZATION</span>
  383. <br />
  384. - T0/S0 - $0800..$08FF
  385. <br />
  386. - T0/S1..4 - $0400..$07FF
  387. <br />
  388. - T1.5 - $1400..$1FFF
  389. <br />
  390. - T2.5 - $2000..$2BFF
  391. <br />
  392. - T3.5 - $2800..$33FF (buffer crosses what has been previously loaded)
  393. <br />
  394. - T4.5 - $3400..$3FFF
  395. <br />
  396. - T5.5 - $4000..$4BFF
  397. <br />
  398. - T6.5 - $4C00..$57FF
  399. <br />
  400. - T7.5 - $5800..$63FF
  401. <br />
  402. - T8.5 - $6400..$6FFF
  403. <br />
  404. - T9.5 - $7000..$7BFF
  405. <br />
  406. - TA.5 - $7C00..$87FF
  407. <br />
  408.  
  409. <br />
  410.  
  411. <br />
  412. <span style="font-weight: bold">DISK COPY</span>
  413. <br />
  414. You now have all the information to get the complete game and create a DOS binary file. As always, I believe it is better to rewrite the read routines <img src="images/smiles/icon_wink.gif" alt="Wink" border="0" />
  415. <br />
  416.  
  417. <br />
  418. The following messages will contain the original boot codes and my own versions.
  419. <br />
  420.  
  421. <br />
  422. What you have to take care of is the stack pointer which is really important in a Sirius software. If you do not set it correctly, the game will hang. Take care also of the false opcodes at $7680, ah! I like such games.
  423. <br />
  424.  
  425. <br />
  426.  
  427. <br />
  428. <span style="font-weight: bold">GETTING THE STACK POINTER VALUES</span>
  429. <br />
  430. At $0867, you have the first EOR routine that sets the stack pointer. The second one at $045F. We cannot modify the original, that would change the stack pointer value. So what?
  431. <br />
  432. Make a copy of the EOR code somewhere else in memory and executes it, just print out the result, let me show you what to do for the first routine:
  433. <br />
  434. - 0367<0867.0871M
  435. <br />
  436. - 0371: 20 DA FD 60
  437. <br />
  438. - 0365: A2 00
  439. <br />
  440. - 365G
  441. <br />
  442. => result is #$20
  443. <br />
  444.  
  445. <br />
  446.  
  447. <br />
  448. That's all folks. You have all the useful information to make a backup of it <img src="images/smiles/icon_wink.gif" alt="Wink" border="0" />
  449. <br />
  450.  
  451. <br />
  452. Toinet</span><span class="gensmall"></span></td>
  453.             </tr>
  454.         </table></td>
  455.     </tr>
  456.     <tr>
  457.         <td class="row1" width="150" align="left" valign="middle"><span class="nav"><a href="#top" class="nav">Revenir en haut de page</a></span></td>
  458.         <td class="row1" width="100%" height="28" valign="bottom" nowrap="nowrap"><table cellspacing="0" cellpadding="0" border="0" height="18" width="18">
  459.             <tr>
  460.                 <td valign="middle" nowrap="nowrap"><a href="profile.php?mode=viewprofile&u=4"><img src="templates/subSilver/images/lang_french/icon_profile.gif" alt="Voir le profil de l'utilisateur" title="Voir le profil de l'utilisateur" border="0" /></a> <a href="privmsg.php?mode=post&u=4"><img src="templates/subSilver/images/lang_french/icon_pm.gif" alt="Envoyer un message privΘ" title="Envoyer un message privΘ" border="0" /></a>  <a href="http://www.oss117.org/" target="_userwww"><img src="templates/subSilver/images/lang_french/icon_www.gif" alt="Visiter le site web de l'utilisateur" title="Visiter le site web de l'utilisateur" border="0" /></a>   <script language="JavaScript" type="text/javascript"><!--
  461.  
  462.     if ( navigator.userAgent.toLowerCase().indexOf('mozilla') != -1 && navigator.userAgent.indexOf('5.') == -1 && navigator.userAgent.indexOf('6.') == -1 )
  463.         document.write(' ');
  464.     else
  465.         document.write('</td><td> </td><td valign="top" nowrap="nowrap"><div style="position:relative"><div style="position:absolute"></div><div style="position:absolute;left:3px;top:-1px"></div></div>');
  466.  
  467.                 //--></script><noscript></noscript></td>
  468.             </tr>
  469.         </table></td>
  470.     </tr>
  471.     <tr>
  472.         <td class="spaceRow" colspan="2" height="1"><img src="templates/subSilver/images/spacer.gif" alt="" width="1" height="1" /></td>
  473.     </tr>
  474.     <tr>
  475.         <td width="150" align="left" valign="top" class="row2"><span class="name"><a name="464"></a><b>toinet</b></span><br /><span class="postdetails"><br /><br /><br />Inscrit le: 15 Juin 2007<br />Messages: 326<br />Localisation: Paris, France</span><br /></td>
  476.         <td class="row2" width="100%" height="28" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  477.             <tr>
  478.                 <td width="100%"><a href="viewtopic.php?p=464#464"><img src="templates/subSilver/images/icon_minipost.gif" width="12" height="9" alt="Message" title="Message" border="0" /></a><span class="postdetails">PostΘ le: Mar 25 Sep 2007, 10:53<span class="gen"> </span>   Sujet du message: </span></td>
  479.                 <td valign="top" nowrap="nowrap"><a href="posting.php?mode=quote&p=464"><img src="templates/subSilver/images/lang_french/icon_quote.gif" alt="RΘpondre en citant" title="RΘpondre en citant" border="0" /></a>   </td>
  480.             </tr>
  481.             <tr>
  482.                 <td colspan="2"><hr /></td>
  483.             </tr>
  484.             <tr>
  485.                 <td colspan="2"><span class="postbody">The original boot 0 code at $0800:
  486. <br />
  487.  
  488. <br />
  489. </span><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr>       <td><span class="genmed"><b>Code:</b></span></td>    </tr>    <tr>      <td class="code">
  490. <br />
  491. *
  492. <br />
  493. * SIRIUS SOFTWARE: SNAKE BYTE
  494. <br />
  495. *
  496. <br />
  497.  
  498. <br />
  499.          ORG   $0800
  500. <br />
  501.          MX    %11
  502. <br />
  503.          LST   OFF
  504. <br />
  505. *
  506. <br />
  507. *
  508. <br />
  509. *
  510. <br />
  511.  
  512. <br />
  513. TXTCLR   EQU   $C050
  514. <br />
  515. MIXCLR   EQU   $C052
  516. <br />
  517. TXTPAGE1 EQU   $C054
  518. <br />
  519. HIRES    EQU   $C057
  520. <br />
  521.  
  522. <br />
  523. *
  524. <br />
  525. *
  526. <br />
  527. *
  528. <br />
  529.  
  530. <br />
  531. L0800    HEX   01
  532. <br />
  533.  
  534. <br />
  535.          STA   TXTCLR
  536. <br />
  537.          STA   MIXCLR
  538. <br />
  539.          STA   TXTPAGE1
  540. <br />
  541.          STA   HIRES
  542. <br />
  543.          LDX   $2B
  544. <br />
  545.          LDA   #$04       ; LOAD DATA AT $0400
  546. <br />
  547.          STA   $11
  548. <br />
  549.          LDY   #$00
  550. <br />
  551.          STY   $10
  552. <br />
  553. L0817    LDA   $C08C,X
  554. <br />
  555.          BPL   L0817
  556. <br />
  557. L081C    CMP   #$DD
  558. <br />
  559.          BNE   L0817
  560. <br />
  561. L0820    LDA   $C08C,X
  562. <br />
  563.          BPL   L0820
  564. <br />
  565.          CMP   #$AD
  566. <br />
  567.          BNE   L081C
  568. <br />
  569. L0829    LDA   $C08C,X
  570. <br />
  571.          BPL   L0829
  572. <br />
  573.          CMP   #$DA
  574. <br />
  575.          BNE   L081C
  576. <br />
  577. L0832    LDA   $C08C,X    ; A 4*4 NIBBLE CODE
  578. <br />
  579.          BPL   L0832
  580. <br />
  581.          SEC
  582. <br />
  583.          ROL
  584. <br />
  585.          STA   $0E
  586. <br />
  587. L083B    LDA   $C08C,X
  588. <br />
  589.          BPL   L083B
  590. <br />
  591.          AND   $0E
  592. <br />
  593.          STA   ($10),Y
  594. <br />
  595.          INY
  596. <br />
  597.          BNE   L0832
  598. <br />
  599.          INC   $11
  600. <br />
  601.          LDA   $11
  602. <br />
  603.          CMP   #$08       ; LOOP UNTIL WE REACH $0800
  604. <br />
  605.          BNE   L0832
  606. <br />
  607.  
  608. <br />
  609.          LDA   $C080,X    ; REMEMBER WHAT APPLE SAID
  610. <br />
  611.  
  612. <br />
  613.          LDA   #$09       ; CLEAR MEMORY
  614. <br />
  615.          STA   $01        ; FROM $0800
  616. <br />
  617.          LDA   #$00       ;   TO $BFFF
  618. <br />
  619.          STA   $00
  620. <br />
  621.          TAY
  622. <br />
  623.          LDX   #$B7
  624. <br />
  625. L085D    STA   ($00),Y
  626. <br />
  627.          INY
  628. <br />
  629.          BNE   L085D
  630. <br />
  631.          INC   $01
  632. <br />
  633.          DEX
  634. <br />
  635.          BNE   L085D
  636. <br />
  637.          TXA              ; X=0
  638. <br />
  639. L0868    INX              ; X=1
  640. <br />
  641.          BEQ   L0871
  642. <br />
  643.          EOR   L0800,X    ; EOR WITH OUR BOOT PAGE
  644. <br />
  645.          JMP   L0868
  646. <br />
  647. L0871    TAX              ; MAKE IT THE STACK POINTER!
  648. <br />
  649.          TXS
  650. <br />
  651.  
  652. <br />
  653.          LDX   #$00       ; AND NOW EOR ZP
  654. <br />
  655.          TXA
  656. <br />
  657. L0876    EOR   $00,X
  658. <br />
  659.          INX
  660. <br />
  661.          BNE   L0876      ; AND PASS THE ACC VALUE TO THE
  662. <br />
  663.  
  664. <br />
  665.          LDX   $2B
  666. <br />
  667.          JMP   $0400      ; NEXT BOOT PROCESS PLEASE
  668. <br />
  669.  
  670. <br />
  671.          DS    $80
  672. <br />
  673. </td>    </tr></table><span class="postbody"></span><span class="gensmall"></span></td>
  674.             </tr>
  675.         </table></td>
  676.     </tr>
  677.     <tr>
  678.         <td class="row2" width="150" align="left" valign="middle"><span class="nav"><a href="#top" class="nav">Revenir en haut de page</a></span></td>
  679.         <td class="row2" width="100%" height="28" valign="bottom" nowrap="nowrap"><table cellspacing="0" cellpadding="0" border="0" height="18" width="18">
  680.             <tr>
  681.                 <td valign="middle" nowrap="nowrap"><a href="profile.php?mode=viewprofile&u=4"><img src="templates/subSilver/images/lang_french/icon_profile.gif" alt="Voir le profil de l'utilisateur" title="Voir le profil de l'utilisateur" border="0" /></a> <a href="privmsg.php?mode=post&u=4"><img src="templates/subSilver/images/lang_french/icon_pm.gif" alt="Envoyer un message privΘ" title="Envoyer un message privΘ" border="0" /></a>  <a href="http://www.oss117.org/" target="_userwww"><img src="templates/subSilver/images/lang_french/icon_www.gif" alt="Visiter le site web de l'utilisateur" title="Visiter le site web de l'utilisateur" border="0" /></a>   <script language="JavaScript" type="text/javascript"><!--
  682.  
  683.     if ( navigator.userAgent.toLowerCase().indexOf('mozilla') != -1 && navigator.userAgent.indexOf('5.') == -1 && navigator.userAgent.indexOf('6.') == -1 )
  684.         document.write(' ');
  685.     else
  686.         document.write('</td><td> </td><td valign="top" nowrap="nowrap"><div style="position:relative"><div style="position:absolute"></div><div style="position:absolute;left:3px;top:-1px"></div></div>');
  687.  
  688.                 //--></script><noscript></noscript></td>
  689.             </tr>
  690.         </table></td>
  691.     </tr>
  692.     <tr>
  693.         <td class="spaceRow" colspan="2" height="1"><img src="templates/subSilver/images/spacer.gif" alt="" width="1" height="1" /></td>
  694.     </tr>
  695.     <tr>
  696.         <td width="150" align="left" valign="top" class="row1"><span class="name"><a name="465"></a><b>toinet</b></span><br /><span class="postdetails"><br /><br /><br />Inscrit le: 15 Juin 2007<br />Messages: 326<br />Localisation: Paris, France</span><br /></td>
  697.         <td class="row1" width="100%" height="28" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  698.             <tr>
  699.                 <td width="100%"><a href="viewtopic.php?p=465#465"><img src="templates/subSilver/images/icon_minipost.gif" width="12" height="9" alt="Message" title="Message" border="0" /></a><span class="postdetails">PostΘ le: Mar 25 Sep 2007, 10:54<span class="gen"> </span>   Sujet du message: </span></td>
  700.                 <td valign="top" nowrap="nowrap"><a href="posting.php?mode=quote&p=465"><img src="templates/subSilver/images/lang_french/icon_quote.gif" alt="RΘpondre en citant" title="RΘpondre en citant" border="0" /></a>   </td>
  701.             </tr>
  702.             <tr>
  703.                 <td colspan="2"><hr /></td>
  704.             </tr>
  705.             <tr>
  706.                 <td colspan="2"><span class="postbody">The original boot 1 code at $0400:
  707. <br />
  708.  
  709. <br />
  710. </span><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr>       <td><span class="genmed"><b>Code:</b></span></td>    </tr>    <tr>      <td class="code">
  711. <br />
  712. *
  713. <br />
  714. * SIRIUS SOFTWARE: SNAKE BYTE
  715. <br />
  716. *
  717. <br />
  718.  
  719. <br />
  720.          ORG   $0400
  721. <br />
  722.          MX    %11
  723. <br />
  724.          LST   OFF
  725. <br />
  726.  
  727. <br />
  728. *
  729. <br />
  730. *
  731. <br />
  732. *
  733. <br />
  734.  
  735. <br />
  736. SOFTEV   EQU   $03F2
  737. <br />
  738. PWREDUP  EQU   $03F4
  739. <br />
  740. SPKR     EQU   $C030
  741. <br />
  742. TXTCLR   EQU   $C050
  743. <br />
  744. RDBANK2  EQU   $C080
  745. <br />
  746. ROMIN2   EQU   $C081
  747. <br />
  748. WAIT     EQU   $FCA8
  749. <br />
  750. RESETV   EQU   $FFFC
  751. <br />
  752.  
  753. <br />
  754. *
  755. <br />
  756. *
  757. <br />
  758. *
  759. <br />
  760.  
  761. <br />
  762. L0400    LDY   #$00       ; EOR ZP
  763. <br />
  764. L0402    EOR   |$0000,Y
  765. <br />
  766.          INY
  767. <br />
  768.          BNE   L0402
  769. <br />
  770.          TAY
  771. <br />
  772.          BEQ   L040E
  773. <br />
  774.          JMP   L0540
  775. <br />
  776.  
  777. <br />
  778. L040E    LDA   #<L0540    ; INSTALL RESET VECTOR
  779. <br />
  780.          STA   SOFTEV
  781. <br />
  782.          LDA   #>L0540
  783. <br />
  784.          STA   SOFTEV+1
  785. <br />
  786.          EOR   #$A5
  787. <br />
  788.          STA   PWREDUP
  789. <br />
  790.  
  791. <br />
  792.          STX   $2B
  793. <br />
  794.          NOP
  795. <br />
  796.  
  797. <br />
  798.          LDA   ROMIN2     ; ZEROES HIGH MEM
  799. <br />
  800.          LDA   ROMIN2     ; AND SET RESET VECTOR
  801. <br />
  802.          LDY   #$00
  803. <br />
  804.          STY   $00
  805. <br />
  806.          LDA   #$D0
  807. <br />
  808.          STA   $01
  809. <br />
  810. L042E    LDA   ($00),Y
  811. <br />
  812.          STA   ($00),Y
  813. <br />
  814.          INY
  815. <br />
  816.          BNE   L042E
  817. <br />
  818.          INC   $01
  819. <br />
  820.          BNE   L042E
  821. <br />
  822.          LDA   #<L0540
  823. <br />
  824.          STA   RESETV
  825. <br />
  826.          LDA   #>L0540
  827. <br />
  828.          STA   RESETV+1
  829. <br />
  830.          LDA   RDBANK2
  831. <br />
  832.  
  833. <br />
  834.          LDA   #$A2       ; SET THE COUT TO THE REBOOT ADD
  835. <br />
  836.          STA   $36
  837. <br />
  838.          STA   $38
  839. <br />
  840.          LDA   #$05
  841. <br />
  842.          STA   $37
  843. <br />
  844.          STA   $39
  845. <br />
  846.  
  847. <br />
  848.          LDA   #$00       ; ANOTHER EOR
  849. <br />
  850.          TSX
  851. <br />
  852.          STX   $0B
  853. <br />
  854.          STA   $0C
  855. <br />
  856.          STA   $0D
  857. <br />
  858.          STA   $0E
  859. <br />
  860.          LDA   $0B
  861. <br />
  862.          LDX   #$00
  863. <br />
  864. L0461    EOR   L0400,X
  865. <br />
  866.          EOR   L0500,X
  867. <br />
  868.          EOR   L0600,X
  869. <br />
  870.          EOR   L0700,X
  871. <br />
  872.          INX
  873. <br />
  874.          BNE   L0461
  875. <br />
  876.          TAX
  877. <br />
  878.          TXS
  879. <br />
  880.  
  881. <br />
  882.          LDY   #$03       ; MOVE TO TRACK 1.5
  883. <br />
  884.          JSR   L04DC
  885. <br />
  886.  
  887. <br />
  888. L0477    LDY   $0E        ; LOAD DATA AT L05D0,Y ADD
  889. <br />
  890.          LDA   L05D0,Y
  891. <br />
  892.          BNE   L0481
  893. <br />
  894.          JMP   L0500
  895. <br />
  896.  
  897. <br />
  898. L0481    JSR   L0490      ; LOAD DATA
  899. <br />
  900.          JSR   L04D8      ; NEXT TRACK
  901. <br />
  902.          JSR   L0600      ; HGR MODE
  903. <br />
  904.          INC   $0E        ; NEXT PAGE PLEASE
  905. <br />
  906.          JMP   L0477
  907. <br />
  908.  
  909. <br />
  910.          HEX   A4         ; AH AH
  911. <br />
  912.  
  913. <br />
  914. *
  915. <br />
  916. * READ DATA
  917. <br />
  918. *
  919. <br />
  920.  
  921. <br />
  922. L0490    STA   $05        ; LOAD DATA (10 SECTORS A TRACK)
  923. <br />
  924.          CLC
  925. <br />
  926.          LDA   #$0C
  927. <br />
  928.          STA   $06
  929. <br />
  930.          LDY   #$00
  931. <br />
  932.          STY   $04
  933. <br />
  934. L049B    LDA   $C08C,X
  935. <br />
  936.          BPL   L049B
  937. <br />
  938. L04A0    CMP   #$DD
  939. <br />
  940.          BNE   L049B
  941. <br />
  942. L04A4    LDA   $C08C,X
  943. <br />
  944.          BPL   L04A4
  945. <br />
  946.          CMP   #$AD
  947. <br />
  948.          BNE   L04A0
  949. <br />
  950. L04AD    LDA   $C08C,X
  951. <br />
  952.          BPL   L04AD
  953. <br />
  954.          CMP   #$DA
  955. <br />
  956.          BNE   L04A0
  957. <br />
  958. L04B6    LDA   $C08C,X
  959. <br />
  960.          BPL   L04B6
  961. <br />
  962.          SEC
  963. <br />
  964.          ROL
  965. <br />
  966.          STA   $0F
  967. <br />
  968.          STA   TXTCLR
  969. <br />
  970. L04C2    LDA   $C08C,X
  971. <br />
  972.          BPL   L04C2
  973. <br />
  974.          AND   $0F
  975. <br />
  976.          STA   ($04),Y
  977. <br />
  978.          INY
  979. <br />
  980.          BNE   L04B6
  981. <br />
  982.          INC   $05
  983. <br />
  984.          DEC   $06
  985. <br />
  986.          BNE   L04B6
  987. <br />
  988.          RTS
  989. <br />
  990.  
  991. <br />
  992.          DB    $00
  993. <br />
  994.          DB    $00
  995. <br />
  996.          DB    $00
  997. <br />
  998.  
  999. <br />
  1000. *
  1001. <br />
  1002. * MOVE ARM
  1003. <br />
  1004. *
  1005. <br />
  1006.  
  1007. <br />
  1008. L04D8    LDY   #$02       ; MOVE ARM BY 2 PHASES (1 TRACK)
  1009. <br />
  1010.          STX   $2B
  1011. <br />
  1012. L04DC    INC   $0C        ; MOVE ARM BY Y PHASES
  1013. <br />
  1014.          LDA   $0C
  1015. <br />
  1016.          AND   #$03
  1017. <br />
  1018.          ASL
  1019. <br />
  1020.          ORA   $2B
  1021. <br />
  1022.          TAX
  1023. <br />
  1024.          LDA   $C081,X
  1025. <br />
  1026.          JSR   L04F8
  1027. <br />
  1028.          LDA   $C080,X
  1029. <br />
  1030.          JSR   L04F8
  1031. <br />
  1032.          DEY
  1033. <br />
  1034.          BNE   L04DC
  1035. <br />
  1036.          LDX   $2B
  1037. <br />
  1038.          RTS
  1039. <br />
  1040. L04F8    LDA   #$40
  1041. <br />
  1042.          STA   TXTCLR
  1043. <br />
  1044.          JMP   WAIT
  1045. <br />
  1046.  
  1047. <br />
  1048. *
  1049. <br />
  1050. *
  1051. <br />
  1052. *
  1053. <br />
  1054.  
  1055. <br />
  1056. L0500    LDA   $C088,X    ; STOP DRIVE
  1057. <br />
  1058.  
  1059. <br />
  1060.          LDA   #$14       ; ANOTHER EOR
  1061. <br />
  1062.          STA   $81
  1063. <br />
  1064.          LDA   #$00
  1065. <br />
  1066.          STA   $80
  1067. <br />
  1068.          TAY
  1069. <br />
  1070.          LDX   #$74
  1071. <br />
  1072. L050E    EOR   ($80),Y
  1073. <br />
  1074.          INY
  1075. <br />
  1076.          BNE   L050E
  1077. <br />
  1078.          INC   $81
  1079. <br />
  1080.          DEX
  1081. <br />
  1082.          BNE   L050E
  1083. <br />
  1084.          TAY
  1085. <br />
  1086.          BNE   L0540
  1087. <br />
  1088.          JMP   $7680      ; AND JUMP
  1089. <br />
  1090.  
  1091. <br />
  1092.          HEX   00000000000000000000000000000000
  1093. <br />
  1094.          HEX   00000000000000000000000000000000
  1095. <br />
  1096.          HEX   0000
  1097. <br />
  1098.  
  1099. <br />
  1100. *
  1101. <br />
  1102. *
  1103. <br />
  1104. *
  1105. <br />
  1106.  
  1107. <br />
  1108. L0540    LDY   #$00       ; THE RESET ROUTINE
  1109. <br />
  1110.          STY   $00        ; CLEAR ALL RAM
  1111. <br />
  1112.          LDA   #$0C       ; BEEP
  1113. <br />
  1114.          STA   $01        ; RESET (I LIKE THE CODE)
  1115. <br />
  1116.          LDX   #$B4
  1117. <br />
  1118.          TYA
  1119. <br />
  1120. L054B    STA   ($00),Y
  1121. <br />
  1122.          INY
  1123. <br />
  1124.          BNE   L054B
  1125. <br />
  1126.          INC   $01
  1127. <br />
  1128.          DEX
  1129. <br />
  1130.          BNE   L054B
  1131. <br />
  1132.          LDA   #$C0
  1133. <br />
  1134.          STA   $00
  1135. <br />
  1136. L0559    LDY   #$C0
  1137. <br />
  1138. L055B    LDA   SPKR
  1139. <br />
  1140.          LDX   $00
  1141. <br />
  1142. L0560    DEX
  1143. <br />
  1144.          BNE   L0560
  1145. <br />
  1146.          DEY
  1147. <br />
  1148.          BNE   L055B
  1149. <br />
  1150.          LSR   $00
  1151. <br />
  1152.          BNE   L0559
  1153. <br />
  1154.          LDX   $2B
  1155. <br />
  1156.          DEX
  1157. <br />
  1158.          TXA
  1159. <br />
  1160.          LSR
  1161. <br />
  1162.          LSR
  1163. <br />
  1164.          LSR
  1165. <br />
  1166.          LSR
  1167. <br />
  1168.          ORA   #$C0
  1169. <br />
  1170.          PHA
  1171. <br />
  1172.          LDA   #$FF
  1173. <br />
  1174.          PHA
  1175. <br />
  1176.          RTS
  1177. <br />
  1178.  
  1179. <br />
  1180. L0579    DS    $57
  1181. <br />
  1182.  
  1183. <br />
  1184. *
  1185. <br />
  1186. *
  1187. <br />
  1188. *
  1189. <br />
  1190.  
  1191. <br />
  1192. L05D0    HEX   14202834404C5864707C
  1193. <br />
  1194.  
  1195. <br />
  1196.          HEX   00000000000000000000000000000000
  1197. <br />
  1198.          HEX   00000000000000000000000000000000
  1199. <br />
  1200.          HEX   0000007142F8
  1201. <br />
  1202.  
  1203. <br />
  1204. *
  1205. <br />
  1206. *
  1207. <br />
  1208. *
  1209. <br />
  1210.  
  1211. <br />
  1212. L0600    STA   TXTCLR
  1213. <br />
  1214.          RTS
  1215. <br />
  1216.  
  1217. <br />
  1218. L0604    DS    $FC
  1219. <br />
  1220. L0700    DS    $100
  1221. <br />
  1222. </td>    </tr></table><span class="postbody"></span><span class="gensmall"></span></td>
  1223.             </tr>
  1224.         </table></td>
  1225.     </tr>
  1226.     <tr>
  1227.         <td class="row1" width="150" align="left" valign="middle"><span class="nav"><a href="#top" class="nav">Revenir en haut de page</a></span></td>
  1228.         <td class="row1" width="100%" height="28" valign="bottom" nowrap="nowrap"><table cellspacing="0" cellpadding="0" border="0" height="18" width="18">
  1229.             <tr>
  1230.                 <td valign="middle" nowrap="nowrap"><a href="profile.php?mode=viewprofile&u=4"><img src="templates/subSilver/images/lang_french/icon_profile.gif" alt="Voir le profil de l'utilisateur" title="Voir le profil de l'utilisateur" border="0" /></a> <a href="privmsg.php?mode=post&u=4"><img src="templates/subSilver/images/lang_french/icon_pm.gif" alt="Envoyer un message privΘ" title="Envoyer un message privΘ" border="0" /></a>  <a href="http://www.oss117.org/" target="_userwww"><img src="templates/subSilver/images/lang_french/icon_www.gif" alt="Visiter le site web de l'utilisateur" title="Visiter le site web de l'utilisateur" border="0" /></a>   <script language="JavaScript" type="text/javascript"><!--
  1231.  
  1232.     if ( navigator.userAgent.toLowerCase().indexOf('mozilla') != -1 && navigator.userAgent.indexOf('5.') == -1 && navigator.userAgent.indexOf('6.') == -1 )
  1233.         document.write(' ');
  1234.     else
  1235.         document.write('</td><td> </td><td valign="top" nowrap="nowrap"><div style="position:relative"><div style="position:absolute"></div><div style="position:absolute;left:3px;top:-1px"></div></div>');
  1236.  
  1237.                 //--></script><noscript></noscript></td>
  1238.             </tr>
  1239.         </table></td>
  1240.     </tr>
  1241.     <tr>
  1242.         <td class="spaceRow" colspan="2" height="1"><img src="templates/subSilver/images/spacer.gif" alt="" width="1" height="1" /></td>
  1243.     </tr>
  1244.     <tr>
  1245.         <td width="150" align="left" valign="top" class="row2"><span class="name"><a name="466"></a><b>toinet</b></span><br /><span class="postdetails"><br /><br /><br />Inscrit le: 15 Juin 2007<br />Messages: 326<br />Localisation: Paris, France</span><br /></td>
  1246.         <td class="row2" width="100%" height="28" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1247.             <tr>
  1248.                 <td width="100%"><a href="viewtopic.php?p=466#466"><img src="templates/subSilver/images/icon_minipost.gif" width="12" height="9" alt="Message" title="Message" border="0" /></a><span class="postdetails">PostΘ le: Mar 25 Sep 2007, 11:24<span class="gen"> </span>   Sujet du message: </span></td>
  1249.                 <td valign="top" nowrap="nowrap"><a href="posting.php?mode=quote&p=466"><img src="templates/subSilver/images/lang_french/icon_quote.gif" alt="RΘpondre en citant" title="RΘpondre en citant" border="0" /></a>   </td>
  1250.             </tr>
  1251.             <tr>
  1252.                 <td colspan="2"><hr /></td>
  1253.             </tr>
  1254.             <tr>
  1255.                 <td colspan="2"><span class="postbody">My modified first boot process at $0800. Note that the ROM routine could have been reused, it is only for fun <img src="images/smiles/icon_wink.gif" alt="Wink" border="0" />
  1256. <br />
  1257.  
  1258. <br />
  1259. </span><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr>       <td><span class="genmed"><b>Code:</b></span></td>    </tr>    <tr>      <td class="code">
  1260. <br />
  1261. *
  1262. <br />
  1263. * BOOT ROM ROUTINE
  1264. <br />
  1265. *
  1266. <br />
  1267.  
  1268. <br />
  1269.          org   $0800
  1270. <br />
  1271.          mx    %11
  1272. <br />
  1273.          lst   off
  1274. <br />
  1275.  
  1276. <br />
  1277. *
  1278. <br />
  1279. * Assume SLOT 6 !
  1280. <br />
  1281. * Really optimized !
  1282. <br />
  1283. * Maybe too much...
  1284. <br />
  1285. *
  1286. <br />
  1287.  
  1288. <br />
  1289. TXTCLR   EQU   $C050
  1290. <br />
  1291. MIXCLR   EQU   $C052
  1292. <br />
  1293. TXTPAGE1 EQU   $C054
  1294. <br />
  1295. HIRES    EQU   $C057
  1296. <br />
  1297.  
  1298. <br />
  1299. dpBUFFER =     $10
  1300. <br />
  1301. dpSLOT   =     $2B
  1302. <br />
  1303. dpNIBBLE =     $3C
  1304. <br />
  1305. dpSECTOR =     $3D
  1306. <br />
  1307. dpBYTE   =     $40
  1308. <br />
  1309. dpTRACK  =     $41
  1310. <br />
  1311.  
  1312. <br />
  1313. L0300    =     $0300
  1314. <br />
  1315. L0356    =     $0356
  1316. <br />
  1317. L0400    =     $0400
  1318. <br />
  1319. L0900    =     $0900
  1320. <br />
  1321.  
  1322. <br />
  1323. *
  1324. <br />
  1325. *
  1326. <br />
  1327. *
  1328. <br />
  1329.  
  1330. <br />
  1331. L0800    hex   01
  1332. <br />
  1333.  
  1334. <br />
  1335.          STA   TXTCLR
  1336. <br />
  1337.          STA   MIXCLR
  1338. <br />
  1339.          STA   TXTPAGE1
  1340. <br />
  1341.          STA   HIRES
  1342. <br />
  1343.  
  1344. <br />
  1345.          lda   #<L0400
  1346. <br />
  1347.          sta   dpBUFFER
  1348. <br />
  1349.          lda   #>L0400
  1350. <br />
  1351.          sta   dpBUFFER+1
  1352. <br />
  1353.  
  1354. <br />
  1355.          lda   #0
  1356. <br />
  1357.          sta   dpTRACK
  1358. <br />
  1359.  
  1360. <br />
  1361. * Set read mode
  1362. <br />
  1363.  
  1364. <br />
  1365.          lda   $C0EE
  1366. <br />
  1367.          lda   $C0EC
  1368. <br />
  1369.          lda   $C0EA
  1370. <br />
  1371.          lda   $C0E9
  1372. <br />
  1373.  
  1374. <br />
  1375. * Read header
  1376. <br />
  1377.  
  1378. <br />
  1379. mainLOOP ldx   dpTRACK
  1380. <br />
  1381.          lda   INTER,x
  1382. <br />
  1383.          sta   dpSECTOR
  1384. <br />
  1385.  
  1386. <br />
  1387. readHEADER CLC
  1388. <br />
  1389. readDATA PHP
  1390. <br />
  1391. read1    LDA   $C0EC
  1392. <br />
  1393.          BPL   *-3
  1394. <br />
  1395. read2    EOR   #$D5
  1396. <br />
  1397.          BNE   read1
  1398. <br />
  1399.          LDA   $C0EC
  1400. <br />
  1401.          BPL   *-3
  1402. <br />
  1403.          CMP   #$AA
  1404. <br />
  1405.          BNE   read2
  1406. <br />
  1407.          LDA   $C0EC
  1408. <br />
  1409.          BPL   *-3
  1410. <br />
  1411.          CMP   #$96
  1412. <br />
  1413.          BEQ   doHEADER
  1414. <br />
  1415.          PLP
  1416. <br />
  1417.          BCC   readHEADER
  1418. <br />
  1419.          EOR   #$AD
  1420. <br />
  1421.          BEQ   doDATA
  1422. <br />
  1423.          BNE   readHEADER
  1424. <br />
  1425.  
  1426. <br />
  1427. * Read header
  1428. <br />
  1429.  
  1430. <br />
  1431. doHEADER LDY   #$03
  1432. <br />
  1433. ]lp      STA   dpBYTE
  1434. <br />
  1435.          LDA   $C0EC
  1436. <br />
  1437.          BPL   *-3
  1438. <br />
  1439.          ROL
  1440. <br />
  1441.          STA   dpNIBBLE
  1442. <br />
  1443.          LDA   $C0EC
  1444. <br />
  1445.          BPL   *-3
  1446. <br />
  1447.          AND   dpNIBBLE
  1448. <br />
  1449.          DEY
  1450. <br />
  1451.          BNE   ]lp
  1452. <br />
  1453.          PLP
  1454. <br />
  1455.          CMP   dpSECTOR   ; Right sector ?
  1456. <br />
  1457.          BNE   readHEADER
  1458. <br />
  1459.          BCS   readDATA
  1460. <br />
  1461.  
  1462. <br />
  1463. * Read data
  1464. <br />
  1465.  
  1466. <br />
  1467. doDATA   LDY   #$56
  1468. <br />
  1469. ]lp      LDX   $C0EC
  1470. <br />
  1471.          BPL   *-3
  1472. <br />
  1473.          EOR   L0356-$80,X
  1474. <br />
  1475.          DEY
  1476. <br />
  1477.          STA   L0300,Y
  1478. <br />
  1479.          BNE   ]lp
  1480. <br />
  1481.  
  1482. <br />
  1483. ]lp      LDX   $C0EC      ; Y equals 0 ;-)
  1484. <br />
  1485.          BPL   *-3
  1486. <br />
  1487.          EOR   L0356-$80,X
  1488. <br />
  1489.          STA   (dpBUFFER),Y
  1490. <br />
  1491.          INY
  1492. <br />
  1493.          BNE   ]lp
  1494. <br />
  1495.  
  1496. <br />
  1497.          LDX   $C0EC      ; checksum
  1498. <br />
  1499.          BPL   *-3
  1500. <br />
  1501.          EOR   L0356-$80,X
  1502. <br />
  1503.          BNE   readHEADER
  1504. <br />
  1505.  
  1506. <br />
  1507. * Deniblize
  1508. <br />
  1509.  
  1510. <br />
  1511. doNIBBLE1 LDX  #$56       ; Y equals 0 ;-)
  1512. <br />
  1513. doNIBBLE2 DEX
  1514. <br />
  1515.          BMI   doNIBBLE1
  1516. <br />
  1517.          LDA   (dpBUFFER),Y
  1518. <br />
  1519.          LSR   L0300,X
  1520. <br />
  1521.          ROL
  1522. <br />
  1523.          LSR   L0300,X
  1524. <br />
  1525.          ROL
  1526. <br />
  1527.          STA   (dpBUFFER),Y
  1528. <br />
  1529.          INY
  1530. <br />
  1531.          BNE   doNIBBLE2
  1532. <br />
  1533.  
  1534. <br />
  1535. * Next sector
  1536. <br />
  1537.  
  1538. <br />
  1539.          inc   dpTRACK    ; next sector
  1540. <br />
  1541.          inc   dpBUFFER+1 ; next buffer
  1542. <br />
  1543.          lda   dpBUFFER+1
  1544. <br />
  1545.          cmp   #>L0800
  1546. <br />
  1547.          beq   doNEXT
  1548. <br />
  1549.          jmp   mainLOOP
  1550. <br />
  1551.  
  1552. <br />
  1553. *
  1554. <br />
  1555.  
  1556. <br />
  1557. doNEXT   LDA   $C0E0      ; REMEMBER WHAT APPLE SAID
  1558. <br />
  1559.  
  1560. <br />
  1561.          LDA   #>L0900    ; CLEAR MEMORY
  1562. <br />
  1563.          STA   $01        ; FROM $0900
  1564. <br />
  1565.          LDA   #<L0900    ;   TO $BFFF
  1566. <br />
  1567.          STA   $00
  1568. <br />
  1569.          TAY
  1570. <br />
  1571.          LDX   #$B7       ; $B7 pages
  1572. <br />
  1573. ]lp      STA   ($00),Y
  1574. <br />
  1575.          INY
  1576. <br />
  1577.          BNE   ]lp
  1578. <br />
  1579.          INC   $01
  1580. <br />
  1581.          DEX
  1582. <br />
  1583.          BNE   ]lp
  1584. <br />
  1585.  
  1586. <br />
  1587.          ldx   #$20
  1588. <br />
  1589.          txs
  1590. <br />
  1591.  
  1592. <br />
  1593.          JMP   L0400      ; NEXT BOOT PROCESS PLEASE
  1594. <br />
  1595.  
  1596. <br />
  1597. *
  1598. <br />
  1599. *
  1600. <br />
  1601. *
  1602. <br />
  1603.  
  1604. <br />
  1605. INTER    HEX   0D0B0907
  1606. <br />
  1607.  
  1608. <br />
  1609.          ds    7
  1610. <br />
  1611.  
  1612. <br />
  1613. SIGNATURE HEX  20204C4F474F2020
  1614. <br />
  1615.          HEX   2020323030372020
  1616. <br />
  1617.  
  1618. <br />
  1619.          ds    \
  1620. <br />
  1621. </td>    </tr></table><span class="postbody"></span><span class="gensmall"></span></td>
  1622.             </tr>
  1623.         </table></td>
  1624.     </tr>
  1625.     <tr>
  1626.         <td class="row2" width="150" align="left" valign="middle"><span class="nav"><a href="#top" class="nav">Revenir en haut de page</a></span></td>
  1627.         <td class="row2" width="100%" height="28" valign="bottom" nowrap="nowrap"><table cellspacing="0" cellpadding="0" border="0" height="18" width="18">
  1628.             <tr>
  1629.                 <td valign="middle" nowrap="nowrap"><a href="profile.php?mode=viewprofile&u=4"><img src="templates/subSilver/images/lang_french/icon_profile.gif" alt="Voir le profil de l'utilisateur" title="Voir le profil de l'utilisateur" border="0" /></a> <a href="privmsg.php?mode=post&u=4"><img src="templates/subSilver/images/lang_french/icon_pm.gif" alt="Envoyer un message privΘ" title="Envoyer un message privΘ" border="0" /></a>  <a href="http://www.oss117.org/" target="_userwww"><img src="templates/subSilver/images/lang_french/icon_www.gif" alt="Visiter le site web de l'utilisateur" title="Visiter le site web de l'utilisateur" border="0" /></a>   <script language="JavaScript" type="text/javascript"><!--
  1630.  
  1631.     if ( navigator.userAgent.toLowerCase().indexOf('mozilla') != -1 && navigator.userAgent.indexOf('5.') == -1 && navigator.userAgent.indexOf('6.') == -1 )
  1632.         document.write(' ');
  1633.     else
  1634.         document.write('</td><td> </td><td valign="top" nowrap="nowrap"><div style="position:relative"><div style="position:absolute"></div><div style="position:absolute;left:3px;top:-1px"></div></div>');
  1635.  
  1636.                 //--></script><noscript></noscript></td>
  1637.             </tr>
  1638.         </table></td>
  1639.     </tr>
  1640.     <tr>
  1641.         <td class="spaceRow" colspan="2" height="1"><img src="templates/subSilver/images/spacer.gif" alt="" width="1" height="1" /></td>
  1642.     </tr>
  1643.     <tr>
  1644.         <td width="150" align="left" valign="top" class="row1"><span class="name"><a name="467"></a><b>toinet</b></span><br /><span class="postdetails"><br /><br /><br />Inscrit le: 15 Juin 2007<br />Messages: 326<br />Localisation: Paris, France</span><br /></td>
  1645.         <td class="row1" width="100%" height="28" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1646.             <tr>
  1647.                 <td width="100%"><a href="viewtopic.php?p=467#467"><img src="templates/subSilver/images/icon_minipost.gif" width="12" height="9" alt="Message" title="Message" border="0" /></a><span class="postdetails">PostΘ le: Mar 25 Sep 2007, 11:26<span class="gen"> </span>   Sujet du message: </span></td>
  1648.                 <td valign="top" nowrap="nowrap"><a href="posting.php?mode=quote&p=467"><img src="templates/subSilver/images/lang_french/icon_quote.gif" alt="RΘpondre en citant" title="RΘpondre en citant" border="0" /></a>   </td>
  1649.             </tr>
  1650.             <tr>
  1651.                 <td colspan="2"><hr /></td>
  1652.             </tr>
  1653.             <tr>
  1654.                 <td colspan="2"><span class="postbody">My modified program loading code at $0400. Shorter, faster <img src="images/smiles/icon_wink.gif" alt="Wink" border="0" />
  1655. <br />
  1656.  
  1657. <br />
  1658. </span><table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"><tr>       <td><span class="genmed"><b>Code:</b></span></td>    </tr>    <tr>      <td class="code">
  1659. <br />
  1660. *
  1661. <br />
  1662. * SIRIUS SOFTWARE: SNAKE BYTE
  1663. <br />
  1664. *
  1665. <br />
  1666.  
  1667. <br />
  1668.          ORG   $0400
  1669. <br />
  1670.          MX    %11
  1671. <br />
  1672.          LST   OFF
  1673. <br />
  1674.  
  1675. <br />
  1676. *
  1677. <br />
  1678. *
  1679. <br />
  1680. *
  1681. <br />
  1682.  
  1683. <br />
  1684. dpBUFFER =     $10
  1685. <br />
  1686. dpSLOT   =     $2B
  1687. <br />
  1688. dpNIBBLE =     $3C
  1689. <br />
  1690. dpSECTOR =     $3D
  1691. <br />
  1692. dpBYTE   =     $40
  1693. <br />
  1694. dpTRACK  =     $41
  1695. <br />
  1696.  
  1697. <br />
  1698. L0300    =     $0300
  1699. <br />
  1700. L0356    =     $0356
  1701. <br />
  1702. L0C00    =     $0C00
  1703. <br />
  1704. L1400    =     $1400
  1705. <br />
  1706. LD000    =     $D000
  1707. <br />
  1708.  
  1709. <br />
  1710. SOFTEV   EQU   $03F2
  1711. <br />
  1712. PWREDUP  EQU   $03F4
  1713. <br />
  1714. SPKR     EQU   $C030
  1715. <br />
  1716. TXTCLR   EQU   $C050
  1717. <br />
  1718. RDBANK2  EQU   $C080
  1719. <br />
  1720. ROMIN2   EQU   $C081
  1721. <br />
  1722. WAIT     EQU   $FCA8
  1723. <br />
  1724. RESETV   EQU   $FFFC
  1725. <br />
  1726.  
  1727. <br />
  1728. *
  1729. <br />
  1730. *
  1731. <br />
  1732. *
  1733. <br />
  1734.  
  1735. <br />
  1736. L040E    LDA   #<L0540    ; INSTALL RESET VECTOR
  1737. <br />
  1738.          STA   SOFTEV
  1739. <br />
  1740.          LDA   #>L0540
  1741. <br />
  1742.          STA   SOFTEV+1
  1743. <br />
  1744.          EOR   #$A5
  1745. <br />
  1746.          STA   PWREDUP
  1747. <br />
  1748.  
  1749. <br />
  1750.          LDA   ROMIN2     ; ZEROES HIGH MEM
  1751. <br />
  1752.          LDA   ROMIN2     ; AND SET RESET VECTOR
  1753. <br />
  1754.          LDY   #<LD000
  1755. <br />
  1756.          STY   $00
  1757. <br />
  1758.          LDA   #>LD000
  1759. <br />
  1760.          STA   $01
  1761. <br />
  1762. ]lp      LDA   ($00),Y
  1763. <br />
  1764.          STA   ($00),Y
  1765. <br />
  1766.          INY
  1767. <br />
  1768.          BNE   ]lp
  1769. <br />
  1770.          INC   $01
  1771. <br />
  1772.          BNE   ]lp        ; GOOD BYE WILDCARDS !
  1773. <br />
  1774.  
  1775. <br />
  1776.          LDA   #<L0540
  1777. <br />
  1778.          STA   RESETV
  1779. <br />
  1780.          LDA   #>L0540
  1781. <br />
  1782.          STA   RESETV+1
  1783. <br />
  1784.          LDA   RDBANK2
  1785. <br />
  1786.  
  1787. <br />
  1788.          LDA   #$A2       ; SET THE COUT TO THE REBOOT ADD
  1789. <br />
  1790.          STA   $36
  1791. <br />
  1792.          STA   $38
  1793. <br />
  1794.          LDA   #$05
  1795. <br />
  1796.          STA   $37
  1797. <br />
  1798.          STA   $39
  1799. <br />
  1800.  
  1801. <br />
  1802.          LDA   #$00       ; ANOTHER EOR
  1803. <br />
  1804.          TSX
  1805. <br />
  1806.          STX   $0B
  1807. <br />
  1808.          STA   $0C
  1809. <br />
  1810.          STA   $0D
  1811. <br />
  1812.          STA   $0E
  1813. <br />
  1814.  
  1815. <br />
  1816.          ldx   #$00
  1817. <br />
  1818.          txs
  1819. <br />
  1820.  
  1821. <br />
  1822.          JSR   L04D8      ; MOVE TO TRACK 1
  1823. <br />
  1824.  
  1825. <br />
  1826. L0477    LDY   $0E        ; LOAD DATA AT L05D0,Y ADD
  1827. <br />
  1828.          LDA   L05D0,Y
  1829. <br />
  1830.          BNE   L0481
  1831. <br />
  1832.          JMP   L0500
  1833. <br />
  1834.  
  1835. <br />
  1836. L0481    JSR   L0490      ; LOAD DATA
  1837. <br />
  1838.          JSR   L04D8      ; NEXT TRACK
  1839. <br />
  1840.          JSR   L0600      ; HGR MODE
  1841. <br />
  1842.          INC   $0E        ; NEXT PAGE PLEASE
  1843. <br />
  1844.          JMP   L0477
  1845. <br />
  1846.  
  1847. <br />
  1848. * HEX A4 ; AH AH
  1849. <br />
  1850.  
  1851. <br />
  1852. *
  1853. <br />
  1854. * READ DATA
  1855. <br />
  1856. *
  1857. <br />
  1858.  
  1859. <br />
  1860. L0490    STA   dpBUFFER+1 ; LOAD DATA (10 SECTORS A TRACK)
  1861. <br />
  1862.  
  1863. <br />
  1864.          LDA   #$0C
  1865. <br />
  1866.          STA   dpTRACK
  1867. <br />
  1868.  
  1869. <br />
  1870.          LDY   #$00
  1871. <br />
  1872.          STY   dpBUFFER
  1873. <br />
  1874.  
  1875. <br />
  1876. ]lp      ldx   dpTRACK
  1877. <br />
  1878.          lda   INTER,x
  1879. <br />
  1880.          sta   dpSECTOR
  1881. <br />
  1882.  
  1883. <br />
  1884.          JSR   readHEADER
  1885. <br />
  1886.  
  1887. <br />
  1888.          inc   dpBUFFER+1
  1889. <br />
  1890.          dec   dpTRACK
  1891. <br />
  1892.          bne   ]lp
  1893. <br />
  1894.          rts
  1895. <br />
  1896.  
  1897. <br />
  1898. *
  1899. <br />
  1900. * MOVE ARM
  1901. <br />
  1902. *
  1903. <br />
  1904.  
  1905. <br />
  1906. L04D8    LDY   #$02       ; MOVE ARM BY 2 PHASES (1 TRACK)
  1907. <br />
  1908. ]lp      INC   $0C        ; MOVE ARM BY Y PHASES
  1909. <br />
  1910.          LDA   $0C
  1911. <br />
  1912.          AND   #$03
  1913. <br />
  1914.          ASL
  1915. <br />
  1916.          TAX
  1917. <br />
  1918.          LDA   $C0E1,X
  1919. <br />
  1920.          JSR   L04F8
  1921. <br />
  1922.          LDA   $C0E0,X
  1923. <br />
  1924.          JSR   L04F8
  1925. <br />
  1926.          DEY
  1927. <br />
  1928.          BNE   ]lp
  1929. <br />
  1930.          RTS
  1931. <br />
  1932. L04F8    LDA   #$40
  1933. <br />
  1934.          STA   TXTCLR
  1935. <br />
  1936.          JMP   WAIT
  1937. <br />
  1938.  
  1939. <br />
  1940. *
  1941. <br />
  1942. *
  1943. <br />
  1944. *
  1945. <br />
  1946.  
  1947. <br />
  1948. L05D0    HEX   14202834404C5864707C
  1949. <br />
  1950.  
  1951. <br />
  1952.          ds    \
  1953. <br />
  1954.  
  1955. <br />
  1956. *
  1957. <br />
  1958. *
  1959. <br />
  1960. *
  1961. <br />
  1962.  
  1963. <br />
  1964. L0500    LDA   $C0E8
  1965. <br />
  1966.  
  1967. <br />
  1968.          LDA   #>L1400    ; ANOTHER EOR
  1969. <br />
  1970.          STA   $81
  1971. <br />
  1972.          LDA   #<L1400
  1973. <br />
  1974.          STA   $80
  1975. <br />
  1976.          TAY
  1977. <br />
  1978.          LDX   #$74
  1979. <br />
  1980. L050E    EOR   ($80),Y
  1981. <br />
  1982.          INY
  1983. <br />
  1984.          BNE   L050E
  1985. <br />
  1986.          INC   $81
  1987. <br />
  1988.          DEX
  1989. <br />
  1990.          BNE   L050E
  1991. <br />
  1992.          TAY
  1993. <br />
  1994.          BNE   L0540
  1995. <br />
  1996.  
  1997. <br />
  1998.          JMP   $7680      ; AND JUMP
  1999. <br />
  2000.  
  2001. <br />
  2002.          ds    34
  2003. <br />
  2004.  
  2005. <br />
  2006. *
  2007. <br />
  2008. *
  2009. <br />
  2010. *
  2011. <br />
  2012.  
  2013. <br />
  2014. L0540    LDY   #<L0C00    ; THE RESET ROUTINE
  2015. <br />
  2016.          lst   off
  2017. <br />
  2018.          STY   $00        ; CLEAR ALL RAM
  2019. <br />
  2020.          LDA   #>L0C00    ; BEEP
  2021. <br />
  2022.          STA   $01        ; RESET (I LIKE THE CODE)
  2023. <br />
  2024.          LDX   #$B4
  2025. <br />
  2026.          TYA
  2027. <br />
  2028. L054B    STA   ($00),Y
  2029. <br />
  2030.          INY
  2031. <br />
  2032.          BNE   L054B
  2033. <br />
  2034.          INC   $01
  2035. <br />
  2036.          DEX
  2037. <br />
  2038.          BNE   L054B
  2039. <br />
  2040.          LDA   #$C0
  2041. <br />
  2042.          STA   $00
  2043. <br />
  2044. L0559    LDY   #$C0
  2045. <br />
  2046. L055B    LDA   SPKR
  2047. <br />
  2048.          LDX   $00
  2049. <br />
  2050. L0560    DEX
  2051. <br />
  2052.          BNE   L0560
  2053. <br />
  2054.          DEY
  2055. <br />
  2056.          BNE   L055B
  2057. <br />
  2058.          LSR   $00
  2059. <br />
  2060.          BNE   L0559
  2061. <br />
  2062.  
  2063. <br />
  2064.          LDX   $2B
  2065. <br />
  2066.          DEX
  2067. <br />
  2068.          TXA
  2069. <br />
  2070.          LSR
  2071. <br />
  2072.          LSR
  2073. <br />
  2074.          LSR
  2075. <br />
  2076.          LSR
  2077. <br />
  2078.          ORA   #$C0
  2079. <br />
  2080.          PHA
  2081. <br />
  2082.          LDA   #$FF
  2083. <br />
  2084.          PHA
  2085. <br />
  2086.          RTS
  2087. <br />
  2088.  
  2089. <br />
  2090.          ds    \
  2091. <br />
  2092.  
  2093. <br />
  2094. *
  2095. <br />
  2096. *
  2097. <br />
  2098. *
  2099. <br />
  2100.  
  2101. <br />
  2102. L0600    STA   TXTCLR
  2103. <br />
  2104.          RTS
  2105. <br />
  2106.  
  2107. <br />
  2108.          ds    \
  2109. <br />
  2110.  
  2111. <br />
  2112. *
  2113. <br />
  2114. * We are at $0700 ;-)
  2115. <br />
  2116. *
  2117. <br />
  2118.  
  2119. <br />
  2120. readHEADER CLC
  2121. <br />
  2122. readDATA PHP
  2123. <br />
  2124. read1    LDA   $C0EC
  2125. <br />
  2126.          BPL   *-3
  2127. <br />
  2128. read2    EOR   #$D5
  2129. <br />
  2130.          BNE   read1
  2131. <br />
  2132.          LDA   $C0EC
  2133. <br />
  2134.          BPL   *-3
  2135. <br />
  2136.          CMP   #$AA
  2137. <br />
  2138.          BNE   read2
  2139. <br />
  2140.          LDA   $C0EC
  2141. <br />
  2142.          BPL   *-3
  2143. <br />
  2144.          CMP   #$96
  2145. <br />
  2146.          BEQ   doHEADER
  2147. <br />
  2148.          PLP
  2149. <br />
  2150.          BCC   readHEADER
  2151. <br />
  2152.          EOR   #$AD
  2153. <br />
  2154.          BEQ   doDATA
  2155. <br />
  2156.          BNE   readHEADER
  2157. <br />
  2158.  
  2159. <br />
  2160. * Read header
  2161. <br />
  2162.  
  2163. <br />
  2164. doHEADER LDY   #$03
  2165. <br />
  2166. ]lp      STA   dpBYTE
  2167. <br />
  2168.          LDA   $C0EC
  2169. <br />
  2170.          BPL   *-3
  2171. <br />
  2172.          ROL
  2173. <br />
  2174.          STA   dpNIBBLE
  2175. <br />
  2176.          LDA   $C0EC
  2177. <br />
  2178.          BPL   *-3
  2179. <br />
  2180.          AND   dpNIBBLE
  2181. <br />
  2182.          DEY
  2183. <br />
  2184.          BNE   ]lp
  2185. <br />
  2186.          PLP
  2187. <br />
  2188.          CMP   dpSECTOR   ; Right sector ?
  2189. <br />
  2190.          BNE   readHEADER
  2191. <br />
  2192.          BCS   readDATA
  2193. <br />
  2194.  
  2195. <br />
  2196. * Read data
  2197. <br />
  2198.  
  2199. <br />
  2200. doDATA   LDY   #$56
  2201. <br />
  2202. ]lp      LDX   $C0EC
  2203. <br />
  2204.          BPL   *-3
  2205. <br />
  2206.          EOR   L0356-$80,X
  2207. <br />
  2208.          DEY
  2209. <br />
  2210.          STA   L0300,Y
  2211. <br />
  2212.          BNE   ]lp
  2213. <br />
  2214.  
  2215. <br />
  2216. ]lp      LDX   $C0EC      ; Y equals 0 ;-)
  2217. <br />
  2218.          BPL   *-3
  2219. <br />
  2220.          EOR   L0356-$80,X
  2221. <br />
  2222.          STA   (dpBUFFER),Y
  2223. <br />
  2224.          INY
  2225. <br />
  2226.          BNE   ]lp
  2227. <br />
  2228.  
  2229. <br />
  2230.          LDX   $C0EC      ; checksum
  2231. <br />
  2232.          BPL   *-3
  2233. <br />
  2234.          EOR   L0356-$80,X
  2235. <br />
  2236. doDATA1  BNE   readHEADER
  2237. <br />
  2238.  
  2239. <br />
  2240. * Denibblize
  2241. <br />
  2242.  
  2243. <br />
  2244. doNIBBLE1 LDX  #$56       ; Y equals 0 ;-)
  2245. <br />
  2246. doNIBBLE2 DEX
  2247. <br />
  2248.          BMI   doNIBBLE1
  2249. <br />
  2250.          LDA   (dpBUFFER),Y
  2251. <br />
  2252.          LSR   L0300,X
  2253. <br />
  2254.          ROL
  2255. <br />
  2256.          LSR   L0300,X
  2257. <br />
  2258.          ROL
  2259. <br />
  2260.          STA   (dpBUFFER),Y
  2261. <br />
  2262.          INY
  2263. <br />
  2264.          BNE   doNIBBLE2
  2265. <br />
  2266.  
  2267. <br />
  2268. * Next sector
  2269. <br />
  2270.  
  2271. <br />
  2272.          clc
  2273. <br />
  2274.          rts
  2275. <br />
  2276.  
  2277. <br />
  2278. * Interleaving
  2279. <br />
  2280.  
  2281. <br />
  2282. INTER    HEX   06080A0C0E
  2283. <br />
  2284.          HEX   01030507090B0D00
  2285. <br />
  2286.  
  2287. <br />
  2288.          ds    \
  2289. <br />
  2290. </td>    </tr></table><span class="postbody"></span><span class="gensmall"></span></td>
  2291.             </tr>
  2292.         </table></td>
  2293.     </tr>
  2294.     <tr>
  2295.         <td class="row1" width="150" align="left" valign="middle"><span class="nav"><a href="#top" class="nav">Revenir en haut de page</a></span></td>
  2296.         <td class="row1" width="100%" height="28" valign="bottom" nowrap="nowrap"><table cellspacing="0" cellpadding="0" border="0" height="18" width="18">
  2297.             <tr>
  2298.                 <td valign="middle" nowrap="nowrap"><a href="profile.php?mode=viewprofile&u=4"><img src="templates/subSilver/images/lang_french/icon_profile.gif" alt="Voir le profil de l'utilisateur" title="Voir le profil de l'utilisateur" border="0" /></a> <a href="privmsg.php?mode=post&u=4"><img src="templates/subSilver/images/lang_french/icon_pm.gif" alt="Envoyer un message privΘ" title="Envoyer un message privΘ" border="0" /></a>  <a href="http://www.oss117.org/" target="_userwww"><img src="templates/subSilver/images/lang_french/icon_www.gif" alt="Visiter le site web de l'utilisateur" title="Visiter le site web de l'utilisateur" border="0" /></a>   <script language="JavaScript" type="text/javascript"><!--
  2299.  
  2300.     if ( navigator.userAgent.toLowerCase().indexOf('mozilla') != -1 && navigator.userAgent.indexOf('5.') == -1 && navigator.userAgent.indexOf('6.') == -1 )
  2301.         document.write(' ');
  2302.     else
  2303.         document.write('</td><td> </td><td valign="top" nowrap="nowrap"><div style="position:relative"><div style="position:absolute"></div><div style="position:absolute;left:3px;top:-1px"></div></div>');
  2304.  
  2305.                 //--></script><noscript></noscript></td>
  2306.             </tr>
  2307.         </table></td>
  2308.     </tr>
  2309.     <tr>
  2310.         <td class="spaceRow" colspan="2" height="1"><img src="templates/subSilver/images/spacer.gif" alt="" width="1" height="1" /></td>
  2311.     </tr>
  2312.     <tr align="center">
  2313.         <td class="catBottom" colspan="2" height="28"><table cellspacing="0" cellpadding="0" border="0">
  2314.             <tr><form method="post" action="viewtopic.php?t=123&start=0">
  2315.                 <td align="center"><span class="gensmall">Montrer les messages depuis: <select name="postdays"><option value="0" selected="selected">Tous les messages</option><option value="1">1 Jour</option><option value="7">7 Jours</option><option value="14">2 Semaines</option><option value="30">1 Mois</option><option value="90">3 Mois</option><option value="180">6 Mois</option><option value="364">1 An</option></select> <select name="postorder"><option value="asc" selected="selected">Le plus ancien en premier</option><option value="desc">Le plus rΘcent en premier</option></select> <input type="submit" value="Aller" class="liteoption" name="submit" /></span></td>
  2316.             </form></tr>
  2317.         </table></td>
  2318.     </tr>
  2319. </table>
  2320.  
  2321. <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
  2322.   <tr>
  2323.     <td align="left" valign="middle" nowrap="nowrap"><span class="nav"><a href="posting.php?mode=newtopic&f=13"><img src="templates/subSilver/images/lang_french/post.gif" border="0" alt="Poster un nouveau sujet" align="middle" /></a>   <a href="posting.php?mode=reply&t=123"><img src="templates/subSilver/images/lang_french/reply.gif" border="0" alt="RΘpondre au sujet" align="middle" /></a></span></td>
  2324.     <td align="left" valign="middle" width="100%"><span class="nav">   <a href="index.php" class="nav"> Index du Forum</a>
  2325.       -> <a href="viewforum.php?f=13" class="nav">PROTECTION MALEFIQUE</a></span></td>
  2326.     <td align="right" valign="top" nowrap="nowrap"><span class="gensmall">Toutes les heures sont au format GMT + 1 Heure</span><br /><span class="nav"></span>
  2327.       </td>
  2328.   </tr>
  2329.   <tr>
  2330.     <td align="left" colspan="3"><span class="nav">Page <b>1</b> sur <b>1</b></span></td>
  2331.   </tr>
  2332. </table>
  2333.  
  2334. <table width="100%" cellspacing="2" border="0" align="center">
  2335.   <tr>
  2336.     <td width="40%" valign="top" nowrap="nowrap" align="left"><span class="gensmall"></span><br />
  2337.        <br />
  2338.       </td>
  2339.     <td align="right" valign="top" nowrap="nowrap">
  2340. <form method="get" name="jumpbox" action="viewforum.php" onSubmit="if(document.jumpbox.f.value == -1){return false;}"><table cellspacing="0" cellpadding="0" border="0">
  2341.     <tr>
  2342.         <td nowrap="nowrap"><span class="gensmall">Sauter vers: <select name="f" onchange="if(this.options[this.selectedIndex].value != -1){ forms['jumpbox'].submit() }"><option value="-1">SΘlectionner un forum</option><option value="-1"> </option><option value="-1">GENERALITES</option><option value="-1">----------------</option><option value="1">REGLES DE BASE DU FORUM</option><option value="2">PRESENTATION DES MEMBRES</option><option value="3">FAQ</option><option value="24">LES VENDEURS DE Q et assimilΘs...</option><option value="-1"> </option><option value="-1">La ligne des APPLE II</option><option value="-1">----------------</option><option value="4">APPLE II et II+</option><option value="5">APPLE IIe</option><option value="6">APPLE IIc et IIc Plus</option><option value="7">APPLE IIGS</option><option value="8">ITT2020</option><option value="9">BELL & HOWELL</option><option value="-1"> </option><option value="-1">ON AIME AUSSI...</option><option value="-1">----------------</option><option value="25">APPLE I</option><option value="10">APPLE /// et ///Plus</option><option value="11">LISA 1,  2, 2/5,  2/10 et ... XL</option><option value="-1"> </option><option value="-1">LOGICIELS</option><option value="-1">----------------</option><option value="12">PROBLEMES DIVERS</option><option value="13"selected="selected">PROTECTION MALEFIQUE</option><option value="23">EMULATION</option><option value="-1"> </option><option value="-1">LES CARTES ET PERIPHERIQUES</option><option value="-1">----------------</option><option value="14">CARTES COPROCESSEUR</option><option value="15">CARTES MEMOIRE</option><option value="16">CARTES POUR DISQUES</option><option value="17">AUTRES CARTES</option><option value="18">PERIPHERIQUES</option><option value="-1"> </option><option value="-1">EN VRAC ET DIVERS</option><option value="-1">----------------</option><option value="19">Recherches techniques (hard ou soft)</option><option value="20">ACHATS,VENTES ET/OU ECHANGES</option><option value="21">DIVERS...MAIS TOUJOURS EN RELATION AVEC APPLE!</option><option value="22">LES PETITS MAUDITS A EVITER</option></select><input type="hidden" name="sid" value="88dc291636b558c274916ca04b217a32" /> <input type="submit" value="Aller" class="liteoption" /></span></td>
  2343.     </tr>
  2344. </table></form>
  2345.  
  2346. <span class="gensmall">Vous <b>ne pouvez pas</b> poster de nouveaux sujets dans ce forum<br />Vous <b>ne pouvez pas</b> rΘpondre aux sujets dans ce forum<br />Vous <b>ne pouvez pas</b> Θditer vos messages dans ce forum<br />Vous <b>ne pouvez pas</b> supprimer vos messages dans ce forum<br />Vous <b>ne pouvez pas</b> voter dans les sondages de ce forum<br /></span></td>
  2347.   </tr>
  2348. </table>
  2349.  
  2350.  
  2351. <div align="center"><span class="copyright"><br /><br />
  2352. <!--
  2353.     We request you retain the full copyright notice below including the link to www.phpbb.com.
  2354.     This not only gives respect to the large amount of time given freely by the developers
  2355.     but also helps build interest, traffic and use of phpBB 2.0. If you cannot (for good
  2356.     reason) retain the full copyright we request you at least leave in place the
  2357.     Powered by phpBB line, with phpBB linked to www.phpbb.com. If you refuse
  2358.     to include even this then support on our forums may be affected.
  2359.  
  2360.     The phpBB Group : 2002
  2361. // -->
  2362. Powered by <a href="http://www.phpbb.com/" target="_phpbb" class="copyright">phpBB</a> © 2001, 2005 phpBB Group<br />Traduction par : <a href="http://www.phpbb-fr.com/" target="_blank" class="copyright">phpBB-fr.com</a></span></div>
  2363.         </td>
  2364.     </tr>
  2365. </table>
  2366.  
  2367. </body>
  2368. </html>
  2369.  
  2370.