Advertisement
Guest User

Untitled

a guest
Nov 27th, 2015
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.66 KB | None | 0 0
  1. Before we start, it is very recommended that you have a good knowledge of how the MegaDrive works.
  2.  
  3. MegaCD Terms
  4.  
  5. If you're not sure on anything from this thread, you can check out the MegaCD manual here, or ask questions in this thread.
  6.  
  7. We are going to begin with defining some terms commonly used when programming for the MegaCD.
  8.  
  9. Main CPU - This refers to the CPU from the MegaDrive side. It's mainly used to handle the game's code. Runs at 7.67 MHz.
  10.  
  11. Sub CPU - This refers to the CPU from the MegaCD side. It's mainly used to handle the CD functions and can communicate with the BIOS. Runs as 12.5 MHz.
  12.  
  13. ASIC - Also referred to as the graphics numeric processing chip, this chip can be used to rotate and scale art data, or to handle art data as pixels, rather than tiles. Can only be used by the Sub CPU.
  14.  
  15. Backup RAM - Commonly referred to as BRAM, this area of 64 kilobits ($1F40 bytes) is backed up by a battery built into the MegaCD to be used to store data. This can be used to save games and can be used by multiple games. Can only be used by the Sub CPU.
  16.  
  17. Word RAM - This is an area of RAM that is both shared by the Main and Sub CPUs. This area has 2 modes, 1M/1M and 2M mode. The M stands for Megabit, which is $20000 bytes in size. In 2M mode, all 2 megabits are used at once, and can only be accessed by one CPU at a time. In 1M/1M mode, $20000 bytes of Word RAM is split between the CPUs, but only one CPU can access a section at a time. Word RAM can be used for storing file data, or for just acting as a buffer for the Main CPU and Sub CPU to communicate each other with. The ASIC uses Word RAM as a buffer for its image functions.
  18.  
  19. Work RAM - This is the regular RAM from the MegaDrive. Can only be used by the Main CPU.
  20.  
  21. Program RAM - Commonly referred to as PRG-RAM or PRAM, this refers to $80000 bytes of RAM that is mainly used by the Sub CPU (can be accessed by the MainCPU when the Sub CPU is halted), that is mainly used for storing larger functions that can't fit into the little space in the Sub CPU program area (found at $1000-$7FFF). This can also be used as a buffer, like in Work RAM.
  22.  
  23. Boot ROM - This holds the basic operating program for the MegaCD (A.K.A. the BIOS). It is activated upon startup. This run by the Main CPU, and decompressed into PRG-RAM for the Sub CPU to run.
  24.  
  25. Access - This is the operating in which data is read from a storage device, like a CD-ROM drive.
  26.  
  27. CD-ROM - Also known as a compact disc (read-only memory), this is basically the disc that holds all of the game data.
  28.  
  29. CDDA - Also known as a digital compact audio disc, this type of CD must use a frequency of 44.1 kHz with 16-bit quantization and 2 channels (stereo). A 12 centimeter CD-ROM with these standards can hold up to 75 minutes of music, just like CDDA. MegaCD discs can hold up to a maximum of 80 minutes, because of their own standards.
  30.  
  31. CD-G - The format of this CD type is almost identical to CDDA, except that the graphical data is stored in the tiny gaps between the tracks of the audio data. This type of CD was mainly used for CD karaoke machines.
  32.  
  33. CDD - Also known as the compact disc driver, this part of the hardware in which music and data are reproduced.
  34.  
  35. CDC - Also known as the CD data controller, this uses CD-ROM standards to correct errors in the CD data sent from the CDD.
  36.  
  37. Host data - This refers to the data corrected by the CDC.
  38.  
  39. Subcode - Refers to the data consisting of items such as CD timing information, CD-G, graphics data, etc.
  40.  
  41. Sampling - Refers to the process in which an original sound is divided into tiny slices and then the value for each slice is converted into PCM. The frequency in Hz indicates how small these slices are.
  42.  
  43. Stamp - This is the smallest unit of art data that can be processed by the ASIC. It can be 16x16 pixels, or 32x32 pixels in size.
  44.  
  45. Stamp map - A map consisting of stamp IDs arranged according to the screen structure.
  46.  
  47. Trace vector - This area of data is used to help the ASIC to convert the art data.
  48.  
  49. Image buffer - This is area in WordRAM in which the ASIC stores the converted art data. This data can be stored into VRAM.
  50.  
  51. Data cache - When a disc drive reads data, it's stored in a data dache, where hardware-based error detection and correction takes place. This is a function of the CD driver.
  52.  
  53. Fader - This performs the CD music volume adjustment. Fade ins and fade outs can be accomplished with this.
  54.  
  55. Communication - This is the process of either CPU transmitting data over for the other CPU to read.
  56.  
  57. LED - On a Model 1 MegaCD, there are 2 LED lights that display the state of the CD drive. This can be activated on an emulator.
  58.  
  59. In the next tutorial, I will explain the data mapping for the Main CPU and Sub CPU.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement