SWC.TXT 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. E.V.O.L.U.T.I.O.N. A.U.S.T.R.A.L.I.A.
  2. o o o
  3. /\ /\ /\ ___o ___o
  4. o_____________/ \_ _______o / \ / \_________| |____________o | |
  5. \ __ / / |\ \ / ./ __\ \ _ \ |\ \ \ | .|
  6. \ \__/_/___/ ./ |/\ /\ .\/ o/ | .\ \___\) .) .|/\ /\ \ \ \| o|
  7. /\_______// o/ / / / o/ O/___| o|\ \ / o/ o/ / / o/ .\ \ O|
  8. / /_/ O/ O/| ( (_/ O/ /_) ) O|_) )/ O/| ( (_/ O/ o|\ |
  9. \ ____/_________\ \___/_________/________// / |___\_______/| O| \___|
  10. _\ \______________\ \_____________________/ / | |______
  11. _________________________________________________/ Poise/RaZoR PC |__________
  12. Presents : The Super Wild Card & Super Magicom Programmers Handbook.
  13. Typed by : MicroChip/Evolution/Submission
  14. Call the Evolution WHQ on : Southern Cross BBS (SNES/MD/PC/AMIGA)
  15. --> +61-3-428-9359 (2 Nodes Ringdown)
  16. ***************************************************************************
  17. HardWare Specifcations & Features
  18. ---------------------------------
  19. 1) DRAM - 28Mega Bits Maximum Available
  20. 2) SRAM - 256k (Battery Backup)
  21. 3) ROM - 128k (Firmware)
  22. 4) Floppy Drive Interface -
  23. * Motorola MCS3201 Chip (NEC 765A Compatible)
  24. * Compatible with IBM PC/AT & XT Disk Drive System
  25. * Suports 3.5" & 5.25" Flopy Disk Drive.
  26. * DB-25 Female Connector (non-standard)
  27. * Supports only Non-DMA mode (polling)
  28. 5) Parallel Port Interface -
  29. * 8 bits input, 4 bits output, 1 bit handshake.
  30. * DB-25 Female Connector
  31. * Use Male to Male DB-25 Connector to connect to PC's Parallel Port
  32. 6) Core Chip -
  33. * Altera EP1810 Chip (First Generation)
  34. * Front Far East FC9203 Chip (Currently Shipping)
  35. * Front Far East FC9304 Chip (Not Avilable)
  36. 7) Versions -
  37. Ver. Bios-Name Core Mode21 Saver Description
  38. 'A' Magicom EP1810 No Yes External Drive
  39. 'B' Wild Card EP1810 Yes Yes External or Bulid-in DD
  40. 'C' Wild Card FC9203 Yes Yes External or Bulid-in DD
  41. 'D' Wild Card FC9304 Yes Yes (Under Development)
  42. 'E' Wild Card EP1810 Yes No Magic Drive Adapter
  43. 'F' Wild Card FC9203 Yes No Magic Drive Adapter
  44. SoftWare Specifications & Features
  45. ----------------------------------
  46. 1) Registers -
  47. [Floppy Drive I/O]
  48. C000R : Input Register
  49. Bit 7 - MCS3201 IRQ Signal
  50. Bit 6 - Drive 'Index' Signal (Disk Insert Check)
  51. C002W : Digital Output Register
  52. C004R : Main Status Register
  53. C005RW: Data Register
  54. C007R : Digital Input Register
  55. C007W : Disk Control Register
  56. * Consult the MCS3201 Data Sheet for more detailed information.
  57. [Parallel I/O]
  58. C008R : Bit 07 : Parallel Data Input (reading this register will
  59. reverse the busy flag)
  60. C008W : Bit 03 : Parallel Data Output
  61. Bit 00 : 0=Mode 20, 1=Mode 21 (DRAM Mapping)
  62. Bit 01 : 0=Mode 1, 1=Mode 2 (SRAM Mapping)
  63. C009R : Busy Flag, Bit 7 (EP1810 Version)
  64. C000R : Busy Flag, Bit 5 (FC9203 Version)
  65. [Page Select]
  66. E000W : Memory Page 0
  67. E001W : Memory Page 1
  68. E002W : Memory Page 2
  69. E003W : Memory Page 3
  70. [Mode Select]
  71. E004W : System Mode 0 (Bios Mode, Power On Default)
  72. E004W : System Mode 0 (Play Cartridge)
  73. E004W : System Mode 0 (Cartridge Emulation 1)
  74. E004W : System Mode 0 (Cartridge Emulation 2)
  75. [Others]
  76. E008W : 44256 Dram Type (For 2,4,6,8 Mega Dram Card.
  77. E009W : 441000 Dram Type (For 8,16,24,32 Mega Dram Card)
  78. E00CW : Enable cartridge page mapping at A000FFF (Sys Mode 0)
  79. Disable cartridge page mapping at bank 205F,A0 (Sys Mode 2,3)
  80. E00DW : Enable SRAM page mapping at A000FFF (Sys Mode 0)
  81. Enable cartridge mapping at Bank 205F,A0 (Sys Mode 2,3)
  82. * The bank address of the above registers is 007D,80.
  83. * The above registers are available only in System Mode 0 (BIOS Mode)
  84. * [Mode Select] registers also available in System Mode 2.
  85. 2) Memory Mapping -
  86. [System Mode 0]
  87. bb2000B3FFFRW : SRAM or Cartridge page mapping, bb=407D,C0
  88. bb8000B9FFFRW : DRAM page mapping, bb=007D,80
  89. bbA000bBFFFRW : SRAM or Cartridge page mapping, bb=007D,90
  90. bbC000W : I/O Registers, bb=007D,80 (Registers)
  91. bbE000bFFFFR : ROM Page mapping, bb=01 (Firmware)
  92. * 1 Page = 8k Bytes, 1 Bank = 4 pages
  93. * bb:000F = 4 Mega Bytes
  94. * bb:001F = 8 Mega Bytes
  95. * bb:002F = 12 Mega Bytes
  96. * bb:003F = 16 Mega Bytes
  97. [System Mode 1]
  98. bb0000b7FFFR : Cartridge Mapping, bb=407D,C0 (Mode 21)
  99. bb8000bFFFFR : Cartridge Mapping, bb=007d,80 (Mode 20,21)
  100. [System Mode 2]
  101. bb0000b7FFFR : DRAM Mapping, bb=407D,C00 (Mode 21)
  102. bb8000BFFFFR : DRAM Mapping, bb=0070,800 (Mode 20,21)
  103. 70800070FFFFRW : SRAM Mode 1 Mapping
  104. 306000307FFFRW : SRAM Mode 2 Mapping, Page 0
  105. 316000317FFFRW : SRAM Mode 2 Mapping, Page 1
  106. 326000327FFFRW : SRAM Mode 2 Mapping, Page 2
  107. 336000337FFFRW : SRAM Mode 2 Mapping, Page 3
  108. * bbE004bE007W : Mode Select Registers, bb=007D,80
  109. [System Mode 3]
  110. bb0000b7FFFR : DRAM Mapping, bb=406F,C0 (Mode 21)
  111. bb8000BFFFFR : DRAM Mapping, bb=006F,80 (Mode 20,21)
  112. 70800070FFFFRW : SRAM Mode 1 Mapping
  113. 306000307FFFRW : SRAM Mode 2 Mapping, Page 0
  114. 316000317FFFRW : SRAM Mode 2 Mapping, Page 1
  115. 326000327FFFRW : SRAM Mode 2 Mapping, Page 2
  116. 336000337FFFRW : SRAM Mode 2 Mapping, Page 3
  117. * Mode 21 - Even DRAM is mapped to bb0000b7FFF
  118. Odd DRAM is mapped to bb8000bFFFF
  119. 3) Parallel I/O Protocol -
  120. [Protocol used in PC]
  121. * Byte Output procedure:
  122. Wait Busy Bit = 1 Status Port Bit 7 (Hex n79,n7D)
  123. Write One Bytes Data Latch (Hex n78,n7C)
  124. Reverse Strobe bit Control Port Bit 0 (Hex n7a,n7E)
  125. * Byte Input procedure:
  126. Wait Busy Bit = 0 Status Port Bit 7 (Hex n79.n7D)
  127. Read Low 4 bits of byte Status Port Bit 36 (Hex n79.n7D)
  128. Reverse Strobe bit Control Port Bit 0 (Hex n7A.n7E)
  129. Wait Bust Bit = 0 Status PortBit 7 (Hex n79.n7D)
  130. Read High 4 Bits of byte Status Port Bit 36 (Hex n79.n7D)
  131. Reverse Strobe Bit Control Port Bit 0 (Hex n7A.n7E)
  132. * 5 Types of Commands
  133. * Command length = 9 bytes
  134. * Command Format:
  135. Byte 1 D5 ID Code 1
  136. Byte 2 AA ID Code 2
  137. Byte 3 96 ID Code 3
  138. Byte 4 00|01|04|05|06 Command Code
  139. Byte 5 A1 Low Byte of Address
  140. Byte 6 AH High Bytes of Address
  141. Byte 7 LL Low Byte of Data Length
  142. Byte 8 LH High Byte of data Length
  143. Byte 9 CC Checksum = 81^Byte4^Byte5^Byte6^Byte7^Byte8
  144. * Command [00] : Download Data
  145. a1,ah = Address
  146. 11,1h = Data Length
  147. Output Data after Command
  148. * Command [01] : Upload Data
  149. a1,ah = Address
  150. 11,1h = Data Length
  151. Input Data after Command
  152. * Command [04] : Force SFC Program to JMP
  153. a1,ah = address
  154. * Command [05] : Set Memory Page Number
  155. a1 Bit 1 = Page Number
  156. a1 Bit27 + ah Bit 1 = Bank Number
  157. * Command [06] : SUB Function
  158. a1 = 0 Initial Device
  159. a1 = 1 Play Game in DRAM
  160. a1 = 2 Play Cartridge
  161. Password Format
  162. ---------------
  163. 1) Description -
  164. Use the Data in the password to replace the data in the memory
  165. at the offset address (according to the game file)
  166. 2) Format 1 -
  167. * Game Doctor Gold Finger Format
  168. * 20 bits address space assigment
  169. * 3 data bytes per string
  170. * [Gaaaaaddddddccc]
  171. 'G' = Means Game Doctor Format
  172. aaaaa = Offser address of game file (Excluding 512 bytes header)
  173. dddddd = 3 data Bytes (If the second ot the third data is '00',
  174. this means that the data is uncganged in
  175. the second of third byte)
  176. ccc = Checksum (Not used in SWC and SMC)
  177. 3) Format 2 -
  178. * 'FFE' Format
  179. * 24 bit address space assigment
  180. * 1 to 36 data bytes per string
  181. * No Checksum
  182. * [nnaaaaaadd....]
  183. nn = Data bytes length
  184. aaaaaa = Offset Address of Game file (excluding 512 bytes header)
  185. dd.... = nn Bytes data (Should be nn*2 Characters)
  186. File Header
  187. -----------
  188. 1) Created by JSI/Front Far East
  189. 2) 512 Bytes Length
  190. 3) Byte
  191. 0 - Low Byte of 8k-Bytes page Counts
  192. 1 - High Byte of 8k-Bytes page Counts
  193. 2 - Emulation Mode Select
  194. Bit 7 6 5 4 3 2 1
  195. x : 1=Run in Mode 0 (Jump $8000)
  196. x : 0=Last File of the Game (Multi-File)
  197. x : 0=Mode 1, 1=Mode 2 (SRAM Mapping)
  198. x : 0=Mode 20, 1=Mode 21 (DRAM Mapping)
  199. x : 0=Run in Mode 3, 1=Run in Mode 2 (JMP Reset)
  200. x : 0=Disable, 1=Enable (external cartridge
  201. memory image at Bank 205F,A0 System Mode 2,3)
  202. 8 - File ID Code 1 (Should be 'AA')
  203. 9 - File ID Code 2 (Should be 'BB')
  204. 10 - Check this byte if ID 1 & 2 Match
  205. 02 : Magic Griffin Game File (PC Engine)
  206. 03 : Magic Griffin SRAM Data File
  207. 04 : SWC & SMC Game File (SNES)
  208. 05 : SWC & SMC Password, SRAM data, Saver Data File.
  209. 06 : SMD Game File (Megadrive)
  210. 07 : SMD SRAM Data File
  211. 37 - Reserved (Should be 00)
  212. 11511 - Reserved (Should be 00)
  213. ****************************** The End ***********************************
  214. Personal Greetings go to:
  215. Ice/ATX - See ya at the Rave!
  216. Krayzi/PE - Stop pulling those pipes.
  217. Krimsym - See ya at Insanity!
  218. VIking Child/Submission - Use a condom next time!
  219. Ginnie/Razor - PC's RULE - NOT!
  220. TV & Revenger/Submission - Why an A4000?
  221. Poise/Razor - Where's my text screen??
  222. Itec/Submission - Lets get TCC going again?
  223. Mixer/Mel - See ya at Kentucky!
  224. WormEater & RAM - Call my board!
  225. Kirk/Anthrox - How ya going Pete? Will Call ya soon!
  226. Mat - Speed kills - NOT!
  227. Choronzon - Let me see ya trade!
  228. Sweet Thing - Thanx for the support!
  229. Woody & Sandman - Call my bbs you lazy bastards.. hehe
  230. Cameo - I want a pre-release...
  231. Rotox - Call me..
  232. Mr. IRQ - Dove' il mio manuale?
  233. Jacknife - Thanx for the Support Dude!
  234. And to all my friends I have forgotten about coz I am tired!
  235. Group Greetings go to:
  236. Submission, Magical, Anthrox, Paradox, Razor, Fairlight, BSL, Elitendo,
  237. PE, Quartex, Skid Row and to all others I missed!
  238. NOTE: If any Australian's wish to purchase a Super Wild Card they are
  239. asked to call (03) 883-0297 (24hour paging service)............