home *** CD-ROM | disk | FTP | other *** search
/ hackzapple.com / www.hackzapple.com.tar / www.hackzapple.com / phpBB2 / viewtopic.php?t=85.orig < prev    next >
Text File  |  2010-10-06  |  80KB  |  2,625 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=85&view=previous" title="Voir le sujet prΘcΘdent" />
  12. <link rel="next" href="viewtopic.php?t=85&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 - Mac Arthur's war (SSG, 1988)</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=85&start=0&postdays=0&postorder=asc&highlight=">Mac Arthur's war (SSG, 1988)</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=85"><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=85&view=previous" class="nav">Voir le sujet prΘcΘdent</a> :: <a href="viewtopic.php?t=85&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="286"></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=286#286"><img src="templates/subSilver/images/icon_minipost.gif" width="12" height="9" alt="Message" title="Message" border="0" /></a><span class="postdetails">PostΘ le: Ven 31 Ao√ 2007, 9:21<span class="gen"> </span>   Sujet du message: Mac Arthur's war (SSG, 1988)</span></td>
  310.                 <td valign="top" nowrap="nowrap"><a href="posting.php?mode=quote&p=286"><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">A typical wargame from SSG. I lack the documentation, giving more information would be difficult...
  317. <br />
  318.  
  319. <br />
  320. All I can say is that it was an easy crack but the hardest to update to make it bootable and playable due to the use of the complete memory of the Apple II.
  321. <br />
  322.  
  323. <br />
  324.  
  325. <br />
  326. <span style="font-weight: bold">PROTECTION TYPE</span>
  327. <br />
  328. It is nothing but a ten sectors per track disk. Each sector is 4*4 coded. The advantage of using 4*4 coded nibbles is that it does not require any ram space to decode nibbles into bytes.
  329. <br />
  330.  
  331. <br />
  332.  
  333. <br />
  334. <span style="font-weight: bold">BOOT TRACE</span>
  335. <br />
  336. - 9600<C600.C6FFM
  337. <br />
  338. - 96FB: AD E8 C0 60
  339. <br />
  340. - 9600G
  341. <br />
  342. The code we get at $0800 loads data from $1000 to $10FF
  343. <br />
  344. - 96FB: A9 59 8D 8D 08 A9 FF 8D 8E 08 4C 01 08
  345. <br />
  346. - 9600G
  347. <br />
  348. The code at $1000 loads data from $BD00 to $BFFF. It sets a JMP $BD00 at $03D0 and then jumps to $BD00. That is the entry point of the RWTS. Let's detail it...
  349. <br />
  350.  
  351. <br />
  352.  
  353. <br />
  354. <span style="font-weight: bold">THE RWTS</span>
  355. <br />
  356. $BD00: the entry point. It uses ZP values from $00 to $05.
  357. <br />
  358. $BDDC: boing! The error management routine.
  359. <br />
  360. $BDEB: read marker data
  361. <br />
  362. $BE4C: move the arm.
  363. <br />
  364. $BE8A: read sector
  365. <br />
  366. $BF00: write sector
  367. <br />
  368.  
  369. <br />
  370. The zero page values:
  371. <br />
  372. $00: high-byte start address (eg. $BA for $BA00)
  373. <br />
  374. $01: high-byte end address (eg. $BC for $BCFF)
  375. <br />
  376. $02: not used, always $00
  377. <br />
  378. $03: command ($1: read, $2: write)
  379. <br />
  380. $04: track
  381. <br />
  382. $05: sector
  383. <br />
  384.  
  385. <br />
  386. A simple example:
  387. <br />
  388. - loading data from $2000 to $3FFF from track 2, sector 0:
  389. <br />
  390. - put these values at $00: 20 3F 00 01 02 00
  391. <br />
  392. - perform a JSR or a JMP to $BD00
  393. <br />
  394.  
  395. <br />
  396.  
  397. <br />
  398. <span style="font-weight: bold">DISK COPY</span>
  399. <br />
  400. As you can see, reading the disk is an easy task. Please note that track 0 contains NINE sectors only, not ten. Perform the read manually:
  401. <br />
  402. - $00: 10 18 00 01 00 00
  403. <br />
  404. - BD00G
  405. <br />
  406. - save data from $1000 to $18FF on your second disk drive
  407. <br />
  408.  
  409. <br />
  410. Transform the following pseudo-code in assembly and run it to get the remaining tracks.
  411. <br />
  412.  
  413. <br />
  414. </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">
  415. <br />
  416. FOR track=$1 to track=$22
  417. <br />
  418. .FOR sector=$0 to sector=$9
  419. <br />
  420. ..set the right parameters on ZP: $10 19 00 01 TT SS
  421. <br />
  422. ..load data from $1000 to $19FF
  423. <br />
  424. ..save it on your second disk drive
  425. <br />
  426. .end FOR
  427. <br />
  428. end FOR
  429. <br />
  430. </td>    </tr></table><span class="postbody">
  431. <br />
  432.  
  433. <br />
  434. Perform the same operations on side B !
  435. <br />
  436.  
  437. <br />
  438. You now have a copiable diskette that will not boot: all disk routines must be rewritten.
  439. <br />
  440.  
  441. <br />
  442.  
  443. <br />
  444. <span style="font-weight: bold">DISK STRUCTURE</span>
  445. <br />
  446. First of all, we need to know what is where on the disk:
  447. <br />
  448. - T0/S0: first sector is a standard 6*2 sector (required to boot)
  449. <br />
  450. All other sectors are non standard sectors and are 4*4 coded.
  451. <br />
  452. - T0/S0: corresponds to T0/S1 on the non-protected disk, it contains the side info string: MCAWx4 (x=1 or 2 depending on the side)
  453. <br />
  454. - T0/S1 to T22/S9 are 4*4 nibbles.
  455. <br />
  456.  
  457. <br />
  458.  
  459. <br />
  460. <span style="font-weight: bold">MEMORY ORGANIZATION</span>
  461. <br />
  462. We then need to know what is where:
  463. <br />
  464. $0000..$00FF: Zero page
  465. <br />
  466. $0100..$01FF: Stack
  467. <br />
  468. $0200..$02FF: non-standard track 0, sector 0 is loaded there. Needed to know which side we are on.
  469. <br />
  470. $0300..$03FF: program variables
  471. <br />
  472. $0400..$3FFF: program
  473. <br />
  474. $4000..$5FFF: HGR2
  475. <br />
  476. $6000..$BFFF: program
  477. <br />
  478. $D000..$FFFF: program
  479. <br />
  480. As you can see, we have no room on the Apple II memory to load our nibbles and decode them to RAM.
  481. <br />
  482. We will use the $0280..$02FF area and take that into account to update the side check routines.
  483. <br />
  484.  
  485. <br />
  486.  
  487. <br />
  488. <span style="font-weight: bold">REWRITING THE DISK ROUTINES</span>
  489. <br />
  490. Rewriting the read and arm move routines is easy, changing the write routine is quite difficult.
  491. <br />
  492. We have no room in RAM to transform bytes into nibbles. So that, I have decided not to include the write routine. It will come later on.
  493. <br />
  494. I will add another entry in that thread with the source code of the new RWTS.
  495. <br />
  496.  
  497. <br />
  498.  
  499. <br />
  500. <span style="font-weight: bold">UPDATING THE SIDE CHECK ROUTINES</span>
  501. <br />
  502. Now that the routines have been updated, we need to update the side check routines:
  503. <br />
  504. - the program loads T0/S0 of both sides at $0200 and checks the value of $0204 ($B1 or $B2)
  505. <br />
  506. - the program checks the value of the byte following the side string. If it does not find "4", it hangs.
  507. <br />
  508.  
  509. <br />
  510. As our new T0/S0 is our boot code, we need to tell the program to load another sector of the disk where the side info is.
  511. <br />
  512. The one I have used is T0/S9. Another issue is that the sector is loaded at $0200 and our denibblizing data is at $0280 leading to a conflict.
  513. <br />
  514. I have but found values for which the side is correctly checked.
  515. <br />
  516.  
  517. <br />
  518. <span style="font-style: italic">Setting the side info</span>
  519. <br />
  520. - on side 1, load T0/S9, fill it entirely with $11 values and save it back to disk
  521. <br />
  522. - on side 2, load T0/S9, fill it entirely with $22 values and save it back to disk
  523. <br />
  524.  
  525. <br />
  526. <span style="font-style: italic">Updating the side check routine (side 1 only)</span>
  527. <br />
  528. - T2/S3/12: 02 02 00 01 00 00 => 02 02 00 01 00 09
  529. <br />
  530. - T2/S3/00: D0 0A CA D0 F5 AD 04 02 29 0F 85 0A 60 => D0 00 CA D0 F5 AD 80 02 29 0F 85 0A 60
  531. <br />
  532.  
  533. <br />
  534. <span style="font-style: italic">Removing the check routine</span>
  535. <br />
  536. - TA/S0/AF: 02 02 00 01 00 00 => 02 02 00 01 00 09
  537. <br />
  538. - TA/S0/C2: AD 05 02 C9 04 D0 02 18 24 38 60 => AD 05 02 C9 04 D0 00 18 24 38 60
  539. <br />
  540.  
  541. <br />
  542.  
  543. <br />
  544. Pffffff... End of part 1, enjoy!
  545. <br />
  546.  
  547. <br />
  548. Toinet</span><span class="gensmall"><br /><br />DerniΦre Θdition par toinet le Ven 31 Ao√ 2007, 11:30; ΘditΘ 1 fois</span></td>
  549.             </tr>
  550.         </table></td>
  551.     </tr>
  552.     <tr>
  553.         <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>
  554.         <td class="row1" width="100%" height="28" valign="bottom" nowrap="nowrap"><table cellspacing="0" cellpadding="0" border="0" height="18" width="18">
  555.             <tr>
  556.                 <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"><!--
  557.  
  558.     if ( navigator.userAgent.toLowerCase().indexOf('mozilla') != -1 && navigator.userAgent.indexOf('5.') == -1 && navigator.userAgent.indexOf('6.') == -1 )
  559.         document.write(' ');
  560.     else
  561.         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>');
  562.  
  563.                 //--></script><noscript></noscript></td>
  564.             </tr>
  565.         </table></td>
  566.     </tr>
  567.     <tr>
  568.         <td class="spaceRow" colspan="2" height="1"><img src="templates/subSilver/images/spacer.gif" alt="" width="1" height="1" /></td>
  569.     </tr>
  570.     <tr>
  571.         <td width="150" align="left" valign="top" class="row2"><span class="name"><a name="287"></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>
  572.         <td class="row2" width="100%" height="28" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  573.             <tr>
  574.                 <td width="100%"><a href="viewtopic.php?p=287#287"><img src="templates/subSilver/images/icon_minipost.gif" width="12" height="9" alt="Message" title="Message" border="0" /></a><span class="postdetails">PostΘ le: Ven 31 Ao√ 2007, 9:22<span class="gen"> </span>   Sujet du message: </span></td>
  575.                 <td valign="top" nowrap="nowrap"><a href="posting.php?mode=quote&p=287"><img src="templates/subSilver/images/lang_french/icon_quote.gif" alt="RΘpondre en citant" title="RΘpondre en citant" border="0" /></a>   </td>
  576.             </tr>
  577.             <tr>
  578.                 <td colspan="2"><hr /></td>
  579.             </tr>
  580.             <tr>
  581.                 <td colspan="2"><span class="postbody">And now, the code of the original RWTS:
  582. <br />
  583.  
  584. <br />
  585. </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">
  586. <br />
  587. *
  588. <br />
  589. * SSG: MacArthur's war
  590. <br />
  591. *
  592. <br />
  593. * Original source code, LoGo 2007
  594. <br />
  595. *
  596. <br />
  597.  
  598. <br />
  599.          ORG   $00BD00
  600. <br />
  601.          MX    %11
  602. <br />
  603.          LST   OFF
  604. <br />
  605.  
  606. <br />
  607. *
  608. <br />
  609. * EQUATES
  610. <br />
  611. *
  612. <br />
  613.  
  614. <br />
  615. RWTS_BUF_LOW = $00
  616. <br />
  617. RWTS_BUF_HIGH = $01
  618. <br />
  619. RWTS_COMMAND = $03
  620. <br />
  621. RWTS_TRACK =   $04
  622. <br />
  623. RWTS_SECTOR =  $05
  624. <br />
  625. RWTS_TRIES1 =  $06
  626. <br />
  627. RWTS_TRIES2 =  $07
  628. <br />
  629.  
  630. <br />
  631. SECTOR_READ =  $2D
  632. <br />
  633. TRACK_READ =   $2E
  634. <br />
  635.  
  636. <br />
  637. MAX_SECTOR =   $0A
  638. <br />
  639. MAX_TRACK =    $23
  640. <br />
  641.  
  642. <br />
  643. COMMAND_READ = $01
  644. <br />
  645. COMMAND_WRITE = $02
  646. <br />
  647.  
  648. <br />
  649. CURRENT_SLOT = $03D3
  650. <br />
  651. CURRENT_DRIVE = $03D4
  652. <br />
  653.  
  654. <br />
  655. *
  656. <br />
  657.  
  658. <br />
  659. SPKR     EQU   $C030
  660. <br />
  661.  
  662. <br />
  663. *
  664. <br />
  665. * RWTS
  666. <br />
  667. *
  668. <br />
  669.  
  670. <br />
  671. LBD00    CLD
  672. <br />
  673.          JMP   LBD05
  674. <br />
  675.  
  676. <br />
  677. RWTS_PHASE DB  $00
  678. <br />
  679.  
  680. <br />
  681. LBD05    LDA   RWTS_BUF_LOW
  682. <br />
  683.          STA   LBF39+2
  684. <br />
  685.          STA   LBF57+2
  686. <br />
  687.          STA   LBECB+2
  688. <br />
  689.          SEC
  690. <br />
  691.          SBC   RWTS_BUF_HIGH
  692. <br />
  693.          BEQ   LBD1A
  694. <br />
  695.          BCC   LBD1A
  696. <br />
  697.          JMP   EXIT_ERR   ; LOW must be < HIGH
  698. <br />
  699.  
  700. <br />
  701. LBD1A    LDX   CURRENT_SLOT ; SLOT * 16
  702. <br />
  703.          LDA   CURRENT_DRIVE ; DRIVE
  704. <br />
  705.          LSR
  706. <br />
  707.          BCS   LBD28
  708. <br />
  709.          LDA   $C08B,X    ; drive 2
  710. <br />
  711.          BCC   LBD2B
  712. <br />
  713. LBD28    LDA   $C08A,X    ; drive 1
  714. <br />
  715.  
  716. <br />
  717. LBD2B    LDA   $C089,X    ; turn drive on
  718. <br />
  719.  
  720. <br />
  721.          LDA   RWTS_COMMAND
  722. <br />
  723.          CMP   #COMMAND_READ
  724. <br />
  725.          BEQ   LBD3C
  726. <br />
  727.  
  728. <br />
  729.          LDY   #$03
  730. <br />
  731. LBD36    JSR   WAIT
  732. <br />
  733.          DEY
  734. <br />
  735.          BPL   LBD36
  736. <br />
  737.  
  738. <br />
  739. *
  740. <br />
  741. * ARE WE ON THE RIGHT TRACK AND SECTOR ?
  742. <br />
  743. *
  744. <br />
  745.  
  746. <br />
  747. LBD3C    LDA   #$05
  748. <br />
  749.          STA   RWTS_TRIES2
  750. <br />
  751.  
  752. <br />
  753. LBD40    LDA   #$30
  754. <br />
  755.          STA   RWTS_TRIES1
  756. <br />
  757.  
  758. <br />
  759. LBD44    JSR   READ_ADDRESS
  760. <br />
  761.          BCC   LBD61
  762. <br />
  763.          DEC   RWTS_TRIES1
  764. <br />
  765.          BPL   LBD44
  766. <br />
  767.          LDA   #$16
  768. <br />
  769.          STA   RWTS_PHASE
  770. <br />
  771.          LDA   #$00
  772. <br />
  773.          DEC   RWTS_TRIES2
  774. <br />
  775.          BNE   LBD5B
  776. <br />
  777.          JMP   EXIT_ERR
  778. <br />
  779.  
  780. <br />
  781. LBD5B    JSR   MOVE_ARM
  782. <br />
  783.          JMP   LBD40
  784. <br />
  785.  
  786. <br />
  787. * ADDRESS FIELD FOUND
  788. <br />
  789.  
  790. <br />
  791. LBD61    LDA   TRACK_READ ; are we on the right track ?
  792. <br />
  793.          CMP   RWTS_TRACK
  794. <br />
  795.          BEQ   LBD82
  796. <br />
  797.  
  798. <br />
  799.          LDA   $C080,X    ; nope! move
  800. <br />
  801.          LDA   $C082,X
  802. <br />
  803.          LDA   $C084,X
  804. <br />
  805.          LDA   $C086,X
  806. <br />
  807.          LDA   TRACK_READ
  808. <br />
  809.          ASL
  810. <br />
  811.          STA   RWTS_PHASE
  812. <br />
  813.          LDA   RWTS_TRACK
  814. <br />
  815.          ASL
  816. <br />
  817.          JSR   MOVE_ARM
  818. <br />
  819.          JMP   LBD44
  820. <br />
  821.  
  822. <br />
  823. * WE ARE ON THE RIGHT TRACK
  824. <br />
  825.  
  826. <br />
  827. LBD82    LDA   RWTS_SECTOR
  828. <br />
  829.          CMP   SECTOR_READ
  830. <br />
  831.          BEQ   LBD93
  832. <br />
  833.          DEC   RWTS_TRIES1
  834. <br />
  835.          BPL   LBD44
  836. <br />
  837.          DEC   RWTS_TRIES2
  838. <br />
  839.          BNE   LBD40
  840. <br />
  841.          JMP   EXIT_ERR
  842. <br />
  843.  
  844. <br />
  845. * WE ARE WELL-PLACED
  846. <br />
  847.  
  848. <br />
  849. LBD93    LDA   RWTS_COMMAND
  850. <br />
  851.          CMP   #COMMAND_WRITE
  852. <br />
  853.          BEQ   LBDA5
  854. <br />
  855.  
  856. <br />
  857.          JSR   READ_SECTOR
  858. <br />
  859.          BCC   LBDA8
  860. <br />
  861.          DEC   RWTS_TRIES1
  862. <br />
  863.          BMI   EXIT_ERR
  864. <br />
  865.          JMP   LBD44
  866. <br />
  867.  
  868. <br />
  869. LBDA5    JSR   WRITE_SECTOR
  870. <br />
  871.  
  872. <br />
  873. * LOOP UNTIL WE REACH THE END!
  874. <br />
  875.  
  876. <br />
  877. LBDA8    LDA   RWTS_BUF_LOW ; next page
  878. <br />
  879.          CMP   RWTS_BUF_HIGH
  880. <br />
  881.          BEQ   EXIT
  882. <br />
  883.          CLC
  884. <br />
  885.          ADC   #$01
  886. <br />
  887.          STA   RWTS_BUF_LOW
  888. <br />
  889.          STA   LBF39+2
  890. <br />
  891.          STA   LBF57+2
  892. <br />
  893.          STA   LBECB+2
  894. <br />
  895.  
  896. <br />
  897.          INC   RWTS_SECTOR ; next sector
  898. <br />
  899.          LDA   RWTS_SECTOR
  900. <br />
  901.          CMP   #MAX_SECTOR
  902. <br />
  903.          BEQ   LBDC7
  904. <br />
  905.          JMP   LBD3C
  906. <br />
  907.  
  908. <br />
  909. LBDC7    LDA   #$00       ; next track
  910. <br />
  911.          STA   RWTS_SECTOR
  912. <br />
  913.          LDA   RWTS_TRACK
  914. <br />
  915.          ASL
  916. <br />
  917.          STA   RWTS_PHASE
  918. <br />
  919.          INC   RWTS_TRACK
  920. <br />
  921.          LDA   RWTS_TRACK
  922. <br />
  923.          ASL
  924. <br />
  925.          JSR   MOVE_ARM
  926. <br />
  927.          JMP   LBD3C
  928. <br />
  929.  
  930. <br />
  931. *
  932. <br />
  933. *
  934. <br />
  935. *
  936. <br />
  937.  
  938. <br />
  939. EXIT_ERR JSR   BOING
  940. <br />
  941.  
  942. <br />
  943. EXIT     STA   $C08E,X
  944. <br />
  945.          CMP   $C08C,X
  946. <br />
  947.          LDA   $C088,X
  948. <br />
  949.          RTS
  950. <br />
  951.  
  952. <br />
  953. *
  954. <br />
  955. *
  956. <br />
  957. *
  958. <br />
  959.  
  960. <br />
  961. LBDE9    SEC
  962. <br />
  963.          RTS
  964. <br />
  965.  
  966. <br />
  967. READ_ADDRESS LDY #$F8
  968. <br />
  969.          STY   $26
  970. <br />
  971. LBDEF    INY
  972. <br />
  973.          BNE   LBDF6
  974. <br />
  975.          INC   $26
  976. <br />
  977.          BEQ   LBDE9
  978. <br />
  979. LBDF6    LDA   $C08C,X
  980. <br />
  981.          BPL   LBDF6
  982. <br />
  983. LBDFB    CMP   #$D5
  984. <br />
  985.          BNE   LBDEF
  986. <br />
  987.          NOP
  988. <br />
  989. LBE00    LDA   $C08C,X
  990. <br />
  991.          BPL   LBE00
  992. <br />
  993.          CMP   #$AA
  994. <br />
  995.          BNE   LBDFB
  996. <br />
  997.          LDY   #$03
  998. <br />
  999. LBE0B    LDA   $C08C,X
  1000. <br />
  1001.          BPL   LBE0B
  1002. <br />
  1003.          CMP   #$B5
  1004. <br />
  1005.          BNE   LBDFB
  1006. <br />
  1007.          LDA   #$00
  1008. <br />
  1009. LBE16    STA   $27
  1010. <br />
  1011. LBE18    LDA   $C08C,X
  1012. <br />
  1013.          BPL   LBE18
  1014. <br />
  1015.          ROL
  1016. <br />
  1017.          STA   $26
  1018. <br />
  1019. LBE20    LDA   $C08C,X
  1020. <br />
  1021.          BPL   LBE20
  1022. <br />
  1023.          AND   $26
  1024. <br />
  1025.          STA   |$002C,Y
  1026. <br />
  1027.          EOR   $27
  1028. <br />
  1029.          DEY
  1030. <br />
  1031.          BPL   LBE16
  1032. <br />
  1033.          TAY
  1034. <br />
  1035.          BNE   LBDE9
  1036. <br />
  1037. LBE32    LDA   $C08C,X
  1038. <br />
  1039.          BPL   LBE32
  1040. <br />
  1041.          CMP   #$DE
  1042. <br />
  1043.          BNE   LBDE9
  1044. <br />
  1045.          NOP
  1046. <br />
  1047. LBE3C    LDA   $C08C,X
  1048. <br />
  1049.          BPL   LBE3C
  1050. <br />
  1051.          CMP   #$AA
  1052. <br />
  1053.          BNE   LBDE9
  1054. <br />
  1055.          CLC
  1056. <br />
  1057.          RTS
  1058. <br />
  1059.  
  1060. <br />
  1061. *
  1062. <br />
  1063. *
  1064. <br />
  1065. *
  1066. <br />
  1067.  
  1068. <br />
  1069. MOVE_WAIT LDA  #$28
  1070. <br />
  1071.          JMP   WAIT
  1072. <br />
  1073.  
  1074. <br />
  1075. MOVE_ARM STA   $2A
  1076. <br />
  1077. LBE4E    LDA   RWTS_PHASE
  1078. <br />
  1079.          STA   $27
  1080. <br />
  1081.          SEC
  1082. <br />
  1083.          SBC   $2A
  1084. <br />
  1085.          BEQ   LBE79
  1086. <br />
  1087.          BCS   LBE5F
  1088. <br />
  1089.          INC   RWTS_PHASE
  1090. <br />
  1091.          BCC   LBE62
  1092. <br />
  1093. LBE5F    DEC   RWTS_PHASE
  1094. <br />
  1095. LBE62    JSR   LBE7C
  1096. <br />
  1097.          JSR   MOVE_WAIT
  1098. <br />
  1099.          LDA   $27
  1100. <br />
  1101.          AND   #$03
  1102. <br />
  1103.          ASL
  1104. <br />
  1105.          ORA   CURRENT_SLOT
  1106. <br />
  1107.          TAY
  1108. <br />
  1109.          LDA   $C080,Y
  1110. <br />
  1111.          JSR   MOVE_WAIT
  1112. <br />
  1113.          BEQ   LBE4E
  1114. <br />
  1115. LBE79    JSR   MOVE_WAIT
  1116. <br />
  1117. LBE7C    LDA   RWTS_PHASE
  1118. <br />
  1119.          AND   #$03
  1120. <br />
  1121.          ASL
  1122. <br />
  1123.          ORA   CURRENT_SLOT
  1124. <br />
  1125.          TAY
  1126. <br />
  1127.          LDA   $C081,Y
  1128. <br />
  1129.          RTS
  1130. <br />
  1131.  
  1132. <br />
  1133. *
  1134. <br />
  1135. *
  1136. <br />
  1137. *
  1138. <br />
  1139.  
  1140. <br />
  1141. READ_SECTOR LDY #$20
  1142. <br />
  1143. LBE8C    DEY
  1144. <br />
  1145.          BEQ   LBEFC
  1146. <br />
  1147. LBE8F    LDA   $C08C,X
  1148. <br />
  1149.          BPL   LBE8F
  1150. <br />
  1151.          NOP
  1152. <br />
  1153. LBE95    EOR   #$D5
  1154. <br />
  1155.          BNE   LBE8C
  1156. <br />
  1157.          NOP
  1158. <br />
  1159. LBE9A    LDA   $C08C,X
  1160. <br />
  1161.          BPL   LBE9A
  1162. <br />
  1163.          CMP   #$AA
  1164. <br />
  1165.          BNE   LBE95
  1166. <br />
  1167.          LDY   #$9A
  1168. <br />
  1169. LBEA5    LDA   $C08C,X
  1170. <br />
  1171.          BPL   LBEA5
  1172. <br />
  1173.          CMP   #$AD
  1174. <br />
  1175.          BNE   LBE95
  1176. <br />
  1177.          LDY   #$00
  1178. <br />
  1179.          LDA   #$00
  1180. <br />
  1181.          STA   $47
  1182. <br />
  1183. LBEB4    LDA   $C08C,X
  1184. <br />
  1185.          BPL   LBEB4
  1186. <br />
  1187.          AND   #$55
  1188. <br />
  1189.          ASL
  1190. <br />
  1191.          STA   $46
  1192. <br />
  1193. LBEBE    LDA   $C08C,X
  1194. <br />
  1195.          BPL   LBEBE
  1196. <br />
  1197.          AND   #$55
  1198. <br />
  1199.          ORA   $46
  1200. <br />
  1201.          EOR   $47
  1202. <br />
  1203.          STA   $47
  1204. <br />
  1205. LBECB    STA   $6F00,Y
  1206. <br />
  1207.          INY
  1208. <br />
  1209.          BNE   LBEB4
  1210. <br />
  1211. LBED1    LDA   $C08C,X
  1212. <br />
  1213.          BPL   LBED1
  1214. <br />
  1215.          AND   #$55
  1216. <br />
  1217.          ASL
  1218. <br />
  1219.          STA   $46
  1220. <br />
  1221. LBEDB    LDA   $C08C,X
  1222. <br />
  1223.          BPL   LBEDB
  1224. <br />
  1225.          AND   #$55
  1226. <br />
  1227.          ORA   $46
  1228. <br />
  1229.          EOR   $47
  1230. <br />
  1231.          BNE   LBEFC
  1232. <br />
  1233. LBEE8    LDA   $C08C,X
  1234. <br />
  1235.          BPL   LBEE8
  1236. <br />
  1237.          CMP   #$DE
  1238. <br />
  1239.          BNE   LBEFC
  1240. <br />
  1241. LBEF1    LDA   $C08C,X
  1242. <br />
  1243.          BPL   LBEF1
  1244. <br />
  1245.          CMP   #$AA
  1246. <br />
  1247.          BNE   LBEFC
  1248. <br />
  1249.          CLC
  1250. <br />
  1251.          RTS
  1252. <br />
  1253. LBEFC    SEC
  1254. <br />
  1255.          RTS
  1256. <br />
  1257. LBEFE    CLC
  1258. <br />
  1259.          RTS
  1260. <br />
  1261.  
  1262. <br />
  1263. *
  1264. <br />
  1265. *
  1266. <br />
  1267. *
  1268. <br />
  1269.  
  1270. <br />
  1271. WRITE_SECTOR SEC
  1272. <br />
  1273.          LDA   $C08D,X
  1274. <br />
  1275.          LDA   $C08E,X
  1276. <br />
  1277.          BMI   LBEFE
  1278. <br />
  1279.          STX   $27
  1280. <br />
  1281.          BIT   $0300
  1282. <br />
  1283.          PHA
  1284. <br />
  1285.          PLA
  1286. <br />
  1287.          LDA   #$FF
  1288. <br />
  1289.          STA   $C08F,X
  1290. <br />
  1291.          ORA   $C08C,X
  1292. <br />
  1293.          PHA
  1294. <br />
  1295.          PLA
  1296. <br />
  1297.          NOP
  1298. <br />
  1299.          LDY   #$0A
  1300. <br />
  1301. LBF1D    ORA   $26
  1302. <br />
  1303.          JSR   LBF93
  1304. <br />
  1305.          DEY
  1306. <br />
  1307.          BNE   LBF1D
  1308. <br />
  1309.          LDA   #$D5
  1310. <br />
  1311.          JSR   WRITE_NIBBLE
  1312. <br />
  1313.          LDA   #$AA
  1314. <br />
  1315.          JSR   WRITE_NIBBLE
  1316. <br />
  1317.          LDA   #$AD
  1318. <br />
  1319.          JSR   WRITE_NIBBLE
  1320. <br />
  1321.          CMP   ($00,X)
  1322. <br />
  1323.          TYA
  1324. <br />
  1325.          LDY   #$00
  1326. <br />
  1327. LBF39    EOR   $6F00,Y
  1328. <br />
  1329.          PHA
  1330. <br />
  1331.          LSR
  1332. <br />
  1333.          ORA   #$AA
  1334. <br />
  1335.          STA   $C08D,X
  1336. <br />
  1337.          CMP   $C08C,X
  1338. <br />
  1339.          PHA
  1340. <br />
  1341.          CMP   ($00,X)
  1342. <br />
  1343.          PLA
  1344. <br />
  1345.          PLA
  1346. <br />
  1347.          NOP
  1348. <br />
  1349.          NOP
  1350. <br />
  1351.          ORA   #$AA
  1352. <br />
  1353.          STA   $C08D,X
  1354. <br />
  1355.          CMP   $C08C,X
  1356. <br />
  1357.          BIT   $26
  1358. <br />
  1359. LBF57    LDA   $6F00,Y
  1360. <br />
  1361.          INY
  1362. <br />
  1363.          BNE   LBF39
  1364. <br />
  1365.          PHA
  1366. <br />
  1367.          LSR
  1368. <br />
  1369.          ORA   #$AA
  1370. <br />
  1371.          BIT   $26
  1372. <br />
  1373.          NOP
  1374. <br />
  1375.          STA   $C08D,X
  1376. <br />
  1377.          CMP   $C08C,X
  1378. <br />
  1379.          PHA
  1380. <br />
  1381.          CMP   ($00,X)
  1382. <br />
  1383.          PLA
  1384. <br />
  1385.          PLA
  1386. <br />
  1387.          NOP
  1388. <br />
  1389.          NOP
  1390. <br />
  1391.          ORA   #$AA
  1392. <br />
  1393.          STA   $C08D,X
  1394. <br />
  1395.          CMP   $C08C,X
  1396. <br />
  1397.          CMP   ($00,X)
  1398. <br />
  1399.          LDA   #$DE
  1400. <br />
  1401.          JSR   WRITE_NIBBLE
  1402. <br />
  1403.          LDA   #$AA
  1404. <br />
  1405.          JSR   WRITE_NIBBLE
  1406. <br />
  1407.          LDA   #$EB
  1408. <br />
  1409.          JSR   WRITE_NIBBLE
  1410. <br />
  1411.          LDA   $C08E,X
  1412. <br />
  1413.          LDA   $C08C,X
  1414. <br />
  1415.          SEC
  1416. <br />
  1417.          RTS
  1418. <br />
  1419.  
  1420. <br />
  1421. WRITE_NIBBLE CLC
  1422. <br />
  1423. LBF93    PHA
  1424. <br />
  1425.          PLA
  1426. <br />
  1427.          STA   $C08D,X
  1428. <br />
  1429.          ORA   $C08C,X
  1430. <br />
  1431.          RTS
  1432. <br />
  1433.  
  1434. <br />
  1435. *
  1436. <br />
  1437. *
  1438. <br />
  1439. *
  1440. <br />
  1441.  
  1442. <br />
  1443. WAIT     SEC
  1444. <br />
  1445. LBF9D    PHA
  1446. <br />
  1447. LBF9E    SBC   #$01
  1448. <br />
  1449.          BNE   LBF9E
  1450. <br />
  1451.          PLA
  1452. <br />
  1453.          SBC   #$01
  1454. <br />
  1455.          BNE   LBF9D
  1456. <br />
  1457.          RTS
  1458. <br />
  1459.  
  1460. <br />
  1461. *
  1462. <br />
  1463. *
  1464. <br />
  1465. *
  1466. <br />
  1467.  
  1468. <br />
  1469. BOING    LDA   #$40
  1470. <br />
  1471.          STA   LBFCB
  1472. <br />
  1473. LBFAD    DEC   LBFCC
  1474. <br />
  1475.          BNE   LBFAD
  1476. <br />
  1477.          LDA   LBFCB
  1478. <br />
  1479.          LSR
  1480. <br />
  1481.          BCC   LBFBB
  1482. <br />
  1483.          LDA   SPKR
  1484. <br />
  1485. LBFBB    LDA   LBFCB
  1486. <br />
  1487.          AND   #$03
  1488. <br />
  1489.          BNE   LBFC5
  1490. <br />
  1491.          LDA   SPKR
  1492. <br />
  1493. LBFC5    DEC   LBFCB
  1494. <br />
  1495.          BNE   LBFAD
  1496. <br />
  1497.          RTS
  1498. <br />
  1499.  
  1500. <br />
  1501. LBFCB    DB    $00
  1502. <br />
  1503. LBFCC    DB    $00
  1504. <br />
  1505.  
  1506. <br />
  1507.          HEX   CF0200FFFFFFFF00000000FFFFFFFF00
  1508. <br />
  1509.          HEX   000000FFFFFFFF00000000FFFFFFFF00
  1510. <br />
  1511.          HEX   000000FFFFFFFF00000000FFFFFFFF00
  1512. <br />
  1513.          HEX   000000
  1514. <br />
  1515. </td>    </tr></table><span class="postbody"></span><span class="gensmall"></span></td>
  1516.             </tr>
  1517.         </table></td>
  1518.     </tr>
  1519.     <tr>
  1520.         <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>
  1521.         <td class="row2" width="100%" height="28" valign="bottom" nowrap="nowrap"><table cellspacing="0" cellpadding="0" border="0" height="18" width="18">
  1522.             <tr>
  1523.                 <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"><!--
  1524.  
  1525.     if ( navigator.userAgent.toLowerCase().indexOf('mozilla') != -1 && navigator.userAgent.indexOf('5.') == -1 && navigator.userAgent.indexOf('6.') == -1 )
  1526.         document.write(' ');
  1527.     else
  1528.         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>');
  1529.  
  1530.                 //--></script><noscript></noscript></td>
  1531.             </tr>
  1532.         </table></td>
  1533.     </tr>
  1534.     <tr>
  1535.         <td class="spaceRow" colspan="2" height="1"><img src="templates/subSilver/images/spacer.gif" alt="" width="1" height="1" /></td>
  1536.     </tr>
  1537.     <tr>
  1538.         <td width="150" align="left" valign="top" class="row1"><span class="name"><a name="288"></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>
  1539.         <td class="row1" width="100%" height="28" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  1540.             <tr>
  1541.                 <td width="100%"><a href="viewtopic.php?p=288#288"><img src="templates/subSilver/images/icon_minipost.gif" width="12" height="9" alt="Message" title="Message" border="0" /></a><span class="postdetails">PostΘ le: Ven 31 Ao√ 2007, 9:25<span class="gen"> </span>   Sujet du message: </span></td>
  1542.                 <td valign="top" nowrap="nowrap"><a href="posting.php?mode=quote&p=288"><img src="templates/subSilver/images/lang_french/icon_quote.gif" alt="RΘpondre en citant" title="RΘpondre en citant" border="0" /></a>   </td>
  1543.             </tr>
  1544.             <tr>
  1545.                 <td colspan="2"><hr /></td>
  1546.             </tr>
  1547.             <tr>
  1548.                 <td colspan="2"><span class="postbody">And the code of my modified RWTS. Please note that the write routine has been commented as there are some timing issues with it. I wanted to get room on the memory thus replacing opcodes but that led to timing problems: my 32 cycles were lost...
  1549. <br />
  1550.  
  1551. <br />
  1552. </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">
  1553. <br />
  1554. *
  1555. <br />
  1556. * SSG: MacArthur's war
  1557. <br />
  1558. *
  1559. <br />
  1560. * Modified source code, LoGo 2007
  1561. <br />
  1562. *
  1563. <br />
  1564.  
  1565. <br />
  1566.          ORG   $BD00
  1567. <br />
  1568.          MX    %11
  1569. <br />
  1570.          LST   OFF
  1571. <br />
  1572.  
  1573. <br />
  1574. *
  1575. <br />
  1576. * EQUATES
  1577. <br />
  1578. *
  1579. <br />
  1580.  
  1581. <br />
  1582. RWTS_BUF_LOW = $00
  1583. <br />
  1584. RWTS_BUF_HIGH = $01
  1585. <br />
  1586. RWTS_COMMAND = $03
  1587. <br />
  1588. RWTS_TRACK =   $04
  1589. <br />
  1590. RWTS_SECTOR =  $05
  1591. <br />
  1592. RWTS_TRIES1 =  $06
  1593. <br />
  1594. RWTS_TRIES2 =  $07
  1595. <br />
  1596.  
  1597. <br />
  1598. PTR_RAM  =     $3E
  1599. <br />
  1600.  
  1601. <br />
  1602. SECTOR_READ =  $2D
  1603. <br />
  1604. TRACK_READ =   $2E
  1605. <br />
  1606.  
  1607. <br />
  1608. MAX_SECTOR =   $0A
  1609. <br />
  1610. MAX_TRACK =    $23
  1611. <br />
  1612.  
  1613. <br />
  1614. COMMAND_READ = $01
  1615. <br />
  1616. COMMAND_WRITE = $02
  1617. <br />
  1618.  
  1619. <br />
  1620. LBC00    =     $0280
  1621. <br />
  1622.  
  1623. <br />
  1624. CURRENT_SLOT = $03D3
  1625. <br />
  1626. CURRENT_DRIVE = $03D4
  1627. <br />
  1628.  
  1629. <br />
  1630. SPKR     =     $C030
  1631. <br />
  1632.  
  1633. <br />
  1634. *
  1635. <br />
  1636. * RWTS
  1637. <br />
  1638. *
  1639. <br />
  1640.  
  1641. <br />
  1642.          LDA   CURRENT_DRIVE ; DRIVE
  1643. <br />
  1644.          LSR
  1645. <br />
  1646.          BCS   LBD28
  1647. <br />
  1648.          LDA   $C0EB      ; drive 2
  1649. <br />
  1650.          BCC   LBD2B
  1651. <br />
  1652. LBD28    LDA   $C0EA      ; drive 1
  1653. <br />
  1654.  
  1655. <br />
  1656. LBD2B    LDA   $C0E9      ; turn drive on
  1657. <br />
  1658.  
  1659. <br />
  1660.          LDA   RWTS_COMMAND
  1661. <br />
  1662.          CMP   #COMMAND_READ
  1663. <br />
  1664.          BEQ   LBD3C
  1665. <br />
  1666.  
  1667. <br />
  1668.          LDY   #$03
  1669. <br />
  1670. LBD36    JSR   WAIT
  1671. <br />
  1672.          DEY
  1673. <br />
  1674.          BPL   LBD36
  1675. <br />
  1676.  
  1677. <br />
  1678. *
  1679. <br />
  1680. * ARE WE ON THE RIGHT TRACK AND SECTOR ?
  1681. <br />
  1682. *
  1683. <br />
  1684.  
  1685. <br />
  1686. LBD3C    LDA   #$05
  1687. <br />
  1688.          STA   RWTS_TRIES2
  1689. <br />
  1690.  
  1691. <br />
  1692. LBD40    LDA   #$30
  1693. <br />
  1694.          STA   RWTS_TRIES1
  1695. <br />
  1696.  
  1697. <br />
  1698. LBD44    JSR   READ_ADDRESS
  1699. <br />
  1700.          BCC   LBD61
  1701. <br />
  1702.          DEC   RWTS_TRIES1
  1703. <br />
  1704.          BPL   LBD44
  1705. <br />
  1706.          LDA   #$16
  1707. <br />
  1708.          STA   RWTS_PHASE
  1709. <br />
  1710.          LDA   #$00
  1711. <br />
  1712.          DEC   RWTS_TRIES2
  1713. <br />
  1714.          BNE   LBD5B
  1715. <br />
  1716.          JMP   EXIT_ERR
  1717. <br />
  1718.  
  1719. <br />
  1720. LBD5B    JSR   MOVE_ARM
  1721. <br />
  1722.          JMP   LBD40
  1723. <br />
  1724.  
  1725. <br />
  1726. * ADDRESS FIELD FOUND
  1727. <br />
  1728.  
  1729. <br />
  1730. LBD61    LDA   TRACK_READ ; are we on the right track ?
  1731. <br />
  1732.          CMP   RWTS_TRACK
  1733. <br />
  1734.          BEQ   LBD82
  1735. <br />
  1736.  
  1737. <br />
  1738.          LDX   $C0E0      ; nope! move
  1739. <br />
  1740.          LDX   $C0E2
  1741. <br />
  1742.          LDX   $C0E4
  1743. <br />
  1744.          LDX   $C0E6
  1745. <br />
  1746.  
  1747. <br />
  1748.          ASL
  1749. <br />
  1750.          STA   RWTS_PHASE
  1751. <br />
  1752.          LDA   RWTS_TRACK
  1753. <br />
  1754.          ASL
  1755. <br />
  1756.          JSR   MOVE_ARM
  1757. <br />
  1758.          JMP   LBD44
  1759. <br />
  1760.  
  1761. <br />
  1762. * WE ARE ON THE RIGHT TRACK
  1763. <br />
  1764.  
  1765. <br />
  1766. *LBD82 LDA RWTS_SECTOR
  1767. <br />
  1768. * CMP SECTOR_READ
  1769. <br />
  1770. * BEQ LBD93
  1771. <br />
  1772.  
  1773. <br />
  1774. * DEC RWTS_TRIES1
  1775. <br />
  1776. * BPL LBD44
  1777. <br />
  1778. * DEC RWTS_TRIES2
  1779. <br />
  1780. * BNE LBD40
  1781. <br />
  1782. * JMP EXIT_ERR
  1783. <br />
  1784.  
  1785. <br />
  1786. * WE ARE WELL-PLACED
  1787. <br />
  1788.  
  1789. <br />
  1790. LBD82    =     *
  1791. <br />
  1792.  
  1793. <br />
  1794. LBD93    LDA   RWTS_COMMAND
  1795. <br />
  1796.          CMP   #COMMAND_WRITE
  1797. <br />
  1798.          BEQ   LBDA5
  1799. <br />
  1800.  
  1801. <br />
  1802.          JSR   READ_SECTOR
  1803. <br />
  1804.          BCC   LBDA8
  1805. <br />
  1806.  
  1807. <br />
  1808.          DEC   RWTS_TRIES1
  1809. <br />
  1810.          BMI   EXIT_ERR
  1811. <br />
  1812.          JMP   LBD44
  1813. <br />
  1814.  
  1815. <br />
  1816. LBDA5    JSR   WRITE_SECTOR
  1817. <br />
  1818.  
  1819. <br />
  1820. * LOOP UNTIL WE REACH THE END!
  1821. <br />
  1822.  
  1823. <br />
  1824. LBDA8    LDA   RWTS_BUF_LOW ; next page
  1825. <br />
  1826.          CMP   RWTS_BUF_HIGH
  1827. <br />
  1828.          BEQ   EXIT
  1829. <br />
  1830.          CLC
  1831. <br />
  1832.          ADC   #$01
  1833. <br />
  1834.          STA   RWTS_BUF_LOW
  1835. <br />
  1836.  
  1837. <br />
  1838.          INC   RWTS_SECTOR ; next sector
  1839. <br />
  1840.          LDA   RWTS_SECTOR
  1841. <br />
  1842.          CMP   #MAX_SECTOR
  1843. <br />
  1844.          BNE   LBD3C
  1845. <br />
  1846.  
  1847. <br />
  1848. LBDC7    LDA   #$00       ; next track
  1849. <br />
  1850.          STA   RWTS_SECTOR
  1851. <br />
  1852.          INC   RWTS_TRACK
  1853. <br />
  1854.          JMP   LBD3C
  1855. <br />
  1856.  
  1857. <br />
  1858. *
  1859. <br />
  1860. *
  1861. <br />
  1862. *
  1863. <br />
  1864.  
  1865. <br />
  1866. EXIT_ERR JSR   BOING
  1867. <br />
  1868.  
  1869. <br />
  1870. EXIT     STA   $C0EE
  1871. <br />
  1872.          CMP   $C0EC
  1873. <br />
  1874.          LDA   $C0E8
  1875. <br />
  1876.          RTS
  1877. <br />
  1878.  
  1879. <br />
  1880. *
  1881. <br />
  1882. * READ ADDRESS
  1883. <br />
  1884. *
  1885. <br />
  1886.  
  1887. <br />
  1888. READ_ADDRESS LDY #$F8
  1889. <br />
  1890.          STY   $26
  1891. <br />
  1892. LBDEF    INY
  1893. <br />
  1894.          BNE   LBDF6
  1895. <br />
  1896.          INC   $26
  1897. <br />
  1898.          BEQ   LBDE9
  1899. <br />
  1900. LBDF6    LDA   $C0EC
  1901. <br />
  1902.          BPL   LBDF6
  1903. <br />
  1904. LBDFB    CMP   #$D5
  1905. <br />
  1906.          BNE   LBDEF
  1907. <br />
  1908. LBE00    LDA   $C0EC
  1909. <br />
  1910.          BPL   LBE00
  1911. <br />
  1912.          CMP   #$AA
  1913. <br />
  1914.          BNE   LBDFB
  1915. <br />
  1916. LBE0B    LDA   $C0EC
  1917. <br />
  1918.          BPL   LBE0B
  1919. <br />
  1920.          CMP   #$96       ; WAS $B5
  1921. <br />
  1922.          BNE   LBDFB
  1923. <br />
  1924.  
  1925. <br />
  1926.          LDX   #$03
  1927. <br />
  1928.          LDA   #$00
  1929. <br />
  1930. LBE16    STA   $27
  1931. <br />
  1932. LBE18    LDA   $C0EC
  1933. <br />
  1934.          BPL   LBE18
  1935. <br />
  1936.          ROL
  1937. <br />
  1938.          STA   $26
  1939. <br />
  1940. LBE20    LDA   $C0EC
  1941. <br />
  1942.          BPL   LBE20
  1943. <br />
  1944.          AND   $26
  1945. <br />
  1946.          STA   |$002C,X   ; 2C+3 : VOLUME
  1947. <br />
  1948.          EOR   $27        ; 2C+2 : TRACK
  1949. <br />
  1950.          DEX              ; 2C+1 : SECTOR
  1951. <br />
  1952.          BPL   LBE16      ; 2C+0 : CHECKSUM
  1953. <br />
  1954.          TAY
  1955. <br />
  1956.          BNE   LBDE9
  1957. <br />
  1958.  
  1959. <br />
  1960.          LDX   RWTS_SECTOR
  1961. <br />
  1962.          LDA   SECTOR_READ
  1963. <br />
  1964.          CMP   INTERLEAVING,X
  1965. <br />
  1966.          BNE   LBDEF
  1967. <br />
  1968.  
  1969. <br />
  1970.          CLC
  1971. <br />
  1972.          RTS
  1973. <br />
  1974. LBDE9    SEC
  1975. <br />
  1976.          RTS
  1977. <br />
  1978.  
  1979. <br />
  1980. *
  1981. <br />
  1982. * READ SECTOR
  1983. <br />
  1984. *
  1985. <br />
  1986.  
  1987. <br />
  1988. READ_SECTOR LDA #$00
  1989. <br />
  1990.          STA   PTR_RAM
  1991. <br />
  1992.          LDA   RWTS_BUF_LOW
  1993. <br />
  1994.          STA   PTR_RAM+1
  1995. <br />
  1996.  
  1997. <br />
  1998.          LDY   #$20
  1999. <br />
  2000. LB8DE    DEY
  2001. <br />
  2002.          BEQ   LB942
  2003. <br />
  2004. ]LP      LDA   $C0EC
  2005. <br />
  2006.          BPL   ]LP
  2007. <br />
  2008. LB8E6    EOR   #$D5
  2009. <br />
  2010.          BNE   LB8DE
  2011. <br />
  2012. ]LP      LDA   $C0EC
  2013. <br />
  2014.          BPL   ]LP
  2015. <br />
  2016. LB8F0    CMP   #$AA
  2017. <br />
  2018.          BNE   LB8E6
  2019. <br />
  2020.          LDY   #$56
  2021. <br />
  2022. ]LP      LDA   $C0EC
  2023. <br />
  2024.          BPL   ]LP
  2025. <br />
  2026. LB8FA    CMP   #$AD
  2027. <br />
  2028.          BNE   LB8E6
  2029. <br />
  2030.  
  2031. <br />
  2032.          LDA   #$00
  2033. <br />
  2034. LB901    DEY
  2035. <br />
  2036.          STY   $26
  2037. <br />
  2038. ]LP      LDY   $C0EC
  2039. <br />
  2040.          BPL   ]LP
  2041. <br />
  2042.          EOR   LBA96-$96,Y
  2043. <br />
  2044.          LDY   $26
  2045. <br />
  2046.          STA   LBC00,Y
  2047. <br />
  2048.          BNE   LB901
  2049. <br />
  2050. LB913    STY   $26
  2051. <br />
  2052. ]LP      LDY   $C0EC
  2053. <br />
  2054.          BPL   ]LP
  2055. <br />
  2056.          EOR   LBA96-$96,Y
  2057. <br />
  2058.          LDY   $26
  2059. <br />
  2060.          STA   (PTR_RAM),Y
  2061. <br />
  2062.          INY
  2063. <br />
  2064.          BNE   LB913
  2065. <br />
  2066. ]LP      LDY   $C0EC
  2067. <br />
  2068.          BPL   ]LP
  2069. <br />
  2070.          CMP   LBA96-$96,Y
  2071. <br />
  2072.          BEQ   DENIBBLIZE
  2073. <br />
  2074. LB942    SEC
  2075. <br />
  2076.          RTS
  2077. <br />
  2078.  
  2079. <br />
  2080. *
  2081. <br />
  2082.  
  2083. <br />
  2084. DENIBBLIZE LDY #$00
  2085. <br />
  2086. LB8C4    LDX   #$56
  2087. <br />
  2088. LB8C6    DEX
  2089. <br />
  2090.          BMI   LB8C4
  2091. <br />
  2092.          LDA   (PTR_RAM),Y
  2093. <br />
  2094.          LSR   LBC00,X
  2095. <br />
  2096.          ROL
  2097. <br />
  2098.          LSR   LBC00,X
  2099. <br />
  2100.          ROL
  2101. <br />
  2102.          STA   (PTR_RAM),Y
  2103. <br />
  2104.          INY
  2105. <br />
  2106.          BNE   LB8C6
  2107. <br />
  2108.          RTS
  2109. <br />
  2110.  
  2111. <br />
  2112. *
  2113. <br />
  2114. * WRITE_SECTOR
  2115. <br />
  2116. *
  2117. <br />
  2118.  
  2119. <br />
  2120. WRITE_SECTOR CLC
  2121. <br />
  2122.          RTS
  2123. <br />
  2124.  
  2125. <br />
  2126. *NIBBLIZE LDX #$00
  2127. <br />
  2128. * STX PTR_RAM
  2129. <br />
  2130. * LDY #$02
  2131. <br />
  2132. *LB804 DEY
  2133. <br />
  2134. * LDA (PTR_RAM),Y
  2135. <br />
  2136. * LSR
  2137. <br />
  2138. * ROL LBC00,X
  2139. <br />
  2140. * LSR
  2141. <br />
  2142. * ROL LBC00,X
  2143. <br />
  2144. * STA LBB00,Y
  2145. <br />
  2146. * INX
  2147. <br />
  2148. * CPX #$56
  2149. <br />
  2150. * BCC LB804
  2151. <br />
  2152. * LDX #$00
  2153. <br />
  2154. * TYA
  2155. <br />
  2156. * BNE LB804
  2157. <br />
  2158. * LDX #$55
  2159. <br />
  2160. *LB81E LDA LBC00,X
  2161. <br />
  2162. * AND #$3F
  2163. <br />
  2164. * STA LBC00,X
  2165. <br />
  2166. * DEX
  2167. <br />
  2168. * BPL LB81E
  2169. <br />
  2170. * RTS
  2171. <br />
  2172.  
  2173. <br />
  2174. * SEC
  2175. <br />
  2176. * STX $27
  2177. <br />
  2178. * STX $0678
  2179. <br />
  2180. * LDA $C08D,X
  2181. <br />
  2182. * LDA $C08E,X
  2183. <br />
  2184. * BMI LB8B4
  2185. <br />
  2186. * LDA LBC00
  2187. <br />
  2188. * STA $26
  2189. <br />
  2190. * LDA #$FF
  2191. <br />
  2192. * STA $C08F,X
  2193. <br />
  2194. * ORA $C08C,X
  2195. <br />
  2196. * PHA
  2197. <br />
  2198. * PLA
  2199. <br />
  2200. * NOP
  2201. <br />
  2202. * LDY #$04
  2203. <br />
  2204. *LB84A PHA
  2205. <br />
  2206. * PLA
  2207. <br />
  2208. * JSR LB8B9
  2209. <br />
  2210. * DEY
  2211. <br />
  2212. * BNE LB84A
  2213. <br />
  2214. *LB852 LDA #$D5
  2215. <br />
  2216. * JSR LB8B8
  2217. <br />
  2218. *LB857 LDA #$AA
  2219. <br />
  2220. * JSR LB8B8
  2221. <br />
  2222. *LB85C LDA #$AD
  2223. <br />
  2224. * JSR LB8B8
  2225. <br />
  2226. * TYA
  2227. <br />
  2228. * LDY #$56
  2229. <br />
  2230. * BNE LB869
  2231. <br />
  2232. *LB866 LDA LBC00,Y
  2233. <br />
  2234. *LB869 EOR LBC00-1,Y
  2235. <br />
  2236. * TAX
  2237. <br />
  2238. * LDA LBA29,X
  2239. <br />
  2240. * LDX $27
  2241. <br />
  2242. * STA $C08D,X
  2243. <br />
  2244. * LDA $C08C,X
  2245. <br />
  2246. * DEY
  2247. <br />
  2248. * BNE LB866
  2249. <br />
  2250. * LDA $26
  2251. <br />
  2252. * NOP
  2253. <br />
  2254. *LB87E EOR LBB00,Y
  2255. <br />
  2256. * TAX
  2257. <br />
  2258. * LDA LBA29,X
  2259. <br />
  2260. * LDX $0678
  2261. <br />
  2262. * STA $C08D,X
  2263. <br />
  2264. * LDA $C08C,X
  2265. <br />
  2266. * LDA LBB00,Y
  2267. <br />
  2268. * INY
  2269. <br />
  2270. * BNE LB87E
  2271. <br />
  2272. * TAX
  2273. <br />
  2274. * LDA LBA29,X
  2275. <br />
  2276. * LDX $27
  2277. <br />
  2278. * JSR LB8BB
  2279. <br />
  2280. *LB89D LDA #$DE
  2281. <br />
  2282. * JSR LB8B8
  2283. <br />
  2284. *LB8A2 LDA #$AA
  2285. <br />
  2286. * JSR LB8B8
  2287. <br />
  2288. *LB8A7 LDA #$EB
  2289. <br />
  2290. * JSR LB8B8
  2291. <br />
  2292. * LDA #$FF
  2293. <br />
  2294. * JSR LB8B8
  2295. <br />
  2296. * LDA $C08E,X
  2297. <br />
  2298. *LB8B4 LDA $C08C,X
  2299. <br />
  2300. * RTS
  2301. <br />
  2302.  
  2303. <br />
  2304. *LB8B8 CLC
  2305. <br />
  2306. *LB8B9 PHA
  2307. <br />
  2308. * PLA
  2309. <br />
  2310. *LB8BB STA $C08D,X
  2311. <br />
  2312. * ORA $C08C,X
  2313. <br />
  2314. * RTS
  2315. <br />
  2316.  
  2317. <br />
  2318. *
  2319. <br />
  2320. * MOVE ARM
  2321. <br />
  2322. *
  2323. <br />
  2324.  
  2325. <br />
  2326. MOVE_ARM STA   $2A
  2327. <br />
  2328. LBE4E    LDA   RWTS_PHASE
  2329. <br />
  2330.          STA   $27
  2331. <br />
  2332.          SEC
  2333. <br />
  2334.          SBC   $2A
  2335. <br />
  2336.          BEQ   LBE79
  2337. <br />
  2338.          BCS   LBE5F
  2339. <br />
  2340.          INC   RWTS_PHASE
  2341. <br />
  2342.          BCC   LBE62
  2343. <br />
  2344. LBE5F    DEC   RWTS_PHASE
  2345. <br />
  2346. LBE62    JSR   LBE7C
  2347. <br />
  2348.          JSR   MOVE_WAIT
  2349. <br />
  2350.          LDA   $27
  2351. <br />
  2352.          AND   #$03
  2353. <br />
  2354.          ASL
  2355. <br />
  2356.          TAY
  2357. <br />
  2358.          LDA   $C0E0,Y
  2359. <br />
  2360.          JSR   MOVE_WAIT
  2361. <br />
  2362.          BEQ   LBE4E
  2363. <br />
  2364. LBE79    JSR   MOVE_WAIT
  2365. <br />
  2366. LBE7C    LDA   RWTS_PHASE
  2367. <br />
  2368.          AND   #$03
  2369. <br />
  2370.          ASL
  2371. <br />
  2372.          TAY
  2373. <br />
  2374.          LDA   $C0E1,Y
  2375. <br />
  2376.          RTS
  2377. <br />
  2378.  
  2379. <br />
  2380. MOVE_WAIT LDA  #$28
  2381. <br />
  2382.          JMP   WAIT
  2383. <br />
  2384.  
  2385. <br />
  2386. RWTS_PHASE DB  $00
  2387. <br />
  2388.  
  2389. <br />
  2390. *
  2391. <br />
  2392. * WAIT
  2393. <br />
  2394. *
  2395. <br />
  2396.  
  2397. <br />
  2398. WAIT     SEC
  2399. <br />
  2400. LBF9D    PHA
  2401. <br />
  2402. LBF9E    SBC   #$01
  2403. <br />
  2404.          BNE   LBF9E
  2405. <br />
  2406.          PLA
  2407. <br />
  2408.          SBC   #$01
  2409. <br />
  2410.          BNE   LBF9D
  2411. <br />
  2412.          RTS
  2413. <br />
  2414.  
  2415. <br />
  2416. *
  2417. <br />
  2418. *
  2419. <br />
  2420. *
  2421. <br />
  2422.  
  2423. <br />
  2424. BOING    LDX   #$40
  2425. <br />
  2426. LBFAD    LDY   #$00
  2427. <br />
  2428. ]LP      DEY
  2429. <br />
  2430.          BNE   ]LP
  2431. <br />
  2432.          TXA
  2433. <br />
  2434.          LSR
  2435. <br />
  2436.          BCC   LBFBB
  2437. <br />
  2438.          LDA   SPKR
  2439. <br />
  2440. LBFBB    TXA
  2441. <br />
  2442.          AND   #$03
  2443. <br />
  2444.          BNE   LBFC5
  2445. <br />
  2446.          LDA   SPKR
  2447. <br />
  2448. LBFC5    DEX
  2449. <br />
  2450.          BNE   LBFAD
  2451. <br />
  2452.          RTS
  2453. <br />
  2454.  
  2455. <br />
  2456.          DS    \
  2457. <br />
  2458.  
  2459. <br />
  2460. *
  2461. <br />
  2462. * DATA 6*2
  2463. <br />
  2464. *
  2465. <br />
  2466.  
  2467. <br />
  2468. INTERLEAVING HEX 000D0B09070503010E0C0A080604020F
  2469. <br />
  2470.  
  2471. <br />
  2472. * THE NIBBLE TABLE
  2473. <br />
  2474.  
  2475. <br />
  2476. LBA29    HEX   96979A9B9D9E9FA6A7ABACADAEAFB2B3
  2477. <br />
  2478.          HEX   B4B5B6B7B9BABBBCBDBEBFCBCDCECFD3
  2479. <br />
  2480.          HEX   D6D7D9DADBDCDDDEDFE5E6E7E9EAEBEC
  2481. <br />
  2482.          HEX   EDEEEFF2F3F4F5F6F7F9FAFBFCFDFEFF
  2483. <br />
  2484.  
  2485. <br />
  2486. * INDEX IN THE NIBBLE TABLE
  2487. <br />
  2488.  
  2489. <br />
  2490. LBA96    HEX   0001989902039C040506A0A1A2A3A4A5
  2491. <br />
  2492.          HEX   0708A8A9AA090A0B0C0DB0B10E0F1011
  2493. <br />
  2494.          HEX   1213B81415161718191AC0C1C2C3C4C5
  2495. <br />
  2496.          HEX   C6C7C8C9CA1BCC1C1D1ED0D1D21FD4D5
  2497. <br />
  2498.          HEX   2021D822232425262728E0E1E2E3E429
  2499. <br />
  2500.          HEX   2A2BE82C2D2E2F303132F0F133343536
  2501. <br />
  2502.          HEX   3738F8393A3B3C3D3E3F
  2503. <br />
  2504.  
  2505. <br />
  2506.          DS    \
  2507. <br />
  2508. </td>    </tr></table><span class="postbody"></span><span class="gensmall"></span></td>
  2509.             </tr>
  2510.         </table></td>
  2511.     </tr>
  2512.     <tr>
  2513.         <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>
  2514.         <td class="row1" width="100%" height="28" valign="bottom" nowrap="nowrap"><table cellspacing="0" cellpadding="0" border="0" height="18" width="18">
  2515.             <tr>
  2516.                 <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"><!--
  2517.  
  2518.     if ( navigator.userAgent.toLowerCase().indexOf('mozilla') != -1 && navigator.userAgent.indexOf('5.') == -1 && navigator.userAgent.indexOf('6.') == -1 )
  2519.         document.write(' ');
  2520.     else
  2521.         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>');
  2522.  
  2523.                 //--></script><noscript></noscript></td>
  2524.             </tr>
  2525.         </table></td>
  2526.     </tr>
  2527.     <tr>
  2528.         <td class="spaceRow" colspan="2" height="1"><img src="templates/subSilver/images/spacer.gif" alt="" width="1" height="1" /></td>
  2529.     </tr>
  2530.     <tr>
  2531.         <td width="150" align="left" valign="top" class="row2"><span class="name"><a name="290"></a><b>Oz</b></span><br /><span class="postdetails"><br /><br /><br />Inscrit le: 29 Ao√ 2007<br />Messages: 49<br />Localisation: Courbevoie, France</span><br /></td>
  2532.         <td class="row2" width="100%" height="28" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  2533.             <tr>
  2534.                 <td width="100%"><a href="viewtopic.php?p=290#290"><img src="templates/subSilver/images/icon_minipost.gif" width="12" height="9" alt="Message" title="Message" border="0" /></a><span class="postdetails">PostΘ le: Ven 31 Ao√ 2007, 20:09<span class="gen"> </span>   Sujet du message: </span></td>
  2535.                 <td valign="top" nowrap="nowrap"><a href="posting.php?mode=quote&p=290"><img src="templates/subSilver/images/lang_french/icon_quote.gif" alt="RΘpondre en citant" title="RΘpondre en citant" border="0" /></a>   </td>
  2536.             </tr>
  2537.             <tr>
  2538.                 <td colspan="2"><hr /></td>
  2539.             </tr>
  2540.             <tr>
  2541.                 <td colspan="2"><span class="postbody">Depuis quand Θcris tu tes instructions en MAJUSCULE ?
  2542. <br />
  2543.  
  2544. <br />
  2545.     Olivier</span><span class="gensmall"></span></td>
  2546.             </tr>
  2547.         </table></td>
  2548.     </tr>
  2549.     <tr>
  2550.         <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>
  2551.         <td class="row2" width="100%" height="28" valign="bottom" nowrap="nowrap"><table cellspacing="0" cellpadding="0" border="0" height="18" width="18">
  2552.             <tr>
  2553.                 <td valign="middle" nowrap="nowrap"><a href="profile.php?mode=viewprofile&u=18"><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=18"><img src="templates/subSilver/images/lang_french/icon_pm.gif" alt="Envoyer un message privΘ" title="Envoyer un message privΘ" border="0" /></a>     <script language="JavaScript" type="text/javascript"><!--
  2554.  
  2555.     if ( navigator.userAgent.toLowerCase().indexOf('mozilla') != -1 && navigator.userAgent.indexOf('5.') == -1 && navigator.userAgent.indexOf('6.') == -1 )
  2556.         document.write(' ');
  2557.     else
  2558.         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>');
  2559.  
  2560.                 //--></script><noscript></noscript></td>
  2561.             </tr>
  2562.         </table></td>
  2563.     </tr>
  2564.     <tr>
  2565.         <td class="spaceRow" colspan="2" height="1"><img src="templates/subSilver/images/spacer.gif" alt="" width="1" height="1" /></td>
  2566.     </tr>
  2567.     <tr align="center">
  2568.         <td class="catBottom" colspan="2" height="28"><table cellspacing="0" cellpadding="0" border="0">
  2569.             <tr><form method="post" action="viewtopic.php?t=85&start=0">
  2570.                 <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>
  2571.             </form></tr>
  2572.         </table></td>
  2573.     </tr>
  2574. </table>
  2575.  
  2576. <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
  2577.   <tr>
  2578.     <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=85"><img src="templates/subSilver/images/lang_french/reply.gif" border="0" alt="RΘpondre au sujet" align="middle" /></a></span></td>
  2579.     <td align="left" valign="middle" width="100%"><span class="nav">   <a href="index.php" class="nav"> Index du Forum</a>
  2580.       -> <a href="viewforum.php?f=13" class="nav">PROTECTION MALEFIQUE</a></span></td>
  2581.     <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>
  2582.       </td>
  2583.   </tr>
  2584.   <tr>
  2585.     <td align="left" colspan="3"><span class="nav">Page <b>1</b> sur <b>1</b></span></td>
  2586.   </tr>
  2587. </table>
  2588.  
  2589. <table width="100%" cellspacing="2" border="0" align="center">
  2590.   <tr>
  2591.     <td width="40%" valign="top" nowrap="nowrap" align="left"><span class="gensmall"></span><br />
  2592.        <br />
  2593.       </td>
  2594.     <td align="right" valign="top" nowrap="nowrap">
  2595. <form method="get" name="jumpbox" action="viewforum.php" onSubmit="if(document.jumpbox.f.value == -1){return false;}"><table cellspacing="0" cellpadding="0" border="0">
  2596.     <tr>
  2597.         <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>
  2598.     </tr>
  2599. </table></form>
  2600.  
  2601. <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>
  2602.   </tr>
  2603. </table>
  2604.  
  2605.  
  2606. <div align="center"><span class="copyright"><br /><br />
  2607. <!--
  2608.     We request you retain the full copyright notice below including the link to www.phpbb.com.
  2609.     This not only gives respect to the large amount of time given freely by the developers
  2610.     but also helps build interest, traffic and use of phpBB 2.0. If you cannot (for good
  2611.     reason) retain the full copyright we request you at least leave in place the
  2612.     Powered by phpBB line, with phpBB linked to www.phpbb.com. If you refuse
  2613.     to include even this then support on our forums may be affected.
  2614.  
  2615.     The phpBB Group : 2002
  2616. // -->
  2617. 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>
  2618.         </td>
  2619.     </tr>
  2620. </table>
  2621.  
  2622. </body>
  2623. </html>
  2624.  
  2625.