<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[GFA stuff - Docs]]></title>
		<link>https://www.ihcmot.fr/board/</link>
		<description><![CDATA[GFA stuff - https://www.ihcmot.fr/board]]></description>
		<pubDate>Thu, 26 Nov 2026 04:44:24 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[" Cycles Table "]]></title>
			<link>https://www.ihcmot.fr/board/showthread.php?tid=9</link>
			<pubDate>Mon, 21 Jul 2025 11:47:52 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.ihcmot.fr/board/member.php?action=profile&uid=2">tomchi</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.ihcmot.fr/board/showthread.php?tid=9</guid>
			<description><![CDATA[<div class="post_body" style="background-color: #d3d3d3;">
<br />
Un peu comme ça existe pour l'assembleur, j'essaye ici de faire une liste des instructions et du temps machine qu'elles prennent.<br />
La principale utilité que j'en ai, c'est pour les rasters, pour avoir le changement de couleur au bon endroit.<br />
Pour le reste, à moins de grosses boucles de CARD etc, il n'y a pas d'intérêt, bref, je fais ce que je veux hein !?<br />
À utiliser à vos risques et périls, ces tableaux n'engagent que ceux qui les lisent, en l'occurrence uniquement moi pour l'instant ...<br />
Il est arrivé que la somme des cycles indiqués par le tableau soit légèrement différente de ce qu'attendu, notamment avec REPEAT/UNTIL.<br />
<br />
</div>]]></description>
			<content:encoded><![CDATA[<div class="post_body" style="background-color: #d3d3d3;">
<br />
Un peu comme ça existe pour l'assembleur, j'essaye ici de faire une liste des instructions et du temps machine qu'elles prennent.<br />
La principale utilité que j'en ai, c'est pour les rasters, pour avoir le changement de couleur au bon endroit.<br />
Pour le reste, à moins de grosses boucles de CARD etc, il n'y a pas d'intérêt, bref, je fais ce que je veux hein !?<br />
À utiliser à vos risques et périls, ces tableaux n'engagent que ceux qui les lisent, en l'occurrence uniquement moi pour l'instant ...<br />
Il est arrivé que la somme des cycles indiqués par le tableau soit légèrement différente de ce qu'attendu, notamment avec REPEAT/UNTIL.<br />
<br />
</div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[maxYMiser v1.34 Manual]]></title>
			<link>https://www.ihcmot.fr/board/showthread.php?tid=7</link>
			<pubDate>Tue, 30 Jul 2024 16:25:06 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.ihcmot.fr/board/member.php?action=profile&uid=2">tomchi</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.ihcmot.fr/board/showthread.php?tid=7</guid>
			<description><![CDATA[<span style="font-family: consolas;" class="mycode_font"><div style="text-align: left; margin-left: auto; margin-right: auto; background-color: #d3d3d3; border: 2px solid #808080; border-radius: 10px; padding: 12px; width: 680px; ">
                    ____<br />
 ___________________\   |____  _____________________________________________<br />
_\__    ________    |   |   /___\  ____     ___\___/    ___/____   /       /<br />
|   |   |   |       |_  / _|    |  |   \   /   |   |____   |   /   |   |   |<br />
|:  |   |   |:  |   |:  \  |:   |  |:  |   |   |:  |:  /   |: /____|:  |___\<br />
/___|___|___/_______/___|  |____   |___|___|___/___/_______\_______/___|gwEm<br />
========================|___\ltk/___|========================================<br />
<br />
                              maxYMiser High v1.34<br />
                            &copy; Gareth Morris 2019<br />
<br />
<br />
                                  User Manual<br />
<br />
      maxYMiser works on any Atari 16/32 platform or competent emulation<br />
        STe, Mega STe, TT or Falcon required for STe DMA sound features<br />
                        Monochrome screens NOW supported<br />
________________________________________________________________________________<br />
<br />
(0) Contents<br />
============<br />
0.......Contents<br />
1.......E-Mail<br />
2.......Credits<br />
3.......Licence<br />
4.......Introduction<br />
4.1        520, 1mb, and 2mb versions<br />
5.......Basic Principals<br />
5.1        Patterns and songs<br />
5.2        Sequences and instruments<br />
5.3        Ways to make sound<br />
5.4        The 'N' key<br />
5.5        Operation without screen<br />
6.......Tracker Display<br />
6.1        Note<br />
6.2        Instrument<br />
6.3        Volume<br />
6.4        Effects 1 &amp; 2<br />
6.5        Sample number<br />
7.......Instrument Editor<br />
7.1        Instrument Selector<br />
7.2        Instrument Parameters<br />
7.3        Sequence Editor<br />
7.4        DigiDrums<br />
8.......Sub-Menus<br />
8.1        Escape<br />
8.2        About<br />
8.3        Help<br />
8.4        Normal<br />
8.5        Configuration<br />
8.6        Zap/Pack<br />
8.7        Transpose<br />
8.8        Advanced edit<br />
8.9        Play song<br />
8.10        Play pattern<br />
8.11        Stop<br />
8.12        Record song<br />
8.13        Record pattern<br />
8.14        Disk operations<br />
8.15        Sequence and sample editor extension<br />
9.......Tracker Effects<br />
10......MIDI Controllers<br />
10.1        Tracker controllers<br />
10.2        Instrument controllers<br />
11......Jam Mode<br />
11.1        Looping pattern<br />
12......MIDI Clock / Sync24 Output<br />
13......MIDI Note Output<br />
14......MMC<br />
15......Replaying maxYMiser Music<br />
15.1        Technical<br />
15.2        Tips for low CPU consumption<br />
16......Finally<br />
________________________________________________________________________________<br />
<br />
(1) E-Mail<br />
==========<br />
For all information, help, or questions:<br />
gwem@preromanbritain.com<br />
<br />
To  register  your  interest in maxYMiser please joint the mailing list, details<br />
at:<br />
<a href="http://www.preromanbritain.com/maxymiser" target="_blank" rel="noopener" class="mycode_url">http://www.preromanbritain.com/maxymiser</a><br />
________________________________________________________________________________<br />
<br />
(2) Credits<br />
===========<br />
Code, design and manual.......................................Gareth Morris:gwEm<br />
Design........................................Mathieu Stempell<img src="https://www.ihcmot.fr/board/images/smilies/biggrin.png" alt="Big Grin" title="Big Grin" class="smilie smilie_4" />ma-Sc/Sector One<br />
Graphics.............................................Sebastien Larnac:STSurvivor<br />
<br />
Falcon DSP clock detection.......................Denis Huget:ST Ghost/Sector One<br />
ICE pack algorithm.....ripped by Phil Graham:Grazey/PHF, original by Axe/Delight<br />
ASCII logo...........................................Stefan Benz:Lotekstyle/tSCc<br />
<br />
Its true that most of the grind work on maxYMiser was done by me (Gareth Morris)<br />
but  we  should  not  forget the work of these other guys who all made maxYMiser<br />
what it is today, so thanks again this crew.<br />
________________________________________________________________________________<br />
<br />
(3) Licence<br />
===========<br />
I'm  bored  of  releasing freeware software that gets a huge number of downloads<br />
but  receives  little  or  no  feedback,  except  from people who I usually know<br />
personally. So:<br />
<br />
maxYMiser  is FREE, but if you make music or sounds with this software which are<br />
released  either  in  any  kind  of commercial or non-commercial way, you should<br />
mention  somehow that you used maxYMiser in its production. In case you wonder -<br />
this is serious. I think its a small price for quality free software.<br />
<br />
maxYMiser  maybe  distributed freely, but only with this text document and other<br />
associated files. None of the files may be modified in any way.<br />
<br />
maxYMiser  comes  with  no  warranty  of  any  kind: It may very well trash your<br />
machine/files/music etc etc<br />
________________________________________________________________________________<br />
<br />
(4) Introduction<br />
================<br />
The Atari ST has many good music editors for the built-in YM2149 sound chip. The<br />
problem  is  though  that,  in  someway,  every  one of them sucks. When I first<br />
discussed  the  project  with Dma-Sc, he said I should make 'the music editor of<br />
our dreams'. Later I decided to change this goal and just tried to make the best<br />
sound  chip editor on any platform. With such high aims this was a long project,<br />
however  I am happy with the end result - even if in many ways I regret starting<br />
it.<br />
<br />
You'll  notice  the interface and keyboard layout borrows (steals <img src="https://www.ihcmot.fr/board/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" /> ) much from<br />
the PC sample tracker 'FastTracker 2'.... of course, because this is my absolute<br />
favourite  tracker.  I  made changes to the things I disliked about this editor,<br />
and  also  made  changes to make the interface fit to YM2149 sound chip editing.<br />
The  many  fans  of  FastTracker 2 should have no problems to adapt to maxYMiser<br />
though I think.<br />
<br />
maxYMiser  is  not a program for a beginner - it needs a decent knowledge of the<br />
YM2149  sound  chip.  You can read the YM2149 datasheet to give yourself a crash<br />
course,  or  use  a different editor. I heartily recommend MusicMon2.5, which is<br />
easy to learn and has an advanced sound system.<br />
<br />
Recently Dma-Sc and 505 have produced a newbie guide, and some free instruments,<br />
to stay up to date with cool developments like this, visit the maxYMiser webpage<br />
often <img src="https://www.ihcmot.fr/board/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
<br />
maxYMiser  has  no  guards  over  CPU  utilisation, with certain combinations of<br />
effect you can easily use more than 100% CPU, which has easy to imagine results.<br />
The  composer  has no restriction over combinations of effect types and channels<br />
and  there  are  also  no lame 'are you sure about this' type screens - so watch<br />
out.  If  you  need  some  guidance about what effects use how much CPU, look in<br />
Section 10.2<br />
<br />
(4.1) 520, 1mb, and 2mb versions<br />
--------------------------------<br />
There are three versions of maxYMiser included:<br />
<br />
For  machines with only  half a megabyte of RAM - 520ST, 520STF, 520STFM, 520STe<br />
etc  use MYM_520.PRG.  A few features had  to be removed for this version. These<br />
features  are the  STSurvior intro  screen, all  features relating  to digi  and<br />
sample  playback,  STe microwire and  ICE pack/depack. The powerful maxYMiser YM<br />
engine is still intact.<br />
<br />
For  machines with  more memory - MYM_1MB.PRG is guaranteed to work correctly on<br />
machines  with  1mb of  RAM. MYM_2MB.PRB might  also work in  most cases, but no<br />
promises. In the version for 1mb machines, sample memory has been limited to 8kb<br />
per sample, in the 2mb version you get the full 32kb.<br />
<br />
The  rest  of the manual related to the 2mb version, so please be aware of these<br />
differences if using a different version.<br />
________________________________________________________________________________<br />
<br />
(5) Basic Principals<br />
====================<br />
Here  I  discuss  some of the basic ideas, terms and concepts used in maxYMiser.<br />
Some  basic  tracker  knowledge  could help here - I suggest newbies consult the<br />
famous 'Trackers Handbook'.<br />
<br />
(5.1) Patterns and songs<br />
------------------------<br />
On  first  appearances  maxYMiser  looks  like  it  takes  the  song and pattern<br />
structure  from FastTracker 2 or ProTracker. This was my intention, but actually<br />
its  not  the  case.  In FastTracker, 2 dimensional patterns are linked together<br />
into  a  one dimensional song list. In maxYMiser songs are 2 dimensional and the<br />
patterns  are  1  dimensional.  This makes for a saving in file size, and offers<br />
some ease of use to the composer. Some preset patterns exist for ease of use, eg<br />
'empty pattern' and 'note off'.<br />
<br />
(5.2) Sequences and instruments<br />
-------------------------------<br />
When  I  was  designing  maxYMiser  I  wanted  to  give the composer the maximum<br />
possibilities  of  the  YM sound chip. This meant a low-level instrument editor,<br />
and  so  I  devised sequences. A sequence is a list of binary words that you can<br />
use  to  vary  some  parameter  of the sound over time. To give, for instance, a<br />
classic  arpeggiated  chord, or a wobbly vibrato effect. A sequence is also used<br />
to  produce  a  volume  envelope, or to define a SID waveform. For more details,<br />
read the instrument editor part of this manual.<br />
<br />
(5.3) Ways to make sound<br />
------------------------<br />
I  already  suggested  to  read the YM2149 data sheet, so please do. Anyhow, the<br />
YM2149  can  produce sounds formed from combining square wave, buzzer and noise.<br />
On  Atari  ST  we  have  a  fourth  possibility  -  the MFP or timer. Timers can<br />
interrupt  the  CPU  at regular intervals for manipulating the YM into producing<br />
various  effects.  This distributed version of maxYMiser has 3 specific types of<br />
timer effects. Each channel uses its own separate timer, if its enabled that is.<br />
The effects include:<br />
<br />
    * 'DigiDrums'  which  play  a 4bit sample, typically a drum sound or special<br />
        effect<br />
    * 'SID'  produces a software generated waveform. In the past this has always<br />
        been  a  fixed  waveform  (usually  square),  maxYMiser  allows  you the<br />
        possibility  to  program  this  yourself,  eg  for  sine  or fake-buzzer<br />
        waveforms.<br />
    * 'SyncBuzzer'  retriggers  the buzzer waveform at audio frequency intervals<br />
        to  create  synchronisation  effects  in  the  same  way  as  the 'sync'<br />
        function works on an analogue synthesiser.<br />
<br />
On  STe  machines  and higher we have even a fifth possibility to make sound - a<br />
simple  DMA  sound  chip. maxYMiser offers quite optimised mixing and resampling<br />
routines  and a simple interface to allow this DMA chip to be used together with<br />
our old friend the YM for hybrid composing.<br />
<br />
(5.4) The 'N' key<br />
-----------------<br />
In  many  of the editors and screens pressing 'N', 'shift+N' or 'control+N' will<br />
select  the next unused pattern or sequence. Remembering this will save you time<br />
and effort - thanks 505 <img src="https://www.ihcmot.fr/board/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" /><br />
<br />
(5.5) Operation without screen<br />
------------------------------<br />
maxYMiser  includes  some  file  auto-loading  functions to allow the use of the<br />
program without needing a big and heavy screen - for example as a part of a live<br />
performance, or when using maxYMiser as a MIDI sound module.<br />
<br />
To do this, you might setup a floppy disk as follows:<br />
<br />
A:\AUTO        - here put your maxYMiser program file<br />
<br />
A:\            - here include your default voice sets and configurations:<br />
  \MYM.CNF    - first the usual maxYMiser configuration file is loaded<br />
  \DEFAULT.SND - a default SNDH file is attempted next, if not...<br />
  \DEFAULT.MYS -    then tries to load a default song...<br />
  \DEFAULT.MYV -    and voice set<br />
  \DEFAULT.MYI -        if this also fails, tries to load a default instrument<br />
                            otherwise, no default files are loaded<br />
<br />
So  by  including  maxYMiser  in  an auto folder, and a default file in the root<br />
directory  is  possible to boot from a floppy and have some pre-made voices or a<br />
tune loaded automatically when you power on the machine.<br />
________________________________________________________________________________<br />
<br />
(6) Tracker Display<br />
===================<br />
As  you  can see the tracker display consists of three large vertical columns of<br />
codes.  Each  vertical  column  corresponds  to  one  of  the three YM2149 sound<br />
channels.<br />
<br />
The  number at the top of each channel shows the current pattern being displayed<br />
there.  Pressing 'Play Pattern' plays the current patterns without reloading the<br />
current  patterns  from  the  song list. This allows you to demo combinations of<br />
patterns  without  changes  to  the  song.  These  patterns  can be changed with<br />
keyboard  shortcuts,  or  by modifying these fields with a new pattern number or<br />
preset.<br />
<br />
Like  many  trackers the patterns are 64 steps long, which nicely corresponds to<br />
4  musical  bars, with each step equal to one 1/16th note. Pattern break tracker<br />
commands allow you to shorten this length.<br />
<br />
For  each step in each column of YM tracker data there are seven pieces of info.<br />
Lets illustrate them below:<br />
<br />
|            |            |        |            .      |            .      |<br />
| Note-Octave | Instrument | Volume | FX 1 : Type . Value | FX 2: Type . Value |<br />
|            |            |        |            .      |            .      |<br />
<br />
The  same  patterns are also used for the STe DMA track. Here the meaning of the<br />
data is a bit different:<br />
<br />
|              .          .          |              .          .          |<br />
| Note-Octave 1 . Sample 1 . Volume 1 | Note-Octave 2 . Sample 2 . Volume 2 |<br />
|              .          .          |              .          .          |<br />
<br />
There  are  no effects (except volume) on the STe DMA track - but you do get two<br />
independent channels for sample playback!<br />
<br />
(6.1) Note<br />
----------<br />
This  column  holds  the note data for that step. If this is blank the currently<br />
playing  note  is unaffected. CapsLock can be used to enter a universal note off<br />
here.  Notes  can  be entered either in real or step time, and using an external<br />
MIDI keyboard, or the Atari keyboard (here we show mapping on a UK system):<br />
<br />
(Upper octave)<br />
2 3  5 6 7  9 0  =      =&gt;    C# D#    F# G# A#    C# D#    F#<br />
Q W E R T Y U I O P [ ]    =&gt;    C  D  E  F  G  A  B  C  D  E  F  G<br />
<br />
(Lower octave)<br />
  S D  G H J  L :        =&gt;        C# D#    F# G# A#    C# D#<br />
  Z X C V B N M , . /      =&gt;      C  D  E  F  G  A  B  C  D  E<br />
<br />
Octaves  can  be changed with the function keys. maxYMiser supports all notes in<br />
the YM frequency range, even if the very high notes are not useful musically.<br />
<br />
The  octave  reached  by  press  'F9'  maps  each key to middle C on a different<br />
instrument, useful for entering rhythms.<br />
<br />
(6.2) Instrument<br />
----------------<br />
If  an  instrument  number  is present here then the sound is triggered from the<br />
start  so, to avoid retriggering, simply omit this column. The instrument number<br />
to  be  entered  in  this  column  can  be selected with the numeric keypad, the<br />
instrument editor, or via a 'MIDI patch change'.<br />
<br />
(6.3) Volume<br />
------------<br />
The volume number in this column is an attenuation level. A dash means no change<br />
to  the  current  attenuation  level.  A &#36;0 gives the loudest volume, and &#36;F the<br />
quietest. Usually a dash is entered in this column, but you can change this with<br />
the 'vol' field in the 'normal' menu.<br />
<br />
(6.4) Effects 1 &amp; 2<br />
-------------------<br />
Effects  type  is  an  alphanumeric  value, in other words 0-9 and A-Z. The full<br />
details  of  these  effects  are  provided  later  on  in  this  manual, and are<br />
summarised in the online help system.<br />
<br />
The  effects  value which corresponds to this type is shown by the adjoining two<br />
nibbles,  which  form  a  hexadecimal value in the range &#36;00-&#36;FF. The meaning of<br />
this value depends on the effects type.<br />
<br />
The  single  effect  columns  previously  available on existing YM trackers were<br />
thought  not  to  be  sufficient for the complex compositions with adjustment in<br />
instrument  parameters  that  maxYMiser  was  designed for. Therefore two effect<br />
columns are provided, which offer exactly the same features.<br />
<br />
(6.5) Sample number<br />
-------------------<br />
On  the  STe  DMA  track we have sample number instead of instrument number. The<br />
tracker plays back samples loaded into the digidrum banks, and the sample number<br />
here  corresponds  to  the  digidrum sample number. Samples are played back with<br />
middle C corresponding to 8287Hz.<br />
________________________________________________________________________________<br />
<br />
(7) Instrument Editor<br />
=====================<br />
The  right  half  of  the screen allows selection and editing of the instruments<br />
used in your composition. Almost every instrument parameter can be adjusted with<br />
tracker commands. For an in-depth tutorial of the maxYMiser instrument editor by<br />
Dma-Sc check the maxYMiser website.<br />
<br />
(7.1) Instrument Selector<br />
-------------------------<br />
maxYMiser  has  four banks of eight instruments, giving 32 instruments in total.<br />
Instrument banks maybe selected with the buttons to the top right of the screen,<br />
or with keyboard shortcuts on the numeric keypad.<br />
<br />
Within  each bank you can select instruments with a left mouse click. Highlights<br />
appear over the instrument name and the instrument number. These can be selected<br />
independently for copy and remapping operations. Right clicking on an instrument<br />
name allows editing.<br />
<br />
(7.2) Instrument Parameters<br />
---------------------------<br />
From the top down:<br />
<br />
The  'de-tune  matrix'  allows  you  to  enable  different  instrument  effects<br />
(portamento,  vibrato  etc)  on  different parts of your sound (the square wave,<br />
buzzer  or  timer  generated  effect). Fixing the frequency of the sound using a<br />
fixed  frequency  sequence  (fix  freq)  disallows  all other effects except for<br />
vibrato,  it  is  also  no  longer  possible to play notes with this part of the<br />
sound.  Selecting  'fixed  frequency'  and 'fixed de-tune' bypasses the need for<br />
specifying  fixed  frequencies  with  a  sequence,  instead  the fine and coarse<br />
instrument  parameters  allow  you  to  fix the frequency, this allows the fixed<br />
frequency to be adjust via tracker commands if required. The transpose effect is<br />
controlled  by the transpose tracker command. As you can recognise, the 'de-tune<br />
matrix'  gives  many  possibilities  for de-tuning sounds, for ravey stabs, fake<br />
resonant effects etc.<br />
<br />
Below  the  matrix  you  can  select  sequences  to  change the sound over time.<br />
Sequences can be shared between sounds.<br />
<br />
'Vol'  sequence  changes  the note volume over time &#36;F=maximum level &#36;0=minimum.<br />
Volume sequences do  not  affect  buzzer  sounds for technical reasons.  On digi<br />
sounds only the first step is considered.<br />
<br />
'Arp'  sequence  allows complex arpeggios to be performed. The sequence provides<br />
the  number of semi-tones the note is to be adjusted by over time. The number is<br />
interpreted  as  signed 2's compliment, so &#36;FFFF is a -1 semitone adjustment for<br />
example.<br />
<br />
'Vib',  or vibrato, works similarly to the arpeggio except the adjustment is not<br />
tuned  by  semitones,  rather  YM  frequency  register  value.  This allows fine<br />
adjustments - however they are not in tune over a wide frequency range.<br />
<br />
'Mix'  allows  for  changing the state of the YM mixer over time. The details of<br />
the  YM  mixer  appear in the online help. The first nibble enables and disables<br />
the  noise  generator,  the  second  nibble enables and disables the square wave<br />
generator.  The  third nibble enables the buzzer. The final nibble allows you to<br />
select which timer-based effect (for example SID or digidrums) will be used.<br />
<br />
'Noi',  short  for  noise,  allows  you  to adjust the frequency of the YM noise<br />
generator  over  time. As the YM sound chip just has one noise generator, higher<br />
number YM channels have the priority over setting this frequency. Adjust between<br />
&#36;00 to &#36;1F.<br />
<br />
'Fix',  for  fixed  frequency,  is  a rarely used but powerful sequence. You can<br />
specify  actual YM frequency register values changing over time. The online help<br />
provides  all  the  formulae you need to calculate these values. If a particular<br />
frequency  step  is  set to &#36;FFFF then fixed frequency is ignored and the normal<br />
note is played - useful for combining instruments.<br />
<br />
'Tim'  provides never before seen possibilities in a YM tracker, and is arguably<br />
the most powerful feature of maxYMiser. In short it allows you fine control over<br />
many  of  the  timer  effects.  In the case of SID, this sequence configures the<br />
software  waveform  that  is generated by the SID timer interrupt. For example a<br />
sequence  &#36;F,&#36;0  gives  a  square  wave.  &#36;F,&#36;F,&#36;F,&#36;0  gives  a  pulse waveform.<br />
&#36;F,&#36;A,&#36;5,&#36;0  a  rough  saw  waveform  and  so on (sine wave is also possible for<br />
example). Up to 16 steps maybe used in a SID waveform, and fewer steps mean less<br />
CPU  utilisation.  In  the  case  of  syncbuzzer each step in the 'Tim' sequence<br />
represents  a buzzer waveform, allowing you to form complex alternating waveform<br />
syncbuzzer  effects. Up to 8 steps maybe used in a syncbuzzer effect, and number<br />
of steps does not effect CPU utilisation.<br />
<br />
Below the sequence selection fields are instrument parameters that do not change<br />
over time:<br />
<br />
'Seq  Speed'  allows  the user to set the speed with which all the sequences are<br />
processed. A higher number means slower sequence effects.<br />
<br />
'Buzz Wave' sets the buzzer waveform associated with this sound. The online help<br />
section  has  a list of the different possibilities. As with the noise generator<br />
YM2149  just  has one buzzer to share with all voices. Higher number YM channels<br />
take priority over the buzzer effect.<br />
<br />
'Start  Syn'  allows effects only previously possible with the MusicMon2 editor.<br />
Other  YM editors passed this little gem by, but here again it appears. Enabling<br />
this field forces the instrument to synchronise all its tuned components (square<br />
wave,  buzzer  and timer) when the note is triggered, for repeatable phasing. It<br />
is  not  possible  to  guarantee  synchronisation of the YM2149 square wave with<br />
precision  of greater than 180degrees - this leads to 2 possible phasing effects<br />
in this case.<br />
<br />
'Fix  Det'.  If  fixed  de-tune  is enabled by the de-tune matrix then these two<br />
fields  affect  the  sound.  The  coarse  de-tune  allows  de-tuning in semitone<br />
intervals. The fine de-tune allows de-tuning in YM frequency register intervals.<br />
<br />
'Digi  Sample'  allows  you  to pick a digidrum sample from the 8 that maxYMiser<br />
supports. For more information see the DigiDrum section. A value of zero in this<br />
field means no digidrum sample is selected.<br />
<br />
'Rate'  allows  you  to  set  the  replay  frequency of the digi sample. You are<br />
altering  timer  register values, however these are also converted to Hz to make<br />
things  easier.  So called 'tempered' digi sounds are not easily possible (so it<br />
is  not  convenient  to  play  tuned  notes  with them). However this is not the<br />
purpose  of  digidrums  (a  hint  there  in  the  name <img src="https://www.ihcmot.fr/board/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" /> ) - and in the case of<br />
percussive  samples I believe that fine control over replay frequency is better.<br />
maxYMiser gives you the finest control possible with the hardware.<br />
<br />
'Instrument  volume'  specifies  the  amount  of  attenuation  applied  to  this<br />
instrument.  This  means a value of zero gives the loudest sound, and a value of<br />
&#36;F, the smallest. Make sure you have a defined volume sequence or a buzzer based<br />
sound.... otherwise you hear nothing <img src="https://www.ihcmot.fr/board/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" /><br />
<br />
(7.3) Sequence Editor<br />
---------------------<br />
This  word  editor allows you to define the sequences used by the instruments. I<br />
believe usage of this editor to be self-explaining, however:<br />
<br />
'Cpy' copies the current sequence to the 'Dest' sequence.<br />
<br />
'Clr' clears the current sequence.<br />
<br />
'Length' holds the length of the current sequence, and 'Repeat' holds its repeat<br />
point (if appropriate).<br />
<br />
Keyboard shortcuts:<br />
F3:      cut<br />
F4:      copy<br />
F5:      paste<br />
Help:    return to start<br />
ClrHome: return to start<br />
Undo:    skip to end<br />
Enter:  quit sequence editor<br />
<br />
(7.4) DigiDrums<br />
---------------<br />
This  small  menu  allows  you  to  load  new  digi  samples into your music for<br />
digidrums  or  STe  DMA.  8 samples are allowed, each of which can be applied to<br />
many  YM  instruments,  or  played  back  through the DMA sound chip. Select the<br />
sample  number you want to load into and then choose the 'Lod' button. Select an<br />
8bit  signed  headerless  sample  (eg  RAW  PCM  type  formats).  If  loading is<br />
successful  the sample length will be displayed. When playing back as a digidrum<br />
each  sample  is  automatically  converted for 4bit YM sample resolution using a<br />
highly accurate lookup table. Each digidrum can be up to 32kb in length.<br />
<br />
If you want to load a new sample simply pick the 'Lod' button.<br />
<br />
To save your sample, along with any editing use 'Sav'.<br />
<br />
Finally, to clear an unused sample simply pick the 'Clr' button.<br />
<br />
Its  also  possible to change the length of your sample by clicking on the 'Len'<br />
field.<br />
________________________________________________________________________________<br />
<br />
(8) Sub-Menus<br />
=============<br />
Here I describe the individual functions of each program sub-menu:<br />
<br />
(8.1) Escape<br />
------------<br />
You  reach  this  menu  by  clicking  on  the  top left corner of the screen, or<br />
pressing  the  escape  key.  'Quit'  exits  the program back to the GEM desktop.<br />
'Background'  partially restores your Atari to enable it to run desk accessories<br />
(eg  calculators, sound setup accessories etc) or, in a multi-tasking OS such as<br />
Mint, other programs. Select 'Foreground' to return to maxYMiser.<br />
<br />
(8.2) About<br />
-----------<br />
Displays  the  main  program credits. Right clicking on the 'Title' and 'Artist'<br />
fields allows the composer to edit the data for these SNDH format tags.<br />
<br />
(8.3) Help<br />
----------<br />
This help section provides the user with a quick reference to all tracker effect<br />
commands,  keyboard  shortcuts,  some  YM2149  and  DMA  low  level details, and<br />
information  about maxYMiser's MIDI implementation. Clicking the  buttons on the<br />
left  selects  which help you want to view. Then click on the help pane, and use<br />
the mouse to navigate through each screen.<br />
<br />
(8.4) Normal<br />
------------<br />
The  mini-tracker  display to the top right is the song editor. Here you can set<br />
how  your  patterns  will be sequenced to form a finished song. This mini-editor<br />
supports  many  cut and paste features of the main editor, so experiment. Preset<br />
patterns can be accessed as follows:<br />
<br />
Empty pattern    : Backspace<br />
Note off pattern : Caps Lock<br />
Looping pattern  : Spacebar<br />
<br />
For  more details of the Looping pattern see the Jam mode description, in normal<br />
playback, looping patterns are simply skipped over.<br />
<br />
The  arrows allow you to move up and down the song editor - right clicking moves<br />
to the song start and end.<br />
<br />
'Len' holds the length of the song, and 'Rep' the repeat point for the song.<br />
<br />
'Speed' holds the song speed in number of replay routine calls per 1/16th note.<br />
<br />
'BPM'  cannot be edited and is a rough calculation based on the replay speed and<br />
interrupt frequency.<br />
<br />
'TC' allows you to set the frequency that the maxYMiser replay routine is called<br />
by.  This  frequency  is synthesised from the 200Hz system tick. In this way you<br />
can select tempos with fine resolution.<br />
<br />
Beside  the  'TC'  setting  you have the possibility to toggle between using the<br />
Atari internal system clock, 'MIDI' clock input including Song Position Pointer,<br />
and  'SY24'  Sync24  input  using  a  special  joystick  port interface (see the<br />
maxYMiser  webpage  for  details  of how to make that. Sync24 input works better<br />
with faster Ataris. In MIDI and Sync24 modes the song speed may not be adjusted.<br />
<br />
The box below the interrupt setting gives the current playback mode, which makes<br />
it  easier  to use the 'jam' features included for realtime resequencing of your<br />
music.  For  more about jam mode, please read that section. Clicking on this box<br />
allows  toggling  between  normal  playback  and  jam mode, as well and song and<br />
pattern  play. Using this box to change the playback mode does not interrupt the<br />
playback of your music. You can use F10 / Shift+F10 to toggle this setting also.<br />
<br />
'Time' is self explaining <img src="https://www.ihcmot.fr/board/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" /><br />
<br />
'Zync' shows the current demo zynchronisation code for easy editing.<br />
<br />
'Vol' holds the current note volume put in to the editor.<br />
<br />
'Add' holds the number of 1/16 steps skipped each time you enter a new note.<br />
<br />
Left  clicking  on the 'Chan' buttons mutes and unmutes that YM channel. A right<br />
click solos and unsolos that channel.<br />
<br />
(8.5) Configuration<br />
-------------------<br />
Here you select different options for the appearance and operation of maxYMiser.<br />
<br />
'Scroll'  activates  and  deactivates  pattern  scrolling  - useful for realtime<br />
editing!<br />
<br />
The controls just below 'scroll' allow you to setup different colour schemes for<br />
the editor.<br />
<br />
'Mouse' selects between 8 classic mouse pointer shapes <img src="https://www.ihcmot.fr/board/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" /><br />
<br />
The 'Timers' check boxes activate and deactivate MFP timer based effects on each<br />
YM channel. This can also be changed dynamically whilst the song is playing with<br />
tracker  commands. This allows easy swapping of timer utilisation between the YM<br />
chip  music and any other demo effect you might be running. The timer activation<br />
and  deactivation  is  system friendly and fully restores the original settings.<br />
A bright block indicates when a timer is used.<br />
<br />
The  status  of  the STe DMA sound chip functions can be set. Either all STe DMA<br />
features  can  be  deactivated,  enabled  on standard resampling mode for 1 or 2<br />
channels,  or  enabled  for  a  single STe native frequency channel only. Single<br />
channel  STe  DMA  modes  boost the volume of the DMA sounds, and the native STe<br />
frequency mode has no CPU overhead for resampling.  Finally the STe channels can<br />
set to output MIDI note data. STe hardware is not required for this setting.<br />
<br />
The  DMA  volume control allows the user to set the minimum volume level the STe<br />
channel will respond to. If you choose to allow less volume levels the memory is<br />
saved  in  STe native mode. On the single channel DMA mode then both CPU and RAM<br />
are saved by setting this control to zero.<br />
<br />
'Speaker'  enables  and  disables  TT/Falcon030  internal  speaker (assuming you<br />
didn't rip it out already <img src="https://www.ihcmot.fr/board/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" /> )<br />
<br />
'VB  Freq' - you can set this to high or low screen refresh setting on ST(e) and<br />
Falcon  platforms.  This  may  improve  your  display  quality  and  is  totally<br />
independent of the sound replay frequency.<br />
<br />
'Show  CPU'  enables  display  of the amount of CPU used by the maxYMiser replay<br />
routine. Interpret this with caution and knowledge! Timer effects will slow down<br />
the  CPU  at all times, not just when the replay routine is active. Better use a<br />
different system for more accurate CPU usage monitoring, for example SNDH_CPU.<br />
<br />
On  Falcon  030,  maxYMiser  supports external DSP clocks, and extra outputs. If<br />
your  sound system is not locked when maxYMiser is run, then external DSP clocks<br />
will be detected. You can see the frequency of this clock here. If you have dual<br />
DSP  clocks  (represented by an asterisk) then you can toggle which one is used.<br />
If  you  have  an  external  DSP  clock  then an external output, such a SP-DIF,<br />
Analog-8  etc  is automatically enabled. 44.1kHz is by default chosen if this is<br />
available.  Next  to  this  field  you can select what sound is put out over the<br />
external output. You can choose either YM or STe DMA sounds to be transmitted.<br />
<br />
The  'Year'  field  allows  you to enter the year of composition for your music.<br />
This information is used in work saved as an SNDH file.<br />
<br />
'Save  CNF' writes a file 'MYM.CNF' to the maxYMiser directory. This stores your<br />
configuration settings and will be reloaded each time maxYMiser is run.<br />
<br />
If 'Re-load' is enabled then your configuration will be reloaded after loading a<br />
SNDH  or song file. In this way settings stored in these files can be ignored if<br />
you wish.<br />
<br />
The  MIDI  settings on the screen allow access to maxYMiser's MIDI functions. YM<br />
tracks  1,2 and 3, and the 2 STe DMA channels can be assigned to a specific MIDI<br />
channel (&#36;0-&#36;F corresponding to channels 1-16), each with a different instrument<br />
or sample number. This instrument can also be changed with a 'MIDI patch change'<br />
separate of this sub-menu. If YM and DMA tracks are set to the same MIDI channel<br />
then  MIDI note input on this channel will be multi-plexed in a semi-intelligent<br />
way to give polyphonic abilities <img src="https://www.ihcmot.fr/board/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
<br />
There  are  also  two  special  MIDI instrument numbers. When '--' is shown this<br />
track  is totally disabled. The 'DD' instrument allows support of MIDI drum kits<br />
to  play  maxYMiser  sounds.  The  'DD'  is a tribute to the Yamaha DD series of<br />
electronic  drum  sets - yo! In this mode each key plays middle C on a different<br />
sound. You can enable this mode for the editor by pressing 'F9'.<br />
<br />
You  can  enable  maxYMiser's ability to respond to MIDI controllers here too by<br />
toggling the 'cntrllers' setting.<br />
<br />
The 'Latency' setting allows you to  compensate for the comparatively slow start<br />
time of maxYMiser when using an exteral MIDI or Sync24 clock.  By increasing the<br />
value from zero,  maxYMiser starts slightly further into the song.  This way you<br />
can tune maxYMiser to be in sync  with your external MIDI gear.  The setting is<br />
dependant on your Atari,  the tempo of the song, and the DMA samples used.  You<br />
can use a value of around 5 for  a simple 200bpm song on  a normal ST or STe for<br />
example.<br />
<br />
(8.6) Zap/Pack<br />
--------------<br />
The 'devastate' options allow you to trash your song, instruments, or both <img src="https://www.ihcmot.fr/board/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" /><br />
<br />
The  'squish'  options  give  you  some  memory management functions. Duplicated<br />
patterns  and  sequences are removed and the remainder are stored in a way so as<br />
to reduce file size. Preset pattern are subsituted where applicable.<br />
<br />
You can also get some statistics about the last used sequence and pattern, which<br />
indicates  how  much  memory is used for storing these things. Press 'update' to<br />
update this display.<br />
<br />
(8.7) Transpose<br />
---------------<br />
Here  you  get  an  enhanced  version of FastTracker2's menu. In addition to the<br />
usual  32  transposition  possibilities  you  can  perform  16  different volume<br />
adjustments with this menu.<br />
<br />
(8.8) Advanced edit<br />
-------------------<br />
This menu gives powerful editing possibilities.<br />
<br />
'Copy'  copies  an  instrument  between  positions in the instrument editor. The<br />
small  'instrument  number'  highlight specifies the destination, and the larger<br />
'instrument name' highlight gives the source.<br />
<br />
'Track',  'Pattern',  'Song' and 'Block' allows you to re-map instruments within<br />
your song.<br />
<br />
'Xpand'  and  'Shrnk'  allows  to double and half speed the current track.  Any<br />
part  of  the pattern 'cut off'  by  the expand operation is stored in the track<br />
edit buffer.<br />
<br />
You can select 'Overwrite', 'Overlay' and 'Underlay' paste modes.<br />
<br />
The  seven  button  toggle  below the paste mode selection allow masking of each<br />
column  of  tracker data for the cut and paste operations. Clicking on the 'all'<br />
text toggles all of the column masks on and off.<br />
<br />
(8.9) Play song<br />
---------------<br />
Selecting  with  the  left  mouse  button  plays  the song from the start of the<br />
current  pattern  onwards. A right click plays the song all the way through from<br />
the top.<br />
<br />
(8.10) Play pattern<br />
-------------------<br />
Left  clicking  plays the current pattern from the start without re-initialising<br />
them  from  the  song list. This allows you to try out patterns together without<br />
changing  the  song.  Right  clicking  has  the same effect, but starts from the<br />
current cursor position.<br />
<br />
(8.11) Stop<br />
-----------<br />
Stops play and record modes.<br />
<br />
(8.12) Record song<br />
------------------<br />
Only  left  click  has  an  effect.  Operates the same as play song, but enables<br />
record mode.<br />
<br />
(8.13) Record pattern<br />
---------------------<br />
Only  left  click  has an effect. Operates the same as play pattern, but enables<br />
record mode.<br />
<br />
(8.14) Disk operations<br />
----------------------<br />
maxYMiser  gives  you an array of loading and saving possibilities. You can work<br />
with  files  in  the  popular  Atari ST music format 'SNDH' (of course only SNDH<br />
files  created  with maxYMiser can be loaded into the editor). You can also save<br />
and  load  voice  sets  and song data separately for use with maxYMiser's binary<br />
replay  routine.  In  addition you can save your favourite instruments and trade<br />
with your friends <img src="https://www.ihcmot.fr/board/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" /><br />
<br />
The  software  saves  and  loads  files packed with the famous ICE algorithm. To<br />
enable  saving with this packer, select the check box. The next file to be saved<br />
will  then  be  ice  packed  for  a significant file size reduction, however the<br />
packing operation can take some time, especially on a standard ST... Therefore I<br />
recommend  ICE packing only for distributing your finished music. All fully SNDH<br />
standard compliant players support playback of ICE packed files.<br />
<br />
Another  option  for  distributing  your finished music is the 'time' check box.<br />
Normally saved files loop continuously at the repeat point. However, by checking<br />
this  box  the  next  saved  SNDH  file  will have its track duration set by the<br />
current  track  timer.  Just play your track to its end point, and press stop to<br />
set  the  timer  appropriately.  Now  in  supporting players your music will end<br />
correctly.<br />
<br />
The  bottom  field on this panel gives the result of the last disk operation, so<br />
it is also displayed after loading digi samples.<br />
<br />
(8.15) Sequence and sample editor extension<br />
-------------------------------------------<br />
The  first half of this menu allows fast generation of sequence data. Sweeps and<br />
oscillations  can  be  easily  programmed  here.  'Minimum',  'Maximum'  and<br />
'Oscillations'  are  self  explaining.  You  can  'Gen'erate  a  new sequence or<br />
'Mod'ify an existing one.<br />
<br />
The  'Morph'  button  generates  sequences  that  fit in between the current and<br />
destination  sequences.  For  this  to work these sequences should have the same<br />
length.  Combining  this feature with tracker commands allows versatile morphing<br />
of sounds, eg SID-morph.<br />
<br />
The  second  half of the menu expands the abilities of the little digidrum panel<br />
into a minimalist sample editor.<br />
<br />
You can amplify or attenuate you sample in units of 1.5db.<br />
<br />
There  are fine tuning functions which allow you to pitch up or down your sample<br />
in  units  of an octave, a semi tone, and 1/8 of a semi tone fine tuning. Tuning<br />
down an octave includes interpolation for improved quality.<br />
<br />
The  YMise  function is not to be found on any other sample editor. Converts the<br />
sample  to  sound  like a YM digidrum - even on the STe DMA channel. This is for<br />
true digidrum freakz.<br />
<br />
Incase you loaded by mistake a sample in a really old fashioned unsigned format,<br />
have no stress and click the 'Sign/Unsign' button <img src="https://www.ihcmot.fr/board/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
<br />
The  sample  start  point  can  be manually trimmed with the 'Start' field. This<br />
allows  for really old skool style sample editing found on classic samplers like<br />
Akai  S950.  To set this point really finely you could playback your sample at a<br />
very low pitch.<br />
<br />
Hint:  you  can  also  load  microsoft  .WAV files saved in PCM 8bit format into<br />
maxYMiser  without  too much effort. Firstly use 'sign/unsign' and then trim the<br />
first 44 bytes from the start of the sample.<br />
________________________________________________________________________________<br />
<br />
(9) Tracker Effects<br />
===================<br />
I did not follow the scheme of any previous tracker for this, rather my own idea<br />
of what's logical. You can look these up with the on-line help system.<br />
<br />
0<br />
1  set portamento enable flag mask<br />
2  set arpeggio enable flag mask<br />
3  set vibrato enable flag mask<br />
4  set transpose enable flag mask<br />
5  set fixed frequency enable flag mask<br />
6  set fixed de-tune enable flag mask<br />
7<br />
8<br />
9<br />
A  Arpeggio sequence + number<br />
B  pattern Break<br />
C  start synChronisation + value (on/off)<br />
D  Detune coarse + value<br />
E  dEtune fine + value<br />
F  Fixed frequency sequence + number<br />
G  diGi sample + number<br />
H  pitcH slide + rate<br />
I  tImer sequence + number<br />
J<br />
K<br />
L  voLume sequence + number<br />
M  Mixer sequence + number<br />
N  Noise sequence + number<br />
O  nOise transpose + amount<br />
P  Portamento + rate<br />
Q  seQuence speed + value<br />
R  digi Rate + value<br />
S  song Speed + value<br />
T  Transpose + number of semitones<br />
U  Uwire + value (this sets the LMC1992 sound adjustment circuit on STe and TT)<br />
                  (only operates when DMA sound is activated)<br />
        U00-&gt;0C    set the bass boost/cut - U06 is the default    (not on F030)<br />
        U10-&gt;1C    set the treble boost/cut - U16 is the default  (not on F030)<br />
        U80-&gt;A0    set the master volume level              (emulated on F030)<br />
        UC0-&gt;D0-&gt;E0 set the panning position                  (emulated on F030)<br />
V  Vibrato sequence + number<br />
W  buzzer Waveform value<br />
X  eXtra 2/3  step  arpeggio  (High and low nibbles give the number of semitone<br />
        variations - eg X47 gives major arpeggiated chord. If the second step is<br />
        set  to  &#36;F  then  a  2  step arpeggio is produced eg XFC gives a 2 step<br />
        octave arpeggio)<br />
Y  dYnamic timer allocation mask eg 7=all timers, 2=timer B only etc<br />
Z  set demo Zynchronisation code<br />
________________________________________________________________________________<br />
<br />
(10) MIDI Controllers<br />
=====================<br />
For  maxYMiser  to respond to MIDI controllers, they first need to be enabled in<br />
the  'config'  menu.  MIDI  controllers  supported  by maxYMiser are split in to<br />
three  types  -  Tracker  controllers  and  Instrument  controllers.  Instrument<br />
controllers  are  sensitive  to MIDI channel, and operate only on the instrument<br />
editor  of  a  specific sound. Tracker controllers operate globally on maxYMiser<br />
itself, or a YM/DMA channel, they respond on all MIDI channels.<br />
<br />
(10.1) Tracker controllers<br />
--------------------------<br />
16,17,18,19,20  channel mutes<br />
21              song speed<br />
22              song position<br />
23              jam mode<br />
24              pattern/song play<br />
25              pattern position<br />
26              instrument select (disabled)<br />
27              mouse pointer type<br />
28              global noise transpose<br />
29,30,31        YM channel noise transpose<br />
32              global transpose<br />
33,34,35,36,37  track transpose<br />
38              global volume<br />
39,40,41,42,43  track volume<br />
44,45,46,47    next patterns (Jam mode)<br />
<br />
        (final controls set the LMC1992 sound adjustment circuit on STe and TT)<br />
        (only operates when DMA sound is activated)<br />
48              Uwire volume  (emulated on F030)<br />
49              Uwire pan    (emulated on F030)<br />
50              Uwire bass    (not on F030)<br />
51              Uwire treble  (not on F030)<br />
<br />
(10.2) Instrument controllers<br />
-----------------------------<br />
60              volume sequence<br />
61              arpeggio sequence<br />
62              vibrato sequence<br />
63              mixer sequence<br />
64              noise sequence<br />
65              fixed freq sequence<br />
66              timer sequence<br />
109            instrument volume<br />
110            sequence speed<br />
111            digi sample<br />
112            digi rate<br />
113            buzzer waveform<br />
114            start sync<br />
115            coarse tune<br />
116            fine tune<br />
________________________________________________________________________________<br />
<br />
(11) Jam Mode<br />
=============<br />
maxYMiser  also includes some features to allow rearrangement and sequencing for<br />
your songs in real-time. You can use these for live performance, and also to try<br />
out sequencing ideas before permanently tracking them.<br />
<br />
To enable jam mode press 'F10' or click in the right place in the 'Normal' menu.<br />
Press 'shift+F10' to disable the mode.<br />
<br />
Once  jam  mode  is  activated  song  and  pattern  play modes function slightly<br />
differently.<br />
<br />
When jam mode is activated during song playback the key combinations:<br />
                                  Control + cursor left / Control + cursor right<br />
can  be used to navigate the song. Normally changes to the current song position<br />
using  this  combination  occur  immediately,  but  in jam mode the new position<br />
selected  will  be jumped to after the current pattern finishes. This allows for<br />
smooth rerrangement of your music. For safety reasons pattern selection is<br />
disabled when in jam song mode.<br />
<br />
When jam mode is activated in pattern playback the key combinations:<br />
                                      Shift + cursor left / Shift + cursor right<br />
can be used to select the next pattern that will be played in the current track.<br />
Again,  the  new  patterns  selected  are jumped to after the current pattern is<br />
finished.  This  allows  the  user  a finer level of control for reworking their<br />
music. The patterns selectors above each column can be used as normal, including<br />
selection of preset patterns which is especially useful in jam mode.<br />
<br />
There are also some jamming aids which are activated constantly, irrespective of<br />
the status of jam mode.<br />
<br />
The  mute  mode  functions  differently from other trackers. Now the track mutes<br />
just  disable  the  sequencing for that track. Notes can still be played via the<br />
keyboard or over MIDI, allowing you to try out new solos, or to perform them for<br />
real in a live situation.<br />
<br />
Using the keyboard shortcuts allows the composer to select between record on/off<br />
and  pattern/song  play during playback, without retriggering the playback. This<br />
means  that you can switch between all these modes smoothly with no interruption<br />
in audio:<br />
<br />
Key          Playback stopped      Playback running<br />
-----------------------------------------------------------<br />
Return        Start song play        Switch to song mode<br />
#~            Start pattern play    Switch to pattern mode<br />
Right shift  Start pattern record  Toggle record on/off<br />
<br />
(11.1) Looping pattern<br />
----------------------<br />
In  the  song  editor  the spacebar can be used to add longer automatic loops to<br />
your  track. When jam mode is inactive, a song step containing a looping pattern<br />
is jumped over.<br />
<br />
In  jam  mode however when the song reaches a looping pattern playback continues<br />
immediately  after the previous looping pattern. If there is no previous looping<br />
pattern, than playback resumes from the beginning of the song.<br />
<br />
Combining  these  new  looping patterns with the jam mode behaviour described so<br />
far  gives  live  rearrangement  facilities  similar  to  the famous Alesis MMT8<br />
hardware sequencer.<br />
________________________________________________________________________________<br />
<br />
(12) MIDI Clock / Sync24 Output<br />
===============================<br />
maxYMiser  constantly  outputs MIDI clock pulses, and Sync24 clock pulses during<br />
playback.  In  order  to  use  the  Sync24 clock output its necessary to build a<br />
special  interface, details of which are available on the the maxYMiser webpage.<br />
<br />
Due  to  the  limitations  of  the Atari (in other words - fixed system clock of<br />
200Hz)  and  certain Sync24 enabled equipment with slow CPUs (for example TB-303<br />
and  TR-606),  there  is  a  maximum  tempo  of  just  below 250bpm which can be<br />
reliably transmitted. Above this speed, Sync24 equipment will start to drift out<br />
of  sync.  However,  if  the song speed drops below this rate Sync24 will try to<br />
'catch-up'.<br />
<br />
MIDI and Sync24 output also works with MIDI or Sync24 input.<br />
________________________________________________________________________________<br />
<br />
(13) MIDI Note Output<br />
=====================<br />
With the STe DMA mode set to 'mid', both the STe channels output MIDI note data<br />
with channels set according to the MIDI configuration in section 8.5<br />
<br />
The channels are setup to  trigger  note  on and note off messages depending on<br />
note off commands in  the  tracks  themselves,  in order to be compatible with<br />
legato mode on many monophonic synthesisers.<br />
________________________________________________________________________________<br />
<br />
(14) MMC<br />
========<br />
Mega-type  STs have a detachable keyboard. So that maxYMiser can be used without<br />
this keyboard I decided to support MMC messages for start and stop. These can be<br />
transmitted over MIDI by several external control surfaces.<br />
________________________________________________________________________________<br />
<br />
(15) Replaying maxYMiser Music<br />
==============================<br />
Files saved in the SNDH format can be played with any SNDH replayer. There are a<br />
number  of these for a variety of platforms. SNDH is a standard format for Atari<br />
ST  chip  music,  rather like the famous SID format on C64. For more information<br />
visit <a href="http://sndplayer.atari.org/" target="_blank" rel="noopener" class="mycode_url">http://sndplayer.atari.org/</a><br />
<br />
Apart  from  the  SNDH  format  maxYMiser  voice  and song files can be combined<br />
together  in various ways and replayed in your productions by using the supplied<br />
binary  replayer.  For guidance on how do this please look at the example source<br />
code, which is for a multi sub-tune SNDH file. This example covers most possible<br />
replay  situations,  and  even novice level assembly programmers will be able to<br />
make use of maxYMiser music.<br />
<br />
(15.1) Technical<br />
----------------<br />
Here  are  details  for  the  header offsets of the maxYMiser replayer, run each<br />
routine in supervisor mode:<br />
<br />
MUSIC +&#36;0                    = branch here for music initialise routine<br />
MUSIC +&#36;4                    = branch here for music de-initialise routine<br />
MUSIC +&#36;8                    = branch here for music interrupt routine<br />
MUSIC +&#36;C  (binary replayer) = read here for demo zynchronisation byte<br />
      +&#36;B8 (unmodified SNDH)<br />
      +&#36;?? (modified SNDH - byte is present directly after HDNS tag)<br />
<br />
The  replay  routine  stored  within  the  SNDH  file, and the one in the binary<br />
replayer  are  virtually  identical.  There  is  little  advantage  either  way<br />
performance  wise. The replay routine is fully PC relative, and performs partial<br />
relocation on part of its code in the initialisation routine.<br />
<br />
You will probably notice that replaying maxYMiser music outside of the editor is<br />
a  little  faster  than inside it, this is due to the RLE algorithm used to pack<br />
the pattern data.<br />
<br />
The replay routine automatically detects processors without cache, and then uses<br />
self-modifying  code  routines for performance. This includes MegaSTe - although<br />
this  system  has  second  level  cache,  data  and  instruction  caches are not<br />
separated,  so there are no strange effects with using these self-modifying code<br />
routines.<br />
<br />
The  routine is generic, customised space-saving versions of the binary replayer<br />
can  be  made  available  depending  on  your specific application. Email me for<br />
details.<br />
<br />
(15.2) Tips for low CPU consumption<br />
-----------------------------------<br />
As a composer for music on any platform you have to be aware of using CPU. On PC<br />
and Mac, for example, any VST or other synth/effect you use takes some CPU time,<br />
so  you  can't  run  too  many  of  them. The same with Atari ST chip music, any<br />
special  effects  you  use will use some CPU, and with an old skool 8MHz machine<br />
you  can  easily  use  it  all  up  <img src="https://www.ihcmot.fr/board/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" />  If you're working with a coder on a demo<br />
production,  they're sure to want some spare CPU time for running their effects.<br />
Depending  on  the  coder, you might not be allowed to use too much CPU for your<br />
music.  Even  if you chip just for fun, you can still easily use your machine up<br />
with too much of certain effect types.<br />
<br />
As  a  guide,  here is a list of different effect types, and some guidance about<br />
CPU usage.<br />
<br />
    * YM DigiDrums.  These are easily the most CPU eating effect. Best is not to<br />
      use them at all. To minimise the impact, use on one channel at once only,<br />
      and with the lowest  possible  sample  rate  for ok quality - maybe 6kHz.<br />
      maxYMiser supports digidrums at different volume levels.  If there is no<br />
      volume adjustment, in other words if the digi is at maximum volume,  less<br />
      CPU will again be used.<br />
<br />
    * SID.  Software generated SID waveforms use less CPU than YM DigiDrums, but<br />
      they  can  still  eat  CPU.  Triple  classic SID tunes from the SID Sound<br />
      Designer  days  were notorious for eating much CPU. With the advanced SID<br />
      effects maxYMiser offers, a composer can easily use more. To minimise CPU<br />
      usage  its  recommended to use as few SID voices at once as possible. Use<br />
      the  minimum  number of steps in your SID waveform as you can for your YM<br />
      sound effect. Avoid using SID for high frequency notes.<br />
<br />
    * STe DMA channels.  maxYMiser  uses  quite optimised routines for resampled<br />
      STe  DMA  channels.  Even  so  each  DMA  channel can use around 10% CPU,<br />
      roughly  the  same as a SID voice. Try working with a single DMA channel,<br />
      with  STe  native sample rates only or no DMA <img src="https://www.ihcmot.fr/board/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" /> Lower frequencies do use<br />
      less CPU and STe DMA uses no timers.<br />
<br />
    * SyncBuzzer.  In  general  the same applies for syncbuzzer as SID, but with<br />
      some differences. SyncBuzzer does eat as much CPU as SID, in fact it uses<br />
      about half the amount of CPU. Also its only possible to use the buzzer on<br />
      one voice at once, so you have the enforced limitation of the hardware to<br />
      help too.<br />
<br />
    * Native STe DMA.  The  STe native frequency mode uses no CPU for resampling<br />
      on  STe, Mega STe and TT, and just a little overhead to parse the tracker<br />
      data.  The  volume  control is achieved by preshifting, and uses no extra<br />
      CPU  in this mode. Native STe rates on Falcon work for compatibility only<br />
      and  use the same CPU as a resampled DMA channel.<br />
<br />
    * Noise, square, buzzer. Normal 'native' YM effects not using timer or other<br />
      special  tricks use the least CPU possible. Roughly around 5%. Start sync<br />
      is not a CPU heavy effect, and nor is detuning.<br />
<br />
For  the  case  of an ST demo, a nice compromise would be one channel with timer<br />
effects  allowed,  limiting  yourself to maximum of 4 steps in you SID waveform.<br />
The  two  remaining  YM  channels could be used for buzzer and drums and classic<br />
squarewave effects.<br />
<br />
For  an  STe, where heavy blitter use might mean that no timer or interrupts can<br />
be used, then 3 channels of plain YM with a single STe DMA channel could also be<br />
a good tradeoff between CPU and interesting sound effects.<br />
________________________________________________________________________________<br />
<br />
(16) Finally<br />
============<br />
Have fun and stay Atari <img src="https://www.ihcmot.fr/board/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" />                                    Gareth Morris/gwEm<br />
                                                                        Feb 2019<br />
</div>
</span>]]></description>
			<content:encoded><![CDATA[<span style="font-family: consolas;" class="mycode_font"><div style="text-align: left; margin-left: auto; margin-right: auto; background-color: #d3d3d3; border: 2px solid #808080; border-radius: 10px; padding: 12px; width: 680px; ">
                    ____<br />
 ___________________\   |____  _____________________________________________<br />
_\__    ________    |   |   /___\  ____     ___\___/    ___/____   /       /<br />
|   |   |   |       |_  / _|    |  |   \   /   |   |____   |   /   |   |   |<br />
|:  |   |   |:  |   |:  \  |:   |  |:  |   |   |:  |:  /   |: /____|:  |___\<br />
/___|___|___/_______/___|  |____   |___|___|___/___/_______\_______/___|gwEm<br />
========================|___\ltk/___|========================================<br />
<br />
                              maxYMiser High v1.34<br />
                            &copy; Gareth Morris 2019<br />
<br />
<br />
                                  User Manual<br />
<br />
      maxYMiser works on any Atari 16/32 platform or competent emulation<br />
        STe, Mega STe, TT or Falcon required for STe DMA sound features<br />
                        Monochrome screens NOW supported<br />
________________________________________________________________________________<br />
<br />
(0) Contents<br />
============<br />
0.......Contents<br />
1.......E-Mail<br />
2.......Credits<br />
3.......Licence<br />
4.......Introduction<br />
4.1        520, 1mb, and 2mb versions<br />
5.......Basic Principals<br />
5.1        Patterns and songs<br />
5.2        Sequences and instruments<br />
5.3        Ways to make sound<br />
5.4        The 'N' key<br />
5.5        Operation without screen<br />
6.......Tracker Display<br />
6.1        Note<br />
6.2        Instrument<br />
6.3        Volume<br />
6.4        Effects 1 &amp; 2<br />
6.5        Sample number<br />
7.......Instrument Editor<br />
7.1        Instrument Selector<br />
7.2        Instrument Parameters<br />
7.3        Sequence Editor<br />
7.4        DigiDrums<br />
8.......Sub-Menus<br />
8.1        Escape<br />
8.2        About<br />
8.3        Help<br />
8.4        Normal<br />
8.5        Configuration<br />
8.6        Zap/Pack<br />
8.7        Transpose<br />
8.8        Advanced edit<br />
8.9        Play song<br />
8.10        Play pattern<br />
8.11        Stop<br />
8.12        Record song<br />
8.13        Record pattern<br />
8.14        Disk operations<br />
8.15        Sequence and sample editor extension<br />
9.......Tracker Effects<br />
10......MIDI Controllers<br />
10.1        Tracker controllers<br />
10.2        Instrument controllers<br />
11......Jam Mode<br />
11.1        Looping pattern<br />
12......MIDI Clock / Sync24 Output<br />
13......MIDI Note Output<br />
14......MMC<br />
15......Replaying maxYMiser Music<br />
15.1        Technical<br />
15.2        Tips for low CPU consumption<br />
16......Finally<br />
________________________________________________________________________________<br />
<br />
(1) E-Mail<br />
==========<br />
For all information, help, or questions:<br />
gwem@preromanbritain.com<br />
<br />
To  register  your  interest in maxYMiser please joint the mailing list, details<br />
at:<br />
<a href="http://www.preromanbritain.com/maxymiser" target="_blank" rel="noopener" class="mycode_url">http://www.preromanbritain.com/maxymiser</a><br />
________________________________________________________________________________<br />
<br />
(2) Credits<br />
===========<br />
Code, design and manual.......................................Gareth Morris:gwEm<br />
Design........................................Mathieu Stempell<img src="https://www.ihcmot.fr/board/images/smilies/biggrin.png" alt="Big Grin" title="Big Grin" class="smilie smilie_4" />ma-Sc/Sector One<br />
Graphics.............................................Sebastien Larnac:STSurvivor<br />
<br />
Falcon DSP clock detection.......................Denis Huget:ST Ghost/Sector One<br />
ICE pack algorithm.....ripped by Phil Graham:Grazey/PHF, original by Axe/Delight<br />
ASCII logo...........................................Stefan Benz:Lotekstyle/tSCc<br />
<br />
Its true that most of the grind work on maxYMiser was done by me (Gareth Morris)<br />
but  we  should  not  forget the work of these other guys who all made maxYMiser<br />
what it is today, so thanks again this crew.<br />
________________________________________________________________________________<br />
<br />
(3) Licence<br />
===========<br />
I'm  bored  of  releasing freeware software that gets a huge number of downloads<br />
but  receives  little  or  no  feedback,  except  from people who I usually know<br />
personally. So:<br />
<br />
maxYMiser  is FREE, but if you make music or sounds with this software which are<br />
released  either  in  any  kind  of commercial or non-commercial way, you should<br />
mention  somehow that you used maxYMiser in its production. In case you wonder -<br />
this is serious. I think its a small price for quality free software.<br />
<br />
maxYMiser  maybe  distributed freely, but only with this text document and other<br />
associated files. None of the files may be modified in any way.<br />
<br />
maxYMiser  comes  with  no  warranty  of  any  kind: It may very well trash your<br />
machine/files/music etc etc<br />
________________________________________________________________________________<br />
<br />
(4) Introduction<br />
================<br />
The Atari ST has many good music editors for the built-in YM2149 sound chip. The<br />
problem  is  though  that,  in  someway,  every  one of them sucks. When I first<br />
discussed  the  project  with Dma-Sc, he said I should make 'the music editor of<br />
our dreams'. Later I decided to change this goal and just tried to make the best<br />
sound  chip editor on any platform. With such high aims this was a long project,<br />
however  I am happy with the end result - even if in many ways I regret starting<br />
it.<br />
<br />
You'll  notice  the interface and keyboard layout borrows (steals <img src="https://www.ihcmot.fr/board/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" /> ) much from<br />
the PC sample tracker 'FastTracker 2'.... of course, because this is my absolute<br />
favourite  tracker.  I  made changes to the things I disliked about this editor,<br />
and  also  made  changes to make the interface fit to YM2149 sound chip editing.<br />
The  many  fans  of  FastTracker 2 should have no problems to adapt to maxYMiser<br />
though I think.<br />
<br />
maxYMiser  is  not a program for a beginner - it needs a decent knowledge of the<br />
YM2149  sound  chip.  You can read the YM2149 datasheet to give yourself a crash<br />
course,  or  use  a different editor. I heartily recommend MusicMon2.5, which is<br />
easy to learn and has an advanced sound system.<br />
<br />
Recently Dma-Sc and 505 have produced a newbie guide, and some free instruments,<br />
to stay up to date with cool developments like this, visit the maxYMiser webpage<br />
often <img src="https://www.ihcmot.fr/board/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
<br />
maxYMiser  has  no  guards  over  CPU  utilisation, with certain combinations of<br />
effect you can easily use more than 100% CPU, which has easy to imagine results.<br />
The  composer  has no restriction over combinations of effect types and channels<br />
and  there  are  also  no lame 'are you sure about this' type screens - so watch<br />
out.  If  you  need  some  guidance about what effects use how much CPU, look in<br />
Section 10.2<br />
<br />
(4.1) 520, 1mb, and 2mb versions<br />
--------------------------------<br />
There are three versions of maxYMiser included:<br />
<br />
For  machines with only  half a megabyte of RAM - 520ST, 520STF, 520STFM, 520STe<br />
etc  use MYM_520.PRG.  A few features had  to be removed for this version. These<br />
features  are the  STSurvior intro  screen, all  features relating  to digi  and<br />
sample  playback,  STe microwire and  ICE pack/depack. The powerful maxYMiser YM<br />
engine is still intact.<br />
<br />
For  machines with  more memory - MYM_1MB.PRG is guaranteed to work correctly on<br />
machines  with  1mb of  RAM. MYM_2MB.PRB might  also work in  most cases, but no<br />
promises. In the version for 1mb machines, sample memory has been limited to 8kb<br />
per sample, in the 2mb version you get the full 32kb.<br />
<br />
The  rest  of the manual related to the 2mb version, so please be aware of these<br />
differences if using a different version.<br />
________________________________________________________________________________<br />
<br />
(5) Basic Principals<br />
====================<br />
Here  I  discuss  some of the basic ideas, terms and concepts used in maxYMiser.<br />
Some  basic  tracker  knowledge  could help here - I suggest newbies consult the<br />
famous 'Trackers Handbook'.<br />
<br />
(5.1) Patterns and songs<br />
------------------------<br />
On  first  appearances  maxYMiser  looks  like  it  takes  the  song and pattern<br />
structure  from FastTracker 2 or ProTracker. This was my intention, but actually<br />
its  not  the  case.  In FastTracker, 2 dimensional patterns are linked together<br />
into  a  one dimensional song list. In maxYMiser songs are 2 dimensional and the<br />
patterns  are  1  dimensional.  This makes for a saving in file size, and offers<br />
some ease of use to the composer. Some preset patterns exist for ease of use, eg<br />
'empty pattern' and 'note off'.<br />
<br />
(5.2) Sequences and instruments<br />
-------------------------------<br />
When  I  was  designing  maxYMiser  I  wanted  to  give the composer the maximum<br />
possibilities  of  the  YM sound chip. This meant a low-level instrument editor,<br />
and  so  I  devised sequences. A sequence is a list of binary words that you can<br />
use  to  vary  some  parameter  of the sound over time. To give, for instance, a<br />
classic  arpeggiated  chord, or a wobbly vibrato effect. A sequence is also used<br />
to  produce  a  volume  envelope, or to define a SID waveform. For more details,<br />
read the instrument editor part of this manual.<br />
<br />
(5.3) Ways to make sound<br />
------------------------<br />
I  already  suggested  to  read the YM2149 data sheet, so please do. Anyhow, the<br />
YM2149  can  produce sounds formed from combining square wave, buzzer and noise.<br />
On  Atari  ST  we  have  a  fourth  possibility  -  the MFP or timer. Timers can<br />
interrupt  the  CPU  at regular intervals for manipulating the YM into producing<br />
various  effects.  This distributed version of maxYMiser has 3 specific types of<br />
timer effects. Each channel uses its own separate timer, if its enabled that is.<br />
The effects include:<br />
<br />
    * 'DigiDrums'  which  play  a 4bit sample, typically a drum sound or special<br />
        effect<br />
    * 'SID'  produces a software generated waveform. In the past this has always<br />
        been  a  fixed  waveform  (usually  square),  maxYMiser  allows  you the<br />
        possibility  to  program  this  yourself,  eg  for  sine  or fake-buzzer<br />
        waveforms.<br />
    * 'SyncBuzzer'  retriggers  the buzzer waveform at audio frequency intervals<br />
        to  create  synchronisation  effects  in  the  same  way  as  the 'sync'<br />
        function works on an analogue synthesiser.<br />
<br />
On  STe  machines  and higher we have even a fifth possibility to make sound - a<br />
simple  DMA  sound  chip. maxYMiser offers quite optimised mixing and resampling<br />
routines  and a simple interface to allow this DMA chip to be used together with<br />
our old friend the YM for hybrid composing.<br />
<br />
(5.4) The 'N' key<br />
-----------------<br />
In  many  of the editors and screens pressing 'N', 'shift+N' or 'control+N' will<br />
select  the next unused pattern or sequence. Remembering this will save you time<br />
and effort - thanks 505 <img src="https://www.ihcmot.fr/board/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" /><br />
<br />
(5.5) Operation without screen<br />
------------------------------<br />
maxYMiser  includes  some  file  auto-loading  functions to allow the use of the<br />
program without needing a big and heavy screen - for example as a part of a live<br />
performance, or when using maxYMiser as a MIDI sound module.<br />
<br />
To do this, you might setup a floppy disk as follows:<br />
<br />
A:\AUTO        - here put your maxYMiser program file<br />
<br />
A:\            - here include your default voice sets and configurations:<br />
  \MYM.CNF    - first the usual maxYMiser configuration file is loaded<br />
  \DEFAULT.SND - a default SNDH file is attempted next, if not...<br />
  \DEFAULT.MYS -    then tries to load a default song...<br />
  \DEFAULT.MYV -    and voice set<br />
  \DEFAULT.MYI -        if this also fails, tries to load a default instrument<br />
                            otherwise, no default files are loaded<br />
<br />
So  by  including  maxYMiser  in  an auto folder, and a default file in the root<br />
directory  is  possible to boot from a floppy and have some pre-made voices or a<br />
tune loaded automatically when you power on the machine.<br />
________________________________________________________________________________<br />
<br />
(6) Tracker Display<br />
===================<br />
As  you  can see the tracker display consists of three large vertical columns of<br />
codes.  Each  vertical  column  corresponds  to  one  of  the three YM2149 sound<br />
channels.<br />
<br />
The  number at the top of each channel shows the current pattern being displayed<br />
there.  Pressing 'Play Pattern' plays the current patterns without reloading the<br />
current  patterns  from  the  song list. This allows you to demo combinations of<br />
patterns  without  changes  to  the  song.  These  patterns  can be changed with<br />
keyboard  shortcuts,  or  by modifying these fields with a new pattern number or<br />
preset.<br />
<br />
Like  many  trackers the patterns are 64 steps long, which nicely corresponds to<br />
4  musical  bars, with each step equal to one 1/16th note. Pattern break tracker<br />
commands allow you to shorten this length.<br />
<br />
For  each step in each column of YM tracker data there are seven pieces of info.<br />
Lets illustrate them below:<br />
<br />
|            |            |        |            .      |            .      |<br />
| Note-Octave | Instrument | Volume | FX 1 : Type . Value | FX 2: Type . Value |<br />
|            |            |        |            .      |            .      |<br />
<br />
The  same  patterns are also used for the STe DMA track. Here the meaning of the<br />
data is a bit different:<br />
<br />
|              .          .          |              .          .          |<br />
| Note-Octave 1 . Sample 1 . Volume 1 | Note-Octave 2 . Sample 2 . Volume 2 |<br />
|              .          .          |              .          .          |<br />
<br />
There  are  no effects (except volume) on the STe DMA track - but you do get two<br />
independent channels for sample playback!<br />
<br />
(6.1) Note<br />
----------<br />
This  column  holds  the note data for that step. If this is blank the currently<br />
playing  note  is unaffected. CapsLock can be used to enter a universal note off<br />
here.  Notes  can  be entered either in real or step time, and using an external<br />
MIDI keyboard, or the Atari keyboard (here we show mapping on a UK system):<br />
<br />
(Upper octave)<br />
2 3  5 6 7  9 0  =      =&gt;    C# D#    F# G# A#    C# D#    F#<br />
Q W E R T Y U I O P [ ]    =&gt;    C  D  E  F  G  A  B  C  D  E  F  G<br />
<br />
(Lower octave)<br />
  S D  G H J  L :        =&gt;        C# D#    F# G# A#    C# D#<br />
  Z X C V B N M , . /      =&gt;      C  D  E  F  G  A  B  C  D  E<br />
<br />
Octaves  can  be changed with the function keys. maxYMiser supports all notes in<br />
the YM frequency range, even if the very high notes are not useful musically.<br />
<br />
The  octave  reached  by  press  'F9'  maps  each key to middle C on a different<br />
instrument, useful for entering rhythms.<br />
<br />
(6.2) Instrument<br />
----------------<br />
If  an  instrument  number  is present here then the sound is triggered from the<br />
start  so, to avoid retriggering, simply omit this column. The instrument number<br />
to  be  entered  in  this  column  can  be selected with the numeric keypad, the<br />
instrument editor, or via a 'MIDI patch change'.<br />
<br />
(6.3) Volume<br />
------------<br />
The volume number in this column is an attenuation level. A dash means no change<br />
to  the  current  attenuation  level.  A &#36;0 gives the loudest volume, and &#36;F the<br />
quietest. Usually a dash is entered in this column, but you can change this with<br />
the 'vol' field in the 'normal' menu.<br />
<br />
(6.4) Effects 1 &amp; 2<br />
-------------------<br />
Effects  type  is  an  alphanumeric  value, in other words 0-9 and A-Z. The full<br />
details  of  these  effects  are  provided  later  on  in  this  manual, and are<br />
summarised in the online help system.<br />
<br />
The  effects  value which corresponds to this type is shown by the adjoining two<br />
nibbles,  which  form  a  hexadecimal value in the range &#36;00-&#36;FF. The meaning of<br />
this value depends on the effects type.<br />
<br />
The  single  effect  columns  previously  available on existing YM trackers were<br />
thought  not  to  be  sufficient for the complex compositions with adjustment in<br />
instrument  parameters  that  maxYMiser  was  designed for. Therefore two effect<br />
columns are provided, which offer exactly the same features.<br />
<br />
(6.5) Sample number<br />
-------------------<br />
On  the  STe  DMA  track we have sample number instead of instrument number. The<br />
tracker plays back samples loaded into the digidrum banks, and the sample number<br />
here  corresponds  to  the  digidrum sample number. Samples are played back with<br />
middle C corresponding to 8287Hz.<br />
________________________________________________________________________________<br />
<br />
(7) Instrument Editor<br />
=====================<br />
The  right  half  of  the screen allows selection and editing of the instruments<br />
used in your composition. Almost every instrument parameter can be adjusted with<br />
tracker commands. For an in-depth tutorial of the maxYMiser instrument editor by<br />
Dma-Sc check the maxYMiser website.<br />
<br />
(7.1) Instrument Selector<br />
-------------------------<br />
maxYMiser  has  four banks of eight instruments, giving 32 instruments in total.<br />
Instrument banks maybe selected with the buttons to the top right of the screen,<br />
or with keyboard shortcuts on the numeric keypad.<br />
<br />
Within  each bank you can select instruments with a left mouse click. Highlights<br />
appear over the instrument name and the instrument number. These can be selected<br />
independently for copy and remapping operations. Right clicking on an instrument<br />
name allows editing.<br />
<br />
(7.2) Instrument Parameters<br />
---------------------------<br />
From the top down:<br />
<br />
The  'de-tune  matrix'  allows  you  to  enable  different  instrument  effects<br />
(portamento,  vibrato  etc)  on  different parts of your sound (the square wave,<br />
buzzer  or  timer  generated  effect). Fixing the frequency of the sound using a<br />
fixed  frequency  sequence  (fix  freq)  disallows  all other effects except for<br />
vibrato,  it  is  also  no  longer  possible to play notes with this part of the<br />
sound.  Selecting  'fixed  frequency'  and 'fixed de-tune' bypasses the need for<br />
specifying  fixed  frequencies  with  a  sequence,  instead  the fine and coarse<br />
instrument  parameters  allow  you  to  fix the frequency, this allows the fixed<br />
frequency to be adjust via tracker commands if required. The transpose effect is<br />
controlled  by the transpose tracker command. As you can recognise, the 'de-tune<br />
matrix'  gives  many  possibilities  for de-tuning sounds, for ravey stabs, fake<br />
resonant effects etc.<br />
<br />
Below  the  matrix  you  can  select  sequences  to  change the sound over time.<br />
Sequences can be shared between sounds.<br />
<br />
'Vol'  sequence  changes  the note volume over time &#36;F=maximum level &#36;0=minimum.<br />
Volume sequences do  not  affect  buzzer  sounds for technical reasons.  On digi<br />
sounds only the first step is considered.<br />
<br />
'Arp'  sequence  allows complex arpeggios to be performed. The sequence provides<br />
the  number of semi-tones the note is to be adjusted by over time. The number is<br />
interpreted  as  signed 2's compliment, so &#36;FFFF is a -1 semitone adjustment for<br />
example.<br />
<br />
'Vib',  or vibrato, works similarly to the arpeggio except the adjustment is not<br />
tuned  by  semitones,  rather  YM  frequency  register  value.  This allows fine<br />
adjustments - however they are not in tune over a wide frequency range.<br />
<br />
'Mix'  allows  for  changing the state of the YM mixer over time. The details of<br />
the  YM  mixer  appear in the online help. The first nibble enables and disables<br />
the  noise  generator,  the  second  nibble enables and disables the square wave<br />
generator.  The  third nibble enables the buzzer. The final nibble allows you to<br />
select which timer-based effect (for example SID or digidrums) will be used.<br />
<br />
'Noi',  short  for  noise,  allows  you  to adjust the frequency of the YM noise<br />
generator  over  time. As the YM sound chip just has one noise generator, higher<br />
number YM channels have the priority over setting this frequency. Adjust between<br />
&#36;00 to &#36;1F.<br />
<br />
'Fix',  for  fixed  frequency,  is  a rarely used but powerful sequence. You can<br />
specify  actual YM frequency register values changing over time. The online help<br />
provides  all  the  formulae you need to calculate these values. If a particular<br />
frequency  step  is  set to &#36;FFFF then fixed frequency is ignored and the normal<br />
note is played - useful for combining instruments.<br />
<br />
'Tim'  provides never before seen possibilities in a YM tracker, and is arguably<br />
the most powerful feature of maxYMiser. In short it allows you fine control over<br />
many  of  the  timer  effects.  In the case of SID, this sequence configures the<br />
software  waveform  that  is generated by the SID timer interrupt. For example a<br />
sequence  &#36;F,&#36;0  gives  a  square  wave.  &#36;F,&#36;F,&#36;F,&#36;0  gives  a  pulse waveform.<br />
&#36;F,&#36;A,&#36;5,&#36;0  a  rough  saw  waveform  and  so on (sine wave is also possible for<br />
example). Up to 16 steps maybe used in a SID waveform, and fewer steps mean less<br />
CPU  utilisation.  In  the  case  of  syncbuzzer each step in the 'Tim' sequence<br />
represents  a buzzer waveform, allowing you to form complex alternating waveform<br />
syncbuzzer  effects. Up to 8 steps maybe used in a syncbuzzer effect, and number<br />
of steps does not effect CPU utilisation.<br />
<br />
Below the sequence selection fields are instrument parameters that do not change<br />
over time:<br />
<br />
'Seq  Speed'  allows  the user to set the speed with which all the sequences are<br />
processed. A higher number means slower sequence effects.<br />
<br />
'Buzz Wave' sets the buzzer waveform associated with this sound. The online help<br />
section  has  a list of the different possibilities. As with the noise generator<br />
YM2149  just  has one buzzer to share with all voices. Higher number YM channels<br />
take priority over the buzzer effect.<br />
<br />
'Start  Syn'  allows effects only previously possible with the MusicMon2 editor.<br />
Other  YM editors passed this little gem by, but here again it appears. Enabling<br />
this field forces the instrument to synchronise all its tuned components (square<br />
wave,  buzzer  and timer) when the note is triggered, for repeatable phasing. It<br />
is  not  possible  to  guarantee  synchronisation of the YM2149 square wave with<br />
precision  of greater than 180degrees - this leads to 2 possible phasing effects<br />
in this case.<br />
<br />
'Fix  Det'.  If  fixed  de-tune  is enabled by the de-tune matrix then these two<br />
fields  affect  the  sound.  The  coarse  de-tune  allows  de-tuning in semitone<br />
intervals. The fine de-tune allows de-tuning in YM frequency register intervals.<br />
<br />
'Digi  Sample'  allows  you  to pick a digidrum sample from the 8 that maxYMiser<br />
supports. For more information see the DigiDrum section. A value of zero in this<br />
field means no digidrum sample is selected.<br />
<br />
'Rate'  allows  you  to  set  the  replay  frequency of the digi sample. You are<br />
altering  timer  register values, however these are also converted to Hz to make<br />
things  easier.  So called 'tempered' digi sounds are not easily possible (so it<br />
is  not  convenient  to  play  tuned  notes  with them). However this is not the<br />
purpose  of  digidrums  (a  hint  there  in  the  name <img src="https://www.ihcmot.fr/board/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" /> ) - and in the case of<br />
percussive  samples I believe that fine control over replay frequency is better.<br />
maxYMiser gives you the finest control possible with the hardware.<br />
<br />
'Instrument  volume'  specifies  the  amount  of  attenuation  applied  to  this<br />
instrument.  This  means a value of zero gives the loudest sound, and a value of<br />
&#36;F, the smallest. Make sure you have a defined volume sequence or a buzzer based<br />
sound.... otherwise you hear nothing <img src="https://www.ihcmot.fr/board/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" /><br />
<br />
(7.3) Sequence Editor<br />
---------------------<br />
This  word  editor allows you to define the sequences used by the instruments. I<br />
believe usage of this editor to be self-explaining, however:<br />
<br />
'Cpy' copies the current sequence to the 'Dest' sequence.<br />
<br />
'Clr' clears the current sequence.<br />
<br />
'Length' holds the length of the current sequence, and 'Repeat' holds its repeat<br />
point (if appropriate).<br />
<br />
Keyboard shortcuts:<br />
F3:      cut<br />
F4:      copy<br />
F5:      paste<br />
Help:    return to start<br />
ClrHome: return to start<br />
Undo:    skip to end<br />
Enter:  quit sequence editor<br />
<br />
(7.4) DigiDrums<br />
---------------<br />
This  small  menu  allows  you  to  load  new  digi  samples into your music for<br />
digidrums  or  STe  DMA.  8 samples are allowed, each of which can be applied to<br />
many  YM  instruments,  or  played  back  through the DMA sound chip. Select the<br />
sample  number you want to load into and then choose the 'Lod' button. Select an<br />
8bit  signed  headerless  sample  (eg  RAW  PCM  type  formats).  If  loading is<br />
successful  the sample length will be displayed. When playing back as a digidrum<br />
each  sample  is  automatically  converted for 4bit YM sample resolution using a<br />
highly accurate lookup table. Each digidrum can be up to 32kb in length.<br />
<br />
If you want to load a new sample simply pick the 'Lod' button.<br />
<br />
To save your sample, along with any editing use 'Sav'.<br />
<br />
Finally, to clear an unused sample simply pick the 'Clr' button.<br />
<br />
Its  also  possible to change the length of your sample by clicking on the 'Len'<br />
field.<br />
________________________________________________________________________________<br />
<br />
(8) Sub-Menus<br />
=============<br />
Here I describe the individual functions of each program sub-menu:<br />
<br />
(8.1) Escape<br />
------------<br />
You  reach  this  menu  by  clicking  on  the  top left corner of the screen, or<br />
pressing  the  escape  key.  'Quit'  exits  the program back to the GEM desktop.<br />
'Background'  partially restores your Atari to enable it to run desk accessories<br />
(eg  calculators, sound setup accessories etc) or, in a multi-tasking OS such as<br />
Mint, other programs. Select 'Foreground' to return to maxYMiser.<br />
<br />
(8.2) About<br />
-----------<br />
Displays  the  main  program credits. Right clicking on the 'Title' and 'Artist'<br />
fields allows the composer to edit the data for these SNDH format tags.<br />
<br />
(8.3) Help<br />
----------<br />
This help section provides the user with a quick reference to all tracker effect<br />
commands,  keyboard  shortcuts,  some  YM2149  and  DMA  low  level details, and<br />
information  about maxYMiser's MIDI implementation. Clicking the  buttons on the<br />
left  selects  which help you want to view. Then click on the help pane, and use<br />
the mouse to navigate through each screen.<br />
<br />
(8.4) Normal<br />
------------<br />
The  mini-tracker  display to the top right is the song editor. Here you can set<br />
how  your  patterns  will be sequenced to form a finished song. This mini-editor<br />
supports  many  cut and paste features of the main editor, so experiment. Preset<br />
patterns can be accessed as follows:<br />
<br />
Empty pattern    : Backspace<br />
Note off pattern : Caps Lock<br />
Looping pattern  : Spacebar<br />
<br />
For  more details of the Looping pattern see the Jam mode description, in normal<br />
playback, looping patterns are simply skipped over.<br />
<br />
The  arrows allow you to move up and down the song editor - right clicking moves<br />
to the song start and end.<br />
<br />
'Len' holds the length of the song, and 'Rep' the repeat point for the song.<br />
<br />
'Speed' holds the song speed in number of replay routine calls per 1/16th note.<br />
<br />
'BPM'  cannot be edited and is a rough calculation based on the replay speed and<br />
interrupt frequency.<br />
<br />
'TC' allows you to set the frequency that the maxYMiser replay routine is called<br />
by.  This  frequency  is synthesised from the 200Hz system tick. In this way you<br />
can select tempos with fine resolution.<br />
<br />
Beside  the  'TC'  setting  you have the possibility to toggle between using the<br />
Atari internal system clock, 'MIDI' clock input including Song Position Pointer,<br />
and  'SY24'  Sync24  input  using  a  special  joystick  port interface (see the<br />
maxYMiser  webpage  for  details  of how to make that. Sync24 input works better<br />
with faster Ataris. In MIDI and Sync24 modes the song speed may not be adjusted.<br />
<br />
The box below the interrupt setting gives the current playback mode, which makes<br />
it  easier  to use the 'jam' features included for realtime resequencing of your<br />
music.  For  more about jam mode, please read that section. Clicking on this box<br />
allows  toggling  between  normal  playback  and  jam mode, as well and song and<br />
pattern  play. Using this box to change the playback mode does not interrupt the<br />
playback of your music. You can use F10 / Shift+F10 to toggle this setting also.<br />
<br />
'Time' is self explaining <img src="https://www.ihcmot.fr/board/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" /><br />
<br />
'Zync' shows the current demo zynchronisation code for easy editing.<br />
<br />
'Vol' holds the current note volume put in to the editor.<br />
<br />
'Add' holds the number of 1/16 steps skipped each time you enter a new note.<br />
<br />
Left  clicking  on the 'Chan' buttons mutes and unmutes that YM channel. A right<br />
click solos and unsolos that channel.<br />
<br />
(8.5) Configuration<br />
-------------------<br />
Here you select different options for the appearance and operation of maxYMiser.<br />
<br />
'Scroll'  activates  and  deactivates  pattern  scrolling  - useful for realtime<br />
editing!<br />
<br />
The controls just below 'scroll' allow you to setup different colour schemes for<br />
the editor.<br />
<br />
'Mouse' selects between 8 classic mouse pointer shapes <img src="https://www.ihcmot.fr/board/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" /><br />
<br />
The 'Timers' check boxes activate and deactivate MFP timer based effects on each<br />
YM channel. This can also be changed dynamically whilst the song is playing with<br />
tracker  commands. This allows easy swapping of timer utilisation between the YM<br />
chip  music and any other demo effect you might be running. The timer activation<br />
and  deactivation  is  system friendly and fully restores the original settings.<br />
A bright block indicates when a timer is used.<br />
<br />
The  status  of  the STe DMA sound chip functions can be set. Either all STe DMA<br />
features  can  be  deactivated,  enabled  on standard resampling mode for 1 or 2<br />
channels,  or  enabled  for  a  single STe native frequency channel only. Single<br />
channel  STe  DMA  modes  boost the volume of the DMA sounds, and the native STe<br />
frequency mode has no CPU overhead for resampling.  Finally the STe channels can<br />
set to output MIDI note data. STe hardware is not required for this setting.<br />
<br />
The  DMA  volume control allows the user to set the minimum volume level the STe<br />
channel will respond to. If you choose to allow less volume levels the memory is<br />
saved  in  STe native mode. On the single channel DMA mode then both CPU and RAM<br />
are saved by setting this control to zero.<br />
<br />
'Speaker'  enables  and  disables  TT/Falcon030  internal  speaker (assuming you<br />
didn't rip it out already <img src="https://www.ihcmot.fr/board/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" /> )<br />
<br />
'VB  Freq' - you can set this to high or low screen refresh setting on ST(e) and<br />
Falcon  platforms.  This  may  improve  your  display  quality  and  is  totally<br />
independent of the sound replay frequency.<br />
<br />
'Show  CPU'  enables  display  of the amount of CPU used by the maxYMiser replay<br />
routine. Interpret this with caution and knowledge! Timer effects will slow down<br />
the  CPU  at all times, not just when the replay routine is active. Better use a<br />
different system for more accurate CPU usage monitoring, for example SNDH_CPU.<br />
<br />
On  Falcon  030,  maxYMiser  supports external DSP clocks, and extra outputs. If<br />
your  sound system is not locked when maxYMiser is run, then external DSP clocks<br />
will be detected. You can see the frequency of this clock here. If you have dual<br />
DSP  clocks  (represented by an asterisk) then you can toggle which one is used.<br />
If  you  have  an  external  DSP  clock  then an external output, such a SP-DIF,<br />
Analog-8  etc  is automatically enabled. 44.1kHz is by default chosen if this is<br />
available.  Next  to  this  field  you can select what sound is put out over the<br />
external output. You can choose either YM or STe DMA sounds to be transmitted.<br />
<br />
The  'Year'  field  allows  you to enter the year of composition for your music.<br />
This information is used in work saved as an SNDH file.<br />
<br />
'Save  CNF' writes a file 'MYM.CNF' to the maxYMiser directory. This stores your<br />
configuration settings and will be reloaded each time maxYMiser is run.<br />
<br />
If 'Re-load' is enabled then your configuration will be reloaded after loading a<br />
SNDH  or song file. In this way settings stored in these files can be ignored if<br />
you wish.<br />
<br />
The  MIDI  settings on the screen allow access to maxYMiser's MIDI functions. YM<br />
tracks  1,2 and 3, and the 2 STe DMA channels can be assigned to a specific MIDI<br />
channel (&#36;0-&#36;F corresponding to channels 1-16), each with a different instrument<br />
or sample number. This instrument can also be changed with a 'MIDI patch change'<br />
separate of this sub-menu. If YM and DMA tracks are set to the same MIDI channel<br />
then  MIDI note input on this channel will be multi-plexed in a semi-intelligent<br />
way to give polyphonic abilities <img src="https://www.ihcmot.fr/board/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
<br />
There  are  also  two  special  MIDI instrument numbers. When '--' is shown this<br />
track  is totally disabled. The 'DD' instrument allows support of MIDI drum kits<br />
to  play  maxYMiser  sounds.  The  'DD'  is a tribute to the Yamaha DD series of<br />
electronic  drum  sets - yo! In this mode each key plays middle C on a different<br />
sound. You can enable this mode for the editor by pressing 'F9'.<br />
<br />
You  can  enable  maxYMiser's ability to respond to MIDI controllers here too by<br />
toggling the 'cntrllers' setting.<br />
<br />
The 'Latency' setting allows you to  compensate for the comparatively slow start<br />
time of maxYMiser when using an exteral MIDI or Sync24 clock.  By increasing the<br />
value from zero,  maxYMiser starts slightly further into the song.  This way you<br />
can tune maxYMiser to be in sync  with your external MIDI gear.  The setting is<br />
dependant on your Atari,  the tempo of the song, and the DMA samples used.  You<br />
can use a value of around 5 for  a simple 200bpm song on  a normal ST or STe for<br />
example.<br />
<br />
(8.6) Zap/Pack<br />
--------------<br />
The 'devastate' options allow you to trash your song, instruments, or both <img src="https://www.ihcmot.fr/board/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" /><br />
<br />
The  'squish'  options  give  you  some  memory management functions. Duplicated<br />
patterns  and  sequences are removed and the remainder are stored in a way so as<br />
to reduce file size. Preset pattern are subsituted where applicable.<br />
<br />
You can also get some statistics about the last used sequence and pattern, which<br />
indicates  how  much  memory is used for storing these things. Press 'update' to<br />
update this display.<br />
<br />
(8.7) Transpose<br />
---------------<br />
Here  you  get  an  enhanced  version of FastTracker2's menu. In addition to the<br />
usual  32  transposition  possibilities  you  can  perform  16  different volume<br />
adjustments with this menu.<br />
<br />
(8.8) Advanced edit<br />
-------------------<br />
This menu gives powerful editing possibilities.<br />
<br />
'Copy'  copies  an  instrument  between  positions in the instrument editor. The<br />
small  'instrument  number'  highlight specifies the destination, and the larger<br />
'instrument name' highlight gives the source.<br />
<br />
'Track',  'Pattern',  'Song' and 'Block' allows you to re-map instruments within<br />
your song.<br />
<br />
'Xpand'  and  'Shrnk'  allows  to double and half speed the current track.  Any<br />
part  of  the pattern 'cut off'  by  the expand operation is stored in the track<br />
edit buffer.<br />
<br />
You can select 'Overwrite', 'Overlay' and 'Underlay' paste modes.<br />
<br />
The  seven  button  toggle  below the paste mode selection allow masking of each<br />
column  of  tracker data for the cut and paste operations. Clicking on the 'all'<br />
text toggles all of the column masks on and off.<br />
<br />
(8.9) Play song<br />
---------------<br />
Selecting  with  the  left  mouse  button  plays  the song from the start of the<br />
current  pattern  onwards. A right click plays the song all the way through from<br />
the top.<br />
<br />
(8.10) Play pattern<br />
-------------------<br />
Left  clicking  plays the current pattern from the start without re-initialising<br />
them  from  the  song list. This allows you to try out patterns together without<br />
changing  the  song.  Right  clicking  has  the same effect, but starts from the<br />
current cursor position.<br />
<br />
(8.11) Stop<br />
-----------<br />
Stops play and record modes.<br />
<br />
(8.12) Record song<br />
------------------<br />
Only  left  click  has  an  effect.  Operates the same as play song, but enables<br />
record mode.<br />
<br />
(8.13) Record pattern<br />
---------------------<br />
Only  left  click  has an effect. Operates the same as play pattern, but enables<br />
record mode.<br />
<br />
(8.14) Disk operations<br />
----------------------<br />
maxYMiser  gives  you an array of loading and saving possibilities. You can work<br />
with  files  in  the  popular  Atari ST music format 'SNDH' (of course only SNDH<br />
files  created  with maxYMiser can be loaded into the editor). You can also save<br />
and  load  voice  sets  and song data separately for use with maxYMiser's binary<br />
replay  routine.  In  addition you can save your favourite instruments and trade<br />
with your friends <img src="https://www.ihcmot.fr/board/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" /><br />
<br />
The  software  saves  and  loads  files packed with the famous ICE algorithm. To<br />
enable  saving with this packer, select the check box. The next file to be saved<br />
will  then  be  ice  packed  for  a significant file size reduction, however the<br />
packing operation can take some time, especially on a standard ST... Therefore I<br />
recommend  ICE packing only for distributing your finished music. All fully SNDH<br />
standard compliant players support playback of ICE packed files.<br />
<br />
Another  option  for  distributing  your finished music is the 'time' check box.<br />
Normally saved files loop continuously at the repeat point. However, by checking<br />
this  box  the  next  saved  SNDH  file  will have its track duration set by the<br />
current  track  timer.  Just play your track to its end point, and press stop to<br />
set  the  timer  appropriately.  Now  in  supporting players your music will end<br />
correctly.<br />
<br />
The  bottom  field on this panel gives the result of the last disk operation, so<br />
it is also displayed after loading digi samples.<br />
<br />
(8.15) Sequence and sample editor extension<br />
-------------------------------------------<br />
The  first half of this menu allows fast generation of sequence data. Sweeps and<br />
oscillations  can  be  easily  programmed  here.  'Minimum',  'Maximum'  and<br />
'Oscillations'  are  self  explaining.  You  can  'Gen'erate  a  new sequence or<br />
'Mod'ify an existing one.<br />
<br />
The  'Morph'  button  generates  sequences  that  fit in between the current and<br />
destination  sequences.  For  this  to work these sequences should have the same<br />
length.  Combining  this feature with tracker commands allows versatile morphing<br />
of sounds, eg SID-morph.<br />
<br />
The  second  half of the menu expands the abilities of the little digidrum panel<br />
into a minimalist sample editor.<br />
<br />
You can amplify or attenuate you sample in units of 1.5db.<br />
<br />
There  are fine tuning functions which allow you to pitch up or down your sample<br />
in  units  of an octave, a semi tone, and 1/8 of a semi tone fine tuning. Tuning<br />
down an octave includes interpolation for improved quality.<br />
<br />
The  YMise  function is not to be found on any other sample editor. Converts the<br />
sample  to  sound  like a YM digidrum - even on the STe DMA channel. This is for<br />
true digidrum freakz.<br />
<br />
Incase you loaded by mistake a sample in a really old fashioned unsigned format,<br />
have no stress and click the 'Sign/Unsign' button <img src="https://www.ihcmot.fr/board/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
<br />
The  sample  start  point  can  be manually trimmed with the 'Start' field. This<br />
allows  for really old skool style sample editing found on classic samplers like<br />
Akai  S950.  To set this point really finely you could playback your sample at a<br />
very low pitch.<br />
<br />
Hint:  you  can  also  load  microsoft  .WAV files saved in PCM 8bit format into<br />
maxYMiser  without  too much effort. Firstly use 'sign/unsign' and then trim the<br />
first 44 bytes from the start of the sample.<br />
________________________________________________________________________________<br />
<br />
(9) Tracker Effects<br />
===================<br />
I did not follow the scheme of any previous tracker for this, rather my own idea<br />
of what's logical. You can look these up with the on-line help system.<br />
<br />
0<br />
1  set portamento enable flag mask<br />
2  set arpeggio enable flag mask<br />
3  set vibrato enable flag mask<br />
4  set transpose enable flag mask<br />
5  set fixed frequency enable flag mask<br />
6  set fixed de-tune enable flag mask<br />
7<br />
8<br />
9<br />
A  Arpeggio sequence + number<br />
B  pattern Break<br />
C  start synChronisation + value (on/off)<br />
D  Detune coarse + value<br />
E  dEtune fine + value<br />
F  Fixed frequency sequence + number<br />
G  diGi sample + number<br />
H  pitcH slide + rate<br />
I  tImer sequence + number<br />
J<br />
K<br />
L  voLume sequence + number<br />
M  Mixer sequence + number<br />
N  Noise sequence + number<br />
O  nOise transpose + amount<br />
P  Portamento + rate<br />
Q  seQuence speed + value<br />
R  digi Rate + value<br />
S  song Speed + value<br />
T  Transpose + number of semitones<br />
U  Uwire + value (this sets the LMC1992 sound adjustment circuit on STe and TT)<br />
                  (only operates when DMA sound is activated)<br />
        U00-&gt;0C    set the bass boost/cut - U06 is the default    (not on F030)<br />
        U10-&gt;1C    set the treble boost/cut - U16 is the default  (not on F030)<br />
        U80-&gt;A0    set the master volume level              (emulated on F030)<br />
        UC0-&gt;D0-&gt;E0 set the panning position                  (emulated on F030)<br />
V  Vibrato sequence + number<br />
W  buzzer Waveform value<br />
X  eXtra 2/3  step  arpeggio  (High and low nibbles give the number of semitone<br />
        variations - eg X47 gives major arpeggiated chord. If the second step is<br />
        set  to  &#36;F  then  a  2  step arpeggio is produced eg XFC gives a 2 step<br />
        octave arpeggio)<br />
Y  dYnamic timer allocation mask eg 7=all timers, 2=timer B only etc<br />
Z  set demo Zynchronisation code<br />
________________________________________________________________________________<br />
<br />
(10) MIDI Controllers<br />
=====================<br />
For  maxYMiser  to respond to MIDI controllers, they first need to be enabled in<br />
the  'config'  menu.  MIDI  controllers  supported  by maxYMiser are split in to<br />
three  types  -  Tracker  controllers  and  Instrument  controllers.  Instrument<br />
controllers  are  sensitive  to MIDI channel, and operate only on the instrument<br />
editor  of  a  specific sound. Tracker controllers operate globally on maxYMiser<br />
itself, or a YM/DMA channel, they respond on all MIDI channels.<br />
<br />
(10.1) Tracker controllers<br />
--------------------------<br />
16,17,18,19,20  channel mutes<br />
21              song speed<br />
22              song position<br />
23              jam mode<br />
24              pattern/song play<br />
25              pattern position<br />
26              instrument select (disabled)<br />
27              mouse pointer type<br />
28              global noise transpose<br />
29,30,31        YM channel noise transpose<br />
32              global transpose<br />
33,34,35,36,37  track transpose<br />
38              global volume<br />
39,40,41,42,43  track volume<br />
44,45,46,47    next patterns (Jam mode)<br />
<br />
        (final controls set the LMC1992 sound adjustment circuit on STe and TT)<br />
        (only operates when DMA sound is activated)<br />
48              Uwire volume  (emulated on F030)<br />
49              Uwire pan    (emulated on F030)<br />
50              Uwire bass    (not on F030)<br />
51              Uwire treble  (not on F030)<br />
<br />
(10.2) Instrument controllers<br />
-----------------------------<br />
60              volume sequence<br />
61              arpeggio sequence<br />
62              vibrato sequence<br />
63              mixer sequence<br />
64              noise sequence<br />
65              fixed freq sequence<br />
66              timer sequence<br />
109            instrument volume<br />
110            sequence speed<br />
111            digi sample<br />
112            digi rate<br />
113            buzzer waveform<br />
114            start sync<br />
115            coarse tune<br />
116            fine tune<br />
________________________________________________________________________________<br />
<br />
(11) Jam Mode<br />
=============<br />
maxYMiser  also includes some features to allow rearrangement and sequencing for<br />
your songs in real-time. You can use these for live performance, and also to try<br />
out sequencing ideas before permanently tracking them.<br />
<br />
To enable jam mode press 'F10' or click in the right place in the 'Normal' menu.<br />
Press 'shift+F10' to disable the mode.<br />
<br />
Once  jam  mode  is  activated  song  and  pattern  play modes function slightly<br />
differently.<br />
<br />
When jam mode is activated during song playback the key combinations:<br />
                                  Control + cursor left / Control + cursor right<br />
can  be used to navigate the song. Normally changes to the current song position<br />
using  this  combination  occur  immediately,  but  in jam mode the new position<br />
selected  will  be jumped to after the current pattern finishes. This allows for<br />
smooth rerrangement of your music. For safety reasons pattern selection is<br />
disabled when in jam song mode.<br />
<br />
When jam mode is activated in pattern playback the key combinations:<br />
                                      Shift + cursor left / Shift + cursor right<br />
can be used to select the next pattern that will be played in the current track.<br />
Again,  the  new  patterns  selected  are jumped to after the current pattern is<br />
finished.  This  allows  the  user  a finer level of control for reworking their<br />
music. The patterns selectors above each column can be used as normal, including<br />
selection of preset patterns which is especially useful in jam mode.<br />
<br />
There are also some jamming aids which are activated constantly, irrespective of<br />
the status of jam mode.<br />
<br />
The  mute  mode  functions  differently from other trackers. Now the track mutes<br />
just  disable  the  sequencing for that track. Notes can still be played via the<br />
keyboard or over MIDI, allowing you to try out new solos, or to perform them for<br />
real in a live situation.<br />
<br />
Using the keyboard shortcuts allows the composer to select between record on/off<br />
and  pattern/song  play during playback, without retriggering the playback. This<br />
means  that you can switch between all these modes smoothly with no interruption<br />
in audio:<br />
<br />
Key          Playback stopped      Playback running<br />
-----------------------------------------------------------<br />
Return        Start song play        Switch to song mode<br />
#~            Start pattern play    Switch to pattern mode<br />
Right shift  Start pattern record  Toggle record on/off<br />
<br />
(11.1) Looping pattern<br />
----------------------<br />
In  the  song  editor  the spacebar can be used to add longer automatic loops to<br />
your  track. When jam mode is inactive, a song step containing a looping pattern<br />
is jumped over.<br />
<br />
In  jam  mode however when the song reaches a looping pattern playback continues<br />
immediately  after the previous looping pattern. If there is no previous looping<br />
pattern, than playback resumes from the beginning of the song.<br />
<br />
Combining  these  new  looping patterns with the jam mode behaviour described so<br />
far  gives  live  rearrangement  facilities  similar  to  the famous Alesis MMT8<br />
hardware sequencer.<br />
________________________________________________________________________________<br />
<br />
(12) MIDI Clock / Sync24 Output<br />
===============================<br />
maxYMiser  constantly  outputs MIDI clock pulses, and Sync24 clock pulses during<br />
playback.  In  order  to  use  the  Sync24 clock output its necessary to build a<br />
special  interface, details of which are available on the the maxYMiser webpage.<br />
<br />
Due  to  the  limitations  of  the Atari (in other words - fixed system clock of<br />
200Hz)  and  certain Sync24 enabled equipment with slow CPUs (for example TB-303<br />
and  TR-606),  there  is  a  maximum  tempo  of  just  below 250bpm which can be<br />
reliably transmitted. Above this speed, Sync24 equipment will start to drift out<br />
of  sync.  However,  if  the song speed drops below this rate Sync24 will try to<br />
'catch-up'.<br />
<br />
MIDI and Sync24 output also works with MIDI or Sync24 input.<br />
________________________________________________________________________________<br />
<br />
(13) MIDI Note Output<br />
=====================<br />
With the STe DMA mode set to 'mid', both the STe channels output MIDI note data<br />
with channels set according to the MIDI configuration in section 8.5<br />
<br />
The channels are setup to  trigger  note  on and note off messages depending on<br />
note off commands in  the  tracks  themselves,  in order to be compatible with<br />
legato mode on many monophonic synthesisers.<br />
________________________________________________________________________________<br />
<br />
(14) MMC<br />
========<br />
Mega-type  STs have a detachable keyboard. So that maxYMiser can be used without<br />
this keyboard I decided to support MMC messages for start and stop. These can be<br />
transmitted over MIDI by several external control surfaces.<br />
________________________________________________________________________________<br />
<br />
(15) Replaying maxYMiser Music<br />
==============================<br />
Files saved in the SNDH format can be played with any SNDH replayer. There are a<br />
number  of these for a variety of platforms. SNDH is a standard format for Atari<br />
ST  chip  music,  rather like the famous SID format on C64. For more information<br />
visit <a href="http://sndplayer.atari.org/" target="_blank" rel="noopener" class="mycode_url">http://sndplayer.atari.org/</a><br />
<br />
Apart  from  the  SNDH  format  maxYMiser  voice  and song files can be combined<br />
together  in various ways and replayed in your productions by using the supplied<br />
binary  replayer.  For guidance on how do this please look at the example source<br />
code, which is for a multi sub-tune SNDH file. This example covers most possible<br />
replay  situations,  and  even novice level assembly programmers will be able to<br />
make use of maxYMiser music.<br />
<br />
(15.1) Technical<br />
----------------<br />
Here  are  details  for  the  header offsets of the maxYMiser replayer, run each<br />
routine in supervisor mode:<br />
<br />
MUSIC +&#36;0                    = branch here for music initialise routine<br />
MUSIC +&#36;4                    = branch here for music de-initialise routine<br />
MUSIC +&#36;8                    = branch here for music interrupt routine<br />
MUSIC +&#36;C  (binary replayer) = read here for demo zynchronisation byte<br />
      +&#36;B8 (unmodified SNDH)<br />
      +&#36;?? (modified SNDH - byte is present directly after HDNS tag)<br />
<br />
The  replay  routine  stored  within  the  SNDH  file, and the one in the binary<br />
replayer  are  virtually  identical.  There  is  little  advantage  either  way<br />
performance  wise. The replay routine is fully PC relative, and performs partial<br />
relocation on part of its code in the initialisation routine.<br />
<br />
You will probably notice that replaying maxYMiser music outside of the editor is<br />
a  little  faster  than inside it, this is due to the RLE algorithm used to pack<br />
the pattern data.<br />
<br />
The replay routine automatically detects processors without cache, and then uses<br />
self-modifying  code  routines for performance. This includes MegaSTe - although<br />
this  system  has  second  level  cache,  data  and  instruction  caches are not<br />
separated,  so there are no strange effects with using these self-modifying code<br />
routines.<br />
<br />
The  routine is generic, customised space-saving versions of the binary replayer<br />
can  be  made  available  depending  on  your specific application. Email me for<br />
details.<br />
<br />
(15.2) Tips for low CPU consumption<br />
-----------------------------------<br />
As a composer for music on any platform you have to be aware of using CPU. On PC<br />
and Mac, for example, any VST or other synth/effect you use takes some CPU time,<br />
so  you  can't  run  too  many  of  them. The same with Atari ST chip music, any<br />
special  effects  you  use will use some CPU, and with an old skool 8MHz machine<br />
you  can  easily  use  it  all  up  <img src="https://www.ihcmot.fr/board/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" />  If you're working with a coder on a demo<br />
production,  they're sure to want some spare CPU time for running their effects.<br />
Depending  on  the  coder, you might not be allowed to use too much CPU for your<br />
music.  Even  if you chip just for fun, you can still easily use your machine up<br />
with too much of certain effect types.<br />
<br />
As  a  guide,  here is a list of different effect types, and some guidance about<br />
CPU usage.<br />
<br />
    * YM DigiDrums.  These are easily the most CPU eating effect. Best is not to<br />
      use them at all. To minimise the impact, use on one channel at once only,<br />
      and with the lowest  possible  sample  rate  for ok quality - maybe 6kHz.<br />
      maxYMiser supports digidrums at different volume levels.  If there is no<br />
      volume adjustment, in other words if the digi is at maximum volume,  less<br />
      CPU will again be used.<br />
<br />
    * SID.  Software generated SID waveforms use less CPU than YM DigiDrums, but<br />
      they  can  still  eat  CPU.  Triple  classic SID tunes from the SID Sound<br />
      Designer  days  were notorious for eating much CPU. With the advanced SID<br />
      effects maxYMiser offers, a composer can easily use more. To minimise CPU<br />
      usage  its  recommended to use as few SID voices at once as possible. Use<br />
      the  minimum  number of steps in your SID waveform as you can for your YM<br />
      sound effect. Avoid using SID for high frequency notes.<br />
<br />
    * STe DMA channels.  maxYMiser  uses  quite optimised routines for resampled<br />
      STe  DMA  channels.  Even  so  each  DMA  channel can use around 10% CPU,<br />
      roughly  the  same as a SID voice. Try working with a single DMA channel,<br />
      with  STe  native sample rates only or no DMA <img src="https://www.ihcmot.fr/board/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" /> Lower frequencies do use<br />
      less CPU and STe DMA uses no timers.<br />
<br />
    * SyncBuzzer.  In  general  the same applies for syncbuzzer as SID, but with<br />
      some differences. SyncBuzzer does eat as much CPU as SID, in fact it uses<br />
      about half the amount of CPU. Also its only possible to use the buzzer on<br />
      one voice at once, so you have the enforced limitation of the hardware to<br />
      help too.<br />
<br />
    * Native STe DMA.  The  STe native frequency mode uses no CPU for resampling<br />
      on  STe, Mega STe and TT, and just a little overhead to parse the tracker<br />
      data.  The  volume  control is achieved by preshifting, and uses no extra<br />
      CPU  in this mode. Native STe rates on Falcon work for compatibility only<br />
      and  use the same CPU as a resampled DMA channel.<br />
<br />
    * Noise, square, buzzer. Normal 'native' YM effects not using timer or other<br />
      special  tricks use the least CPU possible. Roughly around 5%. Start sync<br />
      is not a CPU heavy effect, and nor is detuning.<br />
<br />
For  the  case  of an ST demo, a nice compromise would be one channel with timer<br />
effects  allowed,  limiting  yourself to maximum of 4 steps in you SID waveform.<br />
The  two  remaining  YM  channels could be used for buzzer and drums and classic<br />
squarewave effects.<br />
<br />
For  an  STe, where heavy blitter use might mean that no timer or interrupts can<br />
be used, then 3 channels of plain YM with a single STe DMA channel could also be<br />
a good tradeoff between CPU and interesting sound effects.<br />
________________________________________________________________________________<br />
<br />
(16) Finally<br />
============<br />
Have fun and stay Atari <img src="https://www.ihcmot.fr/board/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" />                                    Gareth Morris/gwEm<br />
                                                                        Feb 2019<br />
</div>
</span>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[STE spec / The PARANOID]]></title>
			<link>https://www.ihcmot.fr/board/showthread.php?tid=6</link>
			<pubDate>Tue, 30 Jul 2024 16:01:30 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.ihcmot.fr/board/member.php?action=profile&uid=2">tomchi</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.ihcmot.fr/board/showthread.php?tid=6</guid>
			<description><![CDATA[<span style="font-family: consolas;" class="mycode_font"><div style="text-align: left; margin-left: auto; margin-right: auto; background-color: #d3d3d3; border: 2px solid #808080; border-radius: 10px; padding: 12px; width: 680px; ">
                        Some minor hints and notes on<br />
                        <br />
                  ___________      ___________  ___________<br />
                 /          /_____/          / /          /<br />
                /    _____//    /      _____/ /     _____/<br />
               /    /____ /____/     / /   __/     /<br />
              /_____/    /    /_____/ /   / /_____/<br />
             _____/     /      /     /   /      /_____<br />
            /          /      /     /   /            /<br />
           /__________/      /_____/   /____________/<br />
          <br />
                                Coding<br />
                                <br />
      assembled after depressing hours of experiments and tests<br />
      that did usually not work out as planned by The Paranoid.<br />
      <br />
                                Paranoia<br />
                        Think you can handle it ?!<br />
                        <br />
                        (of the Lunatic Asylum)<br />
                        <br />
                        <br />
<br />
Preface:<br />
--------<br />
The Atari STE is, without a doubt, a nice machine. It has so many<br />
features the Atari ST lacked:<br />
- 4096 instead of 512 colours<br />
- Horizontal and Vertical hardware scrolling<br />
  (also called hardware windowing of large virtual screens)<br />
- Blitter<br />
- 8 Bit DMA stereo sound<br />
  (Up to 50 KHz replay rate)<br />
- National LMC 1992 soundchip, connected over Microwire serial port<br />
  Treble, Bass, Left/Right/Main Volume Control<br />
- 256KB EPROM containing the TOS, socketed<br />
- 4 30-pin SIMM-slots, up to 4 MB RAM<br />
- Extended and analogue capable joystick ports<br />
<br />
Unfortunately, you will pretty soon find out that the STE also<br />
contains a lot - and i mean a lot - of pitfalls.<br />
Whatever feature of the STE you want to use, it will either<br />
not work as planned or require special treatment. If it works<br />
as planned and does not require special treatment, it will<br />
definetly not work on the TT or the Falcon.<br />
So this documentation is just a little compilation of the usual<br />
traps especially programming beginners might step in and how<br />
to dodge these traps.<br />
<br />
This documentation is given on an "as is" basis. Paranoia does<br />
not give any warranties about correctness about the given<br />
information here. We can not be held responsible for any loss<br />
of data, damage to your hardware or whatever might happen to<br />
you, your software or your hardware after reading this <br />
document.<br />
Every chapter will describe the special registers for a certain<br />
feature and afterwards list the traps you should look out for.<br />
In the bitset tables, "0" means this bit cannot be set and is<br />
automatically assumed "0", "1" means this bit cannot be set and<br />
is automatically read as "1", "X" means it can be read/written<br />
and can feature "0" or "1".<br />
In the Tables, "yes" means this register exists in the model<br />
mentioned while "no" means that this register does not exist.<br />
"ro" means "read only" and refers to a register that cannot be<br />
written to, "rw" means "read/write" and declares a register<br />
that can be read as well as written to.<br />
<br />
<br />
1.) The Hardware Scrolling<br />
--------------------------<br />
The Registers:<br />
  Video Base Address:                            ST    STE<br />
    &#36;FFFF8201    0 0 X X X X X X  High Byte      yes    yes<br />
    &#36;FFFF8203    X X X X X X X X  Mid Byte      yes    yes<br />
    &#36;FFFF820D    X X X X X X X 0  Low Byte      no    yes<br />
<br />
    The first two registers are identical with those of the ST and<br />
    can be read and written to. The last one (low byte) did not<br />
    exist on the ST. While on the ST this meant that a Video Base<br />
    address had to be even on a 256-byte basis (lowbyte was<br />
    assumed #&#36;00 then), on the STE it only has to be even since<br />
    bit 0 is automatically assumed #0.<br />
  <br />
  Video Address Counter:<br />
    &#36;FFFF8205    0 0 X X X X X X  High Byte      ro    rw  <br />
    &#36;FFFF8207    X X X X X X X X  Mid Byte      ro    rw<br />
    &#36;FFFF8209    X X X X X X X 0  Low Byte      ro    rw<br />
<br />
    This set of registers already existed on the ST but could not<br />
    be written to. The Shifter uses this actually for counting<br />
    through the whole screen it is building up. Write access<br />
    has of course immediate effect.<br />
  <br />
  Line-Offset Register<br />
    &#36;FFFF820F  X X X X X X X X X                  no    yes<br />
    <br />
    This register contains the value how many WORDS (not BYTES!)<br />
    the Shifter is supposed to skip after each Rasterline. This<br />
    register enables virtual screens that are (horizontally)<br />
    larger than the displayed screen by making the Shifter skip<br />
    the set number of words when a line has been drawn on screen.<br />
    <br />
  Video Base Address Pixel Offset<br />
    &#36;FFFF8265  0 0 0 0 X X X X                  no      yes<br />
  <br />
    This register allows to skip from a single to 15 pixels at<br />
    the start of each rasterline to allow horizontal fine-<br />
    scrolling.<br />
    <br />
The registers are easy to understand. So why didn't it work ?<br />
<br />
? Writing to the Video Base Address registers seems to have no direct<br />
  affect on the screen contents.<br />
! No. These registers only contain the "reset" value for the Shifter<br />
  after a whole screen has been drawn. It does not affect the current<br />
  screen, but the one for the next VBL. To make immediate changes on<br />
  the screen, use the Video Address Counter.<br />
<br />
? There's only junk on the screen. It looks like the STE reads the<br />
  screen content from a totally wrong address.<br />
! For compatibility reasons, the low-byte of the Video Base Address<br />
  is ALWAYS set to 0 when the mid- or high-byte of the Video Base<br />
  Address are set. This is easy to understand, seeing that the ST<br />
  did not have this register - hence ST software that never sets<br />
  the low-byte might have problems setting the correct Video Base<br />
  Address. The solution on the STE is simple: Always set the<br />
  Low-Byte last. First set High and Mid-Byte (in no special order),<br />
  then do the low-byte.<br />
<br />
? Scrolling in 16-pixels blocks works, but fine-scrolling totally<br />
  screws up the screen contents.<br />
! The Line Offset Register is very critical. Make sure it contains the<br />
  correct value at any time. If the Pixel Offset Register contains a<br />
  zero, the Line Offset Register contains the exact number of words<br />
  to skip after each line. But if you set the Pixel Offset Register to<br />
  "X", the Shifter will still display 320 (640) pixels a line and <br />
  therefore has to read "X" pixels from the NEXT word which it would<br />
  have skipped if the Pixel offset Register contained a "0".<br />
  Hence, for any Pixel Offset Value &gt; 0, please note that the Shifter<br />
  has to read (a few bits) more each rasterline and these bits<br />
  must NOT be skipped using the Line Offset Register.<br />
<br />
? Tried. Screen content is still screwed up.<br />
! Please also note that in Low-Resolution (4 Bitplanes), the Video-<br />
  Shifter reads 4 words at once. In Low-Res, the Line Offset therefore<br />
  always has to be a multiple of 4, otherwise the Shifter will not<br />
  display the bitplanes correctly next rasterline.<br />
<br />
? In Hires (Monochrome 640x400), my scrolling does not work on the<br />
  Falcon<br />
! On the STE, the Video Base Address only has to be a multiple of 2<br />
  since bit 0 is always "0". On the Falcon, the least significant 2<br />
  bits of the Base Address are "0", hence, on the Falcon, you can<br />
  horizontally scroll a minimum of 2 words, which, in monochrome<br />
  mode, is not sufficient for fine-scrolling.<br />
  There is no way to do horizontal-fine scrolling on the Falcon in<br />
  a monochrome mode. Midres (640x200 2 bitplanes) will already<br />
  work since every address has to be a multiple of 4 then.<br />
<br />
? Gah! On the TT neither hires nor midres works.<br />
! It's even worse on the TT since the TT-Shifter lacks the 3 least<br />
  significant bits of the Video Base Address, hence all Video Base<br />
  Addresses have to be a multiple of 8. In hi- and midres however,<br />
  any "sound" Base Address is a multiple of 2 or 4.<br />
  There is no way to horizontally fine-scroll on the TT in these<br />
  resolutions.<br />
<br />
? It scrolls, but the screen-content seems to jump sometimes.<br />
! The Atari STE shifter has a slight timing problem regarding the<br />
  Pixel Skip Register. Whenever this registers "jumps" from a value<br />
  &gt;"0" to "0", the STE might display the wrong screen address.<br />
  This is a known problem and Atari affirms it.<br />
  Atari officially suggests to NOT set the Pixel Skip register in<br />
  the VBL as this causes the problem. Since changes on this<br />
  register have immediate effect, Atari suggests to use a HBL<br />
  routine that sets all registers connected to Video hardware<br />
  not in the VBL but in (for example) a HBL interrupt after the<br />
  VBL.<br />
<br />
? On the Falcon and TT, fine-scrolling seems to work without<br />
  the jumping in low-res, even when the registers are set in the<br />
  VBL-interrupt.<br />
! Affirmed. Both TT and Falcon do not suffer "visibly" from this<br />
  bug. However, in case there are other bus-timing critical jobs<br />
  running (like MOD-replay routines or heavily loaded interupt<br />
  routines that occur more often than the VBL), this bug MIGHT<br />
  become visible as well. Besides, if you are coding Falcon or<br />
  TT for STE compatibility, you should follow Atari's suggestion<br />
  and not use VBL to set the registers.<br />
  You will learn later on that the STE behaves very very critical<br />
  to anything done in the VBL anyway.<br />
  <br />
? I tried to write a screen splitting routine that changes a lot<br />
  of Video-related parameters after a certain rasterline. But it<br />
  is highly fragile and does not work very well.<br />
! The STE with an 8 MHz CPU is not very fast and timing becomes<br />
  critical when trying to change Video-registers on the fly<br />
  during the screen build-up. There is no general solution for<br />
  this, just that you should, during screen build-up, never<br />
  change too many registers or at least not in a way that it<br />
  costs too much time. If you do need to change many registers,<br />
  make a table with all the values long before they are used<br />
  (for example in the VBL) and try to write these values as<br />
  quickly as possible.<br />
  Sometimes, an empty line in exactly that HBL you change all<br />
  the registers, can help a lot.<br />
<br />
? So now i fixed it and it works fine on the STE, but often enough,<br />
  bitplanes are screwed up on the Falcon. Why ?<br />
! Remember that the Falcon only allows screen addresses as multiples<br />
  of 4, which is not as flexible as on the STE, where it only has to<br />
  be a multiple of 2. This is also the case for the Video Counter<br />
  Registerts, not only for the Video Base Address.<br />
  Make sure that your screen data is stored on an address that is<br />
  a multiple of 4 and it will work.<br />
<br />
? My screen splitting routine now works fine on the STE and<br />
  on the Falcon, but not on the TT.<br />
! On the TT, it's even worse and each Video Base Address has to<br />
  be a multiple of 8. According to Ray/tSCc, the TT allows write<br />
  access to the Video Counter - in contrast to what some books<br />
  say. However, officially, the TT does not allow to change<br />
  video address on the fly by writing to the address counter.<br />
  <br />
<br />
2.) 4096 Colours<br />
----------------<br />
Registers:<br />
<br />
  Palette Register:                                ST    STE<br />
    &#36;FFFF8240  0 0 0 0 x X X X x X X X x X X X      X    x+X<br />
    &#36;FFFF8242  0 0 0 0 x X X X x X X X x X X X ...<br />
    ...<br />
    &#36;FFFF825E  0 0 0 0 x X X X x X X X x X X X    (16 in total)<br />
                      ---_--- ---_--- ---_---<br />
                        red    green    blue<br />
    <br />
    These 16 registers serve exactly the same purpose as in the<br />
    ST. The only difference is that each Nibble for Red, Green<br />
    or Blue consists of 4 bits instead of 3 on the ST.<br />
    <br />
This time, Atari did good work (almost). So what are the pitfalls:<br />
<br />
? I tried to program a fade and it works in general, but flashes<br />
  during the fade, why ?<br />
! For compatibility reasons, each nibble encoding the Red, Green or<br />
  Blue values is not ordered "8 4 2 1", meaning the least significant<br />
  bit represents the value "1" while the most significant one <br />
  represents the value "8" - This would make the STE rather <br />
  incompatible with the ST and only display dark colours.<br />
  The sequence of Bits is "0 3 2 1" encoding the values<br />
  "1 8 4 2". Therefore to fade from black to white, the sequence<br />
  of colours would be &#36;000, &#36;888, &#36;111, &#36;999, &#36;222, &#36;AAA, ...<br />
  <br />
? My program sets the palette correctly on the STE in lowres<br />
  (320x200 16 colours). Will it also work on the TT in TT midres <br />
  (640x480 16 colours) ?<br />
! Yes, it will. Even though the TT uses its own palette registers,<br />
  256 in total, it can "mask in" a set of 16 colours in the ST<br />
  palette registers, which are of course at the same address as<br />
  on your STE. Meaning: Whatever values you write in the ST<br />
  palette registers on the TT, in TT midres, they will be used.<br />
  Your program will even work correctly in TT Low (320 x 480<br />
  256 colours), if the TT Shiftmode register is set accordingly.<br />
<br />
? So it does work on the TT alright. But i have a Falcon and not<br />
  a TT. Now what ?<br />
! The Falcon can be switched to "ST compatible mode". This is not<br />
  a 100% term since it does not - in contrast to the TT - mean<br />
  either 320x200, 640x200 or 640x400 pixels in 16,4 or 2 colours<br />
  but only means that the ST palette registers are being used,<br />
  hence this flag can only be used when displaying 16, 4 or 2<br />
  colours. If you do not set this flag, the Falcon will NOT<br />
  - in contrast to the TT - read the ST palette registers.<br />
  This change has been necessary since the Falcon has 18 bits<br />
  per colour in bitplane mode while the TT only has 12, just<br />
  like the STE has. The Falcon RGB format for a palette mode<br />
  is: 00RRRRRR 00000000 00GGGGGG 00BBBBBB (VGA compatible).<br />
  <br />
<br />
3.) The Blitter<br />
---------------<br />
(The Blitter in the STE is, at least from the programmers view,<br />
identical to the Blitter in the Mega ST. Hardware-wise, it is<br />
not)<br />
<br />
Registers:<br />
  <br />
  Halftone RAM:                            <br />
    &#36;FFFF8A00  Halftone RAM, Word 0    (16 Words in total)<br />
    ...<br />
    &#36;FFFF8A1E  Halftone RAM, Word 15<br />
    <br />
  Halftone RAM is a 32 Byte zero-waitstate Blitter-exclusive RAM<br />
  that can be used for lightning-quick manipulations of copied<br />
  data. Its main purpose was to combine monochrome picture data<br />
  with (16 x 16 pixel) patterns, usually to make them a bit<br />
  darker or brighter (halftone).<br />
  <br />
  Source X Increment Register:<br />
    &#36;FFFF8A20  X X X X X X X X X X X X X X X 0<br />
  Source Y Increment Register:<br />
    &#36;FFFF8A22  X X X X X X X X X X X X X X X X<br />
    <br />
    These registers encode how many bytes the Blitter increments the<br />
    counter after each copied word (&#36;FFFF8A20) or after each line<br />
    (&#36;FFFF8A22). Source Y Inc has to be even since the Blitter only<br />
    works on a Word-basis and can not access single Bytes.<br />
  <br />
  Source Address Register:<br />
    &#36;FFFF8A24  XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXX0<br />
    <br />
    The 32-Bit address of the source, meaning the Blitter will start<br />
    reading from this address. This address has to be even as the<br />
    Blitter cannot access single Bytes. The Blitter actually accepts<br />
    real 32-Bit addresses, but the MMU filters the upper 10 bytes<br />
    out.<br />
<br />
  Endmask Registers<br />
    &#36;FFFF8A28  X X X X X X X X X X X X X X X X  Endmask 1<br />
    &#36;FFFF82AA  X X X X X X X X X X X X X X X X  Endmask 2<br />
    &#36;FFFF82AC  X X X X X X X X X X X X X X X X  Endmask 3<br />
    <br />
    The Endmask is a Bitmask that can be applied upon the copied<br />
    data in a blockwise way. Endmask 1 is being applied on every<br />
    first word copied in a row, Endmask 2 for all other words<br />
    in this row except for the last one, which is combined with<br />
    Endmask 3. Clever usage of these registers allow to start<br />
    copies from basically every bit in memory.<br />
    <br />
  Destination X Increment Register:<br />
    &#36;FFFF8A2E  X X X X X X X X X X X X X X X X<br />
  Destination Y Increment Register:<br />
    &#36;FFFF8A30  X X X X X X X X X X X X X X X X<br />
    <br />
    Similar to the Source X/Y Increment Register. These two denote<br />
    how many Bytes after each copied word/line the Blitter proceeds.<br />
    <br />
  Destination Address Register:<br />
    &#36;FFFF8A32  XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXX0<br />
    <br />
    This contains the address where the Blitter copies all the<br />
    data to that it computes. A real 32 Bit word that has to be even.<br />
    <br />
  X Count Register:<br />
    &#36;FFFF8A36  X X X X X X X X X X X X X X X X<br />
  Y Count Register:<br />
    &#36;FFFF8A38  X X X X X X X X X X X X X X X X<br />
    <br />
    These two registers contain the information about how the 2D<br />
    bitblock the Blitter copies are shaped. The X Count Register<br />
    contains how many words a line of this rectangular block has,<br />
    the Y-Count how many lines the bitblock has in total.<br />
    This does not include the skipped words, only those the<br />
    Blitter really copies (hence the name count).<br />
  <br />
  Blit HOP (Halftone OPeration) Register:<br />
    &#36;FFFF8A3A  0 0 0 0 0 0 X X<br />
    <br />
    How to combine Halftone-Data and copied data is given here.<br />
    A "00" means all copied bits will be set to "1" (blind copy),<br />
    "01" means ONLY halftone content will be copied, "10" implies<br />
    that ONLY source content will be copied (1:1 copy). "11" makes<br />
    the halftone-pattern work as supposed and does a copy <br />
    "Halftone AND source".<br />
  <br />
  Blit OP (logical OPeration) Register:<br />
    &#36;FFFF8A3B  0 0 0 0 X X X X<br />
    <br />
    The Blitter can carry out 0-cycles logical operations with<br />
    source and target. The table of possible values follow:<br />
    0 0 0 0    - Target will be zeroed out (blind copy)<br />
    0 0 0 1    - Source AND Target        (inverse copy)<br />
    0 0 1 0    - Source AND NOT Target    (mask copy)<br />
    0 0 1 1    - Source only              (replace copy)<br />
    0 1 0 0    - NOT Source AND Target    (mask copy)<br />
    0 1 0 1    - Target unchanged          (null copy)<br />
    0 1 1 0    - Source XOR Target        (xor copy)<br />
    0 1 1 1    - Source OR Target          (combine copy)<br />
    1 0 0 0    - NOT Source AND NOT Target (complex mask copy)<br />
    1 0 0 1    - NOT Source XOR Target    (complex combine copy)<br />
    1 0 1 0    - NOT Target                (reverse, no copy)<br />
    1 0 1 1    - Source OR NOT Target      (mask copy)<br />
    1 1 0 0    - NOT Source                (reverse direct copy)<br />
    1 1 0 1    - NOT Source OR Target      (reverse combine)<br />
    1 1 1 0    - NOT Source OR NOT Target  (complex reverse copy)<br />
    1 1 1 1    - Target is set to "1"      (blind copy)<br />
    <br />
  Blitter Control Register:<br />
    &#36;FFFF8A3C  X X X 0 X X X X<br />
    <br />
    This register serves multiple purposes.<br />
    The lowest 4 bit represents the number of the line in the<br />
    Halftone pattern to start with.<br />
    The upper 3 bits feature extended options of the Blitter.<br />
    Bit 5  -  Smudge-mode<br />
              Which line of the halftone pattern to start with is<br />
              read from the first source word when the copy starts<br />
    Bit 6  -  Blit-Mode Register<br />
              Decides wether to copy in BLIT Mode (0) or in <br />
              HOG Mode (1). In Blit Mode (also known as cooperative),<br />
              CPU and Blitter get 64 clockcycles in turns, in Hog <br />
              Mode, the Blitter reserves and hogs the bus for as long<br />
              as the copy takes, CPU and DMA get no Bus access.<br />
    Bit 7  -  Busy Bit<br />
              Turns on the Blitter activity and stays "1" until the<br />
              copy is finished<br />
              <br />
  Blitter Skew Register:<br />
    &#36;FFFF8A3D  X X 0 0 X X X X<br />
    <br />
    The lowest 4 bit of this register allow to shift the data while<br />
    copying by up to 15 bits to the right. The upper 2 bits are<br />
    Bit 6  -  NFSR (No final source read)<br />
    Bit 7  -  FXSR (Force extra Source Read).<br />
    NFSR means the last word of course is not being read anymore.<br />
    This is only sensible with certain Endmask and skew values.<br />
    FXSR is the opposite and forces the Blitter to read one more<br />
    word. Also only sensible with certain Endmask/Skew combinations.<br />
<br />
<br />
So much for the theory. Unfortunately, the Blitter is a lovely but<br />
also pretty stubborn little chip. What went wrong this time ?<br />
<br />
? After feeding the Blitter values and activating it, the STE<br />
  totally crashes.<br />
! All the address-related auxilary registers such as X-Count/Y-Count,<br />
  X/Y-Increments etc. are signed values. In other words, the Blitter<br />
  can go backwards in memory as well as forward. Please check if your<br />
  values are correct.<br />
<br />
? I am trying a simple and direct copy and set all the important<br />
  registers, but it does not work as i planned.<br />
! The Blitter is a chip and not a software, meaning it does not know<br />
  any default values. Especially when starting to learn "Blitter" it<br />
  is important to ALWAYS set EVERY Register correctly.<br />
  Especially Endmask, Smudge, Skew and OP-Register can lead to very<br />
  funny results if not set correctly. So set ALL the registers at<br />
  least once, for all subsequent copies you do not need to set them<br />
  ALL anymore.<br />
<br />
? The copy appears at the right spot, but is scrambled.<br />
! Make sure your X/Y-Increments are correct for both Source and<br />
  Destination. Especially if you are copying a "tight" block<br />
  (like a 32x32 pixel compact block) to a larger area (like the<br />
  screen) you definetly need to watch the increment registers.<br />
<br />
? Now the first copy works, but even though i am copying blocks of<br />
  identical size, just setting addresses does not work.<br />
! No, the Blitter uses a few of the registers accessible by the CPU<br />
  for its own counting. Set Addresses, X and Y-Count Registers<br />
  every time you do a copy in any case. <br />
  <br />
? So i set all the registers, but the copies are incomplete when<br />
  i do multiple copies.<br />
! Before feeding the Blitter new values, make sure it has finished<br />
  its task already by checking the Busy-Bit.<br />
  Do not write new values into the Blitter's registers as long as<br />
  it is still operating.<br />
<br />
? It looks like the copy itself works, but it flickers. And i was<br />
  using the Blitter to speed things up, not to make them flicker.<br />
! After feeding the Blitter all the values and activating it, the<br />
  CPU is done and can do other tasks, the Blitter however has just<br />
  started. If the Blitter does critical things in your program make<br />
  sure the "Blit Busy" has returned from "1" to "0" before your CPU<br />
  proceeds when using the Blitter in Blit-mode.<br />
  <br />
? To make it even faster, i turned the Blitter into Hog-mode.<br />
  But now my program crashes almost at random.<br />
! The Hog-Mode of the Blitter does not allow the CPU to access to<br />
  bus while the Blitter is active - Not even for interrupts. Make<br />
  sure that your software does not require the CPU to react to<br />
  an interrupt immediatelly - Otherwise, the STE will crash.<br />
<br />
? Is there a way to make the Blitter faster in Blit-mode ?<br />
! Yes, there is. Atari used this to speed up the Blitter in GEM<br />
  without risking to use Hog-mode:<br />
  Check the Busy-Bit. The CPU cannot access the bus and therefore<br />
  not the Busy-Bit if the Blitter is "active". If the CPU can finally<br />
  check the Busy-Bit the Blitter has "paused" and will wait for 64<br />
  clockcycles. Now if the Busy-Bit is 0, the Blitter is done and<br />
  you can leave. If not, set it to "1" manually and do a NOP.<br />
  Writing the Busy-Register will relaunch the Blitter immediatelly,<br />
  but the Blitter needs a few clockcycles to reserve the bus<br />
  (around 7), so the NOP is carried out in any case.<br />
  This gives about 90% the speed of the HOG-mode without losing<br />
  the option to execute interrupts within the next 64 clockcycles.<br />
  Here's an extract from the ST Profibook:<br />
    Loop:    bset.b #7,&#36;FFFF8A3B  ;test and set Busy-Bit<br />
              nop                  ;do a NOP in any case<br />
              bne.s Loop          ;if Busy-Bit was "1", go to Loop<br />
<br />
? Huh ? My program does not work on the TT ?<br />
! No, it does not. The TT does not have a Blitter.<br />
<br />
? I am coding the Blitter on the Falcon to reduce CPU usage a bit<br />
  but the program has slowed down even more.<br />
! Unfortunately, the Falcon Blitter is rather useless since the<br />
  68030 is, when doing a simple 1:1 copy, about a factor of 4 to 5<br />
  faster than the Blitter in the Falcon is, even though the Falcon<br />
  Blitter is running at 16 MHz.<br />
  On the Falcon, the Blitter can become useful if you plan to <br />
  heavily use Halftone-pattern, bitwise-shifts and logical operations.<br />
  Otherwise, use the CPU instead.<br />
<br />
? I was trying to use the shift-operations of the Blitter to have<br />
  my objects on screen (ST Lowres) move pixelwise, but instead,<br />
  Bitplanes are being screwed up.<br />
! Please bear in mind the interleaved bitplane structure of the<br />
  ST Low resolution. Trying to copy and shift all bitplanes at<br />
  once will make the Blitter shift single bits from bitplane X<br />
  to bitplane Y. Copy bitplane by bitplane and it will work.<br />
<br />
? Copying and shifting blocks with the Blitter works now, but<br />
  sometimes, a few bits get lost.<br />
! In some cases, depending on the Endmask- and the Skew-registers,<br />
  the Blitter requires to read a word more than planned. Try<br />
  the FXSR-Register in these certain conditions.<br />
<br />
? I copy around large chunks of memory in one go, but i can't<br />
  really say it has gotten very fast on the Mega STE.<br />
! The Blitter in the STE does nearly 2 MB/sec. Per frame this<br />
  is roughly 40 KB/sec. The CPU in the STE comes nowhere near<br />
  that, but the CPU of the Mega STE (16 MHz, cache on) can<br />
  almost compete when it comes to direct 1:1 copies.<br />
<br />
? I heard somewhere, that the Blitter can be used for generating<br />
  software sprites all by itself. Is that true ?<br />
! Yes, you can have software sprites using the Blitter, that<br />
  can be freely positioned (pixel-perfect) without any other<br />
  interference of the CPU than just feeding values into the<br />
  Blitter registers. However, the Blitter cannot produce a<br />
  4 bitplane software-sprite in 1 go.<br />
  The simplest solution is to copy bitplane by bitplane,<br />
  and each bitplane twice: First NOT Source AND Target, then<br />
  Source OR Target. Since the shifts do not need any additional<br />
  time for the Blitter to carry out, this will, on the STE,<br />
  result in lightning fast sprites since the 68000 is very slow<br />
  doing the shifts.<br />
<br />
? I program the Falcon in true-colour mode and i would like to<br />
  take advantage of the Blitter.<br />
! Even though of course the Blitter works well in TC-mode, its<br />
  special features, bitwise shifts, extremely fast logical<br />
  operations, masks for bitwise copy and the halftone pattern,<br />
  are basically useless and for a direct copy, the CPU is a lot<br />
  faster.<br />
  <br />
? Is it just my imagination or is the Blitter in the Mega ST<br />
  really a bit faster than the Blitter in the STE ?<br />
! Actually, this is true. Due to the fact that the Blitter is<br />
  a sole chip in the Mega ST and has been combined in a chip<br />
  named COMBEL in the STE, it is really very slightly slower<br />
  in the STE than it was in the Mega ST.<br />
  This however is almost invisible.<br />
  <br />
<br />
4. DMA-Sound - the simple way to make music<br />
-------------------------------------------<br />
Registers:<br />
  DMA-Sound Control Register:<br />
    &#36;FFFF8900  0 0 0 0 0 0 0 0 0 0 0 0 0 0 X X<br />
    <br />
    Writing a "00" to the last 2 bits terminate DMA sound replay.<br />
    Bit 0 controls Replay off/on, Bit 1 controls Loop off/on<br />
    (0=off, 1=on).<br />
  <br />
  DMA-Sound Start Address Register:<br />
    &#36;FFFF8902  0 0 X X X X X X X X X X X X X X  Hibyte<br />
    &#36;FFFF8904  X X X X X X X X X X X X X X X X  Midbyte<br />
    &#36;FFFF8906  X X X X X X X X X X X X X X X 0  Lowbyte<br />
    <br />
    These three registers contain the 24-bit address of the sample<br />
    to play. Even though the samples are built on a byte-base, the<br />
    DMA chip also only allows even addresses<br />
  <br />
  DMA-Sound Count Register:<br />
    &#36;FFFF8908  0 0 X X X X X X X X X X X X X X  Hibyte  (ro)<br />
    &#36;FFFF890A  X X X X X X X X X X X X X X X X  Midbyte (ro)<br />
    &#36;FFFF890C  X X X X X X X X X X X X X X X 0  Lowbyte (ro)<br />
    <br />
    Used internally for the DMA-soundchip to count from start- to<br />
    end-address. No write access.<br />
  <br />
  DMA-Sound End Register:<br />
    &#36;FFFF890E  0 0 X X X X X X X X X X X X X X  Hibyte<br />
    &#36;FFFF8910  X X X X X X X X X X X X X X X X  Midbyte<br />
    &#36;FFFF8912  X X X X X X X X X X X X X X X 0  Lowbyte<br />
    <br />
    The address that the sample ends at. When the count registers<br />
    have reached this address, the DMA-sound system will either<br />
    stop or loop.<br />
    <br />
  DMA-Soundmode Register:<br />
    &#36;FFFF8920  0 0 0 0 0 0 0 0 X 0 0 0 X X X X<br />
    <br />
    Allows to toggle between several replay methods.<br />
    Bit 7 switches Mono/Stereo (1 = Mono, 0 = Stereo),<br />
    Bit 0 and 1 encode the replay rate:<br />
      0 0  -  6258 Hz<br />
      0 1  - 12517 Hz<br />
      1 0  - 25033 Hz<br />
      1 1  - 50066 Hz<br />
      <br />
Sounds fairly easy, right ? Unfortunately, it's not.<br />
<br />
? I set all the registers, but there is no sound at all.<br />
! The DMA-Soundsystem expects you to write the high-byte of the<br />
  Start- and Endaddress first. Even though this serves no<br />
  purpose at all, writing the highbyte clears the others. Hence<br />
  it must be written first.<br />
  <br />
? I can't hear anything on my Falcon when trying to replay a<br />
  6 KHz sample.<br />
! The Falcon DMA-soundsystem does not support 6 KHz. The value<br />
  "00" in the Soundmode-register means "OFF" on the Falcon.<br />
<br />
? The sound is awful. This does not sound like my sample.<br />
! On the STE, the DMA-soundsystem only works with signed sample<br />
  files, featuring values from -128 over 0 to +127. Some sample<br />
  programs use unsigned formats, ranging from 0 to 255 with<br />
  128 representing zero-line of the sample. Those samples need<br />
  to be converted first.<br />
<br />
? I want to replay stereo samples. How can i know which sample<br />
  will be played on which channel ?<br />
! Stereo Samples have to be organized wordwise like<br />
  Lowbyte -&gt; right channel<br />
  Hibyte  -&gt; left channel<br />
  <br />
? My STE program to replay samples does not work very well on the<br />
  Falcon.<br />
! No, the Falcon's soundsystem is way more complex and can without<br />
  any major programming interfere very well with the parts of the<br />
  STE-soundsystem, especially since identical addresses are used for<br />
  some purposes. If you want Falcon-compatibility of your STE-code,<br />
  do not use "move"-instructions to set/unset bits of &#36;FFFF8900<br />
  and &#36;FFFF8920 as this might override Falcon-specific registers.<br />
  Best, leave them as they are and use AND to unset and OR to set<br />
  certain bits.<br />
<br />
? Will my STE code work on the TT ?<br />
! Yes, it will. The TT's DMA-sound subsystem is identical to the<br />
  one of the STE.<br />
  <br />
? I am trying to change the addresses of the sample while the<br />
  DMA-sound plays, but it does not work.<br />
! No, the DMA-Soundsystem latches the Start- and End-Register<br />
  internally, so writing to these values only takes influence<br />
  when the values are re-read, which happens when the sample<br />
  has been played, even if the DMA-soundsystem is switched to<br />
  loop.<br />
<br />
? Argh, i have now implemented DMA-sound to my program and now<br />
  my whole screen-management goes wild<br />
! This easily happens. The DMA-sound subsystem of the STE houses<br />
  the "shifting logic" in the STE-Shifter. When starting the DMA<br />
  sound to play a sample, you should not try to access the Shifter's<br />
  registers directly afterwards but "wait" a few cycles.<br />
  The simplest solution is to wait a single VBL after starting<br />
  the DMA-sound before proceeding with your program.<br />
  Once the DMA-sound plays, you can change DMA-sound registers<br />
  without risking to screw up screen management.<br />
<br />
? Can i get a "notice" from the DMA-soundsystem when it finished<br />
  playing a sample ?<br />
! Yes, you can use TIMER A as event counter which will be notified<br />
  when a sample has been played completely.<br />
  <br />
? I want to replay a sample backwards.<br />
! Does not work on the STE. The sample-counter can only be<br />
  increased, not decreased.<br />
<br />
<br />
5. The National LMC 1992 and the Microwire<br />
------------------------------------------<br />
<br />
Preface:<br />
  There's a little, but common mistake of minor importance when it<br />
  comes to this combo that allows manipulation of the DMA sound to<br />
  enhance trebble and bass as well as left, right and main volume.<br />
  It is not the Microwire interface that manipulates the sound, it<br />
  is a chip named National LMC 1992.<br />
  This chip however has not been integrated into the Atari STE<br />
  hardware directly but can only be communicated with using a 3-bit<br />
  serial interface, the so-called Microwire.<br />
  It is a bit hard to handle for a beginner, but luckily, it is also<br />
  hard to crash the STE using this register.<br />
  And since the Microwire can basically connect more than just one<br />
  device, it needs a 2 bit address to which device to transfer data<br />
  to. The LMC1992 is at "address" 2 (binary 10). Each address-data-pack<br />
  written to the LMC1992 therefore consists of an 11 bit package.<br />
  The communication is a bit similar to communicating with the YM2149<br />
  since the Microwire also requires to encode data in a certain way.<br />
  <br />
National LMC 1992<br />
  Adress and Data register<br />
    &#36;FFFF8922  x x x x  x x x x  x x x x  x x x x<br />
    <br />
    This address is being used to feed the National LMC both<br />
    address and data bits for a certain setting.<br />
    The choice which bits are being read are being described<br />
    in the mask register at &#36;FFFF8924.<br />
    As described above, the first two bits of the 11 bit<br />
    package need to be a "10" to address the LMC1992.<br />
    Then there are 3 more "address" and 6 more data bits.<br />
    The address bits are 3 in total and are being used as<br />
    follows:<br />
      0 1 1  -  Master Volume (followed by 6 bits of data)<br />
      1 0 1  -  Left channel volume (followed by 6 bits of data)<br />
      1 0 0  -  Right channel volume (followed by 6 bits of data)<br />
      0 1 0  -  Trebble control (followed by 6 bits of data)<br />
      0 0 1  -  Bass control (followed by 6 bits of data)<br />
      0 0 0  -  Mixer (followed by 6 bits of data).<br />
      <br />
    However, not all bits of the 6 general data bits are being<br />
    used. It is necessary to have a multiple of 6 though since<br />
    the Microwire is a 3-bit serial interface.<br />
    The explanation of the 6 data bits are<br />
      (d means necessary data bit, x means bit is ignored)<br />
    <br />
      Master Volume: d d d  d d d  (all 6 bits used)<br />
                    0 0 0  0 0 0  = -80 db volume<br />
                    0 1 0  1 0 0  = -40 db volume<br />
                    1 0 1  x x x  =  0 db volume (max)<br />
      Each increment represents 2 db. If the 3 left bit encode "101",<br />
      the last 3 bits are being ignored.<br />
<br />
      Left channel:  x d d  d d d  (left bit ignored)<br />
                      0 0  0 0 0  = -40 db volume<br />
                      0 1  0 1 0  = -20 db volume<br />
                      1 0  1 x x  =  0 db volume (max)<br />
      Each increment represents 2 db. If the 3 left bit carry "101",<br />
      the last 2 bits are being ignored.<br />
      <br />
      Right channel: x d d  d d d  (left bit ignored)<br />
                      0 0  0 0 0  = -40 db volume<br />
                      0 1  0 1 0  = -20 db volume<br />
                      1 0  1 x x  =  0 db volume (max)<br />
      Each increment represents 2 db. If the left 3 bit are "101",<br />
      the last 2 bits are being ignored.<br />
      <br />
      Trebble:      x x d  d d d  (left 2 bits are ignored)<br />
                        0  0 0 0  = -12 db (min)<br />
                        0  1 1 0  =  0 db (linear)<br />
                        1  1 0 0  =  12 db (max)<br />
      Each increment represents 2 db, normalized at 15 KHz.<br />
      <br />
      Bass:          x x d  d d d  (left 2 bits are ignored)<br />
                        0  0 0 0  = -12 db (min)<br />
                        0  1 1 0  =  0 db (linear)<br />
                        1  1 0 0  =  12 db (max)<br />
      Each increment represents 2 db, normalized at 50 Hz.<br />
      <br />
      Mixer control: x x x  x d d  (left 4 bits are ignored)<br />
                              0 0  = DMA + (YM2149 - 12 db)<br />
                              0 1  = DMA + YM2149<br />
                              1 0  = DMA only<br />
                              1 1  = reserved<br />
    Setting "00" mixes the output of the YM2149 and the output<br />
    of the DMA-sound, but the YM2149 sound is being downsized by<br />
    12 db. "01" mixes DMA and YM2149 linearly, "00" means DMA<br />
    sound output only.<br />
    <br />
  Mask Register<br />
    &#36;FFFF8924  x x x x  x x x x  x x x x  x x x x<br />
    <br />
    This contains in a bitfield which bits of the Address+Data<br />
    Register are explicetely used. Since the Microwire, as it<br />
    is being used in the STE, requires 11 bits of data (in general,<br />
    the Microwire can transport 14 bits), it is essential to let<br />
    the Microwire know WHICH of the 16 bits of this register are<br />
    to be taken into account.<br />
    As being used in the STE, this register will always feature<br />
    11 "1"s and 5 "0"s.<br />
    <br />
  Example:<br />
    Let's say we want to feed the LMC the data "011101000",<br />
    we would need to write a "10 011101000" to the address+data<br />
    register. We can use whatever bits we like of the 16 bits<br />
    of this register, so we use the mask register to mask out<br />
    the unused bits, which might look like:<br />
      &#36;FFFF8924  0 0 0 0  0 1 1 1  1 1 1 1  1 1 1 1<br />
      &#36;FFFF8922  0 0 0 0  0 1 0 0  1 1 1 0  1 0 0 0<br />
    or<br />
      &#36;FFFF8924  0 1 1 0  0 1 1 1  1 1 1 0  1 1 0 1<br />
      &#36;FFFF8922  0 1 0 0  0 0 1 1  1 0 1 0  0 0 0 0<br />
    both have the same effect.<br />
    <br />
Sounds complicated enough but can boost the DMA-sound output of<br />
the STE quite a lot. When programming it first time however you<br />
might easily see that it did not work as planned. Why ?<br />
<br />
? Can't hear any changes on my Falcon ...<br />
! Unfortunately, the Falcon does neither have a Microwire interface<br />
  nor the National Semiconductors LMC1992. The Falcon cannot <br />
  manipulate bass, treble, main, left and right volume as easily as<br />
  the STE can. The Falcon will not report an error either though.<br />
  The TT does have the Microwire interface as well as the LMC1992.<br />
<br />
? I write both address+data and the mask register correctly, still<br />
  it doesn't have the expected effect.<br />
! You need to write the mask before you write address and data.<br />
  As soon as address+data register has been written to, the <br />
  Microwire starts to operate (which means shifting to the left).<br />
  Writing the mask register after writing the address+data register<br />
  is therefore useless.<br />
<br />
? I write data into the mask-register, then address and data but<br />
  it still doesn't do what i wanted to.<br />
! Always make sure you have a total of "11" bits, and always<br />
  make sure, the leading bits on the left side are a "10".<br />
  Otherwise, the Microwire will try to access other peripherals<br />
  that the STE does not have - which will not lead to an error,<br />
  but result in no changes at all.<br />
  <br />
? I tried to achieve sound manipulation effects by writing a lot<br />
  of values to the LMC1992 to change DMA sound output. It does<br />
  seem to ignore a lot of my values.<br />
! The LMC1992 is connected to the Microwire and is being fed<br />
  data in a serial way. The Microwire is more or less a parallel<br />
  to serial converter and it does that by shifting the 16 bit<br />
  value (along with the mask) to the left 16 times and passing<br />
  each bit for that the mask-bit is "1" to the LMC.<br />
  That takes some time and during its operational state, the<br />
  Microwire cannot be written to.<br />
  <br />
? How can i find out wether the Microwire interface is done ?<br />
! Simply check the value in the address+data register after you<br />
  wrote your value into it. If the value at &#36;FFFF8922 is identical<br />
  with the value you wrote into it, the Microwire is done shifting<br />
  and can once again be written to. In all other cases, the<br />
  Microwire is still shifting and cannot be written to.<br />
<br />
? I successfully wrote to the LMC1992, but now YM2149 sound output<br />
  is pure torture. What happened ?<br />
! Well, the LMC1992 is not a chip that controls the DMA-sound in<br />
  its digital form but manipulates the analogue sound that comes out<br />
  of the DMA chip. If you now put the mixer to mix YM2149 and DMA<br />
  sound, the LMC1992 will also manipulate the YM sound output.<br />
  However, the YM2149 as a soundchip is not really meant to have<br />
  Bass and Trebble enhanced. This might result in a very ugly<br />
  sound.<br />
<br />
? My program works fine and also exits cleanly, but then any<br />
  subsequent sound output is awful. How come ?<br />
! You should save the contents of the LMC1992 right at the<br />
  start of your program and when exiting, you should restore<br />
  the original value - and the easiest way is to save both<br />
  mask and address+data register.<br />
  Restoring can be done by just writing mask and address+data<br />
  registers. The Microwire does not need any further software<br />
  support once you wrote the values, so it does not harm if<br />
  your program terminates in the meantime.<br />
  Programs you launch when your program is terminated that do<br />
  use DMA or YM2149 sound might be affected by your LMC1992<br />
  settings otherwise.<br />
<br />
? How come the Falcon does not have this feature ?<br />
! When the Falcon was initially planned (and named Sparrow),<br />
  it had a chip that was supposed to bear similar features<br />
  named RASCAL. It is probable that this chip was supposed to<br />
  "simulate" a Microwire + LMC 1992 duo as well as give<br />
  enhanced possibilites towards the 16-bit stereo sound of<br />
  the Falcon (Sparrow) as well as the DSP.<br />
  Either Atari did not finish this chip in time, it was too<br />
  expensive or too complex, we don't know. It appeared in<br />
  the first Sparrow prototypes as well as the first few<br />
  Falcon (exhibitors) boards. However, it is so far unknown<br />
  wether this chip is compatible to the Microwire+LMC1992 duo<br />
  or not and why it has been canned.<br />
<br />
? Why is the handling of the LMC1992 so complicated ?<br />
  Wouldn't there have been an easier way to give the STE these<br />
  features ?<br />
! Yes, of course, but the LMC1992 was very cheap. The LMC1992<br />
  was never meant to serve in a computer but was commonly used<br />
  in TV sets, Radios etc. and any other Audio-device that had<br />
  the option to control volumes, bass and trebble electronically,<br />
  and those preferred a "1-bit serial" implementation.<br />
  The Microwire is just the connection of the STE's architecture<br />
  to the LMC1992.<br />
<br />
6. Advanced Joystick, Paddle and Lightpen ports<br />
-----------------------------------------------<br />
Registers:<br />
  Fire-Buttons for 4 Joysticks:<br />
    &#36;FFFF9200  - - - -  - - - -  - - - -  X X X X<br />
    <br />
    This address features the fire buttons of 4 joysticks that<br />
    can be connected to these ports. Bit 0 represents joystick<br />
    0, bit 1 joystick 2, bit 2 joystick 1 and bit 3 joystick 3.<br />
    This register is "low active", meaning that a "0" implies<br />
    "active" (button pressed) and a "1" means "inactive"<br />
    (button not pressed).<br />
    <br />
  Joysticks:<br />
    &#36;FFFF9202  X X X X  X X X X  X X X X  X X X X<br />
    <br />
    Read this address to get the directions of 4 digital<br />
    joysticks connected. The lowest 4 bits (0-3) represent<br />
    joystick 0, the middle low 4 bits (4-7) represent<br />
    joystick 2, the next 4 bits (8-11) joystick 1 and<br />
    the highest 4 bits (12-15) joystick 3.<br />
    The lowest bit encodes "right", the next bit "left",<br />
    the next bit means "down" and the highest bit "up".<br />
    This whole register is low-active as well.<br />
  <br />
  Paddles:<br />
    &#36;FFFF9210  - - - -  - - - -  X X X X  X X X X  Paddle 0 X<br />
    &#36;FFFF9212  - - - -  - - - -  X X X X  X X X X  Paddle 0 Y<br />
    &#36;FFFF9214  - - - -  - - - -  X X X X  X X X X  Paddle 1 X<br />
    &#36;FFFF9216  - - - -  - - - -  X X X X  X X X X  Paddle 1 Y<br />
    <br />
    The advanced joystick ports allow analogue devices such as<br />
    paddles. Two paddles usually connect to one port, meaning<br />
    the connection of 4 paddles are possible. Instead of <br />
    "paddle X/Y coordinate", you might also read this as<br />
    "paddle 1/2 coordinate".<br />
    The fire buttons of each paddle can be read at the same<br />
    address as for the joysticks, &#36;FFFF9200<br />
    <br />
  Lightpen:<br />
    &#36;FFFF9220  - - - -  - - X X  X X X X  X X X X  X-Position<br />
    &#36;FFFF9222  - - - -  - - X X  X X X X  X X X X  Y-Position<br />
    <br />
    Connection of a light-pen is only possible at port 0. It<br />
    has a precision of 4 pixels in ST Low, 8 pixels in ST Mid<br />
    and 16 pixels in ST High resolution (horizontally).<br />
    Vertically, the light-pen is pixel-perfect. The values<br />
    read in this register always refer to ST Low. For usage<br />
    in midres, you need to multiply by 2, for usage in hires,<br />
    you need to multiply by 4.<br />
    <br />
These interfaces allow a lot of connections. What do you need<br />
to watch out for ?<br />
<br />
? Can't read out these registers. Why ?<br />
! In contrast to any joystick/mouse/keyboard function on the<br />
  ordinary ST, these interfaces are _not_ being maintained and<br />
  supervised by the IKBD subsystem of the ST keyboard but are<br />
  directly accessible by hardware. You need to be in supervisor<br />
  mode to access these registers.<br />
<br />
? The paddles i have from my good old 800XL can't be connected<br />
  since the plug doesn't fit. Can i connect and use them on the<br />
  ordinary joystick port of the ST ?<br />
! No, unfortunately, the IKBD does not have the hardware that<br />
  is necessary to drive paddles. Paddles are very "dumb" devices<br />
  that need quite a bit of hardware logic to work in a "digital"<br />
  environment. You will need to built yourself an adapter.<br />
<br />
? I want to build myself a 4-player adapter so i can connect 4<br />
  joysticks to these ports. What pins do i need to connect ?<br />
! The hardware layout of each of these joystick ports is<br />
  (seen from the outside of each connector):<br />
    _______________________________  1 - Joystick 0 "up"<br />
    \  5  4    3    2    1      /  2 - Joystick 0 "down"<br />
    \    10  9    8    7  6  /  3 - Joystick 0 "left"<br />
      \ 15  14  13  12  11    /    4 - Joystick 0 "right"<br />
      \_______________________/    5 - Paddle 0 Y coord<br />
    6 - Joystick 0 "fire"          11 - Joystick 2 "up"<br />
    7 - VCC                        12 - Joystick 2 "down"<br />
    8 - NC                        13 - Joystick 2 "left"<br />
    9 - Mass                      14 - Joystick 2 "right"<br />
    10 - Joystick 2 "fire"          15 - Paddle 0 X coord<br />
  <br />
  The ordinary 9 pin socket for an ordinary digital joystick<br />
  look like this:<br />
    ___________________          1 - Up    5 - reserved<br />
    \  1  2  3  4  5  /          2 - Down  6 - fire<br />
      \  6  7  8  9  /            3 - Left  7 - +5V<br />
      \_____________/            4 - Right  8 - Mass<br />
                      (9 is officially unused, might be 2nd "fire")<br />
  This should be sufficient to build an adapter.<br />
  <br />
? Which models have the extended joystick ports ? Is it sensible<br />
  to use them at all ?<br />
! Depends on what you are planning to do. Only the 1040 STE and the<br />
  Falcon have these additional ports. Neither the Mega STE nor the<br />
  TT have these. Games/Programs that can only use joysticks/paddles<br />
  connected to these ports cannot be played on Mega STE/TT computers.<br />
<br />
? How can i write a program that uses paddle controllers for the<br />
  Mega STE and TT then ?<br />
! You cannot. Both these computers lack the logic required to drive<br />
  paddle controllers.<br />
<br />
? But isn't the mouse a paddle controller, too ?<br />
! No, surprisingly, it is not. The mouse is using an internal<br />
  logic to convert "analogue" movement into digital impulses,<br />
  similar to rapidly moving a joystick in a direction and letting<br />
  it go again. The mouse is, unlike a paddle, not being read "by<br />
  position", but like a joystick "by movement".<br />
  For games however, you might use the mouse as a paddle.<br />
  GEM programs can use an AES routine to read mouse position,<br />
  otherwise you can use the IKBD to read the mouse.<br />
<br />
? My light pen doesn't work at all.<br />
! The light pen is only supported on connector 0. Connector 1<br />
  cannot be used to drive a light pen.<br />
<br />
? I want to connect jaguar powerpads, which can connect directly<br />
  to the advanced joystick ports. How do i read those ?<br />
! The directional pad and the 3 action buttons can be read<br />
  relatively easily. The D-pad represents one joystick connected<br />
  to the port, the 3 fire buttons and the Option button the<br />
  other joystick. The Pause-Button is the firebutton of one<br />
  joystick. Reading the numerical pad of the powerpad is more<br />
  difficult however.<br />
  <br />
7. Hardware related questions<br />
-----------------------------<br />
Here come some typical questions and answers concerning the 1040<br />
STE's hardware, not seen by the programmer but for upgrades and<br />
installations.<br />
<br />
? I want to upgrade my STE to 4 MB. What shall i do ?<br />
! The 1040 STE uses 30 pin SIMMs and the 1040 STE is not really<br />
  picky about the SIMMs you use. By using 4 x 1 MB SIMM you<br />
  will achieve 4 MB in total.<br />
<br />
? I only have 2 1 MB SIMMs. Can i use them ?<br />
! All 4 SIMM-slots (2 banks) need to be filled by SIMMs, otherwise<br />
  the STE won't boot at all. You might try to replace 2 of the<br />
  SIMMs in your 1040 STE to have either 2.5 MB (2 x 256KB +<br />
  2 x 1 MB) or 3 MB (2 x 512 KB + 2 x 1 MB), but unfortunately,<br />
  both only work with restrictions: There is a program that<br />
  "reserves 1.5 MB" while booting which are exactly those 1.5MB<br />
  that a 2.5 MB STE lacks to the 4 MB. The STE then "believes"<br />
  to have 4 MB with 1.5 MB permanently used.<br />
  This is not a wise choice however since it will require you<br />
  to always run this program. Most games will crash.<br />
  <br />
? I want to upgrade my STE to TOS 2.06. Do i need a TOS-card ?<br />
! No, you don't. The 1040 STE has 2 EPROM-sockets for 2 128KB<br />
  EPROMs, exactly the size of TOS 2.0x. Simply purchase the<br />
  TOS-ROMs, open your 1040 STE and replace chip by chip. They<br />
  are marked "E" for "Even" and "O" for "Odd".<br />
  Make sure the "O" chip you take out is replaced by the "O"<br />
  chip of your TOS 2.06. The same goes for the "E" chips.<br />
  TOS-cards were only necessary for ST computers that had<br />
  6 x 32 KB EPROMs and could not handle 2 x 128KB.<br />
  <br />
? Is it possible to have an internal IDE harddisk in the 1040<br />
  STE ?<br />
! Yes, it definetly is. There is room for a 2.5" IDE-harddisk<br />
  just above the memory on the metal shielding and it is even<br />
  easy to mount the harddisk there. The PSU of the STE is also<br />
  powerful enough to drive a 2.5" IDE harddisk usually.<br />
  Then you need an IDE interface and a cable.<br />
<br />
? The IDE interface i bought doesn't fit anywhere. Help!<br />
! Well, the 1040 STE uses a PLCC-socketed 68000 while all ST<br />
  computers had a DIL-version of the 68000. IDE interfaces<br />
  either connect to the Megabus of the Mega ST series directly<br />
  or to the CPU and usually that implies a DIL CPU.<br />
  Mario Becroft, T.U.S. and Gellermann &amp; Felmuth produced IDE<br />
  interfaces especially for the 1040 STE. So before you order,<br />
  make sure the IDE interface can be used on a PLCC 68000.<br />
  GE Soft produced a simple adapter called "speed-bridge",<br />
  which connected to the PLCC-socket of the STE and had a<br />
  DIL-like socket on the top. This allowed to use ST expansions<br />
  on the STE, too, but please note that this means additional<br />
  space being occupied by the adapter - Speed bridge + IDE<br />
  interface might not fit anymore into your 1040 STE.<br />
  <br />
? The IDE interface is mounted, it works and the IDE harddisk<br />
  is identified correctly and installed by my software. Yet<br />
  my STE can't boot from it.<br />
! A common problem. To boot from an IDE device, you need<br />
  TOS 2.06 in your STE. Otherwise, you will need a boot-disk<br />
  that features your harddisk driver.<br />
<br />
? Help! I just removed my IDE interface and now my 1040 STE<br />
  doesn't work anymore at all, i only get a black screen!<br />
! The pins of the socket and the 68000 have been bent a little<br />
  when you had the IDE interface mounted. Now that you removed<br />
  it, the pins of the socket do not connect 100% anymore to the<br />
  pins of your CPU. Now all you need is patience and a needle.<br />
  Open the STE, carefully pull out the CPU by using the needle<br />
  as a lever. Now carefully bent the pins on the socket towards<br />
  the middle. Do not push them hard since they break relatively<br />
  easily. When done with this, carefully bent the pins of the <br />
  68000 a little to the outside. Then push the CPU in gently<br />
  and try to switch on your STE.<br />
<br />
<br />
8. Miscelleanous questions and other STE compatible computers<br />
-------------------------------------------------------------<br />
This section simply features a few questions about what<br />
compatibility problems you might expect when coding STE or<br />
what to do when you want to use additional features of<br />
certain models like the TT, the MegaSTE, the Falcon without<br />
abandoning STE compatibility totally.<br />
<br />
? How compatible is the STE with the Mega STE, TT and Falcon ?<br />
! Here's a small chart of the additional features of the 1040<br />
  STE and their existance on the other models (including the<br />
  Mega ST and ST for completeness):<br />
  <br />
                    ST MegaST    STE    MegaSTE      TT  Falcon Note:<br />
  --------------------------------------------------------------------<br />
  4096 colours      no    no    yes        yes    yes    yes  (1)<br />
  Blitter            no    yes    yes        yes      no    yes  <br />
  Hardware scroll    no    no    yes        yes    yes    yes  (2)<br />
  screen splitting  no    no    yes        yes      no    yes  (3)<br />
  DMA sound          no    no    yes        yes    yes    yes  (4)<br />
  LMC1992/Microwire  no    no    yes        yes    yes      no<br />
  Adv.Joystick port  no    no    yes        no      no    yes<br />
  <br />
  Notes:<br />
  (1) The Falcon has to be in an ST compatible resolution for this.<br />
      On the ST, programs that try to use 4096 will not crash, but<br />
      still be limited to 512 colours.<br />
  (2) Both Base Address and Counter have to be multiples of 4 on<br />
      the Falcon and multiples of 8 on the TT.<br />
  (3) On the Falcon, the Video Counter can only contain values<br />
      that are multiples of 4.<br />
  (4) There is no 6.125KHz DMA sound on the Falcon.<br />
  <br />
The Mega STE and its features:<br />
  ? The TT features quite a complex SCSI subsystem but i cannot<br />
    find any information of the Mega STE's SCSI subsystem ?<br />
  ! That is simply because the Mega STE does not have a SCSI<br />
    subsystem. If your Mega STE is equipped with an internal<br />
    SCSI harddisk, it has an internal SCSI hostadapter that is<br />
    mounted on an internal ACSI-bus. Hence, the Mega STE sees<br />
    your harddisk as ACSI, not as SCSI and can also not directly<br />
    access the SCSI controller on it.<br />
    <br />
  ? I see the Mega STE has a socket for a math coprocessor.<br />
    Which types can i connect ?<br />
  ! The Mega STE was intended to drive a 16 MHz MC68881, but<br />
    it should (!) also work with a 16 MHz MC68882 if it fits.<br />
    The coprocessor will be driven with 16 MHz.<br />
    <br />
  ? How do i program the Mega STE's MC68881 if present ?<br />
  ! That's unfortunately more complicated than for the Falcon<br />
    and the TT since the 68030 used in TT and Falcon can operate<br />
    an MC68882 directly while the 68000 in the ST, STE and<br />
    Mega STE cannot. The Mega STE has a coprocessor interface<br />
    register from &#36;FFFFFA40 to &#36;FFFFFA5C, but it also requires<br />
    a so-called "coprocessor protocol" to communicate with the<br />
    MC68881. This is rather complex and too much to list here.<br />
    The operation of the MC68881 in the Mega STE is identical<br />
    to the operation of the FPU-cards for the Mega ST, so<br />
    i recommend the documentation of these.<br />
    <br />
  ? I want to make sure that my software uses the Mega STE in<br />
    "high speed", but when i boot the Mega STE "cleanly", it<br />
    always is in "8 MHz cache off" mode. How do i switch it<br />
    into 16 MHz cache on ?<br />
  ! The Mega STE has a register to control speed and cache<br />
    status:<br />
    &#36;FFFF8E21  - - - -  - - X X<br />
    <br />
    Bit 0 controls the clockspeed (0 = 8 MHz, 1 = 16 MHz),<br />
    the upper bit controls the cache (0 = Cache off, 1 = cache on).<br />
    Some docs say that all upper 15 bits of &#36;FFFF8E20 need to<br />
    be set to "1" to turn the cache on.<br />
    Writing to this register in anything but a Mega STE will<br />
    most probably lead to a crash, so be sure to check the<br />
    Cookie Jar for _MCH to estimate wether this is a Mega STE<br />
    or not (Upper word is 1 for STE, lower word is 0x0010 for<br />
    Mega STE, 0x0000 for anything else).<br />
    <br />
  ? How come the Controlfield only allows 16 MHz Cache On, 16<br />
    MHz Cache off and 8 MHz Cache off when the hardware also<br />
    allows 8 MHz Cache on ?<br />
  ! Because the setting "8 MHz Cache On" is senseless. The<br />
    cache operates at 16 MHz and is meant to reduce real <br />
    memory accesses for the 16 MHz CPU since the bus and<br />
    therefore the memory only runs at 8 MHz.<br />
    When you run the CPU in 8 MHz, the cache will operate at<br />
    8 MHz, too, and hence be as quick as the bus - giving no<br />
    more speedup.<br />
    <br />
  ? Can the Cache of the Mega STE lead to problems with demo<br />
    effects since it does not influence memory directly ?<br />
  ! Yes and no. From the docs i have - and they are not really<br />
    very detailed about the Cache of the Mega STE - any<br />
    hardware register access is not being cached but carried<br />
    out directly. If your "demo" just does a lot of hardware<br />
    register accesses, the cache should not really be a problem.<br />
    However, screen memory and other buffers are in the main<br />
    memory and therefore cached. If timing is critical for<br />
    accesses on these parts of the memory, better turn the<br />
    cache off.<br />
  <br />
  ? How fast is the Mega STE at 16 MHz without the cache ?<br />
  ! Unfortunately, not very much faster than an ordinary 8 MHz<br />
    STE. The cache might seem small according to todays<br />
    standard (16 KBytes), but for a system like the Mega STE,<br />
    it reduces memory accesses dramatically. If you turn off<br />
    the cache, the 68000 has to fetch everything directly<br />
    over the 8 MHz bus. Only operations that completely work<br />
    in the 68000's registers will gain performance.<br />
    <br />
The Atari TT and its features:<br />
  ? Urghs. The TT also has this ugly internal speaker that<br />
    sounds awful. How can i turn it off ?<br />
  ! The internal speaker is being controlled by the YM2149<br />
    directly over port IOA6. The settings are<br />
      OnGIbit: (&#36;40) - switch internal speaker off<br />
      OffGIbit: (&#36;BF) - switch internal speaker on<br />
  <br />
  ? Say, is the 8-bit resolution of the TT a chunky resolution ?<br />
    That would be cool for demos and games.<br />
  ! Unfortunately, it has the same interleaved bitplane structure<br />
    like the ST and STE have. Screen memory is organized:<br />
      Word 0  X X X X  X X X X  X X X X  X X X X  pixel  0-15 plane 0<br />
      Word 1  X X X X  X X X X  X X X X  X X X X  pixel  0-15 plane 1<br />
      ...<br />
      Word 7  X X X X  X X X X  X X X X  X X X X  pixel  0-15 plane 7<br />
      Word 8  X X X X  X X X X  X X X X  X X X X  pixel 16-31 plane 0<br />
      etc.<br />
  <br />
  ? I read somewhere that the Falcon can be switched to an<br />
    STE compatible mode. Is there something similar for the TT ?<br />
  ! No. STE compatibility for the Falcon also only refers to<br />
    STE compatible resolutions (ST Low, Mid, Hi) and STE <br />
    compatible DMA-sound (8 bit). The TT has the ST(E) resolutions<br />
    anyway and the DMA-sound is identical to the one of the STE<br />
    as well. But, the TT lacks the Blitter, cannot change<br />
    screen addresses in the middle of a screen and does not<br />
    have the enhaced joystick ports.<br />
    So, since the TT lacks important hardware specs of the STE,<br />
    a compatibility mode would be rather useless anyway.<br />
  <br />
  ? Why does the TT lack the feature to change Video Counter<br />
    during a screen build anyway ?<br />
  ! At least according to Ray/tSCc, it actually allows<br />
    write accesses. However, the official documentation states<br />
    this register as read/only. In the monochrome hires mode<br />
    it is not advisable to write to these registers since the<br />
    TT shifter does 95 MHz (74 Khz at 1280x960), which is<br />
    almost 3 times the speed of the TT's CPU and 6 times the<br />
    speed of the TT's bus. So be careful in this mode.<br />
    <br />
  ? I toyed around with the SYNC-Mode register but it behaves<br />
    odd on the TT. Why ?<br />
  ! Even though this register is called "ST Sync Mode" officially,<br />
    it's the direct opposite. Only Bit 0 is used and if it is "0",<br />
    screen is off, otherwise screen is on (On the ST, "0" was on).<br />
  <br />
  ? What's the difference between the ST Shift Mode Register<br />
    and the TT Shift Mode Register ?<br />
  ! The ST Shift mode register is supposed to be only 2 bits wide<br />
    and contain a "00" for ST Low, "01" for ST Mid and "10" for<br />
    ST High. However, the ST Shift Mode Register on the TT also<br />
    contains ALL other bits of the TT Shift Mode Register as well.<br />
    The ST Shift Mode Register is more or less a mirror of the TT<br />
    Shift Mode Register. Hence, be careful when writing to this<br />
    register for STE compatibility, you might turn on/off TT<br />
    specific features.  <br />
    <br />
  ? What is that funky greyscale mode of the TT i read about ?<br />
    Is it any useful ?<br />
  ! The so called "Hper Mono"-mode is a mode in which each<br />
    pixel can have 1 of 256 greyscales. To enable this mode,<br />
    you need to set bit 12 of the TT Shift Mode register:<br />
      &#36;FFFF8262  X - - X  - X X X  - - - -  X X X X<br />
    <br />
    This mode will combine the green and blue channel (=8 bits)<br />
    to gather 256 greyscales. Obviously, it is not a chunky<br />
    but still a palette mode, however, not using the original<br />
    TT palette (4096 colours can only feature 16 greyscales).<br />
    It is not a chunky mode either but still uses the same<br />
    interleaved bitplane format. Then again, it seems that this<br />
    mode can be engaged not only in the 256 colours resolution.<br />
    But, this mode _only_ exists on the TT. This mode is _not_<br />
    available on the ST, the STE or the Falcon.<br />
    Please note that using this mode will limit your software<br />
    to run solely on the TT.<br />
    <br />
  ? Then i read about a smear mode on the TT. What is that ?<br />
  ! The so called "Hold &amp; Sample" mode of the TT an be engaged<br />
    by switching bit 13 of the TT Shift mode Register:<br />
      &#36;FFFF8262  X - - X  - X X X  - - - -  X X X X<br />
      <br />
    In this mode, every pixel with a colour different from 0<br />
    will "smear", meaning that all pixels with colour 0 to the<br />
    right of a pixel with colour X will be drawn in colour X.<br />
    Only the left border resets the smear mode and really draws<br />
    colour 0 as colour 0 until a pixel with colour&lt;&gt;0 follows.<br />
    This mode was meant to make programming of filled-vector<br />
    3D graphics about as easy as programming wireframe vectors.<br />
    Unfortunately, it stayed widely unused.<br />
    Please note that this mode _only_ exists on the TT and is<br />
    _not_ available on the ST, STE or the Falcon.<br />
  <br />
  ? What TOS does the TT have ? If i use routines from TOS 1.0x<br />
    or 2.0x directly, will it work on the TT, too ?<br />
  ! Unfortunately, there are 5 series of TOS for the TT, TOS<br />
    3.01 to 3.06, not counting the very first TT-TOS called<br />
    TOS030. So please, if using TOS routines, program as cleanly<br />
    as possible to ensure compatibility.<br />
    <br />
  ? How come that the TT only uses 2/3 of the width of my VGA<br />
    monitor but displays a stupid white border ?<br />
  ! When Atari designed the TT and especially the TT shifter<br />
    which has VGA-compatible elements, IBM decided to change<br />
    the specs of the VGA standard (at least some docs say so,<br />
    there are no official affirmations for this).<br />
    This is why the TT displays a rather pointless border and<br />
    also only uses 2/3 of the screen width.<br />
    The simplest solution to go around this is an OverScan TT<br />
    which simply uses up the whole space the TT reserves for<br />
    the border, giving up to 896 x 496 pixels in TT Mid and<br />
    448 x 496 in TT Low.<br />
    <br />
The Falcon030 and its features:<br />
  ? How compatible is the Falcon to the STE ? Will my STE code<br />
    work flawlessly on the Falcon ?<br />
  ! Yes, the Falcon was meant to be an (68000-based) successor<br />
    to the 1040 STE, therefore it is easy to code Falcon-<br />
    compatible STE-code. The only exceptions are:<br />
      - The Falcon does not allow 6.125 KHz DMA sound<br />
      - The Falcon's screen base address has to be a multiple<br />
        of 4<br />
      - The Falcon does not have the so-called "Shadow"<br />
        registers of the YM2149<br />
    To also make sure that the timing of the CPU is (almost)<br />
    correct, switch the processor caches off and the CPU and<br />
    the Blitter down to 8 MHz.<br />
    Now, the only obstacle is the DMA-sound matrix of the Falcon<br />
    which might be setup wrongly.<br />
    <br />
  ? I migrated from a 1040 STE to a Falcon030. But how can I<br />
    connect my external Floppy disk drive or connect my good old<br />
    ACSI-harddisk drive ?<br />
  ! You cannot. The Falcon does not have any kind of interface<br />
    for an external disk drive - even though the TOS 4.0x still<br />
    checks for Drive B: on boot-up. Additionally, the Falcon<br />
    does not have an ACSI port. You cannot connect any ACSI-<br />
    devices such as harddisks or Laser printers.<br />
<br />
9. Epilogue<br />
-----------<br />
  Without a doubt, the 1040 STE and the Mega STE are nice pieces<br />
  of hardware. In 1989, the 1040 STE offered quite a lot a home<br />
  computer could offer and you got a computer with excellent<br />
  sound capabilities for the price of a sound-card for your PC<br />
  alone. In 1991, the professional STE was released with the<br />
  introduction of the Mega STE. 16 MHz clockspeed, 16 KB cache,<br />
  VMU interface and internal harddisk at a price for which other<br />
  companies gave you an update of their operating system and a<br />
  new harddisk.<br />
  But the STE didn't make it. The 1040 STE's features stayed<br />
  widely unused until the release of games such as Obsession or<br />
  Stardust, of Demos such as Brain Damage by Aggression or<br />
  Omega's Grotesque or of tools such as the ProTracker STE.<br />
  The Mega STE did not increase the sales of STE computers a lot<br />
  either, being limited to STE graphics and sound.<br />
  <br />
  This documentation is for people that, like me, like the STE<br />
  for what it is: A fun machine with quite impressive specs.<br />
  I assembled this documentation in case you want to program<br />
  the STE's features such as the Blitter, the hardware scroll<br />
  or DMA sound and would like to avoid stumbling over the<br />
  little traps in the STE design. So i hope you find this<br />
  documentation useful and keep on programming the STE to<br />
  push this little machine to the maximum.<br />
  <br />
                                Best wishes,<br />
                                      The Paranoid<br />
                                  Paranoia -- Lunatic Asylum<br />
                                  Think you can handle it ?!<br />
  <br />
10. Final words<br />
---------------<br />
  This FAQ has been collected and assembled using various<br />
  sources:<br />
    - Atari ST/STE/TT Profibuch,<br />
        Jankowski, Rabich, Reschke, Sybex Verlag 1991<br />
    - Das TOS 1.4 Update Buch,<br />
        Pauly, Data Becker 1989<br />
    - Chips'n Chips 6.0<br />
        Ruge, AG Computertechnik 1998<br />
  and many many experiments on a 1040 STE using TOS 2.06,<br />
  a Mega STE using TOS 2.06 and a Falcon030.<br />
  <br />
  This documentation is far from complete and is not given<br />
  with any warranties about correctness. Any kind of damage<br />
  done to yourself, your hard- or software after, while or<br />
  before reading this documentation is not being covered in<br />
  any way by the author.<br />
  If you copy this documentation, please do not alter, add<br />
  or subtract any content. This documentation is free to<br />
  copy as long as it is copied completely and without<br />
  additionals.<br />
  If you spot mistakes or have proposals on what to add,<br />
  feel free to mail the author at paranoid@atari.org<br />
  <br />
  <br />
</div>
</span>]]></description>
			<content:encoded><![CDATA[<span style="font-family: consolas;" class="mycode_font"><div style="text-align: left; margin-left: auto; margin-right: auto; background-color: #d3d3d3; border: 2px solid #808080; border-radius: 10px; padding: 12px; width: 680px; ">
                        Some minor hints and notes on<br />
                        <br />
                  ___________      ___________  ___________<br />
                 /          /_____/          / /          /<br />
                /    _____//    /      _____/ /     _____/<br />
               /    /____ /____/     / /   __/     /<br />
              /_____/    /    /_____/ /   / /_____/<br />
             _____/     /      /     /   /      /_____<br />
            /          /      /     /   /            /<br />
           /__________/      /_____/   /____________/<br />
          <br />
                                Coding<br />
                                <br />
      assembled after depressing hours of experiments and tests<br />
      that did usually not work out as planned by The Paranoid.<br />
      <br />
                                Paranoia<br />
                        Think you can handle it ?!<br />
                        <br />
                        (of the Lunatic Asylum)<br />
                        <br />
                        <br />
<br />
Preface:<br />
--------<br />
The Atari STE is, without a doubt, a nice machine. It has so many<br />
features the Atari ST lacked:<br />
- 4096 instead of 512 colours<br />
- Horizontal and Vertical hardware scrolling<br />
  (also called hardware windowing of large virtual screens)<br />
- Blitter<br />
- 8 Bit DMA stereo sound<br />
  (Up to 50 KHz replay rate)<br />
- National LMC 1992 soundchip, connected over Microwire serial port<br />
  Treble, Bass, Left/Right/Main Volume Control<br />
- 256KB EPROM containing the TOS, socketed<br />
- 4 30-pin SIMM-slots, up to 4 MB RAM<br />
- Extended and analogue capable joystick ports<br />
<br />
Unfortunately, you will pretty soon find out that the STE also<br />
contains a lot - and i mean a lot - of pitfalls.<br />
Whatever feature of the STE you want to use, it will either<br />
not work as planned or require special treatment. If it works<br />
as planned and does not require special treatment, it will<br />
definetly not work on the TT or the Falcon.<br />
So this documentation is just a little compilation of the usual<br />
traps especially programming beginners might step in and how<br />
to dodge these traps.<br />
<br />
This documentation is given on an "as is" basis. Paranoia does<br />
not give any warranties about correctness about the given<br />
information here. We can not be held responsible for any loss<br />
of data, damage to your hardware or whatever might happen to<br />
you, your software or your hardware after reading this <br />
document.<br />
Every chapter will describe the special registers for a certain<br />
feature and afterwards list the traps you should look out for.<br />
In the bitset tables, "0" means this bit cannot be set and is<br />
automatically assumed "0", "1" means this bit cannot be set and<br />
is automatically read as "1", "X" means it can be read/written<br />
and can feature "0" or "1".<br />
In the Tables, "yes" means this register exists in the model<br />
mentioned while "no" means that this register does not exist.<br />
"ro" means "read only" and refers to a register that cannot be<br />
written to, "rw" means "read/write" and declares a register<br />
that can be read as well as written to.<br />
<br />
<br />
1.) The Hardware Scrolling<br />
--------------------------<br />
The Registers:<br />
  Video Base Address:                            ST    STE<br />
    &#36;FFFF8201    0 0 X X X X X X  High Byte      yes    yes<br />
    &#36;FFFF8203    X X X X X X X X  Mid Byte      yes    yes<br />
    &#36;FFFF820D    X X X X X X X 0  Low Byte      no    yes<br />
<br />
    The first two registers are identical with those of the ST and<br />
    can be read and written to. The last one (low byte) did not<br />
    exist on the ST. While on the ST this meant that a Video Base<br />
    address had to be even on a 256-byte basis (lowbyte was<br />
    assumed #&#36;00 then), on the STE it only has to be even since<br />
    bit 0 is automatically assumed #0.<br />
  <br />
  Video Address Counter:<br />
    &#36;FFFF8205    0 0 X X X X X X  High Byte      ro    rw  <br />
    &#36;FFFF8207    X X X X X X X X  Mid Byte      ro    rw<br />
    &#36;FFFF8209    X X X X X X X 0  Low Byte      ro    rw<br />
<br />
    This set of registers already existed on the ST but could not<br />
    be written to. The Shifter uses this actually for counting<br />
    through the whole screen it is building up. Write access<br />
    has of course immediate effect.<br />
  <br />
  Line-Offset Register<br />
    &#36;FFFF820F  X X X X X X X X X                  no    yes<br />
    <br />
    This register contains the value how many WORDS (not BYTES!)<br />
    the Shifter is supposed to skip after each Rasterline. This<br />
    register enables virtual screens that are (horizontally)<br />
    larger than the displayed screen by making the Shifter skip<br />
    the set number of words when a line has been drawn on screen.<br />
    <br />
  Video Base Address Pixel Offset<br />
    &#36;FFFF8265  0 0 0 0 X X X X                  no      yes<br />
  <br />
    This register allows to skip from a single to 15 pixels at<br />
    the start of each rasterline to allow horizontal fine-<br />
    scrolling.<br />
    <br />
The registers are easy to understand. So why didn't it work ?<br />
<br />
? Writing to the Video Base Address registers seems to have no direct<br />
  affect on the screen contents.<br />
! No. These registers only contain the "reset" value for the Shifter<br />
  after a whole screen has been drawn. It does not affect the current<br />
  screen, but the one for the next VBL. To make immediate changes on<br />
  the screen, use the Video Address Counter.<br />
<br />
? There's only junk on the screen. It looks like the STE reads the<br />
  screen content from a totally wrong address.<br />
! For compatibility reasons, the low-byte of the Video Base Address<br />
  is ALWAYS set to 0 when the mid- or high-byte of the Video Base<br />
  Address are set. This is easy to understand, seeing that the ST<br />
  did not have this register - hence ST software that never sets<br />
  the low-byte might have problems setting the correct Video Base<br />
  Address. The solution on the STE is simple: Always set the<br />
  Low-Byte last. First set High and Mid-Byte (in no special order),<br />
  then do the low-byte.<br />
<br />
? Scrolling in 16-pixels blocks works, but fine-scrolling totally<br />
  screws up the screen contents.<br />
! The Line Offset Register is very critical. Make sure it contains the<br />
  correct value at any time. If the Pixel Offset Register contains a<br />
  zero, the Line Offset Register contains the exact number of words<br />
  to skip after each line. But if you set the Pixel Offset Register to<br />
  "X", the Shifter will still display 320 (640) pixels a line and <br />
  therefore has to read "X" pixels from the NEXT word which it would<br />
  have skipped if the Pixel offset Register contained a "0".<br />
  Hence, for any Pixel Offset Value &gt; 0, please note that the Shifter<br />
  has to read (a few bits) more each rasterline and these bits<br />
  must NOT be skipped using the Line Offset Register.<br />
<br />
? Tried. Screen content is still screwed up.<br />
! Please also note that in Low-Resolution (4 Bitplanes), the Video-<br />
  Shifter reads 4 words at once. In Low-Res, the Line Offset therefore<br />
  always has to be a multiple of 4, otherwise the Shifter will not<br />
  display the bitplanes correctly next rasterline.<br />
<br />
? In Hires (Monochrome 640x400), my scrolling does not work on the<br />
  Falcon<br />
! On the STE, the Video Base Address only has to be a multiple of 2<br />
  since bit 0 is always "0". On the Falcon, the least significant 2<br />
  bits of the Base Address are "0", hence, on the Falcon, you can<br />
  horizontally scroll a minimum of 2 words, which, in monochrome<br />
  mode, is not sufficient for fine-scrolling.<br />
  There is no way to do horizontal-fine scrolling on the Falcon in<br />
  a monochrome mode. Midres (640x200 2 bitplanes) will already<br />
  work since every address has to be a multiple of 4 then.<br />
<br />
? Gah! On the TT neither hires nor midres works.<br />
! It's even worse on the TT since the TT-Shifter lacks the 3 least<br />
  significant bits of the Video Base Address, hence all Video Base<br />
  Addresses have to be a multiple of 8. In hi- and midres however,<br />
  any "sound" Base Address is a multiple of 2 or 4.<br />
  There is no way to horizontally fine-scroll on the TT in these<br />
  resolutions.<br />
<br />
? It scrolls, but the screen-content seems to jump sometimes.<br />
! The Atari STE shifter has a slight timing problem regarding the<br />
  Pixel Skip Register. Whenever this registers "jumps" from a value<br />
  &gt;"0" to "0", the STE might display the wrong screen address.<br />
  This is a known problem and Atari affirms it.<br />
  Atari officially suggests to NOT set the Pixel Skip register in<br />
  the VBL as this causes the problem. Since changes on this<br />
  register have immediate effect, Atari suggests to use a HBL<br />
  routine that sets all registers connected to Video hardware<br />
  not in the VBL but in (for example) a HBL interrupt after the<br />
  VBL.<br />
<br />
? On the Falcon and TT, fine-scrolling seems to work without<br />
  the jumping in low-res, even when the registers are set in the<br />
  VBL-interrupt.<br />
! Affirmed. Both TT and Falcon do not suffer "visibly" from this<br />
  bug. However, in case there are other bus-timing critical jobs<br />
  running (like MOD-replay routines or heavily loaded interupt<br />
  routines that occur more often than the VBL), this bug MIGHT<br />
  become visible as well. Besides, if you are coding Falcon or<br />
  TT for STE compatibility, you should follow Atari's suggestion<br />
  and not use VBL to set the registers.<br />
  You will learn later on that the STE behaves very very critical<br />
  to anything done in the VBL anyway.<br />
  <br />
? I tried to write a screen splitting routine that changes a lot<br />
  of Video-related parameters after a certain rasterline. But it<br />
  is highly fragile and does not work very well.<br />
! The STE with an 8 MHz CPU is not very fast and timing becomes<br />
  critical when trying to change Video-registers on the fly<br />
  during the screen build-up. There is no general solution for<br />
  this, just that you should, during screen build-up, never<br />
  change too many registers or at least not in a way that it<br />
  costs too much time. If you do need to change many registers,<br />
  make a table with all the values long before they are used<br />
  (for example in the VBL) and try to write these values as<br />
  quickly as possible.<br />
  Sometimes, an empty line in exactly that HBL you change all<br />
  the registers, can help a lot.<br />
<br />
? So now i fixed it and it works fine on the STE, but often enough,<br />
  bitplanes are screwed up on the Falcon. Why ?<br />
! Remember that the Falcon only allows screen addresses as multiples<br />
  of 4, which is not as flexible as on the STE, where it only has to<br />
  be a multiple of 2. This is also the case for the Video Counter<br />
  Registerts, not only for the Video Base Address.<br />
  Make sure that your screen data is stored on an address that is<br />
  a multiple of 4 and it will work.<br />
<br />
? My screen splitting routine now works fine on the STE and<br />
  on the Falcon, but not on the TT.<br />
! On the TT, it's even worse and each Video Base Address has to<br />
  be a multiple of 8. According to Ray/tSCc, the TT allows write<br />
  access to the Video Counter - in contrast to what some books<br />
  say. However, officially, the TT does not allow to change<br />
  video address on the fly by writing to the address counter.<br />
  <br />
<br />
2.) 4096 Colours<br />
----------------<br />
Registers:<br />
<br />
  Palette Register:                                ST    STE<br />
    &#36;FFFF8240  0 0 0 0 x X X X x X X X x X X X      X    x+X<br />
    &#36;FFFF8242  0 0 0 0 x X X X x X X X x X X X ...<br />
    ...<br />
    &#36;FFFF825E  0 0 0 0 x X X X x X X X x X X X    (16 in total)<br />
                      ---_--- ---_--- ---_---<br />
                        red    green    blue<br />
    <br />
    These 16 registers serve exactly the same purpose as in the<br />
    ST. The only difference is that each Nibble for Red, Green<br />
    or Blue consists of 4 bits instead of 3 on the ST.<br />
    <br />
This time, Atari did good work (almost). So what are the pitfalls:<br />
<br />
? I tried to program a fade and it works in general, but flashes<br />
  during the fade, why ?<br />
! For compatibility reasons, each nibble encoding the Red, Green or<br />
  Blue values is not ordered "8 4 2 1", meaning the least significant<br />
  bit represents the value "1" while the most significant one <br />
  represents the value "8" - This would make the STE rather <br />
  incompatible with the ST and only display dark colours.<br />
  The sequence of Bits is "0 3 2 1" encoding the values<br />
  "1 8 4 2". Therefore to fade from black to white, the sequence<br />
  of colours would be &#36;000, &#36;888, &#36;111, &#36;999, &#36;222, &#36;AAA, ...<br />
  <br />
? My program sets the palette correctly on the STE in lowres<br />
  (320x200 16 colours). Will it also work on the TT in TT midres <br />
  (640x480 16 colours) ?<br />
! Yes, it will. Even though the TT uses its own palette registers,<br />
  256 in total, it can "mask in" a set of 16 colours in the ST<br />
  palette registers, which are of course at the same address as<br />
  on your STE. Meaning: Whatever values you write in the ST<br />
  palette registers on the TT, in TT midres, they will be used.<br />
  Your program will even work correctly in TT Low (320 x 480<br />
  256 colours), if the TT Shiftmode register is set accordingly.<br />
<br />
? So it does work on the TT alright. But i have a Falcon and not<br />
  a TT. Now what ?<br />
! The Falcon can be switched to "ST compatible mode". This is not<br />
  a 100% term since it does not - in contrast to the TT - mean<br />
  either 320x200, 640x200 or 640x400 pixels in 16,4 or 2 colours<br />
  but only means that the ST palette registers are being used,<br />
  hence this flag can only be used when displaying 16, 4 or 2<br />
  colours. If you do not set this flag, the Falcon will NOT<br />
  - in contrast to the TT - read the ST palette registers.<br />
  This change has been necessary since the Falcon has 18 bits<br />
  per colour in bitplane mode while the TT only has 12, just<br />
  like the STE has. The Falcon RGB format for a palette mode<br />
  is: 00RRRRRR 00000000 00GGGGGG 00BBBBBB (VGA compatible).<br />
  <br />
<br />
3.) The Blitter<br />
---------------<br />
(The Blitter in the STE is, at least from the programmers view,<br />
identical to the Blitter in the Mega ST. Hardware-wise, it is<br />
not)<br />
<br />
Registers:<br />
  <br />
  Halftone RAM:                            <br />
    &#36;FFFF8A00  Halftone RAM, Word 0    (16 Words in total)<br />
    ...<br />
    &#36;FFFF8A1E  Halftone RAM, Word 15<br />
    <br />
  Halftone RAM is a 32 Byte zero-waitstate Blitter-exclusive RAM<br />
  that can be used for lightning-quick manipulations of copied<br />
  data. Its main purpose was to combine monochrome picture data<br />
  with (16 x 16 pixel) patterns, usually to make them a bit<br />
  darker or brighter (halftone).<br />
  <br />
  Source X Increment Register:<br />
    &#36;FFFF8A20  X X X X X X X X X X X X X X X 0<br />
  Source Y Increment Register:<br />
    &#36;FFFF8A22  X X X X X X X X X X X X X X X X<br />
    <br />
    These registers encode how many bytes the Blitter increments the<br />
    counter after each copied word (&#36;FFFF8A20) or after each line<br />
    (&#36;FFFF8A22). Source Y Inc has to be even since the Blitter only<br />
    works on a Word-basis and can not access single Bytes.<br />
  <br />
  Source Address Register:<br />
    &#36;FFFF8A24  XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXX0<br />
    <br />
    The 32-Bit address of the source, meaning the Blitter will start<br />
    reading from this address. This address has to be even as the<br />
    Blitter cannot access single Bytes. The Blitter actually accepts<br />
    real 32-Bit addresses, but the MMU filters the upper 10 bytes<br />
    out.<br />
<br />
  Endmask Registers<br />
    &#36;FFFF8A28  X X X X X X X X X X X X X X X X  Endmask 1<br />
    &#36;FFFF82AA  X X X X X X X X X X X X X X X X  Endmask 2<br />
    &#36;FFFF82AC  X X X X X X X X X X X X X X X X  Endmask 3<br />
    <br />
    The Endmask is a Bitmask that can be applied upon the copied<br />
    data in a blockwise way. Endmask 1 is being applied on every<br />
    first word copied in a row, Endmask 2 for all other words<br />
    in this row except for the last one, which is combined with<br />
    Endmask 3. Clever usage of these registers allow to start<br />
    copies from basically every bit in memory.<br />
    <br />
  Destination X Increment Register:<br />
    &#36;FFFF8A2E  X X X X X X X X X X X X X X X X<br />
  Destination Y Increment Register:<br />
    &#36;FFFF8A30  X X X X X X X X X X X X X X X X<br />
    <br />
    Similar to the Source X/Y Increment Register. These two denote<br />
    how many Bytes after each copied word/line the Blitter proceeds.<br />
    <br />
  Destination Address Register:<br />
    &#36;FFFF8A32  XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXX0<br />
    <br />
    This contains the address where the Blitter copies all the<br />
    data to that it computes. A real 32 Bit word that has to be even.<br />
    <br />
  X Count Register:<br />
    &#36;FFFF8A36  X X X X X X X X X X X X X X X X<br />
  Y Count Register:<br />
    &#36;FFFF8A38  X X X X X X X X X X X X X X X X<br />
    <br />
    These two registers contain the information about how the 2D<br />
    bitblock the Blitter copies are shaped. The X Count Register<br />
    contains how many words a line of this rectangular block has,<br />
    the Y-Count how many lines the bitblock has in total.<br />
    This does not include the skipped words, only those the<br />
    Blitter really copies (hence the name count).<br />
  <br />
  Blit HOP (Halftone OPeration) Register:<br />
    &#36;FFFF8A3A  0 0 0 0 0 0 X X<br />
    <br />
    How to combine Halftone-Data and copied data is given here.<br />
    A "00" means all copied bits will be set to "1" (blind copy),<br />
    "01" means ONLY halftone content will be copied, "10" implies<br />
    that ONLY source content will be copied (1:1 copy). "11" makes<br />
    the halftone-pattern work as supposed and does a copy <br />
    "Halftone AND source".<br />
  <br />
  Blit OP (logical OPeration) Register:<br />
    &#36;FFFF8A3B  0 0 0 0 X X X X<br />
    <br />
    The Blitter can carry out 0-cycles logical operations with<br />
    source and target. The table of possible values follow:<br />
    0 0 0 0    - Target will be zeroed out (blind copy)<br />
    0 0 0 1    - Source AND Target        (inverse copy)<br />
    0 0 1 0    - Source AND NOT Target    (mask copy)<br />
    0 0 1 1    - Source only              (replace copy)<br />
    0 1 0 0    - NOT Source AND Target    (mask copy)<br />
    0 1 0 1    - Target unchanged          (null copy)<br />
    0 1 1 0    - Source XOR Target        (xor copy)<br />
    0 1 1 1    - Source OR Target          (combine copy)<br />
    1 0 0 0    - NOT Source AND NOT Target (complex mask copy)<br />
    1 0 0 1    - NOT Source XOR Target    (complex combine copy)<br />
    1 0 1 0    - NOT Target                (reverse, no copy)<br />
    1 0 1 1    - Source OR NOT Target      (mask copy)<br />
    1 1 0 0    - NOT Source                (reverse direct copy)<br />
    1 1 0 1    - NOT Source OR Target      (reverse combine)<br />
    1 1 1 0    - NOT Source OR NOT Target  (complex reverse copy)<br />
    1 1 1 1    - Target is set to "1"      (blind copy)<br />
    <br />
  Blitter Control Register:<br />
    &#36;FFFF8A3C  X X X 0 X X X X<br />
    <br />
    This register serves multiple purposes.<br />
    The lowest 4 bit represents the number of the line in the<br />
    Halftone pattern to start with.<br />
    The upper 3 bits feature extended options of the Blitter.<br />
    Bit 5  -  Smudge-mode<br />
              Which line of the halftone pattern to start with is<br />
              read from the first source word when the copy starts<br />
    Bit 6  -  Blit-Mode Register<br />
              Decides wether to copy in BLIT Mode (0) or in <br />
              HOG Mode (1). In Blit Mode (also known as cooperative),<br />
              CPU and Blitter get 64 clockcycles in turns, in Hog <br />
              Mode, the Blitter reserves and hogs the bus for as long<br />
              as the copy takes, CPU and DMA get no Bus access.<br />
    Bit 7  -  Busy Bit<br />
              Turns on the Blitter activity and stays "1" until the<br />
              copy is finished<br />
              <br />
  Blitter Skew Register:<br />
    &#36;FFFF8A3D  X X 0 0 X X X X<br />
    <br />
    The lowest 4 bit of this register allow to shift the data while<br />
    copying by up to 15 bits to the right. The upper 2 bits are<br />
    Bit 6  -  NFSR (No final source read)<br />
    Bit 7  -  FXSR (Force extra Source Read).<br />
    NFSR means the last word of course is not being read anymore.<br />
    This is only sensible with certain Endmask and skew values.<br />
    FXSR is the opposite and forces the Blitter to read one more<br />
    word. Also only sensible with certain Endmask/Skew combinations.<br />
<br />
<br />
So much for the theory. Unfortunately, the Blitter is a lovely but<br />
also pretty stubborn little chip. What went wrong this time ?<br />
<br />
? After feeding the Blitter values and activating it, the STE<br />
  totally crashes.<br />
! All the address-related auxilary registers such as X-Count/Y-Count,<br />
  X/Y-Increments etc. are signed values. In other words, the Blitter<br />
  can go backwards in memory as well as forward. Please check if your<br />
  values are correct.<br />
<br />
? I am trying a simple and direct copy and set all the important<br />
  registers, but it does not work as i planned.<br />
! The Blitter is a chip and not a software, meaning it does not know<br />
  any default values. Especially when starting to learn "Blitter" it<br />
  is important to ALWAYS set EVERY Register correctly.<br />
  Especially Endmask, Smudge, Skew and OP-Register can lead to very<br />
  funny results if not set correctly. So set ALL the registers at<br />
  least once, for all subsequent copies you do not need to set them<br />
  ALL anymore.<br />
<br />
? The copy appears at the right spot, but is scrambled.<br />
! Make sure your X/Y-Increments are correct for both Source and<br />
  Destination. Especially if you are copying a "tight" block<br />
  (like a 32x32 pixel compact block) to a larger area (like the<br />
  screen) you definetly need to watch the increment registers.<br />
<br />
? Now the first copy works, but even though i am copying blocks of<br />
  identical size, just setting addresses does not work.<br />
! No, the Blitter uses a few of the registers accessible by the CPU<br />
  for its own counting. Set Addresses, X and Y-Count Registers<br />
  every time you do a copy in any case. <br />
  <br />
? So i set all the registers, but the copies are incomplete when<br />
  i do multiple copies.<br />
! Before feeding the Blitter new values, make sure it has finished<br />
  its task already by checking the Busy-Bit.<br />
  Do not write new values into the Blitter's registers as long as<br />
  it is still operating.<br />
<br />
? It looks like the copy itself works, but it flickers. And i was<br />
  using the Blitter to speed things up, not to make them flicker.<br />
! After feeding the Blitter all the values and activating it, the<br />
  CPU is done and can do other tasks, the Blitter however has just<br />
  started. If the Blitter does critical things in your program make<br />
  sure the "Blit Busy" has returned from "1" to "0" before your CPU<br />
  proceeds when using the Blitter in Blit-mode.<br />
  <br />
? To make it even faster, i turned the Blitter into Hog-mode.<br />
  But now my program crashes almost at random.<br />
! The Hog-Mode of the Blitter does not allow the CPU to access to<br />
  bus while the Blitter is active - Not even for interrupts. Make<br />
  sure that your software does not require the CPU to react to<br />
  an interrupt immediatelly - Otherwise, the STE will crash.<br />
<br />
? Is there a way to make the Blitter faster in Blit-mode ?<br />
! Yes, there is. Atari used this to speed up the Blitter in GEM<br />
  without risking to use Hog-mode:<br />
  Check the Busy-Bit. The CPU cannot access the bus and therefore<br />
  not the Busy-Bit if the Blitter is "active". If the CPU can finally<br />
  check the Busy-Bit the Blitter has "paused" and will wait for 64<br />
  clockcycles. Now if the Busy-Bit is 0, the Blitter is done and<br />
  you can leave. If not, set it to "1" manually and do a NOP.<br />
  Writing the Busy-Register will relaunch the Blitter immediatelly,<br />
  but the Blitter needs a few clockcycles to reserve the bus<br />
  (around 7), so the NOP is carried out in any case.<br />
  This gives about 90% the speed of the HOG-mode without losing<br />
  the option to execute interrupts within the next 64 clockcycles.<br />
  Here's an extract from the ST Profibook:<br />
    Loop:    bset.b #7,&#36;FFFF8A3B  ;test and set Busy-Bit<br />
              nop                  ;do a NOP in any case<br />
              bne.s Loop          ;if Busy-Bit was "1", go to Loop<br />
<br />
? Huh ? My program does not work on the TT ?<br />
! No, it does not. The TT does not have a Blitter.<br />
<br />
? I am coding the Blitter on the Falcon to reduce CPU usage a bit<br />
  but the program has slowed down even more.<br />
! Unfortunately, the Falcon Blitter is rather useless since the<br />
  68030 is, when doing a simple 1:1 copy, about a factor of 4 to 5<br />
  faster than the Blitter in the Falcon is, even though the Falcon<br />
  Blitter is running at 16 MHz.<br />
  On the Falcon, the Blitter can become useful if you plan to <br />
  heavily use Halftone-pattern, bitwise-shifts and logical operations.<br />
  Otherwise, use the CPU instead.<br />
<br />
? I was trying to use the shift-operations of the Blitter to have<br />
  my objects on screen (ST Lowres) move pixelwise, but instead,<br />
  Bitplanes are being screwed up.<br />
! Please bear in mind the interleaved bitplane structure of the<br />
  ST Low resolution. Trying to copy and shift all bitplanes at<br />
  once will make the Blitter shift single bits from bitplane X<br />
  to bitplane Y. Copy bitplane by bitplane and it will work.<br />
<br />
? Copying and shifting blocks with the Blitter works now, but<br />
  sometimes, a few bits get lost.<br />
! In some cases, depending on the Endmask- and the Skew-registers,<br />
  the Blitter requires to read a word more than planned. Try<br />
  the FXSR-Register in these certain conditions.<br />
<br />
? I copy around large chunks of memory in one go, but i can't<br />
  really say it has gotten very fast on the Mega STE.<br />
! The Blitter in the STE does nearly 2 MB/sec. Per frame this<br />
  is roughly 40 KB/sec. The CPU in the STE comes nowhere near<br />
  that, but the CPU of the Mega STE (16 MHz, cache on) can<br />
  almost compete when it comes to direct 1:1 copies.<br />
<br />
? I heard somewhere, that the Blitter can be used for generating<br />
  software sprites all by itself. Is that true ?<br />
! Yes, you can have software sprites using the Blitter, that<br />
  can be freely positioned (pixel-perfect) without any other<br />
  interference of the CPU than just feeding values into the<br />
  Blitter registers. However, the Blitter cannot produce a<br />
  4 bitplane software-sprite in 1 go.<br />
  The simplest solution is to copy bitplane by bitplane,<br />
  and each bitplane twice: First NOT Source AND Target, then<br />
  Source OR Target. Since the shifts do not need any additional<br />
  time for the Blitter to carry out, this will, on the STE,<br />
  result in lightning fast sprites since the 68000 is very slow<br />
  doing the shifts.<br />
<br />
? I program the Falcon in true-colour mode and i would like to<br />
  take advantage of the Blitter.<br />
! Even though of course the Blitter works well in TC-mode, its<br />
  special features, bitwise shifts, extremely fast logical<br />
  operations, masks for bitwise copy and the halftone pattern,<br />
  are basically useless and for a direct copy, the CPU is a lot<br />
  faster.<br />
  <br />
? Is it just my imagination or is the Blitter in the Mega ST<br />
  really a bit faster than the Blitter in the STE ?<br />
! Actually, this is true. Due to the fact that the Blitter is<br />
  a sole chip in the Mega ST and has been combined in a chip<br />
  named COMBEL in the STE, it is really very slightly slower<br />
  in the STE than it was in the Mega ST.<br />
  This however is almost invisible.<br />
  <br />
<br />
4. DMA-Sound - the simple way to make music<br />
-------------------------------------------<br />
Registers:<br />
  DMA-Sound Control Register:<br />
    &#36;FFFF8900  0 0 0 0 0 0 0 0 0 0 0 0 0 0 X X<br />
    <br />
    Writing a "00" to the last 2 bits terminate DMA sound replay.<br />
    Bit 0 controls Replay off/on, Bit 1 controls Loop off/on<br />
    (0=off, 1=on).<br />
  <br />
  DMA-Sound Start Address Register:<br />
    &#36;FFFF8902  0 0 X X X X X X X X X X X X X X  Hibyte<br />
    &#36;FFFF8904  X X X X X X X X X X X X X X X X  Midbyte<br />
    &#36;FFFF8906  X X X X X X X X X X X X X X X 0  Lowbyte<br />
    <br />
    These three registers contain the 24-bit address of the sample<br />
    to play. Even though the samples are built on a byte-base, the<br />
    DMA chip also only allows even addresses<br />
  <br />
  DMA-Sound Count Register:<br />
    &#36;FFFF8908  0 0 X X X X X X X X X X X X X X  Hibyte  (ro)<br />
    &#36;FFFF890A  X X X X X X X X X X X X X X X X  Midbyte (ro)<br />
    &#36;FFFF890C  X X X X X X X X X X X X X X X 0  Lowbyte (ro)<br />
    <br />
    Used internally for the DMA-soundchip to count from start- to<br />
    end-address. No write access.<br />
  <br />
  DMA-Sound End Register:<br />
    &#36;FFFF890E  0 0 X X X X X X X X X X X X X X  Hibyte<br />
    &#36;FFFF8910  X X X X X X X X X X X X X X X X  Midbyte<br />
    &#36;FFFF8912  X X X X X X X X X X X X X X X 0  Lowbyte<br />
    <br />
    The address that the sample ends at. When the count registers<br />
    have reached this address, the DMA-sound system will either<br />
    stop or loop.<br />
    <br />
  DMA-Soundmode Register:<br />
    &#36;FFFF8920  0 0 0 0 0 0 0 0 X 0 0 0 X X X X<br />
    <br />
    Allows to toggle between several replay methods.<br />
    Bit 7 switches Mono/Stereo (1 = Mono, 0 = Stereo),<br />
    Bit 0 and 1 encode the replay rate:<br />
      0 0  -  6258 Hz<br />
      0 1  - 12517 Hz<br />
      1 0  - 25033 Hz<br />
      1 1  - 50066 Hz<br />
      <br />
Sounds fairly easy, right ? Unfortunately, it's not.<br />
<br />
? I set all the registers, but there is no sound at all.<br />
! The DMA-Soundsystem expects you to write the high-byte of the<br />
  Start- and Endaddress first. Even though this serves no<br />
  purpose at all, writing the highbyte clears the others. Hence<br />
  it must be written first.<br />
  <br />
? I can't hear anything on my Falcon when trying to replay a<br />
  6 KHz sample.<br />
! The Falcon DMA-soundsystem does not support 6 KHz. The value<br />
  "00" in the Soundmode-register means "OFF" on the Falcon.<br />
<br />
? The sound is awful. This does not sound like my sample.<br />
! On the STE, the DMA-soundsystem only works with signed sample<br />
  files, featuring values from -128 over 0 to +127. Some sample<br />
  programs use unsigned formats, ranging from 0 to 255 with<br />
  128 representing zero-line of the sample. Those samples need<br />
  to be converted first.<br />
<br />
? I want to replay stereo samples. How can i know which sample<br />
  will be played on which channel ?<br />
! Stereo Samples have to be organized wordwise like<br />
  Lowbyte -&gt; right channel<br />
  Hibyte  -&gt; left channel<br />
  <br />
? My STE program to replay samples does not work very well on the<br />
  Falcon.<br />
! No, the Falcon's soundsystem is way more complex and can without<br />
  any major programming interfere very well with the parts of the<br />
  STE-soundsystem, especially since identical addresses are used for<br />
  some purposes. If you want Falcon-compatibility of your STE-code,<br />
  do not use "move"-instructions to set/unset bits of &#36;FFFF8900<br />
  and &#36;FFFF8920 as this might override Falcon-specific registers.<br />
  Best, leave them as they are and use AND to unset and OR to set<br />
  certain bits.<br />
<br />
? Will my STE code work on the TT ?<br />
! Yes, it will. The TT's DMA-sound subsystem is identical to the<br />
  one of the STE.<br />
  <br />
? I am trying to change the addresses of the sample while the<br />
  DMA-sound plays, but it does not work.<br />
! No, the DMA-Soundsystem latches the Start- and End-Register<br />
  internally, so writing to these values only takes influence<br />
  when the values are re-read, which happens when the sample<br />
  has been played, even if the DMA-soundsystem is switched to<br />
  loop.<br />
<br />
? Argh, i have now implemented DMA-sound to my program and now<br />
  my whole screen-management goes wild<br />
! This easily happens. The DMA-sound subsystem of the STE houses<br />
  the "shifting logic" in the STE-Shifter. When starting the DMA<br />
  sound to play a sample, you should not try to access the Shifter's<br />
  registers directly afterwards but "wait" a few cycles.<br />
  The simplest solution is to wait a single VBL after starting<br />
  the DMA-sound before proceeding with your program.<br />
  Once the DMA-sound plays, you can change DMA-sound registers<br />
  without risking to screw up screen management.<br />
<br />
? Can i get a "notice" from the DMA-soundsystem when it finished<br />
  playing a sample ?<br />
! Yes, you can use TIMER A as event counter which will be notified<br />
  when a sample has been played completely.<br />
  <br />
? I want to replay a sample backwards.<br />
! Does not work on the STE. The sample-counter can only be<br />
  increased, not decreased.<br />
<br />
<br />
5. The National LMC 1992 and the Microwire<br />
------------------------------------------<br />
<br />
Preface:<br />
  There's a little, but common mistake of minor importance when it<br />
  comes to this combo that allows manipulation of the DMA sound to<br />
  enhance trebble and bass as well as left, right and main volume.<br />
  It is not the Microwire interface that manipulates the sound, it<br />
  is a chip named National LMC 1992.<br />
  This chip however has not been integrated into the Atari STE<br />
  hardware directly but can only be communicated with using a 3-bit<br />
  serial interface, the so-called Microwire.<br />
  It is a bit hard to handle for a beginner, but luckily, it is also<br />
  hard to crash the STE using this register.<br />
  And since the Microwire can basically connect more than just one<br />
  device, it needs a 2 bit address to which device to transfer data<br />
  to. The LMC1992 is at "address" 2 (binary 10). Each address-data-pack<br />
  written to the LMC1992 therefore consists of an 11 bit package.<br />
  The communication is a bit similar to communicating with the YM2149<br />
  since the Microwire also requires to encode data in a certain way.<br />
  <br />
National LMC 1992<br />
  Adress and Data register<br />
    &#36;FFFF8922  x x x x  x x x x  x x x x  x x x x<br />
    <br />
    This address is being used to feed the National LMC both<br />
    address and data bits for a certain setting.<br />
    The choice which bits are being read are being described<br />
    in the mask register at &#36;FFFF8924.<br />
    As described above, the first two bits of the 11 bit<br />
    package need to be a "10" to address the LMC1992.<br />
    Then there are 3 more "address" and 6 more data bits.<br />
    The address bits are 3 in total and are being used as<br />
    follows:<br />
      0 1 1  -  Master Volume (followed by 6 bits of data)<br />
      1 0 1  -  Left channel volume (followed by 6 bits of data)<br />
      1 0 0  -  Right channel volume (followed by 6 bits of data)<br />
      0 1 0  -  Trebble control (followed by 6 bits of data)<br />
      0 0 1  -  Bass control (followed by 6 bits of data)<br />
      0 0 0  -  Mixer (followed by 6 bits of data).<br />
      <br />
    However, not all bits of the 6 general data bits are being<br />
    used. It is necessary to have a multiple of 6 though since<br />
    the Microwire is a 3-bit serial interface.<br />
    The explanation of the 6 data bits are<br />
      (d means necessary data bit, x means bit is ignored)<br />
    <br />
      Master Volume: d d d  d d d  (all 6 bits used)<br />
                    0 0 0  0 0 0  = -80 db volume<br />
                    0 1 0  1 0 0  = -40 db volume<br />
                    1 0 1  x x x  =  0 db volume (max)<br />
      Each increment represents 2 db. If the 3 left bit encode "101",<br />
      the last 3 bits are being ignored.<br />
<br />
      Left channel:  x d d  d d d  (left bit ignored)<br />
                      0 0  0 0 0  = -40 db volume<br />
                      0 1  0 1 0  = -20 db volume<br />
                      1 0  1 x x  =  0 db volume (max)<br />
      Each increment represents 2 db. If the 3 left bit carry "101",<br />
      the last 2 bits are being ignored.<br />
      <br />
      Right channel: x d d  d d d  (left bit ignored)<br />
                      0 0  0 0 0  = -40 db volume<br />
                      0 1  0 1 0  = -20 db volume<br />
                      1 0  1 x x  =  0 db volume (max)<br />
      Each increment represents 2 db. If the left 3 bit are "101",<br />
      the last 2 bits are being ignored.<br />
      <br />
      Trebble:      x x d  d d d  (left 2 bits are ignored)<br />
                        0  0 0 0  = -12 db (min)<br />
                        0  1 1 0  =  0 db (linear)<br />
                        1  1 0 0  =  12 db (max)<br />
      Each increment represents 2 db, normalized at 15 KHz.<br />
      <br />
      Bass:          x x d  d d d  (left 2 bits are ignored)<br />
                        0  0 0 0  = -12 db (min)<br />
                        0  1 1 0  =  0 db (linear)<br />
                        1  1 0 0  =  12 db (max)<br />
      Each increment represents 2 db, normalized at 50 Hz.<br />
      <br />
      Mixer control: x x x  x d d  (left 4 bits are ignored)<br />
                              0 0  = DMA + (YM2149 - 12 db)<br />
                              0 1  = DMA + YM2149<br />
                              1 0  = DMA only<br />
                              1 1  = reserved<br />
    Setting "00" mixes the output of the YM2149 and the output<br />
    of the DMA-sound, but the YM2149 sound is being downsized by<br />
    12 db. "01" mixes DMA and YM2149 linearly, "00" means DMA<br />
    sound output only.<br />
    <br />
  Mask Register<br />
    &#36;FFFF8924  x x x x  x x x x  x x x x  x x x x<br />
    <br />
    This contains in a bitfield which bits of the Address+Data<br />
    Register are explicetely used. Since the Microwire, as it<br />
    is being used in the STE, requires 11 bits of data (in general,<br />
    the Microwire can transport 14 bits), it is essential to let<br />
    the Microwire know WHICH of the 16 bits of this register are<br />
    to be taken into account.<br />
    As being used in the STE, this register will always feature<br />
    11 "1"s and 5 "0"s.<br />
    <br />
  Example:<br />
    Let's say we want to feed the LMC the data "011101000",<br />
    we would need to write a "10 011101000" to the address+data<br />
    register. We can use whatever bits we like of the 16 bits<br />
    of this register, so we use the mask register to mask out<br />
    the unused bits, which might look like:<br />
      &#36;FFFF8924  0 0 0 0  0 1 1 1  1 1 1 1  1 1 1 1<br />
      &#36;FFFF8922  0 0 0 0  0 1 0 0  1 1 1 0  1 0 0 0<br />
    or<br />
      &#36;FFFF8924  0 1 1 0  0 1 1 1  1 1 1 0  1 1 0 1<br />
      &#36;FFFF8922  0 1 0 0  0 0 1 1  1 0 1 0  0 0 0 0<br />
    both have the same effect.<br />
    <br />
Sounds complicated enough but can boost the DMA-sound output of<br />
the STE quite a lot. When programming it first time however you<br />
might easily see that it did not work as planned. Why ?<br />
<br />
? Can't hear any changes on my Falcon ...<br />
! Unfortunately, the Falcon does neither have a Microwire interface<br />
  nor the National Semiconductors LMC1992. The Falcon cannot <br />
  manipulate bass, treble, main, left and right volume as easily as<br />
  the STE can. The Falcon will not report an error either though.<br />
  The TT does have the Microwire interface as well as the LMC1992.<br />
<br />
? I write both address+data and the mask register correctly, still<br />
  it doesn't have the expected effect.<br />
! You need to write the mask before you write address and data.<br />
  As soon as address+data register has been written to, the <br />
  Microwire starts to operate (which means shifting to the left).<br />
  Writing the mask register after writing the address+data register<br />
  is therefore useless.<br />
<br />
? I write data into the mask-register, then address and data but<br />
  it still doesn't do what i wanted to.<br />
! Always make sure you have a total of "11" bits, and always<br />
  make sure, the leading bits on the left side are a "10".<br />
  Otherwise, the Microwire will try to access other peripherals<br />
  that the STE does not have - which will not lead to an error,<br />
  but result in no changes at all.<br />
  <br />
? I tried to achieve sound manipulation effects by writing a lot<br />
  of values to the LMC1992 to change DMA sound output. It does<br />
  seem to ignore a lot of my values.<br />
! The LMC1992 is connected to the Microwire and is being fed<br />
  data in a serial way. The Microwire is more or less a parallel<br />
  to serial converter and it does that by shifting the 16 bit<br />
  value (along with the mask) to the left 16 times and passing<br />
  each bit for that the mask-bit is "1" to the LMC.<br />
  That takes some time and during its operational state, the<br />
  Microwire cannot be written to.<br />
  <br />
? How can i find out wether the Microwire interface is done ?<br />
! Simply check the value in the address+data register after you<br />
  wrote your value into it. If the value at &#36;FFFF8922 is identical<br />
  with the value you wrote into it, the Microwire is done shifting<br />
  and can once again be written to. In all other cases, the<br />
  Microwire is still shifting and cannot be written to.<br />
<br />
? I successfully wrote to the LMC1992, but now YM2149 sound output<br />
  is pure torture. What happened ?<br />
! Well, the LMC1992 is not a chip that controls the DMA-sound in<br />
  its digital form but manipulates the analogue sound that comes out<br />
  of the DMA chip. If you now put the mixer to mix YM2149 and DMA<br />
  sound, the LMC1992 will also manipulate the YM sound output.<br />
  However, the YM2149 as a soundchip is not really meant to have<br />
  Bass and Trebble enhanced. This might result in a very ugly<br />
  sound.<br />
<br />
? My program works fine and also exits cleanly, but then any<br />
  subsequent sound output is awful. How come ?<br />
! You should save the contents of the LMC1992 right at the<br />
  start of your program and when exiting, you should restore<br />
  the original value - and the easiest way is to save both<br />
  mask and address+data register.<br />
  Restoring can be done by just writing mask and address+data<br />
  registers. The Microwire does not need any further software<br />
  support once you wrote the values, so it does not harm if<br />
  your program terminates in the meantime.<br />
  Programs you launch when your program is terminated that do<br />
  use DMA or YM2149 sound might be affected by your LMC1992<br />
  settings otherwise.<br />
<br />
? How come the Falcon does not have this feature ?<br />
! When the Falcon was initially planned (and named Sparrow),<br />
  it had a chip that was supposed to bear similar features<br />
  named RASCAL. It is probable that this chip was supposed to<br />
  "simulate" a Microwire + LMC 1992 duo as well as give<br />
  enhanced possibilites towards the 16-bit stereo sound of<br />
  the Falcon (Sparrow) as well as the DSP.<br />
  Either Atari did not finish this chip in time, it was too<br />
  expensive or too complex, we don't know. It appeared in<br />
  the first Sparrow prototypes as well as the first few<br />
  Falcon (exhibitors) boards. However, it is so far unknown<br />
  wether this chip is compatible to the Microwire+LMC1992 duo<br />
  or not and why it has been canned.<br />
<br />
? Why is the handling of the LMC1992 so complicated ?<br />
  Wouldn't there have been an easier way to give the STE these<br />
  features ?<br />
! Yes, of course, but the LMC1992 was very cheap. The LMC1992<br />
  was never meant to serve in a computer but was commonly used<br />
  in TV sets, Radios etc. and any other Audio-device that had<br />
  the option to control volumes, bass and trebble electronically,<br />
  and those preferred a "1-bit serial" implementation.<br />
  The Microwire is just the connection of the STE's architecture<br />
  to the LMC1992.<br />
<br />
6. Advanced Joystick, Paddle and Lightpen ports<br />
-----------------------------------------------<br />
Registers:<br />
  Fire-Buttons for 4 Joysticks:<br />
    &#36;FFFF9200  - - - -  - - - -  - - - -  X X X X<br />
    <br />
    This address features the fire buttons of 4 joysticks that<br />
    can be connected to these ports. Bit 0 represents joystick<br />
    0, bit 1 joystick 2, bit 2 joystick 1 and bit 3 joystick 3.<br />
    This register is "low active", meaning that a "0" implies<br />
    "active" (button pressed) and a "1" means "inactive"<br />
    (button not pressed).<br />
    <br />
  Joysticks:<br />
    &#36;FFFF9202  X X X X  X X X X  X X X X  X X X X<br />
    <br />
    Read this address to get the directions of 4 digital<br />
    joysticks connected. The lowest 4 bits (0-3) represent<br />
    joystick 0, the middle low 4 bits (4-7) represent<br />
    joystick 2, the next 4 bits (8-11) joystick 1 and<br />
    the highest 4 bits (12-15) joystick 3.<br />
    The lowest bit encodes "right", the next bit "left",<br />
    the next bit means "down" and the highest bit "up".<br />
    This whole register is low-active as well.<br />
  <br />
  Paddles:<br />
    &#36;FFFF9210  - - - -  - - - -  X X X X  X X X X  Paddle 0 X<br />
    &#36;FFFF9212  - - - -  - - - -  X X X X  X X X X  Paddle 0 Y<br />
    &#36;FFFF9214  - - - -  - - - -  X X X X  X X X X  Paddle 1 X<br />
    &#36;FFFF9216  - - - -  - - - -  X X X X  X X X X  Paddle 1 Y<br />
    <br />
    The advanced joystick ports allow analogue devices such as<br />
    paddles. Two paddles usually connect to one port, meaning<br />
    the connection of 4 paddles are possible. Instead of <br />
    "paddle X/Y coordinate", you might also read this as<br />
    "paddle 1/2 coordinate".<br />
    The fire buttons of each paddle can be read at the same<br />
    address as for the joysticks, &#36;FFFF9200<br />
    <br />
  Lightpen:<br />
    &#36;FFFF9220  - - - -  - - X X  X X X X  X X X X  X-Position<br />
    &#36;FFFF9222  - - - -  - - X X  X X X X  X X X X  Y-Position<br />
    <br />
    Connection of a light-pen is only possible at port 0. It<br />
    has a precision of 4 pixels in ST Low, 8 pixels in ST Mid<br />
    and 16 pixels in ST High resolution (horizontally).<br />
    Vertically, the light-pen is pixel-perfect. The values<br />
    read in this register always refer to ST Low. For usage<br />
    in midres, you need to multiply by 2, for usage in hires,<br />
    you need to multiply by 4.<br />
    <br />
These interfaces allow a lot of connections. What do you need<br />
to watch out for ?<br />
<br />
? Can't read out these registers. Why ?<br />
! In contrast to any joystick/mouse/keyboard function on the<br />
  ordinary ST, these interfaces are _not_ being maintained and<br />
  supervised by the IKBD subsystem of the ST keyboard but are<br />
  directly accessible by hardware. You need to be in supervisor<br />
  mode to access these registers.<br />
<br />
? The paddles i have from my good old 800XL can't be connected<br />
  since the plug doesn't fit. Can i connect and use them on the<br />
  ordinary joystick port of the ST ?<br />
! No, unfortunately, the IKBD does not have the hardware that<br />
  is necessary to drive paddles. Paddles are very "dumb" devices<br />
  that need quite a bit of hardware logic to work in a "digital"<br />
  environment. You will need to built yourself an adapter.<br />
<br />
? I want to build myself a 4-player adapter so i can connect 4<br />
  joysticks to these ports. What pins do i need to connect ?<br />
! The hardware layout of each of these joystick ports is<br />
  (seen from the outside of each connector):<br />
    _______________________________  1 - Joystick 0 "up"<br />
    \  5  4    3    2    1      /  2 - Joystick 0 "down"<br />
    \    10  9    8    7  6  /  3 - Joystick 0 "left"<br />
      \ 15  14  13  12  11    /    4 - Joystick 0 "right"<br />
      \_______________________/    5 - Paddle 0 Y coord<br />
    6 - Joystick 0 "fire"          11 - Joystick 2 "up"<br />
    7 - VCC                        12 - Joystick 2 "down"<br />
    8 - NC                        13 - Joystick 2 "left"<br />
    9 - Mass                      14 - Joystick 2 "right"<br />
    10 - Joystick 2 "fire"          15 - Paddle 0 X coord<br />
  <br />
  The ordinary 9 pin socket for an ordinary digital joystick<br />
  look like this:<br />
    ___________________          1 - Up    5 - reserved<br />
    \  1  2  3  4  5  /          2 - Down  6 - fire<br />
      \  6  7  8  9  /            3 - Left  7 - +5V<br />
      \_____________/            4 - Right  8 - Mass<br />
                      (9 is officially unused, might be 2nd "fire")<br />
  This should be sufficient to build an adapter.<br />
  <br />
? Which models have the extended joystick ports ? Is it sensible<br />
  to use them at all ?<br />
! Depends on what you are planning to do. Only the 1040 STE and the<br />
  Falcon have these additional ports. Neither the Mega STE nor the<br />
  TT have these. Games/Programs that can only use joysticks/paddles<br />
  connected to these ports cannot be played on Mega STE/TT computers.<br />
<br />
? How can i write a program that uses paddle controllers for the<br />
  Mega STE and TT then ?<br />
! You cannot. Both these computers lack the logic required to drive<br />
  paddle controllers.<br />
<br />
? But isn't the mouse a paddle controller, too ?<br />
! No, surprisingly, it is not. The mouse is using an internal<br />
  logic to convert "analogue" movement into digital impulses,<br />
  similar to rapidly moving a joystick in a direction and letting<br />
  it go again. The mouse is, unlike a paddle, not being read "by<br />
  position", but like a joystick "by movement".<br />
  For games however, you might use the mouse as a paddle.<br />
  GEM programs can use an AES routine to read mouse position,<br />
  otherwise you can use the IKBD to read the mouse.<br />
<br />
? My light pen doesn't work at all.<br />
! The light pen is only supported on connector 0. Connector 1<br />
  cannot be used to drive a light pen.<br />
<br />
? I want to connect jaguar powerpads, which can connect directly<br />
  to the advanced joystick ports. How do i read those ?<br />
! The directional pad and the 3 action buttons can be read<br />
  relatively easily. The D-pad represents one joystick connected<br />
  to the port, the 3 fire buttons and the Option button the<br />
  other joystick. The Pause-Button is the firebutton of one<br />
  joystick. Reading the numerical pad of the powerpad is more<br />
  difficult however.<br />
  <br />
7. Hardware related questions<br />
-----------------------------<br />
Here come some typical questions and answers concerning the 1040<br />
STE's hardware, not seen by the programmer but for upgrades and<br />
installations.<br />
<br />
? I want to upgrade my STE to 4 MB. What shall i do ?<br />
! The 1040 STE uses 30 pin SIMMs and the 1040 STE is not really<br />
  picky about the SIMMs you use. By using 4 x 1 MB SIMM you<br />
  will achieve 4 MB in total.<br />
<br />
? I only have 2 1 MB SIMMs. Can i use them ?<br />
! All 4 SIMM-slots (2 banks) need to be filled by SIMMs, otherwise<br />
  the STE won't boot at all. You might try to replace 2 of the<br />
  SIMMs in your 1040 STE to have either 2.5 MB (2 x 256KB +<br />
  2 x 1 MB) or 3 MB (2 x 512 KB + 2 x 1 MB), but unfortunately,<br />
  both only work with restrictions: There is a program that<br />
  "reserves 1.5 MB" while booting which are exactly those 1.5MB<br />
  that a 2.5 MB STE lacks to the 4 MB. The STE then "believes"<br />
  to have 4 MB with 1.5 MB permanently used.<br />
  This is not a wise choice however since it will require you<br />
  to always run this program. Most games will crash.<br />
  <br />
? I want to upgrade my STE to TOS 2.06. Do i need a TOS-card ?<br />
! No, you don't. The 1040 STE has 2 EPROM-sockets for 2 128KB<br />
  EPROMs, exactly the size of TOS 2.0x. Simply purchase the<br />
  TOS-ROMs, open your 1040 STE and replace chip by chip. They<br />
  are marked "E" for "Even" and "O" for "Odd".<br />
  Make sure the "O" chip you take out is replaced by the "O"<br />
  chip of your TOS 2.06. The same goes for the "E" chips.<br />
  TOS-cards were only necessary for ST computers that had<br />
  6 x 32 KB EPROMs and could not handle 2 x 128KB.<br />
  <br />
? Is it possible to have an internal IDE harddisk in the 1040<br />
  STE ?<br />
! Yes, it definetly is. There is room for a 2.5" IDE-harddisk<br />
  just above the memory on the metal shielding and it is even<br />
  easy to mount the harddisk there. The PSU of the STE is also<br />
  powerful enough to drive a 2.5" IDE harddisk usually.<br />
  Then you need an IDE interface and a cable.<br />
<br />
? The IDE interface i bought doesn't fit anywhere. Help!<br />
! Well, the 1040 STE uses a PLCC-socketed 68000 while all ST<br />
  computers had a DIL-version of the 68000. IDE interfaces<br />
  either connect to the Megabus of the Mega ST series directly<br />
  or to the CPU and usually that implies a DIL CPU.<br />
  Mario Becroft, T.U.S. and Gellermann &amp; Felmuth produced IDE<br />
  interfaces especially for the 1040 STE. So before you order,<br />
  make sure the IDE interface can be used on a PLCC 68000.<br />
  GE Soft produced a simple adapter called "speed-bridge",<br />
  which connected to the PLCC-socket of the STE and had a<br />
  DIL-like socket on the top. This allowed to use ST expansions<br />
  on the STE, too, but please note that this means additional<br />
  space being occupied by the adapter - Speed bridge + IDE<br />
  interface might not fit anymore into your 1040 STE.<br />
  <br />
? The IDE interface is mounted, it works and the IDE harddisk<br />
  is identified correctly and installed by my software. Yet<br />
  my STE can't boot from it.<br />
! A common problem. To boot from an IDE device, you need<br />
  TOS 2.06 in your STE. Otherwise, you will need a boot-disk<br />
  that features your harddisk driver.<br />
<br />
? Help! I just removed my IDE interface and now my 1040 STE<br />
  doesn't work anymore at all, i only get a black screen!<br />
! The pins of the socket and the 68000 have been bent a little<br />
  when you had the IDE interface mounted. Now that you removed<br />
  it, the pins of the socket do not connect 100% anymore to the<br />
  pins of your CPU. Now all you need is patience and a needle.<br />
  Open the STE, carefully pull out the CPU by using the needle<br />
  as a lever. Now carefully bent the pins on the socket towards<br />
  the middle. Do not push them hard since they break relatively<br />
  easily. When done with this, carefully bent the pins of the <br />
  68000 a little to the outside. Then push the CPU in gently<br />
  and try to switch on your STE.<br />
<br />
<br />
8. Miscelleanous questions and other STE compatible computers<br />
-------------------------------------------------------------<br />
This section simply features a few questions about what<br />
compatibility problems you might expect when coding STE or<br />
what to do when you want to use additional features of<br />
certain models like the TT, the MegaSTE, the Falcon without<br />
abandoning STE compatibility totally.<br />
<br />
? How compatible is the STE with the Mega STE, TT and Falcon ?<br />
! Here's a small chart of the additional features of the 1040<br />
  STE and their existance on the other models (including the<br />
  Mega ST and ST for completeness):<br />
  <br />
                    ST MegaST    STE    MegaSTE      TT  Falcon Note:<br />
  --------------------------------------------------------------------<br />
  4096 colours      no    no    yes        yes    yes    yes  (1)<br />
  Blitter            no    yes    yes        yes      no    yes  <br />
  Hardware scroll    no    no    yes        yes    yes    yes  (2)<br />
  screen splitting  no    no    yes        yes      no    yes  (3)<br />
  DMA sound          no    no    yes        yes    yes    yes  (4)<br />
  LMC1992/Microwire  no    no    yes        yes    yes      no<br />
  Adv.Joystick port  no    no    yes        no      no    yes<br />
  <br />
  Notes:<br />
  (1) The Falcon has to be in an ST compatible resolution for this.<br />
      On the ST, programs that try to use 4096 will not crash, but<br />
      still be limited to 512 colours.<br />
  (2) Both Base Address and Counter have to be multiples of 4 on<br />
      the Falcon and multiples of 8 on the TT.<br />
  (3) On the Falcon, the Video Counter can only contain values<br />
      that are multiples of 4.<br />
  (4) There is no 6.125KHz DMA sound on the Falcon.<br />
  <br />
The Mega STE and its features:<br />
  ? The TT features quite a complex SCSI subsystem but i cannot<br />
    find any information of the Mega STE's SCSI subsystem ?<br />
  ! That is simply because the Mega STE does not have a SCSI<br />
    subsystem. If your Mega STE is equipped with an internal<br />
    SCSI harddisk, it has an internal SCSI hostadapter that is<br />
    mounted on an internal ACSI-bus. Hence, the Mega STE sees<br />
    your harddisk as ACSI, not as SCSI and can also not directly<br />
    access the SCSI controller on it.<br />
    <br />
  ? I see the Mega STE has a socket for a math coprocessor.<br />
    Which types can i connect ?<br />
  ! The Mega STE was intended to drive a 16 MHz MC68881, but<br />
    it should (!) also work with a 16 MHz MC68882 if it fits.<br />
    The coprocessor will be driven with 16 MHz.<br />
    <br />
  ? How do i program the Mega STE's MC68881 if present ?<br />
  ! That's unfortunately more complicated than for the Falcon<br />
    and the TT since the 68030 used in TT and Falcon can operate<br />
    an MC68882 directly while the 68000 in the ST, STE and<br />
    Mega STE cannot. The Mega STE has a coprocessor interface<br />
    register from &#36;FFFFFA40 to &#36;FFFFFA5C, but it also requires<br />
    a so-called "coprocessor protocol" to communicate with the<br />
    MC68881. This is rather complex and too much to list here.<br />
    The operation of the MC68881 in the Mega STE is identical<br />
    to the operation of the FPU-cards for the Mega ST, so<br />
    i recommend the documentation of these.<br />
    <br />
  ? I want to make sure that my software uses the Mega STE in<br />
    "high speed", but when i boot the Mega STE "cleanly", it<br />
    always is in "8 MHz cache off" mode. How do i switch it<br />
    into 16 MHz cache on ?<br />
  ! The Mega STE has a register to control speed and cache<br />
    status:<br />
    &#36;FFFF8E21  - - - -  - - X X<br />
    <br />
    Bit 0 controls the clockspeed (0 = 8 MHz, 1 = 16 MHz),<br />
    the upper bit controls the cache (0 = Cache off, 1 = cache on).<br />
    Some docs say that all upper 15 bits of &#36;FFFF8E20 need to<br />
    be set to "1" to turn the cache on.<br />
    Writing to this register in anything but a Mega STE will<br />
    most probably lead to a crash, so be sure to check the<br />
    Cookie Jar for _MCH to estimate wether this is a Mega STE<br />
    or not (Upper word is 1 for STE, lower word is 0x0010 for<br />
    Mega STE, 0x0000 for anything else).<br />
    <br />
  ? How come the Controlfield only allows 16 MHz Cache On, 16<br />
    MHz Cache off and 8 MHz Cache off when the hardware also<br />
    allows 8 MHz Cache on ?<br />
  ! Because the setting "8 MHz Cache On" is senseless. The<br />
    cache operates at 16 MHz and is meant to reduce real <br />
    memory accesses for the 16 MHz CPU since the bus and<br />
    therefore the memory only runs at 8 MHz.<br />
    When you run the CPU in 8 MHz, the cache will operate at<br />
    8 MHz, too, and hence be as quick as the bus - giving no<br />
    more speedup.<br />
    <br />
  ? Can the Cache of the Mega STE lead to problems with demo<br />
    effects since it does not influence memory directly ?<br />
  ! Yes and no. From the docs i have - and they are not really<br />
    very detailed about the Cache of the Mega STE - any<br />
    hardware register access is not being cached but carried<br />
    out directly. If your "demo" just does a lot of hardware<br />
    register accesses, the cache should not really be a problem.<br />
    However, screen memory and other buffers are in the main<br />
    memory and therefore cached. If timing is critical for<br />
    accesses on these parts of the memory, better turn the<br />
    cache off.<br />
  <br />
  ? How fast is the Mega STE at 16 MHz without the cache ?<br />
  ! Unfortunately, not very much faster than an ordinary 8 MHz<br />
    STE. The cache might seem small according to todays<br />
    standard (16 KBytes), but for a system like the Mega STE,<br />
    it reduces memory accesses dramatically. If you turn off<br />
    the cache, the 68000 has to fetch everything directly<br />
    over the 8 MHz bus. Only operations that completely work<br />
    in the 68000's registers will gain performance.<br />
    <br />
The Atari TT and its features:<br />
  ? Urghs. The TT also has this ugly internal speaker that<br />
    sounds awful. How can i turn it off ?<br />
  ! The internal speaker is being controlled by the YM2149<br />
    directly over port IOA6. The settings are<br />
      OnGIbit: (&#36;40) - switch internal speaker off<br />
      OffGIbit: (&#36;BF) - switch internal speaker on<br />
  <br />
  ? Say, is the 8-bit resolution of the TT a chunky resolution ?<br />
    That would be cool for demos and games.<br />
  ! Unfortunately, it has the same interleaved bitplane structure<br />
    like the ST and STE have. Screen memory is organized:<br />
      Word 0  X X X X  X X X X  X X X X  X X X X  pixel  0-15 plane 0<br />
      Word 1  X X X X  X X X X  X X X X  X X X X  pixel  0-15 plane 1<br />
      ...<br />
      Word 7  X X X X  X X X X  X X X X  X X X X  pixel  0-15 plane 7<br />
      Word 8  X X X X  X X X X  X X X X  X X X X  pixel 16-31 plane 0<br />
      etc.<br />
  <br />
  ? I read somewhere that the Falcon can be switched to an<br />
    STE compatible mode. Is there something similar for the TT ?<br />
  ! No. STE compatibility for the Falcon also only refers to<br />
    STE compatible resolutions (ST Low, Mid, Hi) and STE <br />
    compatible DMA-sound (8 bit). The TT has the ST(E) resolutions<br />
    anyway and the DMA-sound is identical to the one of the STE<br />
    as well. But, the TT lacks the Blitter, cannot change<br />
    screen addresses in the middle of a screen and does not<br />
    have the enhaced joystick ports.<br />
    So, since the TT lacks important hardware specs of the STE,<br />
    a compatibility mode would be rather useless anyway.<br />
  <br />
  ? Why does the TT lack the feature to change Video Counter<br />
    during a screen build anyway ?<br />
  ! At least according to Ray/tSCc, it actually allows<br />
    write accesses. However, the official documentation states<br />
    this register as read/only. In the monochrome hires mode<br />
    it is not advisable to write to these registers since the<br />
    TT shifter does 95 MHz (74 Khz at 1280x960), which is<br />
    almost 3 times the speed of the TT's CPU and 6 times the<br />
    speed of the TT's bus. So be careful in this mode.<br />
    <br />
  ? I toyed around with the SYNC-Mode register but it behaves<br />
    odd on the TT. Why ?<br />
  ! Even though this register is called "ST Sync Mode" officially,<br />
    it's the direct opposite. Only Bit 0 is used and if it is "0",<br />
    screen is off, otherwise screen is on (On the ST, "0" was on).<br />
  <br />
  ? What's the difference between the ST Shift Mode Register<br />
    and the TT Shift Mode Register ?<br />
  ! The ST Shift mode register is supposed to be only 2 bits wide<br />
    and contain a "00" for ST Low, "01" for ST Mid and "10" for<br />
    ST High. However, the ST Shift Mode Register on the TT also<br />
    contains ALL other bits of the TT Shift Mode Register as well.<br />
    The ST Shift Mode Register is more or less a mirror of the TT<br />
    Shift Mode Register. Hence, be careful when writing to this<br />
    register for STE compatibility, you might turn on/off TT<br />
    specific features.  <br />
    <br />
  ? What is that funky greyscale mode of the TT i read about ?<br />
    Is it any useful ?<br />
  ! The so called "Hper Mono"-mode is a mode in which each<br />
    pixel can have 1 of 256 greyscales. To enable this mode,<br />
    you need to set bit 12 of the TT Shift Mode register:<br />
      &#36;FFFF8262  X - - X  - X X X  - - - -  X X X X<br />
    <br />
    This mode will combine the green and blue channel (=8 bits)<br />
    to gather 256 greyscales. Obviously, it is not a chunky<br />
    but still a palette mode, however, not using the original<br />
    TT palette (4096 colours can only feature 16 greyscales).<br />
    It is not a chunky mode either but still uses the same<br />
    interleaved bitplane format. Then again, it seems that this<br />
    mode can be engaged not only in the 256 colours resolution.<br />
    But, this mode _only_ exists on the TT. This mode is _not_<br />
    available on the ST, the STE or the Falcon.<br />
    Please note that using this mode will limit your software<br />
    to run solely on the TT.<br />
    <br />
  ? Then i read about a smear mode on the TT. What is that ?<br />
  ! The so called "Hold &amp; Sample" mode of the TT an be engaged<br />
    by switching bit 13 of the TT Shift mode Register:<br />
      &#36;FFFF8262  X - - X  - X X X  - - - -  X X X X<br />
      <br />
    In this mode, every pixel with a colour different from 0<br />
    will "smear", meaning that all pixels with colour 0 to the<br />
    right of a pixel with colour X will be drawn in colour X.<br />
    Only the left border resets the smear mode and really draws<br />
    colour 0 as colour 0 until a pixel with colour&lt;&gt;0 follows.<br />
    This mode was meant to make programming of filled-vector<br />
    3D graphics about as easy as programming wireframe vectors.<br />
    Unfortunately, it stayed widely unused.<br />
    Please note that this mode _only_ exists on the TT and is<br />
    _not_ available on the ST, STE or the Falcon.<br />
  <br />
  ? What TOS does the TT have ? If i use routines from TOS 1.0x<br />
    or 2.0x directly, will it work on the TT, too ?<br />
  ! Unfortunately, there are 5 series of TOS for the TT, TOS<br />
    3.01 to 3.06, not counting the very first TT-TOS called<br />
    TOS030. So please, if using TOS routines, program as cleanly<br />
    as possible to ensure compatibility.<br />
    <br />
  ? How come that the TT only uses 2/3 of the width of my VGA<br />
    monitor but displays a stupid white border ?<br />
  ! When Atari designed the TT and especially the TT shifter<br />
    which has VGA-compatible elements, IBM decided to change<br />
    the specs of the VGA standard (at least some docs say so,<br />
    there are no official affirmations for this).<br />
    This is why the TT displays a rather pointless border and<br />
    also only uses 2/3 of the screen width.<br />
    The simplest solution to go around this is an OverScan TT<br />
    which simply uses up the whole space the TT reserves for<br />
    the border, giving up to 896 x 496 pixels in TT Mid and<br />
    448 x 496 in TT Low.<br />
    <br />
The Falcon030 and its features:<br />
  ? How compatible is the Falcon to the STE ? Will my STE code<br />
    work flawlessly on the Falcon ?<br />
  ! Yes, the Falcon was meant to be an (68000-based) successor<br />
    to the 1040 STE, therefore it is easy to code Falcon-<br />
    compatible STE-code. The only exceptions are:<br />
      - The Falcon does not allow 6.125 KHz DMA sound<br />
      - The Falcon's screen base address has to be a multiple<br />
        of 4<br />
      - The Falcon does not have the so-called "Shadow"<br />
        registers of the YM2149<br />
    To also make sure that the timing of the CPU is (almost)<br />
    correct, switch the processor caches off and the CPU and<br />
    the Blitter down to 8 MHz.<br />
    Now, the only obstacle is the DMA-sound matrix of the Falcon<br />
    which might be setup wrongly.<br />
    <br />
  ? I migrated from a 1040 STE to a Falcon030. But how can I<br />
    connect my external Floppy disk drive or connect my good old<br />
    ACSI-harddisk drive ?<br />
  ! You cannot. The Falcon does not have any kind of interface<br />
    for an external disk drive - even though the TOS 4.0x still<br />
    checks for Drive B: on boot-up. Additionally, the Falcon<br />
    does not have an ACSI port. You cannot connect any ACSI-<br />
    devices such as harddisks or Laser printers.<br />
<br />
9. Epilogue<br />
-----------<br />
  Without a doubt, the 1040 STE and the Mega STE are nice pieces<br />
  of hardware. In 1989, the 1040 STE offered quite a lot a home<br />
  computer could offer and you got a computer with excellent<br />
  sound capabilities for the price of a sound-card for your PC<br />
  alone. In 1991, the professional STE was released with the<br />
  introduction of the Mega STE. 16 MHz clockspeed, 16 KB cache,<br />
  VMU interface and internal harddisk at a price for which other<br />
  companies gave you an update of their operating system and a<br />
  new harddisk.<br />
  But the STE didn't make it. The 1040 STE's features stayed<br />
  widely unused until the release of games such as Obsession or<br />
  Stardust, of Demos such as Brain Damage by Aggression or<br />
  Omega's Grotesque or of tools such as the ProTracker STE.<br />
  The Mega STE did not increase the sales of STE computers a lot<br />
  either, being limited to STE graphics and sound.<br />
  <br />
  This documentation is for people that, like me, like the STE<br />
  for what it is: A fun machine with quite impressive specs.<br />
  I assembled this documentation in case you want to program<br />
  the STE's features such as the Blitter, the hardware scroll<br />
  or DMA sound and would like to avoid stumbling over the<br />
  little traps in the STE design. So i hope you find this<br />
  documentation useful and keep on programming the STE to<br />
  push this little machine to the maximum.<br />
  <br />
                                Best wishes,<br />
                                      The Paranoid<br />
                                  Paranoia -- Lunatic Asylum<br />
                                  Think you can handle it ?!<br />
  <br />
10. Final words<br />
---------------<br />
  This FAQ has been collected and assembled using various<br />
  sources:<br />
    - Atari ST/STE/TT Profibuch,<br />
        Jankowski, Rabich, Reschke, Sybex Verlag 1991<br />
    - Das TOS 1.4 Update Buch,<br />
        Pauly, Data Becker 1989<br />
    - Chips'n Chips 6.0<br />
        Ruge, AG Computertechnik 1998<br />
  and many many experiments on a 1040 STE using TOS 2.06,<br />
  a Mega STE using TOS 2.06 and a Falcon030.<br />
  <br />
  This documentation is far from complete and is not given<br />
  with any warranties about correctness. Any kind of damage<br />
  done to yourself, your hard- or software after, while or<br />
  before reading this documentation is not being covered in<br />
  any way by the author.<br />
  If you copy this documentation, please do not alter, add<br />
  or subtract any content. This documentation is free to<br />
  copy as long as it is copied completely and without<br />
  additionals.<br />
  If you spot mistakes or have proposals on what to add,<br />
  feel free to mail the author at paranoid@atari.org<br />
  <br />
  <br />
</div>
</span>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Image Formats]]></title>
			<link>https://www.ihcmot.fr/board/showthread.php?tid=5</link>
			<pubDate>Mon, 29 Jul 2024 16:50:31 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.ihcmot.fr/board/member.php?action=profile&uid=2">tomchi</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.ihcmot.fr/board/showthread.php?tid=5</guid>
			<description><![CDATA[<span style="font-family: consolas;" class="mycode_font">[titre]Texte Original[/titre]<br />
<div style="text-align: left; margin-left: auto; margin-right: auto; background-color: #d3d3d3; border: 2px solid #808080; border-radius: 10px; padding: 12px; width: 680px; ">
<br />
                          ST Picture Formats<br />
                          ------------------<br />
                              Edited by:<br />
<br />
                              David Baggett<br />
<br />
                                Internet:<br />
                            dmb@ai.mit.edu<br />
<br />
                  (Please report errors or additions.)<br />
<br />
            Copyright &copy; 1988 -- 1995  by David M. Baggett<br />
<br />
<br />
    Non-profit redistribution of this document is permitted, provided<br />
    the document is not modified in any way.<br />
<br />
    Reproduction of this document in whole or in part for  commercial<br />
    purposes is expressly forbidden without the prior written consent<br />
    of David M. Baggett.<br />
<br />
    The  information  presented here is not guaranteed to be correct.<br />
    The editor and contributors will in no event be liable for direct,<br />
    indirect, incidental, or consequential damages resulting from the <br />
    use of the information in this document.<br />
<br />
    This document is the product of many hours of volunteer work by a<br />
    large number of people. Please respect this -- do not violate the<br />
    distribution policy.<br />
<br />
<br />
                              CONTRIBUTORS<br />
  <br />
      Steve Belczyk  Phil Blanchfield  Marcel Boom  Jason Blochowiak<br />
        John Brochu**  David Brooks  Daniel Deimert  Martyn Dryden<br />
      Neil Forsyth  Stefan Hoehn  Gerfried Klein  G. "Maddog" Knauss<br />
          Ken MacLeod  Shamus McBride  Jim McCabe  Lars Michael<br />
          Darek Mihocka  David Mumper  George Nassas  Jim Omura<br />
            Chris Ridd  George Seto  Joe Smith  Greg Wageman<br />
                      Roland Waldi*  Gerry Wheeler<br />
<br />
<br />
                                Contents<a name="contents"></a> <br />
                                --------<br />
<br />
        <a href="#NEO">NEOchrome</a>                              *.NEO<br />
        NEOchrome Animation                    *.ANI<br />
        <a href="#PI1">DEGAS</a>                                  *.PI?  ? = 1, 2, 3<br />
        DEGAS Elite                            *.PI?  ? = 1, 2, 3<br />
        DEGAS Elite (Compressed)               *.PC?  ? = 1, 2, 3<br />
        <a href="#TN1">Tiny</a>                                   *.TN?  ? = 1, 2, 3, Y<br />
        <a href="#SPU">Spectrum 512</a>                           *.SPU<br />
        Spectrum 512 (Compressed)              *.SPC<br />
        Spectrum 512 (Smooshed)                *.SPS<br />
        <a href="#ART">Art Director</a>                           *.ART<br />
        <a href="#MUR">C.O.L.R. Object Editor Mural</a>           *.MUR<br />
        <a href="#DOO">Doodle</a>                                 *.DOO<br />
        <a href="#SEQ">Cyber Paint Sequence</a>                   *.SEQ<br />
        <a href="#FLM">Animatic Film</a>                          *.FLM<br />
        <a href="#ASB">Animaster Sprite Bank</a>                  *.ASB<br />
        <a href="#MBK">STOS</a>                                   *.MBK<br />
        <a href="#IMG">GEM Bit Image</a>                          *.IMG<br />
        GEM Bit Image, Extended                *.IMG<br />
        GEM Metafile (vector graphics)         *.GEM<br />
        <a href="#PAC">STAD</a>                                   *.PAC<br />
        <a href="#IC1">Imagic Film/Picture</a>                    *.IC?  ? = 1, 2, 3<br />
        <a href="#IFF">IFF</a>                                    *.IFF<br />
        <a href="#RGB">RGB Intermediate Format</a>                *.RGB<br />
        <a href="#CE1">ComputerEyes Raw Data Format</a>           *.CE?  ? = 1, 2<br />
        <a href="#MAC">MacPaint</a>                               *.MAC<br />
        PackBits Compression Algorithm<br />
<br />
<br />
                        Introductory Information<br />
                        ------------------------<br />
word    = 2 bytes<br />
long    = 4 bytes<br />
palette = Hardware color palette, stored as 16 words.  First word is<br />
          color register zero (background), last word is color register<br />
          15.  Each word has the form:<br />
<br />
          Bit:  (MSB) 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 (LSB)<br />
                      -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --<br />
                      0  0  0  0  0 R2 R1 R0  0 G2 G1 G0  0 B2 B1 B0<br />
<br />
          R2 = MSB of red intensity<br />
          R0 = LSB of red intensity<br />
<br />
          G2 = MSB of green intensity<br />
          G0 = LSB of green intensity<br />
<br />
          B2 = MSB of blue intensity<br />
          B0 = LSB of blue intensity<br />
<br />
          Intensity ranges from 0 (color not present) to 7 (highest<br />
          intensity).<br />
<br />
          Example: { red = 7, green = 3, blue = 5 } -&gt; 0735 (hex)<br />
<br />
          Caveat:  It is wise to mask off the upper four bits of each<br />
                  palette entry, since a few programs store special<br />
                  information there (e.g., Art Studio).<br />
<br />
<br />
                            The Formats<br />
                            -----------<br />
<br />
&lt;NEOchrome&gt;    *.NEO<a name="NEO"></a>                                        <a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
<br />
1 word          flag byte [always 0]<br />
1 word          resolution [0 = low res, 1 = medium res, 2 = high res]<br />
16 words        palette<br />
12 bytes        filename [usually "        .  "]<br />
1 word          color animation limits.  High bit (bit 15) set if color<br />
                animation data is valid.  Low byte contains color animation<br />
                limits (4 most significant bits are left/lower limit,<br />
                4 least significant bits are right/upper limit).<br />
1 word          color animation speed and direction.  High bit (bit 15) set<br />
                if animation is on.  Low order byte is # vblanks per step.<br />
                If negative, scroll is left (decreasing).  Number of vblanks<br />
                between cycles is |x| - 1<br />
1 word          # of color steps (as defined in previous word) to display<br />
                picture before going to the next.  (For use in slide shows)<br />
1 word          image X offset [unused, always 0]<br />
1 word          image Y offset [unused, always 0]<br />
1 word          image width [unused, always 320]<br />
1 word          image height [unused, always 200]<br />
33 words        reserved for future expansion<br />
16000 words     picture data (screen memory)<br />
-----------<br />
32128 bytes    total<br />
<br />
<br />
&lt;NEOchrome Animation&gt;        *.ANI<br />
<br />
NOTE:      To get this feature on versions 0.9 and later select the Grabber<br />
        icon and click both mouse buttons in the eye of the second R in the<br />
        word GRABBER.<br />
          Interestingly enough, some versions of NEO only require you<br />
        to press the right button, not both.  Hmmm...<br />
<br />
1 long          magic number BABEEBEA (hex) (seems to be ignored)<br />
1 word          width of image in bytes (always divisible by 8)<br />
1 word          height of image in scan lines<br />
1 word          size of image in bytes + 10 (!)<br />
1 word          x coordinate of image (must be divisible by 16) - 1<br />
1 word          y coordinate of image - 1<br />
1 word          number of frames<br />
1 word          animation speed (# vblanks to delay between frames)<br />
1 long          reserved; should be zero<br />
--------<br />
22 bytes        total for header<br />
<br />
? words        image data (words of screen memory) for each frame, in <br />
                order<br />
<br />
<br />
&lt;DEGAS&gt;         *.PI1 (low resolution)<a name="PI1"></a>                      <a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
                *.PI2 (medium resolution)<br />
                *.PI3 (high resolution)<br />
<br />
1 word          resolution (0 = low res, 1 = medium res, 2 = high res)<br />
                Other bits may be used in the future; use a simple bit<br />
                test rather than checking for specific word values.<br />
16 words        palette<br />
16000 words    picture data (screen memory)<br />
-----------<br />
32034 bytes    total<br />
<br />
<br />
&lt;DEGAS Elite&gt;   *.PI1 (low resolution)<br />
                *.PI2 (medium resolution)<br />
                *.PI3 (high resolution)<br />
<br />
1 word          resolution (0 = low res, 1 = medium res, 2 = high res)<br />
                Other bits may be used in the future; use a simple bit<br />
                test rather than checking for specific word values.<br />
16 words        palette<br />
16000 words     picture data (screen memory)<br />
4 words         left color animtion limit table (starting color numbers)<br />
4 words         right color animation limit table (ending color numbers)<br />
4 words         animation channel direction flag (0 = left, 1 = off, 2 = right)<br />
4 words         128 - animation channel delay in 1/60's of a second. [0 - 128]<br />
                (I.e., subtract word from 128 to get 1/60th's of a second.)<br />
-----------<br />
32066 bytes    total<br />
<br />
<br />
&lt;DEGAS Elite (Compressed)&gt;      *.PC1 (low resolution)<br />
                                *.PC2 (medium resolution)<br />
                                *.PC3 (high resolution)<br />
<br />
1 word          resolution (same as Degas, but high order bit is set;<br />
                i.e., hex 8000 = low res, hex 8001 = medium res,<br />
                hex 8002 = high res).  Other bits may be used in the<br />
                future; use a simple bit test rather than checking<br />
                for specific word values.<br />
16 words        palette<br />
&lt; 32000 bytes   control/data bytes<br />
4 words         left color animation limit table (starting color numbers)<br />
4 words         right color animation limit table (ending color numbers)<br />
4 words         animation channel direction flag [0 = left, 1 = off, 2 = right]<br />
4 words         128 - animation channel delay in 1/60's of a second. [0 - 128]<br />
                (I.e., subtract word from 128 to get 1/60th's of a second.)<br />
-----------<br />
&lt; 32066 bytes  total<br />
<br />
Compression Scheme:<br />
<br />
  PackBits compression is used (see below).  Each scan line is compressed<br />
separately; i.e., all data for a given scan line appears before any data<br />
for the next scan line.  The scan lines are specified from top to bottom<br />
(i.e., 0 is first).  For each scan line, all the data for a given bit plane<br />
appears before any data for the next higher order bit plane.  Note that this<br />
is identical to the IFF 'BODY' image data.<br />
  To clarify:  The first data in the file will be the data for the lowest<br />
order bit plane of scan line zero, followed by the data for the next higher<br />
order bit plane of scan line zero, etc., until all bit planes have been<br />
specified for scan line zero.  The next data in the file will be the data<br />
for the lowest order bit plane of scan line one, followed by the data for<br />
the next higher order bit plane of scan line one, etc., until all bit planes<br />
have been specified for all scan lines.<br />
<br />
Caveats:<br />
<br />
  DEGAS Elite's picture loading routine places some restrictions on<br />
compressed DEGAS files:<br />
<br />
        o Elite uses a 40-byte buffer to store data being decompressed.<br />
<br />
        o Whenever a control command is encountered, bytes are stuffed<br />
        in this buffer.<br />
<br />
        o The buffer is only emptied when there are EXACTLY 40<br />
        characters in it.<br />
<br />
The important conclusion here is that<br />
<br />
        No control command may cause the buffer to have more than 40<br />
        bytes in it.  In other words, all control commands must end on<br />
        or before the 40-byte boundary.<br />
<br />
Any picture violating the last condition will cause Elite to get a bus<br />
error when the picture is loaded.<br />
<br />
<br />
&lt;Tiny&gt;  *.TNY (any resolution)<a name="TN1"></a>                              <a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
        *.TN1 (low resolution)<br />
        *.TN2 (medium resolution)<br />
        *.TN3 (high resolution)<br />
<br />
  Several people have reported sightings of mutated Tiny pictures that<br />
do not follow the standard format, so let's be careful out there.  What<br />
is described here is the format that David Mumper's original<br />
TNYSTUFF.PRG produces.<br />
<br />
1 byte          resolution (same as NEO, but +3 indicates rotation<br />
                information also follows)<br />
<br />
If resolution &gt; 2 {<br />
1 byte          left and right color animation limits.  High 4 bits<br />
                hold left (start) limit; low 4 bits hold right (end) limit<br />
1 byte          direction and speed of color animation (negative value<br />
                indicates left, positive indicates right, absolute value<br />
                is delay in 1/60's of a second.<br />
1 word          color rotation duration (number of iterations)<br />
}<br />
<br />
16 words        palette<br />
1 word          number of control bytes<br />
1 word          number of data words<br />
3-10667 bytes   control bytes<br />
1-16000 words   data words<br />
-------------<br />
42-32044 bytes  total<br />
<br />
Control byte meanings:<br />
<br />
        For a given control byte, x:<br />
<br />
        x &lt; 0  Absolute value specifies the number of unique words to<br />
                take from the data section (from 1 to 127)<br />
        x = 0  1 word is taken from the control section which specifies<br />
                the number of times to repeat the next data word (from<br />
                128 to 32767)<br />
        x = 1  1 word is taken from the control section which specifies<br />
                the number of unique words to be taken from the data<br />
                section (from 128 - 32767)<br />
        x &gt; 1  Specifies the number of times to repeat the next word<br />
                taken from the data section (from 2 to 127)<br />
<br />
Format of expanded data:<br />
<br />
  The expanded data is not simply screen memory bitmap data; instead, the <br />
data is divided into four sets of vertical columns.  (This results in<br />
better compression.)  A column consists of one specific word taken<br />
from each scan line, going from top to bottom.  For example, column 1 <br />
consists of word 1 on scanline 1 followed by word 1 on scanline 2, etc., <br />
followed by word 1 on scanline 200.<br />
  The columns appear in the following order:<br />
<br />
  1st set contains columns 1, 5,  9, 13, ..., 69, 73, 77 in order<br />
  2nd set contains columns 2, 6, 10, 14, ..., 70, 74, 78 in order<br />
  3rd set contains columns 3, 7, 11, 15, ..., 71, 75, 79 in order<br />
  4th set contains columns 4, 8, 12, 16, ..., 72, 76, 80 in order<br />
<br />
Note that Tiny partitions the screen this way regardless of resolution; i.e., <br />
these aren't bitplanes.  For example, medium resoltion only has two bitplanes, <br />
but Tiny still divides medium resolution pictures into four parts.<br />
<br />
<br />
&lt;Spectrum 512&gt;  *.SPU<a name="SPU"></a>                                        <a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
<br />
80 words        first scan line of picture (unused) -- should be zeroes<br />
15920 words     picture data (screen memory) for scan lines 1 through 199<br />
9552 words      3 palettes for each scan line (the top scan line is<br />
                not included because Spectrum 512 can't display it)<br />
-----------<br />
51104 bytes    total<br />
<br />
Note that the Spectrum 512 mode's three palette changes per scan<br />
line allow more colors on the screen than normally possible, but a<br />
tremendous amount of CPU time is required to maintain the image.<br />
<br />
The Spectrum format specifies a palette of 48 colors for each scan line.<br />
To decode a Spectrum picture, one must know which of these 48 colors are<br />
in effect for a given horizontal pixel position.<br />
<br />
Given an x-coordinate (from 0 to 319) and a color index (from 0 to 15),<br />
the following C function will return the proper index into the Spectrum<br />
palette (from 0 to 47):<br />
<br />
/*<br />
*  Given an x-coordinate and a color index, returns the corresponding<br />
*  Spectrum palette index.<br />
*<br />
*  by Steve Belczyk; placed in the public domain December, 1990.<br />
*/<br />
int <br />
FindIndex(x, c)<br />
        int x, c;<br />
{<br />
        int x1;<br />
<br />
        x1 = 10 * c;<br />
<br />
        if (1 &amp; c)              /* If c is odd */<br />
                x1 = x1 - 5;<br />
        else                    /* If c is even */<br />
                x1 = x1 + 1;<br />
<br />
        if (x &gt;= x1 &amp;&amp; x &lt; x1 + 160) <br />
                c = c + 16;<br />
        else if (x &gt;= x1 + 160) <br />
                c = c + 32;<br />
<br />
        return c;<br />
}<br />
<br />
<br />
&lt;Spectrum 512 (Compressed)&gt;        *.SPC<br />
<br />
1 word          flag word [&#36;5350 or "SP"]<br />
1 word          reserved for future use [always 0]<br />
1 long          length of data bit map<br />
1 long          length of color bit map<br />
&lt;= 32092 bytes  compressed data bit map<br />
&lt;= 17910 bytes  compressed color bit map<br />
--------------<br />
&lt;= 50014 bytes  total<br />
<br />
Data compression:<br />
<br />
  Compression is via a modified run length encoding (RLE) scheme,<br />
similar to DEGAS compressed and Tiny.  The data map is stored as a<br />
sequence of records.  Each record consists of a header byte followed by<br />
one or more data bytes.  The meaning of the header byte is as follows:<br />
<br />
        For a given header byte, x:<br />
<br />
          0 &lt;= x &lt;= 127  Use the next x + 1 bytes literally (no repetition)<br />
        -128 &lt;= x &lt;=  -1  Use the next byte -x + 2 times<br />
<br />
The data appears in the following order:<br />
<br />
        1. Picture data, bit plane 0, scan lines 1 - 199<br />
        2. Picture data, bit plane 1, scan lines 1 - 199<br />
        3. Picture data, bit plane 2, scan lines 1 - 199<br />
        4. Picture data, bit plane 3, scan lines 1 - 199<br />
<br />
Decompression of data ends when 31840 data bytes have been used.<br />
<br />
Color map compression:<br />
<br />
  Each 16-word palette is compressed separately.  There are three<br />
palettes for each scan line (597 total).  The color map is stored as a<br />
sequence of records.  Each record starts with a 1-word bit vector which<br />
specifies which of the 16 palette entries are included in the data<br />
following the bit vector (1 = included, 0 = not included).  If a palette<br />
entry is not included, it is assumed to be zero (black).  The least<br />
significant bit of the bit vector refers to palette entry zero, while the<br />
most significant bit refers to palette entry 15.  Bit 15 must be zero,<br />
since Spectrum 512 does not use palette entry 15.  Bit 0 should also be<br />
zero, since Spectrum 512 always makes the background color black.<br />
  The words specifying the values for the palette entries indicated in<br />
the bit vector follow the bit vector itself, in order (0 - 15).<br />
<br />
NOTE:  Regarding Spectrum pictures, Shamus McBride reports the following:<br />
<br />
        "... [The Picture Formats List] says bit 15 of the color map vector<br />
        must be zero. I've encountered quite a few files where [bit 15] is <br />
        set (with no associated palette entry)..."<br />
<br />
<br />
&lt;Spectrum 512 (Smooshed)&gt;          *.SPS<br />
<br />
  This format compresses Spectrum 512 pictures better than the standard<br />
method.  There are at least two programs that support this format, SPSLIDEX<br />
and ANISPEC, although the two seem to differ slightly in their interpretation<br />
of the format.<br />
  One point of interest: Shamus McBride deciphered this format without an ST!<br />
<br />
1 word          5350 (hex) ("SP")<br />
1 word          0 (reserved for future use)<br />
1 long          length of data bit map<br />
1 long          length of color bit map<br />
&lt;= ? bytes      compressed data bit map<br />
&lt;= ? bytes      compressed color bit map<br />
----------<br />
&lt; ?  bytes      total<br />
<br />
Data compression:<br />
<br />
  Compression is via a modified run length encoding (RLE) scheme,<br />
similar to that used in Spectrum Compressed (*.SPC) pictures.<br />
<br />
The data map is stored as a sequence of records.  Each record consists of a<br />
header byte followed by one or more data bytes.  The meaning of the header<br />
byte is as follows:<br />
<br />
        For a given header byte, x (unsigned):<br />
<br />
          0 &lt;= x &lt;= 127    Use the next byte x + 3 times<br />
        128 &lt;= x &lt;= 255    Use the next x - 128 + 1 bytes literally<br />
                           (no repetition)<br />
<br />
There are two kinds of *.SPS files.<br />
<br />
The data may appear in the same order as *.SPC files (SPSLIDEX format?):<br />
<br />
        1. Picture data, bit plane 0, scan lines 1 - 199<br />
        2. Picture data, bit plane 1, scan lines 1 - 199<br />
        3. Picture data, bit plane 2, scan lines 1 - 199<br />
        4. Picture data, bit plane 3, scan lines 1 - 199<br />
<br />
The second variant (ANISPEC format?) encodes the data as byte wide vertical<br />
strips:<br />
<br />
        Picture data, bit plane 0, scan line  1, columns  0 -  7.<br />
        Picture data, bit plane 0, scan line  2, columns  0 -  7.<br />
        Picture data, bit plane 0, scan line  3, columns  0 -  7.<br />
        . . .<br />
        Picture data, bit plane 0, scan line 199, columns  0 -  7.<br />
        Picture data, bit plane 0, scan line  1, columns  8 -  15.<br />
        Picture data, bit plane 0, scan line  2, columns  8 -  15.<br />
        . . .<br />
        Picture data, bit plane 0, scan line 199, columns 312 - 319.<br />
        Picture data, bit plane 1, scan line  1, columns  0 -  7.<br />
        . . .<br />
        Picture data, bit plane 3, scan line 198, columns 312 - 319<br />
        Picture data, bit plane 3, scan line 199, columns 312 - 319.<br />
<br />
A for loop to process that data would look like<br />
<br />
        for (plane = 0; plane &lt; 4; plane++)<br />
            for (x = 0; x &lt; 320; x += 8)<br />
                for (y = 1; y &lt; 200; y++)<br />
                    for (x1 = 0; x1 &lt; 8; x1++)<br />
                        image[y, x + x1] = ...<br />
<br />
Color map compression:<br />
<br />
  Color map compression is similar to *.SPC color map compression, but<br />
the map is compressed as a string of bits, rather than words.  There are<br />
597 records (one for each palette). Each record is composed of a 14-bit<br />
header followed by a number of 9-bit palette entries.  The 14-bit header<br />
specifies which palette entries follow (1 = included, 0 = not included).<br />
The most significant bit of the header refers to palette entry 1, while<br />
the least significant bit refers to palette 14.  Palette entries 0 and 15<br />
are forced to black (zero).  Each palette entry is encoded as "rrrgggbbb".<br />
<br />
The format of the palette is described above in the section on uncompressed<br />
Spectrum pictures (*.SPU).<br />
<br />
<br />
&lt;Art Director&gt;  *.ART (low resolution only)<a name="ART"></a>                  <a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
<br />
16000 words     picture data (screen memory)<br />
16 words        palette<br />
15 * 16 words   15 more palettes for animation<br />
-------------<br />
32512 bytes    total<br />
<br />
<br />
&lt;C.O.L.R. Object Editor Mural&gt;        *.MUR (low resolution only)<a name="MUR"></a><br />
<br />
16000 words      picture data (screen memory)<br />
                (palettes are stored in separate files)<br />
-----------<br />
32000 bytes    total<br />
<br />
<br />
&lt;Doodle&gt;        *.DOO (high resolution only)<a name="DOO"></a>                <a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
<br />
16000 words     picture data (screen memory)<br />
-----------<br />
32000 bytes     total<br />
<br />
<br />
&lt;Cyber Paint Sequence&gt;  *.SEQ (low resolution only)<a name="SEQ"></a>          <a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
<br />
  This format, while fairly complex, yields excellent compression of animated<br />
images while offering reasonably fast decompression times.<br />
<br />
1 word          magic number [&#36;FEDB or &#36;FEDC]<br />
1 word          version number<br />
1 long          number of frames<br />
1 word          speed (high byte is vblanks per frame)<br />
118 bytes       reserved<br />
---------<br />
128 bytes      total for .SEQ header<br />
<br />
for each frame {<br />
1 long          offset to data for this frame, in bytes [basically useless]<br />
}<br />
<br />
for each frame {<br />
1 word          type (ignored?)<br />
1 word          resolution [always 0]<br />
16 words        palette<br />
12 bytes        filename [usually "        .  "]<br />
1 word          color animation limits [not used]<br />
1 word          color animation speed and direction [not used]<br />
1 word          number of color steps [not used]<br />
1 word          x offset for this frame [0 - 319]<br />
1 word          y offset for this frame [0 - 199]<br />
1 word          width of this frame, in pixels (may be 0, see below)<br />
1 word          height of this frame, in pixels (may be 0, see below)<br />
1 byte          operation [0 = copy, 1 = exclusive or]<br />
1 byte          storage method [0 = uncompressed, 1 = compressed]<br />
1 long          length of data in bytes (if the data is compressed, this<br />
                will be the size of the compressed data BEFORE decompression)<br />
60 bytes        reserved                <br />
--------<br />
128 bytes      total for frame header<br />
<br />
? bytes        data<br />
}<br />
<br />
  Frames are "delta-compressed," meaning that only the changes from one<br />
frame to the next are stored.  On the ST, .SEQ files are always full-screen<br />
low resolution animations, so the sequence resulting from expanding all the<br />
data will be n 320 by 200 pixel low resolution screens, where n is given in<br />
the .SEQ header.<br />
  <br />
  Since only the changes from frame to frame are stored, image data for a<br />
frame will rarely be 320x200 (except for the very first frame, which will <br />
always be a full screen).  Instead what is stored is the smallest rectangular<br />
region on the screen that contains all the changes from the previous frame to<br />
the current frame.  The x offset and y offset in the frame header determine<br />
where the upper left corner of the "change box" lies, and the width and height<br />
specify the box's size.<br />
<br />
  Additionally, each "change box" is stored in one of five ways.  For each<br />
  of these, the screen is assumed to have the full-screen image from the last<br />
  frame on it.<br />
  <br />
  o uncompressed copy:  The data for this frame is uncompressed image data,<br />
    and is simply copied onto the screen at position (x, y) specified<br />
    in the frame header.<br />
<br />
  o uncompressed eor:  The data for this frame is exclusive or'ed with the<br />
    screen at position (x, y).<br />
<br />
  o compressed copy:  The data for this frame must be decompressed (see <br />
    below), and then copied onto the screen at position (x, y) specified<br />
    in the frame header.<br />
<br />
  o compressed eor:  The data for this frame must be decompressed (see <br />
    below), and then exclusive or'ed with the screen RAM at position (x, y).<br />
<br />
  o null frame:  The width and/or height of this frame is 0, so this<br />
    frame is the same as the previous frame.<br />
  <br />
  Of the 5 methods above, the one that results in the smallest amount<br />
  of data being stored for a particular is used for that frame.<br />
  <br />
Compression Scheme:<br />
<br />
  Compression is similar to that employed by Tiny, but is not quite as<br />
space-efficient.<br />
<br />
Control word meanings:<br />
<br />
        For a given control word, x:<br />
<br />
        x &lt; 0  Absolute value specifies the number of unique words to<br />
                take from the data section (from 1 to 32767).<br />
        x &gt; 0  Specifies the number of times to repeat the next word<br />
                taken from the data section (from 1 to 32767).<br />
<br />
        Note that a 0 control word is meaningless.<br />
<br />
Format of expanded data:<br />
<br />
  The expanded data is not simply screen memory bitmap data; instead the four<br />
bitplanes are separated, and the data within each bitplane is presented<br />
vertically instead of horizontally.  (This results in better compression.)<br />
<br />
  To clarify, data for a full screen would appear in the following order:<br />
  <br />
  bitplane 0, word 0, scanline 0<br />
  bitplane 0, word 0, scanline 1<br />
  ...<br />
  bitplane 0, word 0, scanline 199<br />
  bitplane 0, word 1, scanline 0<br />
  bitplane 0, word 1, scanline 1<br />
  ...<br />
  bitplane 0, word 1, scanline 199<br />
  ... <br />
  bitplane 0, word 79, scanline 199<br />
  bitplane 1, word 0, scanline 0<br />
  ... <br />
  bitplane 3, word 79, scanline 199<br />
<br />
Note however, that the data does not usually refer to an entire screen, but<br />
rather to the smaller "change box," whose size is given in the frame header.<br />
<br />
<br />
&lt;Animatic Film&gt; *.FLM (low resolution only)<a name="FLM"></a>                  <a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
<br />
1 word          number of frames<br />
16 words        palette<br />
1 word          speed (0 - 99; value is 99 - # vblanks to delay between frames)<br />
1 word          direction (0 = forwards, 1 = backwards)<br />
1 word          end action (what to do after the last frame)<br />
                0 = pause, then repeat from beginning<br />
                1 = immediately repeat from beginning<br />
                2 = reverse (change direction)<br />
1 word          width of film in pixels<br />
1 word          height of film in pixels<br />
1 word          Animatic version number (major) [&lt; 2]<br />
1 word          Animatic version number (minor)<br />
1 long          magic number 27182818 (hex)<br />
3 longs        reserved for expansion (should be all zeros)<br />
--------<br />
32 words        total for header<br />
<br />
? words        image data (words of screen memory) for each frame, in order<br />
<br />
<br />
&lt;Animaster Sprite Bank&gt; *.ASB (low resolution only)<br />
<br />
1 word          number of frames - 1<br />
1 word          ?<br />
1 byte          maximum width, in pixels<br />
1 byte          maximum height, in pixels<br />
16 words        palette<br />
--------<br />
38 bytes        total for header<br />
<br />
For each frame {<br />
1 word          width of this frame (in pixels) - 1<br />
1 word          height of this frame (in pixels) - 1<br />
1 word          ? <br />
? words        image data (words of screen memory)<br />
}<br />
<br />
<br />
&lt;STOS&gt;  *.MBK<a name="MBK"></a>                                                <a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
<br />
9 words        ?<br />
1 long          &#36;19861987 (magic number?)<br />
1 long          offset from this long to header for low resolution <br />
                parameter block (if past end of file, no low res frames)<br />
1 long          offset from this long to header for med resolution <br />
                parameter block (if past end of file, no med res frames)<br />
1 long          offset from this long to header for high resolution <br />
                parameter block (if past end of file, no high res frames)<br />
1 word          number of low resolution frames<br />
1 word          number of medium resolution frames<br />
1 word          number of high resolution frames<br />
<br />
For each frame {<br />
1 long          offset to data (probably only used internally by STOS)<br />
1 byte          width in words (multiply by 16 to get width in pixels)<br />
1 byte          height in pixels<br />
1 byte          X hotspot location<br />
1 byte          Y hotspot location<br />
}<br />
<br />
(The format implies other stuff could be here.)<br />
<br />
1 long          ["PALT" &#36;50414C54]<br />
16 words        palette<br />
<br />
?              words of data for each frame, in the order mentioned in the<br />
                header.  Monoplanar mask data follows image data for each frame.<br />
----------<br />
? words        total<br />
<br />
  The frames often seem to be in semi-random order, not necessarily in <br />
the order they are to be animated. <br />
<br />
<br />
&lt;GEM Bit Image&gt; *.IMG<a name="IMG"></a>                                        <a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
<br />
1 word          version number of image file [1]<br />
1 word          length of header in words [usually 8]<br />
1 word          number of color planes [1 for monochrome]<br />
1 word          pattern length in bytes [1-8, usually 2 for screen images]<br />
1 word          pixel width in microns (1/1000 mm, 25400 microns per inch)<br />
1 word          pixel height in microns<br />
1 word          line width in pixels<br />
1 word          number of lines<br />
-------<br />
? words        header length defined in 2nd word of header<br />
<br />
? bytes        data<br />
<br />
NOTES: If the image is a color image (planes &gt; 1), the planes are stored<br />
separately starting with plane 0 -- see the extended .IMG format<br />
description below for details.  There is, however, no standard way of<br />
storing the color palette.  Some programs may save the palette in separate<br />
files, some may extend the header.  For this reason, you should never<br />
assume the header is 8 words long, always get the header length from the<br />
2nd word of the header.  Also, the line width in the 7th word is the number<br />
of pixels in a line.  Since the data is encoded in byte-wide packets, the<br />
actual unpacked line width is always a multiple of 8, and may be 1-7 pixels<br />
longer than the length specified in the header.<br />
<br />
For each byte x in the data section,<br />
<br />
        x = 0          Pattern/scanline run.<br />
                        Read the next byte, n (unsigned).<br />
<br />
                        If n &gt; 0 then:<br />
                                Read a number of bytes equal to the "pattern<br />
                                length" word in the header.  Repeat this<br />
                                pattern n times.<br />
<br />
                        If n = 0 then:<br />
                                Scanline run.  Data for the next scanline<br />
                                is to be used multiple times.  Read the<br />
                                following record:<br />
<br />
                                1 byte          flag byte [&#36;FF]<br />
                                1 byte          number of times to use<br />
                                                next scanline data<br />
<br />
                                The data for the next scanline follows,<br />
                                compressed normally.<br />
<br />
        x = 80 (hex)    Uncompressed bit string.  The next byte<br />
                        determines the number of bytes to use<br />
                        literally.  The literal data bytes follow.<br />
<br />
        otherwise       Solid run.  The value of x determines<br />
                        what to draw.  The high bit specifies whether<br />
                        the pixels are set or cleared.  A 1 indicates<br />
                        a byte-run using &#36;FF, a 0 indicates a byte-run<br />
                        using &#36;00.  The low 7 bits, taken as an unsigned<br />
                        quantity, specify the length of the run in bytes.<br />
<br />
<br />
&lt;GEM Bit Image, Extended&gt;  *.IMG<br />
<br />
As mentioned above, there is no completely standard way to store color<br />
images in .IMG files.  However, one approach is fairly common, and has<br />
become known as the "XIMG" format.<br />
<br />
Though there are many similarities between this and the previous format,<br />
I've given the two formats separate entries to underscore the fact that<br />
assuming a particular encoding of color images in .IMG files is risky.<br />
<br />
1 word          version number of image file<br />
1 word          length of header in words<br />
1 word          number of color planes [2, 4, 8, 16, or 24]<br />
1 word          pattern length in bytes [1-8, usually 2 for screen images]<br />
1 word          pixel width in microns (1/1000 mm, 25400 microns per inch)<br />
1 word          pixel height in microns<br />
1 word          line width in pixels<br />
1 word          number of lines<br />
1 long          ["XIMG" &#36;58494D47]<br />
1 word          color format [0]<br />
<br />
If #planes is 2, 4, or 8, then for each color [there are 2^#planes colors] {<br />
3 words         RGB triple for first pen (0...1000, 0...1000, 0...1000)<br />
                [This color specification can be passed directly to the<br />
                standard vs_color function.]<br />
}<br />
<br />
-------<br />
? words         header length defined in 2nd word of header<br />
<br />
? bytes         data<br />
<br />
<br />
If the third word specifies that there are 16 or 24 planes, the image data<br />
is true-color rather than palette-based, and the image is separated into<br />
"pseudo-planes" as follows:<br />
<br />
        16-bit data:    5 red planes, 6 green planes, 5 blue planes<br />
        24-bit data:    8 red planes, 8 green planes, 8 blue planes<br />
<br />
Note that the pseudo-planes appear *in this order* in the image data.<br />
<br />
Color image data is compressed as described above (in the standard .IMG<br />
format), and the image data is stored in the following order:<br />
        <br />
        line 0, plane 0<br />
        line 0, plane 1<br />
        ...<br />
        line 0, plane p<br />
        line 1, plane 0<br />
        ...<br />
<br />
Note that the scanline run compression is a bit more constrained for color<br />
images -- an entire *scanline* gets repeated, not a single *plane* of a<br />
scanline.  In this case, the scanline run header [0, 0, &#36;FF, n] is followed<br />
by the scanline data, in the typical order -- plane 0, plane 1, ... plane p.<br />
<br />
NOTE: There is another variant of .IMG that has 'STTT' in place of 'XIMG'.<br />
Chris Ridd says this format is no longer used because it's device<br />
dependent.  In any case, we don't have enough examples to properly document<br />
it.<br />
<br />
<br />
&lt;GEM Metafile&gt;  *.GEM<br />
<br />
Marcel Boom &lt;mboom@mswe.dnet.ms.philips.nl&gt; recently sent me this<br />
format description.  I have reproduced it here, largely unchanged.<br />
<br />
The file consists out of a header and the data records. The header has<br />
the following format:<br />
<br />
word mf_header:         should be -1, which indicates a metafile<br />
word mf_hlength:        The length of the header part (usually 24 words)<br />
word mf_version:        Version number (usually 101)<br />
word mf_ndcrcfl:        0: NDC coordinates, 2: Raster coordinates<br />
word mf_extends1:       Optional, minimal used x coordinate<br />
word mf_extends2:       Optional, minimal used y coordinate<br />
word mf_extends3:       Optional, maximal used x coordinate<br />
word mf_extends4:       Optional, maximal used y coordinate<br />
word mf_width:          Optional, page width in 0.1 mm<br />
word mf_height:         Optional, page height in 0.1 mm<br />
word mf_coords1:        Optional, coordinate system param 1<br />
word mf_coords2:        Optional, coordinate system param 2<br />
word mf_coords3:        Optional, coordinate system param 3<br />
word mf_coords4:        Optional, coordinate system param 4<br />
word mf_imgflag:        0: No images, 1 contains bit images<br />
word mf_reserved1:      reserved.<br />
.<br />
.<br />
word mf_reserved9:      reserved.<br />
<br />
After the header follows the data records of the following format:<br />
 <br />
word 0:                 VDI command number<br />
word 1:                 n: Number of parameters for ptsin array<br />
word 2:                 m: Number of parameters for intin array<br />
word 3:                 Subopcode<br />
word 4 to 4+n:          ptsin array<br />
word 4+n to 4+n+m:      intin array<br />
<br />
A VDI command number of -1 signals the end of file.<br />
<br />
VDI command numbers:<br />
  5:  Escape functions:<br />
        Subopcode:<br />
                1:      Inquire addressable character cells<br />
                2:      Exit alpha mode<br />
                3:      Enter alpha mode<br />
                20:     Form advance<br />
                21:     Output window<br />
                22:     Clear display list<br />
                23:     Output bit image file<br />
                98:     Update metafile extents<br />
                99:     Write metafile item<br />
                100:    Change GEM VDI filename<br />
    6:  Polyline<br />
    7:  Polymarker<br />
    8:  Text<br />
    9:  Filled area<br />
    11: GDP:<br />
        subopcode:<br />
                1:      Bar<br />
                2:      Arc<br />
                3:      Pie<br />
                4:      Circle<br />
                5:      Ellipse<br />
                6:      Elliptical arc<br />
                7:      Elliptical Pie<br />
                8:      Rounded rectangle<br />
                9:      Filled rounded rectangle<br />
                10:     Jutified graphic text<br />
    12: Set character height, absolute mode<br />
    13: Set character baseline vector<br />
    14: Set color representation<br />
    15: Set polyline linetype<br />
    16: Set polyline line width<br />
    17: Set polyline color index<br />
    18: Set polymarker type<br />
    19: Set polymarker height<br />
    20: Set polymarker color index<br />
    21: Set text face<br />
    22: Set graphic text color index<br />
    23: Set fill interior style<br />
    24: Set fill style index<br />
    25: Set fill color index<br />
    26: Inquire color representation    <br />
    32: Set writing mode<br />
    35: Inquire current polyline attributes<br />
    36: Inquire current polymarker attributes<br />
    37: Inquire current fill area attributes<br />
    38: Inquire current graphic text attributes<br />
    39: Set graphic text allignment<br />
    102: Extended inquire function<br />
    103: Countour fill<br />
    104: Set fill perimeter visibility<br />
    106: Set graphic text special effects<br />
    107: Set character cell height, points mode<br />
    108: Set polyline end styles<br />
    112: Set user defines fill pattern<br />
    113: Set user defined line style pattern<br />
    114: Fill rectangle<br />
    117: Inquire character cell width<br />
    129: Set clipping rectangle<br />
    131: Inquire current face information<br />
<br />
The meaning of the arrays can be found in the several GEM programming books. <br />
<br />
NOTE: The word qualifier is not the Motorola word, but the Intel word,<br />
so high and low byte are swapped!<br />
<br />
<br />
&lt;STAD&gt;          *.PAC (high resolution only)<a name="PAC"></a>                <a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
<br />
4 bytes         "pM86" (vertically packed) or "pM85" (horizontally packed)<br />
1 byte          id byte<br />
1 byte          pack byte (most frequently occuring byte in bitmap)<br />
1 byte          "special" byte<br />
-------<br />
7 bytes         total for header<br />
<br />
? bytes         data<br />
<br />
The data is encoded as follows.  For each byte x in the data section:<br />
<br />
        x = id byte            Read one more byte, n.  Use pack byte <br />
                                n + 1 times.<br />
        x = "special" byte      Read two more bytes, d, and n (in order).<br />
                                Use byte d n times.<br />
        otherwise              Use byte x literally.<br />
<br />
 <br />
&lt;Imagic Film/Picture&gt;           *.IC1 (low resolution)<a name="IC1"></a>      <a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
                                *.IC2 (medium resolution)<br />
                                *.IC3 (high resolution)<br />
<br />
4 bytes         "IMDC"<br />
1 word          resolution (0 = low res, 1 = medium res, 2 = high res)<br />
16 words        palette<br />
1 word          date (GEMDOS format)<br />
1 word          time (GEMDOS format)<br />
8 bytes         name of base picture file (for delta compression), or zeroes<br />
1 word          length of data (?)<br />
1 long          registration number<br />
8 bytes         reserved<br />
1 byte          compressed? (0 = no, 1 = yes)<br />
<br />
If compressed {<br />
1 byte          delta-compressed? (-1 = no, &gt; -1 = yes)<br />
1 byte          ?<br />
1 byte          escape byte<br />
}<br />
-------<br />
65 bytes        total for header (68 bytes if compressed)<br />
<br />
? bytes         data<br />
<br />
  Compressed data may be either stand-alone or delta-compressed (relative<br />
to the base picture named in the header).  Delta compression involves<br />
storing only how the picture differs from the base picture (i.e., only<br />
portions of the screen that have changed are stored).  This is used to<br />
to encode animated sequences efficiently.<br />
<br />
Compressed data, stand-alone:<br />
<br />
For each byte x in the data section:<br />
<br />
        x = escape byte        Read one more byte, n.  (n is unsigned).<br />
<br />
                                If n &gt;= 2, use the next byte n times.<br />
                                If n = 1, keep reading bytes until a<br />
                                byte k not equal to 1 is encountered.<br />
                                Then read the next byte d.<br />
                                If the number of 1 bytes encountered is o,<br />
                                use d (256 * o + k) times.  I.e.,<br />
<br />
                                if (n == 1) {<br />
                                        o = 0;<br />
                                        while (n == 1) {<br />
                                                o++;<br />
                                                n = next byte;<br />
                                        }<br />
<br />
                                        k = n;<br />
                                        d = next byte;<br />
<br />
                                        Use d (256 * o + k) times.<br />
                                }<br />
                                else {<br />
                                        d = next byte;<br />
                                        Use d (n) times.<br />
                                }<br />
<br />
        x != escape byte        Use x literally.<br />
<br />
Compressed data, delta compressed:<br />
<br />
For each byte x in the data section:<br />
<br />
        x = escape byte        Read one more byte, n.  (n is unsigned).<br />
<br />
                                If n &gt;= 3, use the next byte n times.<br />
                                If n = 1, do the same as for n = 1 in<br />
                                stand-alone compression (above).<br />
                                If n = 2, then set n = next byte.<br />
                                        If n = 0, end of picture.<br />
                                        If n &gt;= 2, take n bytes from base<br />
                                        picture.<br />
                                        If n = 1, do the same as for n = 1<br />
                                        in stand-alone compression (above),<br />
                                        but take (256 * o + k) bytes from <br />
                                        base picture.<br />
<br />
        x != escape byte        Use x literally.<br />
<br />
<br />
&lt;IFF Format&gt;    *.IFF<a name="IFF"></a>                                        <a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
<br />
4 bytes        "FORM" (FORM chunk ID)<br />
1 long          length of file that follows<br />
4 bytes        "ILBM" (InterLeaved BitMap file ID)<br />
<br />
4 bytes        "BMHD" (BitMap HeaDer chunk ID)<br />
1 long          length of chunk [20]<br />
20 bytes        1 word = image width in pixels<br />
                1 word = image height in lines<br />
                1 word = image x-offset [usually 0]<br />
                1 word = image y-offset [usually 0]<br />
                1 byte = # bitplanes<br />
                1 byte = mask (0=no, 1=impl., 2=transparent, 3=lasso)<br />
                1 byte = compressed [1] or uncompressed [0]<br />
                1 byte = unused [0]<br />
                1 word = transparent color (for mask=2)<br />
                1 byte = x-aspect [5=640x200, 10=320x200/640x400, 20=320x400]<br />
                1 byte = y-aspect [11]<br />
                1 word = page width (usually the same as image width)<br />
                1 word = page height (usually the same as image height)<br />
<br />
4 bytes        "CMAP" (ColorMAP chunk ID)<br />
1 long          length of chunk [3*n where n is the # colors]<br />
3n bytes        3 bytes per RGB color.  Each color value is a byte<br />
                and the actual color value is left-justified in the<br />
                byte such that the most significant bit of the value<br />
                is the MSB of the byte.  (ie. a color value of 15 (&#36;0F)<br />
                is stored as &#36;F0)  The bytes are stored in R,G,B order.<br />
<br />
4 bytes        "CRNG" (Color RaNGe chunk ID)<br />
1 long          length of chunk [8]<br />
8 bytes         1 word = reserved [0]<br />
                1 word = animation speed (16384 = 60 steps per second)<br />
                1 word = active [1] or inactive [0]<br />
                1 byte = left/lower color animation limit<br />
                1 byte = right/upper color animation limit<br />
 <br />
4 bytes         "CAMG" (Commodore AMiGa viewport mode chunk ID)<br />
1 long          length of chunk [4]<br />
1 long          viewport mode bits (bit 11 = HAM, bit 3 = interlaced)<br />
<br />
4 bytes         "BODY" (BODY chunk ID)<br />
1 long          length of chunk [# bytes of image data that follow]<br />
? bytes         actual image data<br />
<br />
NOTES: Some of these chunks may not be present in every IFF file, and may<br />
not be in this order.  You should always look for the ID bytes to find a<br />
certain chunk.  All chunk IDs are followed by a long value that tells the<br />
size of the chunk (note that "ILBM" is not a chunk ID).  This is the number of<br />
bytes that FOLLOW the 4 ID bytes and size longword.  The exception to this is<br />
the FORM chunk.  The size longword that follows the FORM ID is the size of the<br />
remainder of the file.  The FORM chunk must always be the first chunk in an<br />
IFF file.<br />
<br />
The R,G,B ranges of AMIGA and ST are different (AMIGA 0...15, ST 0...7),<br />
as is the maximum number of bitplanes (AMIGA: 5, ST: 4).<br />
<br />
Format of body data<br />
<br />
An expanded picture is simply a bitmap.  The packing method is PackBits<br />
(see below), and is identical to MacPaint and DEGAS Elite compressed.<br />
<br />
The (decompressed) body data appears in the following order:<br />
<br />
        line 1 plane 0 ... line 1 plane 1 ... ... line 1 plane m<br />
        [line 1 mask (if appropriate)]<br />
        line 2 plane 0 ... line 2 plane 1 ... ... line 2 plane m<br />
        [line 2 mask (if appropriate)]<br />
        ...<br />
        line x plane 0 ... line x plane 1 ... ... line x plane m<br />
        [line x mask (if appropriate)]<br />
<br />
The FORM chunk identifies the type of data:<br />
<br />
        "ILBM" = interleaved bit map<br />
        "8SVX" = 8-bit sample voice<br />
        "SMUS" = simple music score<br />
        "FTXT" = formatted text (Amiga)<br />
<br />
<br />
&lt;MacPaint&gt;      *.MAC<a name="MAC"></a>                                        <a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
<br />
1 long          version number [0=ignore header, 2=header valid]<br />
38 * 8 bytes    8x8 brush/fill patterns.  Each byte is a pattern row,<br />
                and the bytes map the pattern rows top to bottom.  The<br />
                patterns are stored in the order they appear at the bottom<br />
                of the MacPaint screen top to bottom, left to right.<br />
204 bytes       unused<br />
-------------<br />
512 bytes       total for header<br />
<br />
&lt; 51200 bytes   compressed bitmap data<br />
-------------<br />
&lt; 51712 bytes   total<br />
<br />
NOTE:  The version number is actually a flag to MacPaint to indicate if<br />
the brush/fill patterns are present in the file.  If the version is 0,<br />
the default patterns are used.  Therefore you can simply save a MacPaint<br />
file by writing a blank header (512 &#36;00 bytes), followed by the packed<br />
image data.<br />
<br />
Bitmap compression:<br />
<br />
  The bitmap data is for a 576 pixel by 720 pixel monochrome image.<br />
The packing method is PackBits (see below).  There are 72 bytes per<br />
scan line.  Each bit represents one pixel; 0 = white, 1 = black.<br />
<br />
<br />
&lt;RGB Intermediate Format&gt;      *.RGB (low resolution only)<br />
<br />
  This format was invented by Lars Michael to facilitate conversions between<br />
standard ST picture formats and higher resolution formats like GIF and IFF.<br />
It supports 12 bits of color resolution by keeping the red, green and blue<br />
components in separate bit planes.<br />
<br />
1 word          resolution (ignored)<br />
16 word         palette (ignored)<br />
16000 words     red plane (screen memory)<br />
1 word          resolution (ignored)<br />
16 word         palette (ignored)<br />
16000 words     green plane (screen memory)<br />
1 word          resolution (ignored)<br />
16 word         palette (ignored)<br />
16000 words     blue plane (screen memory)<br />
------------<br />
96102 bytes     total<br />
<br />
The format was derived by concatenating three DEGAS .PI1 files together -- <br />
one for each color gun.  The RGB value for a pixel is constructed by looking<br />
at the appropriate pixel in the red plane, green plane, and blue plane.  The<br />
bitplanes are in standard ST low resolution screen RAM format, but where pixel<br />
values in screen RAM refer to palette entries (0 through 15), pixel values<br />
here correspond to absolute R, G, and B values.  The red, green, and blue<br />
components for each pixel range from 0 to 15 (4 bits), yielding a total of<br />
12 bits of color information per pixel.  Not coincidentally, this is exactly<br />
the format of ST palette entries (although on ST's without the extended <br />
palette only the lower 3 bits of each color component are used).<br />
<br />
You can view a single bit plane on a standard ST by splitting the .RGB file<br />
into its three DEGAS .PI1 components and setting the palette to successively<br />
brighter shades of gray.<br />
<br />
<br />
&lt;ComputerEyes Raw Data Format&gt;  *.CE1 (low resolution)<a name="CE1"></a>      <a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
                                *.CE2 (medium resolution)                      <br />
                                <br />
1 long          [&#36;45594553 or "EYES"]<br />
1 word          resolution [0 = low res, 1 = medium res]<br />
8 words        ?<br />
If resolution = 0 {<br />
64000 bytes    red plane, 320 x 200, 1 pixel per byte<br />
64000 bytes    green plane, 320 x 200, 1 pixel per byte<br />
64000 bytes    blue plane, 320 x 200, 1 pixel per byte<br />
------------<br />
192022 bytes    total<br />
} <br />
else If resolution = 1 {<br />
128000 words    640 x 200, 1 pixel per word<br />
------------<br />
256022 bytes    total<br />
}<br />
<br />
  This is almost two formats in one:<br />
  <br />
        Low resolution:<br />
<br />
          The planes are arranged vertically, instead of horizontally.<br />
        The first byte is the red component of pixel (0,0), the second is (0,1),<br />
        and the third (0,2).  The 201st corresponds to (1,0), etc.  The 64001st<br />
        byte is the green component of (0,0).<br />
          Only the low six bits of each byte are used.<br />
<br />
        Medium resolution:<br />
<br />
          The picture is arranged vertically, instead of horizontally.<br />
        The first word is pixel (0,0), the second is (0,1), and the third<br />
        (0,2).  The 200th is (1,0) etc.<br />
          Each word is divided up into the RGB values for the corresponding<br />
        pixel, as follows:<br />
<br />
          Bit:  (MSB) 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 (LSB)<br />
                      -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --<br />
                      0 B4 B3 B2 B1 B0 G4 G3 G2 G1 G0 R4 R3 R2 R1 R0<br />
<br />
        Bit 15 is not used.<br />
<br />
<br />
&lt;PackBits Compression Algorithm&gt;<br />
<br />
The following packing algorithm originated on the Mac, was adopted by<br />
Electronic Arts/Commodore for use in the IFF standard, and then by Tom<br />
Hudson for use in DEGAS Elite.  The algorithm is currently used in<br />
MacPaint, IFF, and DEGAS Elite compressed file formats.  Each scan line<br />
is packed separately, and packing never extends beyond a scan line.<br />
<br />
For a given control byte 'n':<br />
    0 &lt;= n &lt;= 127  : use the next n + 1 bytes literally (no repetition).<br />
-127 &lt;= n &lt;= -1    : use the next byte -n + 1 times.<br />
        n = -128  : no operation, not used.<br />
<br />
-------------------------------------------------------------------------<br />
<br />
* Roland Waldi contributed extensive information on the following formats:<br />
<br />
        GEM, IMG, Doodle, STAD, Imagic Film/Picture, Art Director, IFF<br />
<br />
** John Brochu, ST picture formats guru, provided sage advice and many<br />
  corrections to the following formats:<br />
<br />
        NeoChrome, DEGAS Elite Compressed, Spectrum 512 Compressed,<br />
        GEM Bit Image, IFF, MacPaint<br />
<br />
Version of...........Sun Oct 30 12:40:13 EST 1994<br />
(Last change: Extended GEM .IMG format updated)                                <a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
<br />
<br />
</div>
</span>]]></description>
			<content:encoded><![CDATA[<span style="font-family: consolas;" class="mycode_font">[titre]Texte Original[/titre]<br />
<div style="text-align: left; margin-left: auto; margin-right: auto; background-color: #d3d3d3; border: 2px solid #808080; border-radius: 10px; padding: 12px; width: 680px; ">
<br />
                          ST Picture Formats<br />
                          ------------------<br />
                              Edited by:<br />
<br />
                              David Baggett<br />
<br />
                                Internet:<br />
                            dmb@ai.mit.edu<br />
<br />
                  (Please report errors or additions.)<br />
<br />
            Copyright &copy; 1988 -- 1995  by David M. Baggett<br />
<br />
<br />
    Non-profit redistribution of this document is permitted, provided<br />
    the document is not modified in any way.<br />
<br />
    Reproduction of this document in whole or in part for  commercial<br />
    purposes is expressly forbidden without the prior written consent<br />
    of David M. Baggett.<br />
<br />
    The  information  presented here is not guaranteed to be correct.<br />
    The editor and contributors will in no event be liable for direct,<br />
    indirect, incidental, or consequential damages resulting from the <br />
    use of the information in this document.<br />
<br />
    This document is the product of many hours of volunteer work by a<br />
    large number of people. Please respect this -- do not violate the<br />
    distribution policy.<br />
<br />
<br />
                              CONTRIBUTORS<br />
  <br />
      Steve Belczyk  Phil Blanchfield  Marcel Boom  Jason Blochowiak<br />
        John Brochu**  David Brooks  Daniel Deimert  Martyn Dryden<br />
      Neil Forsyth  Stefan Hoehn  Gerfried Klein  G. "Maddog" Knauss<br />
          Ken MacLeod  Shamus McBride  Jim McCabe  Lars Michael<br />
          Darek Mihocka  David Mumper  George Nassas  Jim Omura<br />
            Chris Ridd  George Seto  Joe Smith  Greg Wageman<br />
                      Roland Waldi*  Gerry Wheeler<br />
<br />
<br />
                                Contents<a name="contents"></a> <br />
                                --------<br />
<br />
        <a href="#NEO">NEOchrome</a>                              *.NEO<br />
        NEOchrome Animation                    *.ANI<br />
        <a href="#PI1">DEGAS</a>                                  *.PI?  ? = 1, 2, 3<br />
        DEGAS Elite                            *.PI?  ? = 1, 2, 3<br />
        DEGAS Elite (Compressed)               *.PC?  ? = 1, 2, 3<br />
        <a href="#TN1">Tiny</a>                                   *.TN?  ? = 1, 2, 3, Y<br />
        <a href="#SPU">Spectrum 512</a>                           *.SPU<br />
        Spectrum 512 (Compressed)              *.SPC<br />
        Spectrum 512 (Smooshed)                *.SPS<br />
        <a href="#ART">Art Director</a>                           *.ART<br />
        <a href="#MUR">C.O.L.R. Object Editor Mural</a>           *.MUR<br />
        <a href="#DOO">Doodle</a>                                 *.DOO<br />
        <a href="#SEQ">Cyber Paint Sequence</a>                   *.SEQ<br />
        <a href="#FLM">Animatic Film</a>                          *.FLM<br />
        <a href="#ASB">Animaster Sprite Bank</a>                  *.ASB<br />
        <a href="#MBK">STOS</a>                                   *.MBK<br />
        <a href="#IMG">GEM Bit Image</a>                          *.IMG<br />
        GEM Bit Image, Extended                *.IMG<br />
        GEM Metafile (vector graphics)         *.GEM<br />
        <a href="#PAC">STAD</a>                                   *.PAC<br />
        <a href="#IC1">Imagic Film/Picture</a>                    *.IC?  ? = 1, 2, 3<br />
        <a href="#IFF">IFF</a>                                    *.IFF<br />
        <a href="#RGB">RGB Intermediate Format</a>                *.RGB<br />
        <a href="#CE1">ComputerEyes Raw Data Format</a>           *.CE?  ? = 1, 2<br />
        <a href="#MAC">MacPaint</a>                               *.MAC<br />
        PackBits Compression Algorithm<br />
<br />
<br />
                        Introductory Information<br />
                        ------------------------<br />
word    = 2 bytes<br />
long    = 4 bytes<br />
palette = Hardware color palette, stored as 16 words.  First word is<br />
          color register zero (background), last word is color register<br />
          15.  Each word has the form:<br />
<br />
          Bit:  (MSB) 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 (LSB)<br />
                      -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --<br />
                      0  0  0  0  0 R2 R1 R0  0 G2 G1 G0  0 B2 B1 B0<br />
<br />
          R2 = MSB of red intensity<br />
          R0 = LSB of red intensity<br />
<br />
          G2 = MSB of green intensity<br />
          G0 = LSB of green intensity<br />
<br />
          B2 = MSB of blue intensity<br />
          B0 = LSB of blue intensity<br />
<br />
          Intensity ranges from 0 (color not present) to 7 (highest<br />
          intensity).<br />
<br />
          Example: { red = 7, green = 3, blue = 5 } -&gt; 0735 (hex)<br />
<br />
          Caveat:  It is wise to mask off the upper four bits of each<br />
                  palette entry, since a few programs store special<br />
                  information there (e.g., Art Studio).<br />
<br />
<br />
                            The Formats<br />
                            -----------<br />
<br />
&lt;NEOchrome&gt;    *.NEO<a name="NEO"></a>                                        <a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
<br />
1 word          flag byte [always 0]<br />
1 word          resolution [0 = low res, 1 = medium res, 2 = high res]<br />
16 words        palette<br />
12 bytes        filename [usually "        .  "]<br />
1 word          color animation limits.  High bit (bit 15) set if color<br />
                animation data is valid.  Low byte contains color animation<br />
                limits (4 most significant bits are left/lower limit,<br />
                4 least significant bits are right/upper limit).<br />
1 word          color animation speed and direction.  High bit (bit 15) set<br />
                if animation is on.  Low order byte is # vblanks per step.<br />
                If negative, scroll is left (decreasing).  Number of vblanks<br />
                between cycles is |x| - 1<br />
1 word          # of color steps (as defined in previous word) to display<br />
                picture before going to the next.  (For use in slide shows)<br />
1 word          image X offset [unused, always 0]<br />
1 word          image Y offset [unused, always 0]<br />
1 word          image width [unused, always 320]<br />
1 word          image height [unused, always 200]<br />
33 words        reserved for future expansion<br />
16000 words     picture data (screen memory)<br />
-----------<br />
32128 bytes    total<br />
<br />
<br />
&lt;NEOchrome Animation&gt;        *.ANI<br />
<br />
NOTE:      To get this feature on versions 0.9 and later select the Grabber<br />
        icon and click both mouse buttons in the eye of the second R in the<br />
        word GRABBER.<br />
          Interestingly enough, some versions of NEO only require you<br />
        to press the right button, not both.  Hmmm...<br />
<br />
1 long          magic number BABEEBEA (hex) (seems to be ignored)<br />
1 word          width of image in bytes (always divisible by 8)<br />
1 word          height of image in scan lines<br />
1 word          size of image in bytes + 10 (!)<br />
1 word          x coordinate of image (must be divisible by 16) - 1<br />
1 word          y coordinate of image - 1<br />
1 word          number of frames<br />
1 word          animation speed (# vblanks to delay between frames)<br />
1 long          reserved; should be zero<br />
--------<br />
22 bytes        total for header<br />
<br />
? words        image data (words of screen memory) for each frame, in <br />
                order<br />
<br />
<br />
&lt;DEGAS&gt;         *.PI1 (low resolution)<a name="PI1"></a>                      <a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
                *.PI2 (medium resolution)<br />
                *.PI3 (high resolution)<br />
<br />
1 word          resolution (0 = low res, 1 = medium res, 2 = high res)<br />
                Other bits may be used in the future; use a simple bit<br />
                test rather than checking for specific word values.<br />
16 words        palette<br />
16000 words    picture data (screen memory)<br />
-----------<br />
32034 bytes    total<br />
<br />
<br />
&lt;DEGAS Elite&gt;   *.PI1 (low resolution)<br />
                *.PI2 (medium resolution)<br />
                *.PI3 (high resolution)<br />
<br />
1 word          resolution (0 = low res, 1 = medium res, 2 = high res)<br />
                Other bits may be used in the future; use a simple bit<br />
                test rather than checking for specific word values.<br />
16 words        palette<br />
16000 words     picture data (screen memory)<br />
4 words         left color animtion limit table (starting color numbers)<br />
4 words         right color animation limit table (ending color numbers)<br />
4 words         animation channel direction flag (0 = left, 1 = off, 2 = right)<br />
4 words         128 - animation channel delay in 1/60's of a second. [0 - 128]<br />
                (I.e., subtract word from 128 to get 1/60th's of a second.)<br />
-----------<br />
32066 bytes    total<br />
<br />
<br />
&lt;DEGAS Elite (Compressed)&gt;      *.PC1 (low resolution)<br />
                                *.PC2 (medium resolution)<br />
                                *.PC3 (high resolution)<br />
<br />
1 word          resolution (same as Degas, but high order bit is set;<br />
                i.e., hex 8000 = low res, hex 8001 = medium res,<br />
                hex 8002 = high res).  Other bits may be used in the<br />
                future; use a simple bit test rather than checking<br />
                for specific word values.<br />
16 words        palette<br />
&lt; 32000 bytes   control/data bytes<br />
4 words         left color animation limit table (starting color numbers)<br />
4 words         right color animation limit table (ending color numbers)<br />
4 words         animation channel direction flag [0 = left, 1 = off, 2 = right]<br />
4 words         128 - animation channel delay in 1/60's of a second. [0 - 128]<br />
                (I.e., subtract word from 128 to get 1/60th's of a second.)<br />
-----------<br />
&lt; 32066 bytes  total<br />
<br />
Compression Scheme:<br />
<br />
  PackBits compression is used (see below).  Each scan line is compressed<br />
separately; i.e., all data for a given scan line appears before any data<br />
for the next scan line.  The scan lines are specified from top to bottom<br />
(i.e., 0 is first).  For each scan line, all the data for a given bit plane<br />
appears before any data for the next higher order bit plane.  Note that this<br />
is identical to the IFF 'BODY' image data.<br />
  To clarify:  The first data in the file will be the data for the lowest<br />
order bit plane of scan line zero, followed by the data for the next higher<br />
order bit plane of scan line zero, etc., until all bit planes have been<br />
specified for scan line zero.  The next data in the file will be the data<br />
for the lowest order bit plane of scan line one, followed by the data for<br />
the next higher order bit plane of scan line one, etc., until all bit planes<br />
have been specified for all scan lines.<br />
<br />
Caveats:<br />
<br />
  DEGAS Elite's picture loading routine places some restrictions on<br />
compressed DEGAS files:<br />
<br />
        o Elite uses a 40-byte buffer to store data being decompressed.<br />
<br />
        o Whenever a control command is encountered, bytes are stuffed<br />
        in this buffer.<br />
<br />
        o The buffer is only emptied when there are EXACTLY 40<br />
        characters in it.<br />
<br />
The important conclusion here is that<br />
<br />
        No control command may cause the buffer to have more than 40<br />
        bytes in it.  In other words, all control commands must end on<br />
        or before the 40-byte boundary.<br />
<br />
Any picture violating the last condition will cause Elite to get a bus<br />
error when the picture is loaded.<br />
<br />
<br />
&lt;Tiny&gt;  *.TNY (any resolution)<a name="TN1"></a>                              <a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
        *.TN1 (low resolution)<br />
        *.TN2 (medium resolution)<br />
        *.TN3 (high resolution)<br />
<br />
  Several people have reported sightings of mutated Tiny pictures that<br />
do not follow the standard format, so let's be careful out there.  What<br />
is described here is the format that David Mumper's original<br />
TNYSTUFF.PRG produces.<br />
<br />
1 byte          resolution (same as NEO, but +3 indicates rotation<br />
                information also follows)<br />
<br />
If resolution &gt; 2 {<br />
1 byte          left and right color animation limits.  High 4 bits<br />
                hold left (start) limit; low 4 bits hold right (end) limit<br />
1 byte          direction and speed of color animation (negative value<br />
                indicates left, positive indicates right, absolute value<br />
                is delay in 1/60's of a second.<br />
1 word          color rotation duration (number of iterations)<br />
}<br />
<br />
16 words        palette<br />
1 word          number of control bytes<br />
1 word          number of data words<br />
3-10667 bytes   control bytes<br />
1-16000 words   data words<br />
-------------<br />
42-32044 bytes  total<br />
<br />
Control byte meanings:<br />
<br />
        For a given control byte, x:<br />
<br />
        x &lt; 0  Absolute value specifies the number of unique words to<br />
                take from the data section (from 1 to 127)<br />
        x = 0  1 word is taken from the control section which specifies<br />
                the number of times to repeat the next data word (from<br />
                128 to 32767)<br />
        x = 1  1 word is taken from the control section which specifies<br />
                the number of unique words to be taken from the data<br />
                section (from 128 - 32767)<br />
        x &gt; 1  Specifies the number of times to repeat the next word<br />
                taken from the data section (from 2 to 127)<br />
<br />
Format of expanded data:<br />
<br />
  The expanded data is not simply screen memory bitmap data; instead, the <br />
data is divided into four sets of vertical columns.  (This results in<br />
better compression.)  A column consists of one specific word taken<br />
from each scan line, going from top to bottom.  For example, column 1 <br />
consists of word 1 on scanline 1 followed by word 1 on scanline 2, etc., <br />
followed by word 1 on scanline 200.<br />
  The columns appear in the following order:<br />
<br />
  1st set contains columns 1, 5,  9, 13, ..., 69, 73, 77 in order<br />
  2nd set contains columns 2, 6, 10, 14, ..., 70, 74, 78 in order<br />
  3rd set contains columns 3, 7, 11, 15, ..., 71, 75, 79 in order<br />
  4th set contains columns 4, 8, 12, 16, ..., 72, 76, 80 in order<br />
<br />
Note that Tiny partitions the screen this way regardless of resolution; i.e., <br />
these aren't bitplanes.  For example, medium resoltion only has two bitplanes, <br />
but Tiny still divides medium resolution pictures into four parts.<br />
<br />
<br />
&lt;Spectrum 512&gt;  *.SPU<a name="SPU"></a>                                        <a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
<br />
80 words        first scan line of picture (unused) -- should be zeroes<br />
15920 words     picture data (screen memory) for scan lines 1 through 199<br />
9552 words      3 palettes for each scan line (the top scan line is<br />
                not included because Spectrum 512 can't display it)<br />
-----------<br />
51104 bytes    total<br />
<br />
Note that the Spectrum 512 mode's three palette changes per scan<br />
line allow more colors on the screen than normally possible, but a<br />
tremendous amount of CPU time is required to maintain the image.<br />
<br />
The Spectrum format specifies a palette of 48 colors for each scan line.<br />
To decode a Spectrum picture, one must know which of these 48 colors are<br />
in effect for a given horizontal pixel position.<br />
<br />
Given an x-coordinate (from 0 to 319) and a color index (from 0 to 15),<br />
the following C function will return the proper index into the Spectrum<br />
palette (from 0 to 47):<br />
<br />
/*<br />
*  Given an x-coordinate and a color index, returns the corresponding<br />
*  Spectrum palette index.<br />
*<br />
*  by Steve Belczyk; placed in the public domain December, 1990.<br />
*/<br />
int <br />
FindIndex(x, c)<br />
        int x, c;<br />
{<br />
        int x1;<br />
<br />
        x1 = 10 * c;<br />
<br />
        if (1 &amp; c)              /* If c is odd */<br />
                x1 = x1 - 5;<br />
        else                    /* If c is even */<br />
                x1 = x1 + 1;<br />
<br />
        if (x &gt;= x1 &amp;&amp; x &lt; x1 + 160) <br />
                c = c + 16;<br />
        else if (x &gt;= x1 + 160) <br />
                c = c + 32;<br />
<br />
        return c;<br />
}<br />
<br />
<br />
&lt;Spectrum 512 (Compressed)&gt;        *.SPC<br />
<br />
1 word          flag word [&#36;5350 or "SP"]<br />
1 word          reserved for future use [always 0]<br />
1 long          length of data bit map<br />
1 long          length of color bit map<br />
&lt;= 32092 bytes  compressed data bit map<br />
&lt;= 17910 bytes  compressed color bit map<br />
--------------<br />
&lt;= 50014 bytes  total<br />
<br />
Data compression:<br />
<br />
  Compression is via a modified run length encoding (RLE) scheme,<br />
similar to DEGAS compressed and Tiny.  The data map is stored as a<br />
sequence of records.  Each record consists of a header byte followed by<br />
one or more data bytes.  The meaning of the header byte is as follows:<br />
<br />
        For a given header byte, x:<br />
<br />
          0 &lt;= x &lt;= 127  Use the next x + 1 bytes literally (no repetition)<br />
        -128 &lt;= x &lt;=  -1  Use the next byte -x + 2 times<br />
<br />
The data appears in the following order:<br />
<br />
        1. Picture data, bit plane 0, scan lines 1 - 199<br />
        2. Picture data, bit plane 1, scan lines 1 - 199<br />
        3. Picture data, bit plane 2, scan lines 1 - 199<br />
        4. Picture data, bit plane 3, scan lines 1 - 199<br />
<br />
Decompression of data ends when 31840 data bytes have been used.<br />
<br />
Color map compression:<br />
<br />
  Each 16-word palette is compressed separately.  There are three<br />
palettes for each scan line (597 total).  The color map is stored as a<br />
sequence of records.  Each record starts with a 1-word bit vector which<br />
specifies which of the 16 palette entries are included in the data<br />
following the bit vector (1 = included, 0 = not included).  If a palette<br />
entry is not included, it is assumed to be zero (black).  The least<br />
significant bit of the bit vector refers to palette entry zero, while the<br />
most significant bit refers to palette entry 15.  Bit 15 must be zero,<br />
since Spectrum 512 does not use palette entry 15.  Bit 0 should also be<br />
zero, since Spectrum 512 always makes the background color black.<br />
  The words specifying the values for the palette entries indicated in<br />
the bit vector follow the bit vector itself, in order (0 - 15).<br />
<br />
NOTE:  Regarding Spectrum pictures, Shamus McBride reports the following:<br />
<br />
        "... [The Picture Formats List] says bit 15 of the color map vector<br />
        must be zero. I've encountered quite a few files where [bit 15] is <br />
        set (with no associated palette entry)..."<br />
<br />
<br />
&lt;Spectrum 512 (Smooshed)&gt;          *.SPS<br />
<br />
  This format compresses Spectrum 512 pictures better than the standard<br />
method.  There are at least two programs that support this format, SPSLIDEX<br />
and ANISPEC, although the two seem to differ slightly in their interpretation<br />
of the format.<br />
  One point of interest: Shamus McBride deciphered this format without an ST!<br />
<br />
1 word          5350 (hex) ("SP")<br />
1 word          0 (reserved for future use)<br />
1 long          length of data bit map<br />
1 long          length of color bit map<br />
&lt;= ? bytes      compressed data bit map<br />
&lt;= ? bytes      compressed color bit map<br />
----------<br />
&lt; ?  bytes      total<br />
<br />
Data compression:<br />
<br />
  Compression is via a modified run length encoding (RLE) scheme,<br />
similar to that used in Spectrum Compressed (*.SPC) pictures.<br />
<br />
The data map is stored as a sequence of records.  Each record consists of a<br />
header byte followed by one or more data bytes.  The meaning of the header<br />
byte is as follows:<br />
<br />
        For a given header byte, x (unsigned):<br />
<br />
          0 &lt;= x &lt;= 127    Use the next byte x + 3 times<br />
        128 &lt;= x &lt;= 255    Use the next x - 128 + 1 bytes literally<br />
                           (no repetition)<br />
<br />
There are two kinds of *.SPS files.<br />
<br />
The data may appear in the same order as *.SPC files (SPSLIDEX format?):<br />
<br />
        1. Picture data, bit plane 0, scan lines 1 - 199<br />
        2. Picture data, bit plane 1, scan lines 1 - 199<br />
        3. Picture data, bit plane 2, scan lines 1 - 199<br />
        4. Picture data, bit plane 3, scan lines 1 - 199<br />
<br />
The second variant (ANISPEC format?) encodes the data as byte wide vertical<br />
strips:<br />
<br />
        Picture data, bit plane 0, scan line  1, columns  0 -  7.<br />
        Picture data, bit plane 0, scan line  2, columns  0 -  7.<br />
        Picture data, bit plane 0, scan line  3, columns  0 -  7.<br />
        . . .<br />
        Picture data, bit plane 0, scan line 199, columns  0 -  7.<br />
        Picture data, bit plane 0, scan line  1, columns  8 -  15.<br />
        Picture data, bit plane 0, scan line  2, columns  8 -  15.<br />
        . . .<br />
        Picture data, bit plane 0, scan line 199, columns 312 - 319.<br />
        Picture data, bit plane 1, scan line  1, columns  0 -  7.<br />
        . . .<br />
        Picture data, bit plane 3, scan line 198, columns 312 - 319<br />
        Picture data, bit plane 3, scan line 199, columns 312 - 319.<br />
<br />
A for loop to process that data would look like<br />
<br />
        for (plane = 0; plane &lt; 4; plane++)<br />
            for (x = 0; x &lt; 320; x += 8)<br />
                for (y = 1; y &lt; 200; y++)<br />
                    for (x1 = 0; x1 &lt; 8; x1++)<br />
                        image[y, x + x1] = ...<br />
<br />
Color map compression:<br />
<br />
  Color map compression is similar to *.SPC color map compression, but<br />
the map is compressed as a string of bits, rather than words.  There are<br />
597 records (one for each palette). Each record is composed of a 14-bit<br />
header followed by a number of 9-bit palette entries.  The 14-bit header<br />
specifies which palette entries follow (1 = included, 0 = not included).<br />
The most significant bit of the header refers to palette entry 1, while<br />
the least significant bit refers to palette 14.  Palette entries 0 and 15<br />
are forced to black (zero).  Each palette entry is encoded as "rrrgggbbb".<br />
<br />
The format of the palette is described above in the section on uncompressed<br />
Spectrum pictures (*.SPU).<br />
<br />
<br />
&lt;Art Director&gt;  *.ART (low resolution only)<a name="ART"></a>                  <a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
<br />
16000 words     picture data (screen memory)<br />
16 words        palette<br />
15 * 16 words   15 more palettes for animation<br />
-------------<br />
32512 bytes    total<br />
<br />
<br />
&lt;C.O.L.R. Object Editor Mural&gt;        *.MUR (low resolution only)<a name="MUR"></a><br />
<br />
16000 words      picture data (screen memory)<br />
                (palettes are stored in separate files)<br />
-----------<br />
32000 bytes    total<br />
<br />
<br />
&lt;Doodle&gt;        *.DOO (high resolution only)<a name="DOO"></a>                <a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
<br />
16000 words     picture data (screen memory)<br />
-----------<br />
32000 bytes     total<br />
<br />
<br />
&lt;Cyber Paint Sequence&gt;  *.SEQ (low resolution only)<a name="SEQ"></a>          <a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
<br />
  This format, while fairly complex, yields excellent compression of animated<br />
images while offering reasonably fast decompression times.<br />
<br />
1 word          magic number [&#36;FEDB or &#36;FEDC]<br />
1 word          version number<br />
1 long          number of frames<br />
1 word          speed (high byte is vblanks per frame)<br />
118 bytes       reserved<br />
---------<br />
128 bytes      total for .SEQ header<br />
<br />
for each frame {<br />
1 long          offset to data for this frame, in bytes [basically useless]<br />
}<br />
<br />
for each frame {<br />
1 word          type (ignored?)<br />
1 word          resolution [always 0]<br />
16 words        palette<br />
12 bytes        filename [usually "        .  "]<br />
1 word          color animation limits [not used]<br />
1 word          color animation speed and direction [not used]<br />
1 word          number of color steps [not used]<br />
1 word          x offset for this frame [0 - 319]<br />
1 word          y offset for this frame [0 - 199]<br />
1 word          width of this frame, in pixels (may be 0, see below)<br />
1 word          height of this frame, in pixels (may be 0, see below)<br />
1 byte          operation [0 = copy, 1 = exclusive or]<br />
1 byte          storage method [0 = uncompressed, 1 = compressed]<br />
1 long          length of data in bytes (if the data is compressed, this<br />
                will be the size of the compressed data BEFORE decompression)<br />
60 bytes        reserved                <br />
--------<br />
128 bytes      total for frame header<br />
<br />
? bytes        data<br />
}<br />
<br />
  Frames are "delta-compressed," meaning that only the changes from one<br />
frame to the next are stored.  On the ST, .SEQ files are always full-screen<br />
low resolution animations, so the sequence resulting from expanding all the<br />
data will be n 320 by 200 pixel low resolution screens, where n is given in<br />
the .SEQ header.<br />
  <br />
  Since only the changes from frame to frame are stored, image data for a<br />
frame will rarely be 320x200 (except for the very first frame, which will <br />
always be a full screen).  Instead what is stored is the smallest rectangular<br />
region on the screen that contains all the changes from the previous frame to<br />
the current frame.  The x offset and y offset in the frame header determine<br />
where the upper left corner of the "change box" lies, and the width and height<br />
specify the box's size.<br />
<br />
  Additionally, each "change box" is stored in one of five ways.  For each<br />
  of these, the screen is assumed to have the full-screen image from the last<br />
  frame on it.<br />
  <br />
  o uncompressed copy:  The data for this frame is uncompressed image data,<br />
    and is simply copied onto the screen at position (x, y) specified<br />
    in the frame header.<br />
<br />
  o uncompressed eor:  The data for this frame is exclusive or'ed with the<br />
    screen at position (x, y).<br />
<br />
  o compressed copy:  The data for this frame must be decompressed (see <br />
    below), and then copied onto the screen at position (x, y) specified<br />
    in the frame header.<br />
<br />
  o compressed eor:  The data for this frame must be decompressed (see <br />
    below), and then exclusive or'ed with the screen RAM at position (x, y).<br />
<br />
  o null frame:  The width and/or height of this frame is 0, so this<br />
    frame is the same as the previous frame.<br />
  <br />
  Of the 5 methods above, the one that results in the smallest amount<br />
  of data being stored for a particular is used for that frame.<br />
  <br />
Compression Scheme:<br />
<br />
  Compression is similar to that employed by Tiny, but is not quite as<br />
space-efficient.<br />
<br />
Control word meanings:<br />
<br />
        For a given control word, x:<br />
<br />
        x &lt; 0  Absolute value specifies the number of unique words to<br />
                take from the data section (from 1 to 32767).<br />
        x &gt; 0  Specifies the number of times to repeat the next word<br />
                taken from the data section (from 1 to 32767).<br />
<br />
        Note that a 0 control word is meaningless.<br />
<br />
Format of expanded data:<br />
<br />
  The expanded data is not simply screen memory bitmap data; instead the four<br />
bitplanes are separated, and the data within each bitplane is presented<br />
vertically instead of horizontally.  (This results in better compression.)<br />
<br />
  To clarify, data for a full screen would appear in the following order:<br />
  <br />
  bitplane 0, word 0, scanline 0<br />
  bitplane 0, word 0, scanline 1<br />
  ...<br />
  bitplane 0, word 0, scanline 199<br />
  bitplane 0, word 1, scanline 0<br />
  bitplane 0, word 1, scanline 1<br />
  ...<br />
  bitplane 0, word 1, scanline 199<br />
  ... <br />
  bitplane 0, word 79, scanline 199<br />
  bitplane 1, word 0, scanline 0<br />
  ... <br />
  bitplane 3, word 79, scanline 199<br />
<br />
Note however, that the data does not usually refer to an entire screen, but<br />
rather to the smaller "change box," whose size is given in the frame header.<br />
<br />
<br />
&lt;Animatic Film&gt; *.FLM (low resolution only)<a name="FLM"></a>                  <a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
<br />
1 word          number of frames<br />
16 words        palette<br />
1 word          speed (0 - 99; value is 99 - # vblanks to delay between frames)<br />
1 word          direction (0 = forwards, 1 = backwards)<br />
1 word          end action (what to do after the last frame)<br />
                0 = pause, then repeat from beginning<br />
                1 = immediately repeat from beginning<br />
                2 = reverse (change direction)<br />
1 word          width of film in pixels<br />
1 word          height of film in pixels<br />
1 word          Animatic version number (major) [&lt; 2]<br />
1 word          Animatic version number (minor)<br />
1 long          magic number 27182818 (hex)<br />
3 longs        reserved for expansion (should be all zeros)<br />
--------<br />
32 words        total for header<br />
<br />
? words        image data (words of screen memory) for each frame, in order<br />
<br />
<br />
&lt;Animaster Sprite Bank&gt; *.ASB (low resolution only)<br />
<br />
1 word          number of frames - 1<br />
1 word          ?<br />
1 byte          maximum width, in pixels<br />
1 byte          maximum height, in pixels<br />
16 words        palette<br />
--------<br />
38 bytes        total for header<br />
<br />
For each frame {<br />
1 word          width of this frame (in pixels) - 1<br />
1 word          height of this frame (in pixels) - 1<br />
1 word          ? <br />
? words        image data (words of screen memory)<br />
}<br />
<br />
<br />
&lt;STOS&gt;  *.MBK<a name="MBK"></a>                                                <a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
<br />
9 words        ?<br />
1 long          &#36;19861987 (magic number?)<br />
1 long          offset from this long to header for low resolution <br />
                parameter block (if past end of file, no low res frames)<br />
1 long          offset from this long to header for med resolution <br />
                parameter block (if past end of file, no med res frames)<br />
1 long          offset from this long to header for high resolution <br />
                parameter block (if past end of file, no high res frames)<br />
1 word          number of low resolution frames<br />
1 word          number of medium resolution frames<br />
1 word          number of high resolution frames<br />
<br />
For each frame {<br />
1 long          offset to data (probably only used internally by STOS)<br />
1 byte          width in words (multiply by 16 to get width in pixels)<br />
1 byte          height in pixels<br />
1 byte          X hotspot location<br />
1 byte          Y hotspot location<br />
}<br />
<br />
(The format implies other stuff could be here.)<br />
<br />
1 long          ["PALT" &#36;50414C54]<br />
16 words        palette<br />
<br />
?              words of data for each frame, in the order mentioned in the<br />
                header.  Monoplanar mask data follows image data for each frame.<br />
----------<br />
? words        total<br />
<br />
  The frames often seem to be in semi-random order, not necessarily in <br />
the order they are to be animated. <br />
<br />
<br />
&lt;GEM Bit Image&gt; *.IMG<a name="IMG"></a>                                        <a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
<br />
1 word          version number of image file [1]<br />
1 word          length of header in words [usually 8]<br />
1 word          number of color planes [1 for monochrome]<br />
1 word          pattern length in bytes [1-8, usually 2 for screen images]<br />
1 word          pixel width in microns (1/1000 mm, 25400 microns per inch)<br />
1 word          pixel height in microns<br />
1 word          line width in pixels<br />
1 word          number of lines<br />
-------<br />
? words        header length defined in 2nd word of header<br />
<br />
? bytes        data<br />
<br />
NOTES: If the image is a color image (planes &gt; 1), the planes are stored<br />
separately starting with plane 0 -- see the extended .IMG format<br />
description below for details.  There is, however, no standard way of<br />
storing the color palette.  Some programs may save the palette in separate<br />
files, some may extend the header.  For this reason, you should never<br />
assume the header is 8 words long, always get the header length from the<br />
2nd word of the header.  Also, the line width in the 7th word is the number<br />
of pixels in a line.  Since the data is encoded in byte-wide packets, the<br />
actual unpacked line width is always a multiple of 8, and may be 1-7 pixels<br />
longer than the length specified in the header.<br />
<br />
For each byte x in the data section,<br />
<br />
        x = 0          Pattern/scanline run.<br />
                        Read the next byte, n (unsigned).<br />
<br />
                        If n &gt; 0 then:<br />
                                Read a number of bytes equal to the "pattern<br />
                                length" word in the header.  Repeat this<br />
                                pattern n times.<br />
<br />
                        If n = 0 then:<br />
                                Scanline run.  Data for the next scanline<br />
                                is to be used multiple times.  Read the<br />
                                following record:<br />
<br />
                                1 byte          flag byte [&#36;FF]<br />
                                1 byte          number of times to use<br />
                                                next scanline data<br />
<br />
                                The data for the next scanline follows,<br />
                                compressed normally.<br />
<br />
        x = 80 (hex)    Uncompressed bit string.  The next byte<br />
                        determines the number of bytes to use<br />
                        literally.  The literal data bytes follow.<br />
<br />
        otherwise       Solid run.  The value of x determines<br />
                        what to draw.  The high bit specifies whether<br />
                        the pixels are set or cleared.  A 1 indicates<br />
                        a byte-run using &#36;FF, a 0 indicates a byte-run<br />
                        using &#36;00.  The low 7 bits, taken as an unsigned<br />
                        quantity, specify the length of the run in bytes.<br />
<br />
<br />
&lt;GEM Bit Image, Extended&gt;  *.IMG<br />
<br />
As mentioned above, there is no completely standard way to store color<br />
images in .IMG files.  However, one approach is fairly common, and has<br />
become known as the "XIMG" format.<br />
<br />
Though there are many similarities between this and the previous format,<br />
I've given the two formats separate entries to underscore the fact that<br />
assuming a particular encoding of color images in .IMG files is risky.<br />
<br />
1 word          version number of image file<br />
1 word          length of header in words<br />
1 word          number of color planes [2, 4, 8, 16, or 24]<br />
1 word          pattern length in bytes [1-8, usually 2 for screen images]<br />
1 word          pixel width in microns (1/1000 mm, 25400 microns per inch)<br />
1 word          pixel height in microns<br />
1 word          line width in pixels<br />
1 word          number of lines<br />
1 long          ["XIMG" &#36;58494D47]<br />
1 word          color format [0]<br />
<br />
If #planes is 2, 4, or 8, then for each color [there are 2^#planes colors] {<br />
3 words         RGB triple for first pen (0...1000, 0...1000, 0...1000)<br />
                [This color specification can be passed directly to the<br />
                standard vs_color function.]<br />
}<br />
<br />
-------<br />
? words         header length defined in 2nd word of header<br />
<br />
? bytes         data<br />
<br />
<br />
If the third word specifies that there are 16 or 24 planes, the image data<br />
is true-color rather than palette-based, and the image is separated into<br />
"pseudo-planes" as follows:<br />
<br />
        16-bit data:    5 red planes, 6 green planes, 5 blue planes<br />
        24-bit data:    8 red planes, 8 green planes, 8 blue planes<br />
<br />
Note that the pseudo-planes appear *in this order* in the image data.<br />
<br />
Color image data is compressed as described above (in the standard .IMG<br />
format), and the image data is stored in the following order:<br />
        <br />
        line 0, plane 0<br />
        line 0, plane 1<br />
        ...<br />
        line 0, plane p<br />
        line 1, plane 0<br />
        ...<br />
<br />
Note that the scanline run compression is a bit more constrained for color<br />
images -- an entire *scanline* gets repeated, not a single *plane* of a<br />
scanline.  In this case, the scanline run header [0, 0, &#36;FF, n] is followed<br />
by the scanline data, in the typical order -- plane 0, plane 1, ... plane p.<br />
<br />
NOTE: There is another variant of .IMG that has 'STTT' in place of 'XIMG'.<br />
Chris Ridd says this format is no longer used because it's device<br />
dependent.  In any case, we don't have enough examples to properly document<br />
it.<br />
<br />
<br />
&lt;GEM Metafile&gt;  *.GEM<br />
<br />
Marcel Boom &lt;mboom@mswe.dnet.ms.philips.nl&gt; recently sent me this<br />
format description.  I have reproduced it here, largely unchanged.<br />
<br />
The file consists out of a header and the data records. The header has<br />
the following format:<br />
<br />
word mf_header:         should be -1, which indicates a metafile<br />
word mf_hlength:        The length of the header part (usually 24 words)<br />
word mf_version:        Version number (usually 101)<br />
word mf_ndcrcfl:        0: NDC coordinates, 2: Raster coordinates<br />
word mf_extends1:       Optional, minimal used x coordinate<br />
word mf_extends2:       Optional, minimal used y coordinate<br />
word mf_extends3:       Optional, maximal used x coordinate<br />
word mf_extends4:       Optional, maximal used y coordinate<br />
word mf_width:          Optional, page width in 0.1 mm<br />
word mf_height:         Optional, page height in 0.1 mm<br />
word mf_coords1:        Optional, coordinate system param 1<br />
word mf_coords2:        Optional, coordinate system param 2<br />
word mf_coords3:        Optional, coordinate system param 3<br />
word mf_coords4:        Optional, coordinate system param 4<br />
word mf_imgflag:        0: No images, 1 contains bit images<br />
word mf_reserved1:      reserved.<br />
.<br />
.<br />
word mf_reserved9:      reserved.<br />
<br />
After the header follows the data records of the following format:<br />
 <br />
word 0:                 VDI command number<br />
word 1:                 n: Number of parameters for ptsin array<br />
word 2:                 m: Number of parameters for intin array<br />
word 3:                 Subopcode<br />
word 4 to 4+n:          ptsin array<br />
word 4+n to 4+n+m:      intin array<br />
<br />
A VDI command number of -1 signals the end of file.<br />
<br />
VDI command numbers:<br />
  5:  Escape functions:<br />
        Subopcode:<br />
                1:      Inquire addressable character cells<br />
                2:      Exit alpha mode<br />
                3:      Enter alpha mode<br />
                20:     Form advance<br />
                21:     Output window<br />
                22:     Clear display list<br />
                23:     Output bit image file<br />
                98:     Update metafile extents<br />
                99:     Write metafile item<br />
                100:    Change GEM VDI filename<br />
    6:  Polyline<br />
    7:  Polymarker<br />
    8:  Text<br />
    9:  Filled area<br />
    11: GDP:<br />
        subopcode:<br />
                1:      Bar<br />
                2:      Arc<br />
                3:      Pie<br />
                4:      Circle<br />
                5:      Ellipse<br />
                6:      Elliptical arc<br />
                7:      Elliptical Pie<br />
                8:      Rounded rectangle<br />
                9:      Filled rounded rectangle<br />
                10:     Jutified graphic text<br />
    12: Set character height, absolute mode<br />
    13: Set character baseline vector<br />
    14: Set color representation<br />
    15: Set polyline linetype<br />
    16: Set polyline line width<br />
    17: Set polyline color index<br />
    18: Set polymarker type<br />
    19: Set polymarker height<br />
    20: Set polymarker color index<br />
    21: Set text face<br />
    22: Set graphic text color index<br />
    23: Set fill interior style<br />
    24: Set fill style index<br />
    25: Set fill color index<br />
    26: Inquire color representation    <br />
    32: Set writing mode<br />
    35: Inquire current polyline attributes<br />
    36: Inquire current polymarker attributes<br />
    37: Inquire current fill area attributes<br />
    38: Inquire current graphic text attributes<br />
    39: Set graphic text allignment<br />
    102: Extended inquire function<br />
    103: Countour fill<br />
    104: Set fill perimeter visibility<br />
    106: Set graphic text special effects<br />
    107: Set character cell height, points mode<br />
    108: Set polyline end styles<br />
    112: Set user defines fill pattern<br />
    113: Set user defined line style pattern<br />
    114: Fill rectangle<br />
    117: Inquire character cell width<br />
    129: Set clipping rectangle<br />
    131: Inquire current face information<br />
<br />
The meaning of the arrays can be found in the several GEM programming books. <br />
<br />
NOTE: The word qualifier is not the Motorola word, but the Intel word,<br />
so high and low byte are swapped!<br />
<br />
<br />
&lt;STAD&gt;          *.PAC (high resolution only)<a name="PAC"></a>                <a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
<br />
4 bytes         "pM86" (vertically packed) or "pM85" (horizontally packed)<br />
1 byte          id byte<br />
1 byte          pack byte (most frequently occuring byte in bitmap)<br />
1 byte          "special" byte<br />
-------<br />
7 bytes         total for header<br />
<br />
? bytes         data<br />
<br />
The data is encoded as follows.  For each byte x in the data section:<br />
<br />
        x = id byte            Read one more byte, n.  Use pack byte <br />
                                n + 1 times.<br />
        x = "special" byte      Read two more bytes, d, and n (in order).<br />
                                Use byte d n times.<br />
        otherwise              Use byte x literally.<br />
<br />
 <br />
&lt;Imagic Film/Picture&gt;           *.IC1 (low resolution)<a name="IC1"></a>      <a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
                                *.IC2 (medium resolution)<br />
                                *.IC3 (high resolution)<br />
<br />
4 bytes         "IMDC"<br />
1 word          resolution (0 = low res, 1 = medium res, 2 = high res)<br />
16 words        palette<br />
1 word          date (GEMDOS format)<br />
1 word          time (GEMDOS format)<br />
8 bytes         name of base picture file (for delta compression), or zeroes<br />
1 word          length of data (?)<br />
1 long          registration number<br />
8 bytes         reserved<br />
1 byte          compressed? (0 = no, 1 = yes)<br />
<br />
If compressed {<br />
1 byte          delta-compressed? (-1 = no, &gt; -1 = yes)<br />
1 byte          ?<br />
1 byte          escape byte<br />
}<br />
-------<br />
65 bytes        total for header (68 bytes if compressed)<br />
<br />
? bytes         data<br />
<br />
  Compressed data may be either stand-alone or delta-compressed (relative<br />
to the base picture named in the header).  Delta compression involves<br />
storing only how the picture differs from the base picture (i.e., only<br />
portions of the screen that have changed are stored).  This is used to<br />
to encode animated sequences efficiently.<br />
<br />
Compressed data, stand-alone:<br />
<br />
For each byte x in the data section:<br />
<br />
        x = escape byte        Read one more byte, n.  (n is unsigned).<br />
<br />
                                If n &gt;= 2, use the next byte n times.<br />
                                If n = 1, keep reading bytes until a<br />
                                byte k not equal to 1 is encountered.<br />
                                Then read the next byte d.<br />
                                If the number of 1 bytes encountered is o,<br />
                                use d (256 * o + k) times.  I.e.,<br />
<br />
                                if (n == 1) {<br />
                                        o = 0;<br />
                                        while (n == 1) {<br />
                                                o++;<br />
                                                n = next byte;<br />
                                        }<br />
<br />
                                        k = n;<br />
                                        d = next byte;<br />
<br />
                                        Use d (256 * o + k) times.<br />
                                }<br />
                                else {<br />
                                        d = next byte;<br />
                                        Use d (n) times.<br />
                                }<br />
<br />
        x != escape byte        Use x literally.<br />
<br />
Compressed data, delta compressed:<br />
<br />
For each byte x in the data section:<br />
<br />
        x = escape byte        Read one more byte, n.  (n is unsigned).<br />
<br />
                                If n &gt;= 3, use the next byte n times.<br />
                                If n = 1, do the same as for n = 1 in<br />
                                stand-alone compression (above).<br />
                                If n = 2, then set n = next byte.<br />
                                        If n = 0, end of picture.<br />
                                        If n &gt;= 2, take n bytes from base<br />
                                        picture.<br />
                                        If n = 1, do the same as for n = 1<br />
                                        in stand-alone compression (above),<br />
                                        but take (256 * o + k) bytes from <br />
                                        base picture.<br />
<br />
        x != escape byte        Use x literally.<br />
<br />
<br />
&lt;IFF Format&gt;    *.IFF<a name="IFF"></a>                                        <a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
<br />
4 bytes        "FORM" (FORM chunk ID)<br />
1 long          length of file that follows<br />
4 bytes        "ILBM" (InterLeaved BitMap file ID)<br />
<br />
4 bytes        "BMHD" (BitMap HeaDer chunk ID)<br />
1 long          length of chunk [20]<br />
20 bytes        1 word = image width in pixels<br />
                1 word = image height in lines<br />
                1 word = image x-offset [usually 0]<br />
                1 word = image y-offset [usually 0]<br />
                1 byte = # bitplanes<br />
                1 byte = mask (0=no, 1=impl., 2=transparent, 3=lasso)<br />
                1 byte = compressed [1] or uncompressed [0]<br />
                1 byte = unused [0]<br />
                1 word = transparent color (for mask=2)<br />
                1 byte = x-aspect [5=640x200, 10=320x200/640x400, 20=320x400]<br />
                1 byte = y-aspect [11]<br />
                1 word = page width (usually the same as image width)<br />
                1 word = page height (usually the same as image height)<br />
<br />
4 bytes        "CMAP" (ColorMAP chunk ID)<br />
1 long          length of chunk [3*n where n is the # colors]<br />
3n bytes        3 bytes per RGB color.  Each color value is a byte<br />
                and the actual color value is left-justified in the<br />
                byte such that the most significant bit of the value<br />
                is the MSB of the byte.  (ie. a color value of 15 (&#36;0F)<br />
                is stored as &#36;F0)  The bytes are stored in R,G,B order.<br />
<br />
4 bytes        "CRNG" (Color RaNGe chunk ID)<br />
1 long          length of chunk [8]<br />
8 bytes         1 word = reserved [0]<br />
                1 word = animation speed (16384 = 60 steps per second)<br />
                1 word = active [1] or inactive [0]<br />
                1 byte = left/lower color animation limit<br />
                1 byte = right/upper color animation limit<br />
 <br />
4 bytes         "CAMG" (Commodore AMiGa viewport mode chunk ID)<br />
1 long          length of chunk [4]<br />
1 long          viewport mode bits (bit 11 = HAM, bit 3 = interlaced)<br />
<br />
4 bytes         "BODY" (BODY chunk ID)<br />
1 long          length of chunk [# bytes of image data that follow]<br />
? bytes         actual image data<br />
<br />
NOTES: Some of these chunks may not be present in every IFF file, and may<br />
not be in this order.  You should always look for the ID bytes to find a<br />
certain chunk.  All chunk IDs are followed by a long value that tells the<br />
size of the chunk (note that "ILBM" is not a chunk ID).  This is the number of<br />
bytes that FOLLOW the 4 ID bytes and size longword.  The exception to this is<br />
the FORM chunk.  The size longword that follows the FORM ID is the size of the<br />
remainder of the file.  The FORM chunk must always be the first chunk in an<br />
IFF file.<br />
<br />
The R,G,B ranges of AMIGA and ST are different (AMIGA 0...15, ST 0...7),<br />
as is the maximum number of bitplanes (AMIGA: 5, ST: 4).<br />
<br />
Format of body data<br />
<br />
An expanded picture is simply a bitmap.  The packing method is PackBits<br />
(see below), and is identical to MacPaint and DEGAS Elite compressed.<br />
<br />
The (decompressed) body data appears in the following order:<br />
<br />
        line 1 plane 0 ... line 1 plane 1 ... ... line 1 plane m<br />
        [line 1 mask (if appropriate)]<br />
        line 2 plane 0 ... line 2 plane 1 ... ... line 2 plane m<br />
        [line 2 mask (if appropriate)]<br />
        ...<br />
        line x plane 0 ... line x plane 1 ... ... line x plane m<br />
        [line x mask (if appropriate)]<br />
<br />
The FORM chunk identifies the type of data:<br />
<br />
        "ILBM" = interleaved bit map<br />
        "8SVX" = 8-bit sample voice<br />
        "SMUS" = simple music score<br />
        "FTXT" = formatted text (Amiga)<br />
<br />
<br />
&lt;MacPaint&gt;      *.MAC<a name="MAC"></a>                                        <a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
<br />
1 long          version number [0=ignore header, 2=header valid]<br />
38 * 8 bytes    8x8 brush/fill patterns.  Each byte is a pattern row,<br />
                and the bytes map the pattern rows top to bottom.  The<br />
                patterns are stored in the order they appear at the bottom<br />
                of the MacPaint screen top to bottom, left to right.<br />
204 bytes       unused<br />
-------------<br />
512 bytes       total for header<br />
<br />
&lt; 51200 bytes   compressed bitmap data<br />
-------------<br />
&lt; 51712 bytes   total<br />
<br />
NOTE:  The version number is actually a flag to MacPaint to indicate if<br />
the brush/fill patterns are present in the file.  If the version is 0,<br />
the default patterns are used.  Therefore you can simply save a MacPaint<br />
file by writing a blank header (512 &#36;00 bytes), followed by the packed<br />
image data.<br />
<br />
Bitmap compression:<br />
<br />
  The bitmap data is for a 576 pixel by 720 pixel monochrome image.<br />
The packing method is PackBits (see below).  There are 72 bytes per<br />
scan line.  Each bit represents one pixel; 0 = white, 1 = black.<br />
<br />
<br />
&lt;RGB Intermediate Format&gt;      *.RGB (low resolution only)<br />
<br />
  This format was invented by Lars Michael to facilitate conversions between<br />
standard ST picture formats and higher resolution formats like GIF and IFF.<br />
It supports 12 bits of color resolution by keeping the red, green and blue<br />
components in separate bit planes.<br />
<br />
1 word          resolution (ignored)<br />
16 word         palette (ignored)<br />
16000 words     red plane (screen memory)<br />
1 word          resolution (ignored)<br />
16 word         palette (ignored)<br />
16000 words     green plane (screen memory)<br />
1 word          resolution (ignored)<br />
16 word         palette (ignored)<br />
16000 words     blue plane (screen memory)<br />
------------<br />
96102 bytes     total<br />
<br />
The format was derived by concatenating three DEGAS .PI1 files together -- <br />
one for each color gun.  The RGB value for a pixel is constructed by looking<br />
at the appropriate pixel in the red plane, green plane, and blue plane.  The<br />
bitplanes are in standard ST low resolution screen RAM format, but where pixel<br />
values in screen RAM refer to palette entries (0 through 15), pixel values<br />
here correspond to absolute R, G, and B values.  The red, green, and blue<br />
components for each pixel range from 0 to 15 (4 bits), yielding a total of<br />
12 bits of color information per pixel.  Not coincidentally, this is exactly<br />
the format of ST palette entries (although on ST's without the extended <br />
palette only the lower 3 bits of each color component are used).<br />
<br />
You can view a single bit plane on a standard ST by splitting the .RGB file<br />
into its three DEGAS .PI1 components and setting the palette to successively<br />
brighter shades of gray.<br />
<br />
<br />
&lt;ComputerEyes Raw Data Format&gt;  *.CE1 (low resolution)<a name="CE1"></a>      <a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
                                *.CE2 (medium resolution)                      <br />
                                <br />
1 long          [&#36;45594553 or "EYES"]<br />
1 word          resolution [0 = low res, 1 = medium res]<br />
8 words        ?<br />
If resolution = 0 {<br />
64000 bytes    red plane, 320 x 200, 1 pixel per byte<br />
64000 bytes    green plane, 320 x 200, 1 pixel per byte<br />
64000 bytes    blue plane, 320 x 200, 1 pixel per byte<br />
------------<br />
192022 bytes    total<br />
} <br />
else If resolution = 1 {<br />
128000 words    640 x 200, 1 pixel per word<br />
------------<br />
256022 bytes    total<br />
}<br />
<br />
  This is almost two formats in one:<br />
  <br />
        Low resolution:<br />
<br />
          The planes are arranged vertically, instead of horizontally.<br />
        The first byte is the red component of pixel (0,0), the second is (0,1),<br />
        and the third (0,2).  The 201st corresponds to (1,0), etc.  The 64001st<br />
        byte is the green component of (0,0).<br />
          Only the low six bits of each byte are used.<br />
<br />
        Medium resolution:<br />
<br />
          The picture is arranged vertically, instead of horizontally.<br />
        The first word is pixel (0,0), the second is (0,1), and the third<br />
        (0,2).  The 200th is (1,0) etc.<br />
          Each word is divided up into the RGB values for the corresponding<br />
        pixel, as follows:<br />
<br />
          Bit:  (MSB) 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00 (LSB)<br />
                      -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --<br />
                      0 B4 B3 B2 B1 B0 G4 G3 G2 G1 G0 R4 R3 R2 R1 R0<br />
<br />
        Bit 15 is not used.<br />
<br />
<br />
&lt;PackBits Compression Algorithm&gt;<br />
<br />
The following packing algorithm originated on the Mac, was adopted by<br />
Electronic Arts/Commodore for use in the IFF standard, and then by Tom<br />
Hudson for use in DEGAS Elite.  The algorithm is currently used in<br />
MacPaint, IFF, and DEGAS Elite compressed file formats.  Each scan line<br />
is packed separately, and packing never extends beyond a scan line.<br />
<br />
For a given control byte 'n':<br />
    0 &lt;= n &lt;= 127  : use the next n + 1 bytes literally (no repetition).<br />
-127 &lt;= n &lt;= -1    : use the next byte -n + 1 times.<br />
        n = -128  : no operation, not used.<br />
<br />
-------------------------------------------------------------------------<br />
<br />
* Roland Waldi contributed extensive information on the following formats:<br />
<br />
        GEM, IMG, Doodle, STAD, Imagic Film/Picture, Art Director, IFF<br />
<br />
** John Brochu, ST picture formats guru, provided sage advice and many<br />
  corrections to the following formats:<br />
<br />
        NeoChrome, DEGAS Elite Compressed, Spectrum 512 Compressed,<br />
        GEM Bit Image, IFF, MacPaint<br />
<br />
Version of...........Sun Oct 30 12:40:13 EST 1994<br />
(Last change: Extended GEM .IMG format updated)                                <a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
<br />
<br />
</div>
</span>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Memory Map]]></title>
			<link>https://www.ihcmot.fr/board/showthread.php?tid=4</link>
			<pubDate>Mon, 29 Jul 2024 12:53:34 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.ihcmot.fr/board/member.php?action=profile&uid=2">tomchi</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.ihcmot.fr/board/showthread.php?tid=4</guid>
			<description><![CDATA[<span style="font-family: Consolas;" class="mycode_font"><div style="text-align: left; margin-left: auto; margin-right: auto; background-color: #d3d3d3; border: 2px solid #808080; border-radius: 10px; padding: 12px; width: 680px; "></span><br />
<div style="text-align: center;" class="mycode_align"><span style="font-family: Consolas;" class="mycode_font">Memory Map<a name="contents"></a><br />
[titre]Index[/titre]<br />
<a href="#CPU Reset Vectors">CPU Reset Vectors</a>----------------- <a href="#YM2149 Sound Chip">YM2149 Sound Chip</a>-------------------------<br />
<a href="#CPU Exception Vectors">CPU Exception Vectors</a>------------- <a href="#DMA Sound System">DMA Sound System</a>--------------------------<br />
<a href="#Auto-Vector Interrupts">Auto-Vector Interrupts</a>------------ <a href="#STe Microwire Controller">STe Microwire Controller</a>------------------<br />
<a href="#Trap Instruction Vectors">Trap Instruction Vectors</a>---------- <a href="#Falcon030 DMA/DSP Controllers">Falcon030 DMA/DSP Controllers</a>-------------<br />
<a href="#Math Coprocessor Vectors">Math Coprocessor Vectors</a>---------- <a href="#TT Clock Chip">TT Clock Chip</a>-----------------------------<br />
<a href="#PMMU Coprocessor Vectors">PMMU Coprocessor Vectors</a>---------- <a href="#Blitter">Blitter</a>-----------------------------------<br />
<a href="#User Assigned Interrupt Vectors">User Assigned Interrupt Vectors</a>--- <a href="#SCC-DMA">SCC-DMA</a>-----------------------------------<br />
<a href="#System Crash Page">System Crash Page</a>----------------- <a href="#Zilog 8530 SCC">Zilog 8530 SCC</a>----------------------------<br />
<a href="#System Variables">System Variables</a>------------------ <a href="#VME Bus System Control Unit">VME Bus System Control Unit</a>---------------<br />
<a href="#ADSPEED">ADSPEED</a>--------------------------- <a href="#Mega STe Cache/Processor Control">Mega STe Cache/Processor Control</a>----------<br />
<a href="#IDE Controller">IDE Controller</a>-------------------- <a href="#STe/F030 Extended Joystick/Lightpen Ports">STe/F030 Extended Joystick/Lightpen Ports</a>-<br />
<a href="#ST MMU Controller">ST MMU Controller</a>----------------- <a href="#Falcon VIDEL Palette Registers">Falcon VIDEL Palette Registers</a>------------<br />
<a href="#Falcon030 Processor Control">Falcon030 Processor Control</a>------- <a href="#Falcon DSP Host Interface">Falcon DSP Host Interface</a>-----------------<br />
<a href="#SHIFTER Video Controller">SHIFTER Video Controller</a>---------- <a href="#MFP 68901">MFP 68901</a>---------------------------------<br />
<a href="#Falcon030 VIDEL Video Controller">Falcon030 VIDEL Video Controller</a>-- <a href="#Floating Point Coprocessor">Floating Point Coprocessor</a>----------------<br />
<a href="#DMA/WD1772 Disk controller">DMA/WD1772 Disk controller</a>-------- <a href="#MFP 68901 #2 (MFP2) - TT Only">MFP 68901 #2 (MFP2) - TT Only</a>-------------<br />
<a href="#TT-SCSI DMA Controller">TT-SCSI DMA Controller</a>------------ <a href="#6850 ACIA I/O Chips">6850 ACIA I/O Chips</a>-----------------------<br />
<a href="#TT-SCSI Drive Controller NCR 5380">TT-SCSI Drive Controller NCR 5380</a>- <a href="#Realtime Clock">Realtime Clock</a>----------------------------<br />
<a href="#Cookie Jar">Cookie Jar</a><br />
</span></div>
<span style="font-family: Consolas;" class="mycode_font"></div>
<br />
<div style="text-align: left; margin-left: auto; margin-right: auto; background-color: #d3d3d3; border: 2px solid #808080; border-radius: 10px; padding: 12px; width: 680px; ">
            .---------------------------------------------------.<br />
            |Atari ST/STe/MSTe/TT/F030 Hardware Register Listing|<br />
            `---------------------------------------------------'<br />
                        &lt;&lt;&lt; EXCLUSIVE ST-NEWS VERSION &gt;&gt;&gt;<br />
                      Version 7.0 (FINAL REVISION) - 1/22/94<br />
                                  By Dan Hollis<br />
                Copyright &copy; 1993/1994 MicroImages Software<br />
##############################################################################<br />
########## THIS IS THE LAST VERSION OF THE LISTING TO BE DISTRIBUTED #########<br />
##############################################################################<br />
Due to the absence of feedback, combined with the lack of free time, I will no<br />
longer be updating this listing. This is the FINAL revision.<br />
------------------------------------------------------------------------------<br />
This document may only be copied unmodified, in its entirety. This document<br />
may ONLY be copied freely, and may NOT be sold. I make no guarantees as to the<br />
accuracy of this document. I cannot be responsible for the use or misuse of<br />
information contained within this document. Use at your own risk! Regardless,<br />
every effort has been taken to ensure this document is as complete and<br />
accurate as possible.<br />
------------------------------------------------------------------------------<br />
Many thanks to the following people for their contributions!<br />
Markus Gutschke, Alexander Herzlinger, Karsten Isakovic, Thomas Binder,<br />
Julian Reschke, Georges Kesseler, Torbjoern Ose, Rickard Troedsson,<br />
Martin Griffiths, Eric Prevoteau<br />
Any comments or questions can be sent to me at the following addresses:<br />
Internet : goemon@venice.mps.ohio-state.edu<br />
MCI Mail : 679-5560<br />
Snail : Dan Hollis<br />
        744 NW Kinney<br />
        Grants Pass, OR 97526<br />
        U.S.A.<br />
Address Description                                                      Space<a name="CPU Reset Vectors"></a><br />
-------+-----------------------------------------------------------+-----<br />
########CPU Reset Vectors                                          #<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----------------------------------------------------------+-----<br />
&#36;000000|Reset : Initial SSP                                        |SP<br />
&#36;000004|Reset : Initial PC                                         |SP<a name="CPU Exception Vectors"></a><br />
-------+-----------------------------------------------------------+-----<br />
########CPU Exception Vectors                                      #<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----------------------------------------------------------+-----<br />
&#36;000008|Bus Error                                                  |SD<br />
&#36;00000C|Address Error                                              |SD<br />
&#36;000010|Illegal Instruction                                        |SD<br />
&#36;000014|Zero Divide                                                |SD<br />
&#36;000018|CHK, CHK2 Instruction                                      |SD<br />
&#36;00001C|cpTRAPcc, TRAPcc, TRAPV                                    |SD<br />
&#36;000020|Privilege Violation                                        |SD<br />
&#36;000024|Trace                                                      |SD<br />
&#36;000028|Line 1010 Emulator (LineA)                                 |SD<br />
&#36;00002C|Line 1111 Emulator (LineF)                                 |SD<br />
&#36;000030|(Unassigned, Reserved)                                     |SD<br />
&#36;000034|Coprocessor Protocol Violation (68030)                     |SD<br />
&#36;000038|Format Error (68010)                                       |SD<br />
&#36;00003C|Uninitialized Interrupt Vector                             |SD<br />
&#36;000040|(Unassigned, Reserved)                                     |SD<br />
    :  |   :            :                                          | :<br />
&#36;00005F|(Unassigned, Reserved)                                     |SD<br />
&#36;000060|Spurious Interrupt (Bus error during interrupt)            |SD                                          <br />
<a name="Auto-Vector Interrupts"></a>-------+-----------------------------------------------------------+-----<br />
########Auto-Vector Interrupts                                     #<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----------------------------------------------------------+-----<br />
&#36;000064|Level 1 Int Autovector (TT VME)                            |SD<br />
&#36;000068|Level 2 Int Autovector (HBL)                               |SD<br />
&#36;00006C|Level 3 Int Autovector (TT VME)                            |SD<br />
&#36;000070|Level 4 Int Autovector (VBL)                               |SD<br />
&#36;000074|Level 5 Int Autovector                                     |SD<br />
&#36;000078|Level 6 Int Autovector (MFP)                               |SD<br />
&#36;00007C|Level 7 Int Autovector                                     |SD<br />
<a name="Trap Instruction Vectors"></a>-------+-----------------------------------------------------------+-----<br />
######Trap Instruction Vectors (Trap #n = Vector number + 32 + n)  #<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----------------------------------------------------------+-----<br />
&#36;000080|Trap #0                                                    |SD<br />
&#36;000084|Trap #1 (GemDOS)                                           |SD<br />
&#36;000088|Trap #2 (AES/VDI)                                          |SD<br />
&#36;00008C|Trap #3                                                    |SD<br />
&#36;000090|Trap #4                                                    |SD<br />
&#36;000094|Trap #5                                                    |SD<br />
&#36;000098|Trap #6                                                    |SD<br />
&#36;00009C|Trap #7                                                    |SD<br />
&#36;0000A0|Trap #8                                                    |SD<br />
&#36;0000A4|Trap #9                                                    |SD<br />
&#36;0000A8|Trap #10                                                   |SD<br />
&#36;0000AC|Trap #11                                                   |SD<br />
&#36;0000B0|Trap #12                                                   |<br />
&#36;0000B4|Trap #13 (BIOS)                                            |SD<br />
&#36;0000B8|Trap #14 (XBIOS)                                           |SD<br />
<a name="Math Coprocessor Vectors"></a>-------+-----------------------------------------------------------+-----<br />
########Math Coprocessor Vectors (68881/68882/Internal)            #<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----------------------------------------------------------+-----<br />
&#36;0000C0|FFCP Branch or Set on Unordered Condition                  |SD<br />
&#36;0000C4|FFCP Inexact Result                                        |SD<br />
&#36;0000C8|FFCP Divide by Zero                                        |SD<br />
&#36;0000CC|FFCP Underflow                                             |SD<br />
&#36;0000D0|FFCP Operand Error                                         |SD<br />
&#36;0000D4|FFCP Overflow                                              |SD<br />
&#36;0000D8|FFCP Signaling NAN                                         |SD<br />
&#36;0000DC|(Unassigned, Reserved)                                     |SD<br />
<a name="PMMU Coprocessor Vectors"></a>-------+-----------------------------------------------------------+-----<br />
########PMMU Coprocessor Vectors (68851/Internal)                 #<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----------------------------------------------------------+-----<br />
&#36;0000E0|MMU Configuration Error                                    |SD<br />
&#36;0000E4|MC68851, not used by MC68030                               |SD<br />
&#36;0000E8|MC68851, not used by MC68030                               |SD<br />
-------+-----------------------------------------------------------+-----<br />
########Miscellaneous Vectors                                      #<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----------------------------------------------------------+-----<br />
&#36;0000EC|(Unassigned, Reserved)                                     |SD<br />
    :  |   :            :                                          | :<br />
&#36;0000FF|(Unassigned, Reserved)                                     |SD<br />
<a name="User Assigned Interrupt Vectors"></a>-------+-----------------------------------------------------------+-----<br />
########User Assigned Interrupt Vectors                            #<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----------------------------------------------------------+-----<br />
&#36;000100|ST-MFP-0 - Centronics busy                                 |SD<br />
&#36;000104|ST-MFP-1 - RS-232 DCD                                      |SD<br />
&#36;000108|ST-MFP-2 - RS-232 CTS                                      |SD<br />
&#36;00010C|ST-MFP-3 - Blitter done                                    |SD<br />
&#36;000110|ST-MFP-4 - Timer D (USART timer)                           |SD<br />
&#36;000114|ST-MFP-5 - Timer C (200hz Clock)                           |SD<br />
&#36;000118|ST-MFP-6 - Keyboard/MIDI (ACIA)                            |SD<br />
&#36;00011C|ST-MFP-7 - FDC/HDC                                         |SD<br />
&#36;000120|ST-MFP-8 - Timer B (HBL)                                   |SD<br />
&#36;000124|ST-MFP-9 - Send Error                                      |SD<br />
&#36;000128|ST-MFP-10 - Send buffer empty                              |SD<br />
&#36;00012C|ST-MFP-11 - Receive error                                  |SD<br />
&#36;000130|ST-MFP-12 - Receive buffer full                            |SD<br />
&#36;000134|ST-MFP-13 - Timer A (STe sound)                            |SD<br />
&#36;000138|ST-MFP-14 - RS-232 Ring detect                             |SD<br />
&#36;00013C|ST-MFP-15 - GPI7 - Monochrome Detect                       |SD<br />
&#36;000140|TT-MFP-0 - GPI 0                                           |SD<br />
&#36;000144|TT-MFP-1 - GPI 1                                           |SD<br />
&#36;000148|TT-MFP-2 - SCC-DMA Controller                              |SD<br />
&#36;00014C|TT-MFP-3 - Ring Indicator SCC B                            |SD<br />
&#36;000150|TT-MFP-4 - Timer D                                         |SD<br />
&#36;000154|TT-MFP-5 - Timer C                                         |SD<br />
&#36;000158|TT-MFP-6 - (Reserved) GPI 4                                |SD<br />
&#36;00015C|TT-MFP-7 - SCSI DMA Controller                             |SD<br />
&#36;000160|TT-MFP-8 - Timer B                                         |SD<br />
&#36;000164|TT-MFP-9 - Send Error                                      |SD<br />
&#36;000168|TT-MFP-10 - Send buffer empty                              |SD<br />
&#36;00016C|TT-MFP-11 - Receive error                                  |SD<br />
&#36;000170|TT-MFP-12 - Receive buffer full                            |SD<br />
&#36;000174|TT-MFP-13 - Timer A                                        |SD<br />
&#36;000176|TT-MFP-14 - TT Clock (MC146818A)                           |SD<br />
&#36;00017C|TT-MFP-15 - TT-SCSI Drive Controller NCR 5380              |SD<br />
&#36;000180|SCC Interrupt                                              |SD<br />
&#36;0001BC|SCC Interrupt                                              |SD<br />
&#36;0001C0|User Defined, Unused                                       |SD<br />
     :  |   :    :       :                                         | :<br />
&#36;0003FC|User Defined, Unused                                       |SD<br />
-------+-----------------------------------------------------------+-----<br />
Address Size  Description                                          Name<br />
<a name="System Crash Page"></a>-------+-----+-----------------------------------------------------+----------<br />
##############System Crash Page                               ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;000380|long |Validates System Crash Page if &#36;12345678             |proc_lives<br />
&#36;000384|.....|Saved registers D0-D7                                |proc_dregs<br />
&#36;0003A4|.....|Saved registers A0-A7                                |proc_aregs<br />
&#36;0003C4|long |Vector number of crash exception                     |proc_enum<br />
&#36;0003C8|long |Saved USP                                            |proc_usp<br />
&#36;0003CC|.....|Saved 16 words from exception stack                  |proc_stk<br />
<a name="System Variables"></a>-------+-----+-----------------------------------------------------+----------<br />
##############System Variables                                     ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;000400|long |GEM Event timer vector                               |etv_timer<br />
&#36;000404|long |GEM Critical error handler                           |etv_critic<br />
&#36;000408|long |GEM Program termination vector                       |etv_term<br />
&#36;00040C|long |GEM Additional vector #1 (Unused)                    |etv_xtra<br />
   :   |  :  | :      :        :    :     :                        |  :<br />
&#36;00041C|long |GEM Additional vector #5 (Unused)                    |etv_xtra<br />
&#36;000420|long |Validates memory configuration if &#36;752019F3          |memvalid<br />
&#36;000424|word |Copy of contents of &#36;FF8001                          |memctrl<br />
&#36;000426|long |Validates resvector if &#36;31415926                     |resvalid<br />
&#36;00042A|long |Reset vector                                         |resvector<br />
&#36;00042E|long |Physical top of RAM                                  |phystop<br />
&#36;000432|long |Start of TPA (user memory)                           |_membot<br />
&#36;000436|long |End of TPA (user memory)                             |_memtop<br />
&#36;00043A|long |Validates memcntrl and memconf if &#36;237698AA          |memval2<br />
&#36;00043E|word |If nonzero, floppy disk VBL routine is disabled      |flock<br />
&#36;000440|word |Floppy Seek rate - 0:6ms, 1:12ms, 2:2ms, 3:3ms       |seekrate<br />
&#36;000442|word |Time between two timer calls (in milliseconds)       |_timer_ms<br />
&#36;000444|word |If not zero, verify floppy disk writes               |_fverify<br />
&#36;000446|word |Default boot device                                  |_bootdev<br />
&#36;000448|word |0 - NTSC (60hz), &lt;&gt;0 - PAL (50hz)                    |palmode<br />
&#36;00044A|word |Default video resolution                             |defshiftmod<br />
&#36;00044C|word |Copy of contents of &#36;FF8260                          |sshiftmod<br />
&#36;00044E|long |Pointer to video RAM (logical screen base)           |_v_bas_ad<br />
&#36;000452|word |If not zero, VBL routine is not executed             |vblsem<br />
&#36;000454|word |Number of vertical blank routines                    |nvbls<br />
&#36;000456|long |Pointer to list of vertical blank routines           |_vblqueue<br />
&#36;00045A|long |If not zero, points to color palette to be loaded    |colorptr<br />
&#36;00045E|long |If not zero, points to video ram for next VBL        |screenpt<br />
&#36;000462|long |Counter for number of VBLs                           |_vbclock<br />
&#36;000466|long |Number of VBL routines executed                      |_frclock<br />
&#36;00046A|long |Vector for hard disk initialization                  |hdv_init<br />
&#36;00046E|long |Vector for resolution change                         |swv_vec<br />
&#36;000472|long |Vector for getbpb for hard disk                      |hdv_bpb<br />
&#36;000476|long |Vector for read/write routine for hard disk          |hdv_rw<br />
&#36;00047A|long |Vector for hard disk boot                            |hdv_boot<br />
&#36;00047E|long |Vector for hard disk media change                    |hdv_mediach<br />
&#36;000482|word |If not zero, attempt to load "COMMAND.PRG" on boot   |_comload<br />
&#36;000484|byte |Attribute vector for console output      BIT 3 2 1 0 |conterm<br />
       |     |Return "kbshift" for BIOS conin -------------' | | | |<br />
       |     |System bell (1 - on) --------------------------' | | |<br />
       |     |Key repeat (1 - on) -----------------------------' | |<br />
       |     |Key click (1 - on) --------------------------------' |<br />
&#36;000486|long |Return address for TRAP #14                  (unused)|trp14ret<br />
&#36;00048A|long |Return address for critical error handler    (unused)|criticret<br />
&#36;00048E|long |Memory descriptor block                              |themd<br />
&#36;00049E|long |Space for additional memory descriptors              |themdmd<br />
&#36;0004A2|long |Pointer to BIOS save registers block                 |savptr<br />
&#36;0004A6|word |Number of connected floppy drives                    |_nflops<br />
&#36;0004A8|long |Vector for screen output                             |con_state<br />
&#36;0004AC|word |Temporary storage for cursor line position           |save_row<br />
&#36;0004AE|long |Pointer to save area for exception processing        |sav_context<br />
&#36;0004B2|long |Pointer to buffer control block for GEMDOS data      |_bufl<br />
&#36;0004B6|long |Pointer to buffer control block for GEMDOS fat/dir   |_bufl<br />
&#36;0004BA|long |Counter for 200hz system clock                       |_hz_200<br />
&#36;0004BC|long |Pointer to default environment string                |the_env<br />
&#36;0004C2|long |Bit allocation for physical drives (bit 0=A, 1=B..)  |_drvbits<br />
&#36;0004C6|long |Pointer to 1024-byte disk buffer                     |_dskbufp<br />
&#36;0004CA|long |Pointer to autoexecute path                          |_autopath<br />
&#36;0004CE|long |Pointer to VBL routine #1                            |_vbl_lis<br />
   :   |  :  |  :      :  :    :    :                              |    :<br />
&#36;0004EA|long |Pointer to VBL routine #8                            |_vbl_lis<br />
&#36;0004EE|word |Flag for screen -&gt; printer dump                      |_dumpflg<br />
&#36;0004F0|word |Printer abort flag                                   |_prtabt<br />
&#36;0004F2|long |Pointer to start of OS                               |_sysbase<br />
&#36;0004F6|long |Global shell pointer                                 |_shell_p<br />
&#36;0004FA|long |Pointer to end of OS                                 |end_os<br />
&#36;0004FE|long |Pointer to entry point of OS                         |exec_os<br />
&#36;000502|long |Pointer to screen dump routine                       |scr_dump<br />
&#36;000506|long |Pointer to _lstostat()                               |prv_lsto<br />
&#36;00050A|long |Pointer to _lstout()                                 |prv_lst<br />
&#36;00050E|long |Pointer to _auxostat()                               |prv_auxo<br />
&#36;000512|long |Pointer to _auxout()                                 |prv_aux<br />
&#36;000516|long |If AHDI, pointer to pun_info                         |pun_ptr<br />
&#36;00051A|long |If &#36;5555AAAA, reset                                  |memval3<br />
&#36;00051E|long |8 Pointers to input-status routines                  |xconstat<br />
&#36;00053E|long |8 Pointers to input routines                         |xconin<br />
&#36;00055E|long |8 Pointers to output-status routines                 |xcostat<br />
&#36;00057E|long |8 Pointers to output routines                        |xconout<br />
&#36;00059E|word |If not 0, then not 68000 - use long stack frames     |_longframe<br />
&#36;0005A0|long |Pointer to cookie jar                                |_p_cookies<br />
&#36;0005A4|long |Pointer to end of FastRam                            |ramtop<br />
&#36;0005A8|long |Validates ramtop if &#36;1357BD13                        |ramvalid<br />
&#36;0005AC|long |Pointer to routine for system bell                   |bell_hook<br />
&#36;0005B0|long |Pointer to routine for system keyclick               |kcl_hook<br />
-------+-----+-----------------------------------------------------+----------<br />
Address Size  Description                                Bits used Read/Write<br />
-------+-----+-----------------------------------------------------+----------<br />
##############OS ROMs                                         ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;E00000|byte |TOS 512k ROMs                                        |R<br />
   :   |  :  | :   :    :                                          |:<br />
&#36;EFFFFF|byte |TOS 512k ROMs                                        |R<br />
<a name="ADSPEED"></a>-------+-----+-----------------------------------------------------+----------<br />
##############ADSPEED Configuration registers                 ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a>    <br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;F00000|byte |Switch to 16 Mhz                                     |W<br />
&#36;F10000|byte |Switch to 8 Mhz                                      |W<br />
&#36;F20000|byte |Turn on high speed ROM option in 16 Mhz              |W<br />
&#36;F30000|byte |Turn off high speed ROM option                       |W<br />
&#36;F40000|byte |Unknown                                              |W<br />
&#36;F50000|byte |Turn off cache while in 16 Mhz                       |W<br />
       |     |      &gt;&gt; Write 0 to an address to set it. &lt;&lt;         |<br />
<a name="IDE Controller"></a>-------+-----+-----------------------------------------------------+----------<br />
##############IDE Controller (Falcon, ST-Book, IDE cards)     ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;F00000|long |Data Register                                        |R/W<br />
&#36;F00005|byte |Error Register                    BIT 7 6 5 4 3 2 1 0|R<br />
       |     |Bad block mark -----------------------' | | | | | | ||<br />
       |     |Uncorrectable error --------------------' | | | | | ||<br />
       |     |Media change -----------------------------' | | | | ||<br />
       |     |ID-Field not found -------------------------' | | | ||<br />
       |     |Media change requested -----------------------' | | ||<br />
       |     |Command aborted --------------------------------' | ||<br />
       |     |Track 0 not found --------------------------------' ||<br />
       |     |DAM not found --------------------------------------'|<br />
&#36;F00009|byte |Sector Count Register                                |W<br />
&#36;F0000D|byte |Sector Number Register                               |W<br />
&#36;F00011|byte |Cylinder Low Register                                |W<br />
&#36;F00015|byte |Cylinder High Register                               |W<br />
&#36;F00019|byte |Drive Head Register                                  |W<br />
&#36;F0001D|byte |Status Register                                      |R<br />
&#36;F0001D|byte |Command Register                                     |W<br />
&#36;F00039|byte |Alternate Status Register                            |R<br />
&#36;F00039|byte |Data Output Register                                 |W<br />
<a name="ST MMU Controller"></a>-------+-----+-----------------------------------------------------+----------<br />
##############ST MMU Controller                               ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8001|byte |MMU memory configuration                  BIT 3 2 1 0|R/W<br />
       |     |Bank 0                                        | | | ||<br />
       |     |00 - 128k ------------------------------------+-+ | ||<br />
       |     |01 - 512k ------------------------------------+-+ | ||<br />
       |     |10 - 2m --------------------------------------+-+ | ||<br />
       |     |11 - reserved --------------------------------+-' | ||<br />
       |     |Bank 1                                            | ||<br />
       |     |00 - 128k ----------------------------------------+-+|<br />
       |     |01 - 512k ----------------------------------------+-+|<br />
       |     |10 - 2m ------------------------------------------+-+|<br />
       |     |11 - reserved ------------------------------------+-'|<br />
<a name="Falcon030 Processor Control"></a>-------+-----+-----------------------------------------------------+----------<br />
##############Falcon030 Processor Control                     ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8007|byte |Falcon Bus Control                    BIT 5 . . 2 . 0|R/W (F030)<br />
       |     |STe Bus Emulation (0 - on) ---------------'     |   ||<br />
       |     |Blitter (0 - 8mhz, 1 - 16mhz) ------------------'   ||<br />
       |     |68030 (0 - 8mhz, 1 - 16mhz) ------------------------'|<br />
<a name="SHIFTER Video Controller"></a>-------+-----+-----------------------------------------------------+----------<br />
##############SHIFTER Video Controller                        ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8201|byte |Video screen memory position (High byte)             |R/W<br />
&#36;FF8203|byte |Video screen memory position (Mid byte)              |R/W<br />
&#36;FF820D|byte |Video screen memory position (Low byte)              |R/W  (STe)<br />
&#36;FF8205|byte |Video address pointer (High byte)                    |R<br />
&#36;FF8207|byte |Video address pointer (Mid byte)                     |R<br />
&#36;FF8209|byte |Video address pointer (Low byte)                     |R<br />
&#36;FF820E|word |Offset to next line                                  |R/W (F030)<br />
&#36;FF820F|byte |Width of a scanline (width in words-1)               |R/W  (STe)<br />
&#36;FF8210|word |Width of a scanline (width in words)                 |R/W (F030)<br />
&#36;FF8265|byte |Horizontal scroll register (0-15)                    |R/W  (STe)<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF820A|byte |Video synchronization mode                    BIT 1 0|R/W<br />
       |     |0 - 60hz, 1 - 50hz -------------------------------+ ||<br />
       |     |0 - internal, 1 - external sync ------------------' ||      (TT)<br />
       |     |0 - internal, 1 - external sync --------------------'|    (!TT)<br />
-------+-----+-----------------------------------------------------+----------<br />
       |     |                                BIT 11111198 76543210|<br />
       |     |                                     543210          |<br />
       |     |                     ST color value .....RRr .GGr.BBb|<br />
       |     |                    STe color value ....rRRR gGGGbBBB|<br />
&#36;FF8240|word |Video palette register 0              Lowercase = LSB|R/W<br />
    :  |  :  |  :      :      :     :                              | :<br />
&#36;FF825E|word |Video palette register 15                            |R/W<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8260|byte |Shifter resolution                            BIT 1 0|R/W<br />
       |     |00 320x200x4 bitplanes (16 colors) ---------------+-+|<br />
       |     |01 640x200x2 bitplanes (4 colors) ----------------+-+|<br />
       |     |10 640x400x1 bitplane  (1 colors) ----------------+-'|<br />
&#36;FF8262|word |TT Shifter resolution                   BIT 15 . . 12|R/W  (TT)<br />
       |     |Sample/Hold mode ----------------------------'      ||<br />
       |     |Hypermono mode -------------------------------------'|<br />
       |     |Video Mode                                 BIT 10 9 8|<br />
       |     |000  320x200x4 bitplanes (16 colors) -----------+-+-+|<br />
       |     |001  640x200x2 bitplanes (4 colors) ------------+-+-+|<br />
       |     |010  640x400x1 bitplane  (2 colors)(Duochrome) -+-+-+|<br />
       |     |100  640x480x4 bitplanes (16 colors) -----------+-+-+|<br />
       |     |110 1280x960x1 bitplane  (2 colors) ------------+-+-+|<br />
       |     |111  320x480x8 bitplanes (256 colors) ----------+-+-'|<br />
       |     |ST Palette Bank                           BIT 3 2 1 0|<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF827E|???? |STACY Display Driver                                 |???(STACY)<br />
-------+-----+-----------------------------------------------------+----------<br />
       |     |                                BIT 11111198 76543210|<br />
       |     |                                     543210          |<br />
       |     |                     TT color value ....RRRr GGGgBBBb|<br />
&#36;FF8400|word |TT Palette  0                         Lowercase = LSB|R/W  (TT)<br />
    :  |  :  | :    :     :                                        | :      :<br />
&#36;FF85FE|word |TT Palette 255                                       |R/W  (TT)<br />
<a name="Falcon030 VIDEL Video Controller"></a>-------+-----+-----------------------------------------------------+----------<br />
##############Falcon030 VIDEL Video Controller                ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8006|byte |Monitor Type                                  BIT 1 0|R  (F030)<br />
       |     |00 - Monochrome (SM124) --------------------------+-+|<br />
       |     |01 - Color (SC1224) ------------------------------+-+|<br />
       |     |10 - VGA Color -----------------------------------+-+|<br />
       |     |11 - Television ----------------------------------+-'|<br />
&#36;FF820E|word |Offset to next line                                  |R/W (F030)<br />
&#36;FF8210|word |VWRAP - Linewidth in words                           |R/W (F030)<br />
&#36;FF8266|word |SPSHIFT                    BIT 10 . 8 . 6 5 4 3 2 1 0|R/W (F030)<br />
       |     |2-colour mode ------------------'   |   | | | | | | ||<br />
       |     |Truecolour mode --------------------'   | | | | | | ||<br />
       |     |Use external hsync ---------------------' | | | | | ||<br />
       |     |Use external vsync -----------------------' | | | | ||<br />
       |     |8 Bitplane mode ----------------------------' | | | ||<br />
       |     |? Bitplane mode ------------------------------' | | ||<br />
       |     |? Bitplane mode --------------------------------' | ||<br />
       |     |? Bitplane mode ----------------------------------' ||<br />
       |     |? Bitplane mode ------------------------------------'|<br />
       |     +-----------------------------------------------------+<br />
       |     |      Horizontal Control Registers             (9bit)|<br />
&#36;FF8280|word |HHC - Horizontal Hold Counter                        |R  (F030)<br />
&#36;FF8282|word |HHT - Horizontal Hold Timer                          |R/W (F030)<br />
&#36;FF8284|word |HBB - Horizontal Border Begin                        |R/W (F030)<br />
&#36;FF8286|word |HBE - Horizontal Border End                          |R/W (F030)<br />
&#36;FF8288|word |HDB - Horizontal Display Begin                       |R/W (F030)<br />
&#36;FF828A|word |HDE - Horizontal Display End                         |R/W (F030)<br />
&#36;FF828C|word |HSS - Horizontal SS                                  |R/W (F030)<br />
&#36;FF828E|word |HFS - Horizontal FS                                  |R/W (F030)<br />
&#36;FF8290|word |HEE - Horizontal EE                                  |R/W (F030)<br />
       |     +-----------------------------------------------------+<br />
       |     |      Vertical Control Registers              (10bit)|<br />
&#36;FF82A0|word |VFC - Vertcial Frequency Counter                     |R  (F030)<br />
&#36;FF82A2|word |VFT - Vertical Frequency Timer                       |R/W (F030)<br />
&#36;FF82A4|word |VBB - Vertical Border Begin     (count in 1/2 lines) |R/W (F030)<br />
&#36;FF82A6|word |VBE - Vertical Border End       (count in 1/2 lines) |R/W (F030)<br />
&#36;FF82A8|word |VDB - Vertical Display Begin                         |R/W (F030)<br />
&#36;FF82AA|word |VDE - Vertical Display End                           |R/W (F030)<br />
&#36;FF82AC|word |VSS - Vertical SS                                    |R/W (F030)<br />
       |     +-----------------------------------------------------+<br />
&#36;FF82C0|word |??? - Video Clock (?) (Super78 puts &#36;182 here)       |R/W (F030)<br />
&#36;FF82C2|word |VCO - Video Control                       BIT 3 2 1 0|R/W (F030)<br />
       |     |Quarter pixel width (quadruple pixels) -------' | | ||<br />
       |     |Half pixel width (double pixels) ---------------' | ||<br />
       |     |Skip line (interlace) ----------------------------' ||<br />
       |     |Line doubling --------------------------------------'|<br />
<a name="DMA/WD1772 Disk controller"></a>-------+-----+-----------------------------------------------------+----------<br />
##############DMA/WD1772 Disk controller                      ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8600|     |Reserved                                             |<br />
&#36;FF8602|     |Reserved                                             |<br />
&#36;FF8604|word |FDC access/sector count                              |R/W<br />
&#36;FF8606|word |DMA mode/status                             BIT 2 1 0|R<br />
       |     |Condition of FDC DATA REQUEST signal -----------' | ||<br />
       |     |0 - sector count null,1 - not null ---------------' ||<br />
       |     |0 - no error, 1 - DMA error ------------------------'|<br />
&#36;FF8606|word |DMA mode/status                 BIT 8 7 6 . 4 3 2 1 .|W<br />
       |     |0 - read FDC/HDC,1 - write ---------' | | | | | | |  |<br />
       |     |0 - HDC access,1 - FDC access --------' | | | | | |  |<br />
       |     |0 - DMA on,1 - no DMA ------------------' | | | | |  |<br />
       |     |Reserved ---------------------------------' | | | |  |<br />
       |     |0 - FDC reg,1 - sector count reg -----------' | | |  |<br />
       |     |0 - FDC access,1 - HDC access ----------------' | |  |<br />
       |     |0 - pin A1 low, 1 - pin A1 high ----------------' |  |<br />
       |     |0 - pin A0 low, 1 - pin A0 high ------------------'  |<br />
&#36;FF8609|byte |DMA base and counter (High byte)                     |R/W<br />
&#36;FF860B|byte |DMA base and counter (Mid byte)                      |R/W<br />
&#36;FF860D|byte |DMA base and counter (Low byte)                      |R/W<br />
<a name="TT-SCSI DMA Controller"></a>-------+-----+-----------------------------------------------------+----------<br />
##############TT-SCSI DMA Controller                          ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8701|byte |DMA Address Pointer (Highest byte)                   |R/W  (TT)<br />
&#36;FF8703|byte |DMA Address Pointer (High byte)                      |R/W  (TT)<br />
&#36;FF8705|byte |DMA Address Pointer (Low byte)                       |R/W  (TT)<br />
&#36;FF8707|byte |DMA Address Pointer (Lowest byte)                    |R/W  (TT)<br />
&#36;FF8709|byte |DMA Byte Count (Highest byte)                        |R/W  (TT)<br />
&#36;FF870B|byte |DMA Byte Count (High byte)                           |R/W  (TT)<br />
&#36;FF870D|byte |DMA Byte Count (Low byte)                            |R/W  (TT)<br />
&#36;FF870F|byte |DMA Byte Count (Lowest byte)                         |R/W  (TT)<br />
&#36;FF8710|word |Residue Data Register (High Word)                    |R    (TT)<br />
&#36;FF8712|word |Residue Data Register (Low Word)                     |R    (TT)<br />
&#36;FF8715|byte |Control register                  BIT 7 6 . . . . 1 0|R/W  (TT)<br />
       |     |Bus error ----------------------------' |         | ||<br />
       |     |Byte count zero ------------------------'         | ||<br />
       |     |Enable -------------------------------------------' ||<br />
       |     |DMA Direction (1 - out to port) --------------------'|<br />
<a name="TT-SCSI Drive Controller NCR 5380"></a>-------+-----+-----------------------------------------------------+----------<br />
##############TT-SCSI Drive Controller NCR 5380               ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8781|byte |Data register                                        |R/W  (TT)<br />
&#36;FF8783|byte |Init-Command Register                                |R/W  (TT)<br />
&#36;FF8785|byte |Mode Register                                        |R/W  (TT)<br />
&#36;FF8787|byte |Target-Command Register                              |R/W  (TT)<br />
&#36;FF8789|byte |ID Select/SCSI Control Register                      |R/W  (TT)<br />
&#36;FF878B|byte |Status Register                                      |R/W  (TT)<br />
&#36;FF878D|byte |Target Receive/Input Data                            |R/W  (TT)<br />
&#36;FF878F|byte |Initiate Receive/Reset                               |R/W  (TT)<br />
<a name="YM2149 Sound Chip"></a>-------+-----+-----------------------------------------------------+----------<br />
##############YM2149 Sound Chip                               ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8800|byte |Read data/Register select                            |R/W<br />
       |     |0 Channel A Freq Low              BIT 7 6 5 4 3 2 1 0|<br />
       |     |1 Channel A Freq High                     BIT 3 2 1 0|<br />
       |     |2 Channel B Freq Low              BIT 7 6 5 4 3 2 1 0|<br />
       |     |3 Channel B Freq High                     BIT 3 2 1 0|<br />
       |     |4 Channel C Freq Low              BIT 7 6 5 4 3 2 1 0|<br />
       |     |5 Channel C Freq High                     BIT 3 2 1 0|<br />
       |     |6 Noise Freq                          BIT 5 4 3 2 1 0|<br />
       |     |7 Mixer Control                   BIT 7 6 5 4 3 2 1 0|<br />
       |     |  Port B IN/OUT (1=Output) -----------' | | | | | | ||<br />
       |     |  Port A IN/OUT ------------------------' | | | | | ||<br />
       |     |  Channel C Noise (1=Off) ----------------' | | | | ||<br />
       |     |  Channel B Noise --------------------------' | | | ||<br />
       |     |  Channel A Noise ----------------------------' | | ||<br />
       |     |  Channel C Tone (0=On) ------------------------' | ||<br />
       |     |  Channel B Tone ---------------------------------' ||<br />
       |     |  Channel A Tone -----------------------------------'|<br />
       |     |8 Channel A Amplitude Control           BIT 4 3 2 1 0|<br />
       |     |  Fixed/Variable Level (0=Fixed) -----------' | | | ||<br />
       |     |  Amplitude level control --------------------+-+-+-'|<br />
       |     |9 Channel B Amplitude Control           BIT 4 3 2 1 0|<br />
       |     |  Fixed/Variable Level ---------------------' | | | ||<br />
       |     |  Amplitude level control --------------------+-+-+-'|<br />
       |     |10 Channel C Amplitude Control          BIT 4 3 2 1 0|<br />
       |     |  Fixed/Variable Level ---------------------' | | | ||<br />
       |     |  Amplitude level control --------------------+-+-+-'|<br />
       |     |11 Envelope Period High           BIT 7 6 5 4 3 2 1 0|<br />
       |     |12 Envelope Period Low            BIT 7 6 5 4 3 2 1 0|<br />
       |     |13 Envelope Shape                         BIT 3 2 1 0|<br />
       |     |  Continue -----------------------------------' | | ||<br />
       |     |  Attack ---------------------------------------' | ||<br />
       |     |  Alternate --------------------------------------' ||<br />
       |     |  Hold ---------------------------------------------'|<br />
       |     |  00xx - \____________________________________       |<br />
       |     |  01xx - /|___________________________________       |<br />
       |     |  1000 - \|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\       |<br />
       |     |  1001 - \____________________________________       |<br />
       |     |  1010 - \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\       |<br />
       |     |  1011 - \|-----------------------------------       |<br />
       |     |  1100 - /|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/       |<br />
       |     |  1101 - /------------------------------------       |<br />
       |     |  1110 - /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/       |<br />
       |     |  1111 - /|___________________________________       |<br />
       |     |14 Port A                         BIT 7 6 5 4 3 2 1 0|<br />
       |     |  IDE Drive On/OFF -------------------+ | | | | | | ||    (F030)<br />
       |     |  SCC A (0=LAN, 1=Serial2) -----------' | | | | | | ||      (TT)<br />
       |     |  Monitor jack GPO pin -----------------+ | | | | | ||<br />
       |     |  Internal Speaker On/Off --------------' | | | | | ||    (F030)<br />
       |     |  Centronics strobe ----------------------' | | | | ||<br />
       |     |  RS-232 DTR output ------------------------' | | | ||<br />
       |     |  RS-232 RTS output --------------------------' | | ||<br />
       |     |  Drive select 1 -------------------------------' | ||<br />
       |     |  Drive select 0 ---------------------------------' ||<br />
       |     |  Drive side select --------------------------------'|<br />
       |     |15 Port B (Parallel port)                            |<br />
&#36;FF8802|byte |Write data                                           |W<br />
       |     +-----------------------------------------------------+<br />
       |     |Note: PSG Registers are now fixed at these addresses.|<br />
       |     |All other addresses are masked out on the Falcon. Any|<br />
       |     |writes to the shadow registers &#36;8804-&#36;88FF will cause|<br />
       |     |bus errors. Game/Demo coders beware!                 |<br />
<a name="DMA Sound System"></a>-------+-----+-----------------------------------------------------+----------<br />
##############DMA Sound System                                ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8900|byte |Buffer interrupts                         BIT 3 2 1 0|R/W (F030)<br />
       |     |TimerA-Int at end of record buffer -----------' | | ||<br />
       |     |TimerA-Int at end of replay buffer -------------' | ||<br />
       |     |MFP-15-Int (I7) at end of record buffer ----------' ||<br />
       |     |MFP-15-Int (I7) at end of replay buffer ------------'|<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8901|byte |DMA Control Register              BIT 7 . 5 4 . . 1 0|R/W<br />
       |     |1 - select record register -----------+   | |     | ||    (F030) <br />
       |     |0 - select replay register -----------'   | |     | ||    (F030)<br />
       |     |Loop record buffer -----------------------' |     | ||    (F030)<br />
       |     |DMA Record on ------------------------------'     | ||    (F030)<br />
       |     |Loop replay buffer -------------------------------' ||    (STe)<br />
       |     |DMA Replay on --------------------------------------'|    (STe)<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8903|byte |Frame start address (high byte)                      |R/W  (STe)<br />
&#36;FF8905|byte |Frame start address (mid byte)                       |R/W  (STe)<br />
&#36;FF8907|byte |Frame start address (low byte)                       |R/W  (STe)<br />
&#36;FF8909|byte |Frame address counter (high byte)                    |R    (STe)<br />
&#36;FF890B|byte |Frame address counter (mid byte)                     |R    (STe)<br />
&#36;FF890D|byte |Frame address counter (low byte)                     |R    (STe)<br />
&#36;FF890F|byte |Frame end address (high byte)                        |R/W  (STe)<br />
&#36;FF8911|byte |Frame end address (mid byte)                         |R/W  (STe)<br />
&#36;FF8913|byte |Frame end address (low byte)                         |R/W  (STe)<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8920|byte |DMA Track Control                     BIT 5 4 . . 1 0|R/W (F030)<br />
       |     |00 - Set DAC to Track 0 ------------------+-+     | ||<br />
       |     |01 - Set DAC to Track 1 ------------------+-+     | ||<br />
       |     |10 - Set DAC to Track 2 ------------------+-+     | ||<br />
       |     |11 - Set DAC to Track 3 ------------------+-'     | ||<br />
       |     |00 - Play 1 Track --------------------------------+-+|<br />
       |     |01 - Play 2 Tracks -------------------------------+-+|<br />
       |     |10 - Play 3 Tracks -------------------------------+-+|<br />
       |     |11 - Play 4 Tracks -------------------------------+-'|<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8921|byte |Sound mode control                BIT 7 6 . . . . 1 0|R/W  (STe)<br />
       |     |0 - Stereo, 1 - Mono -----------------' |         | ||<br />
       |     |0 - 8bit -------------------------------+         | ||<br />
       |     |1 - 16bit (F030 only) ------------------'         | ||    (F030)<br />
       |     |Frequency control bits                            | ||<br />
       |     |00 - Off (F030 only) -----------------------------+-+|    (F030)<br />
       |     |00 - 6258hz frequency (STe only) -----------------+-+|<br />
       |     |01 - 12517hz frequency ---------------------------+-+|<br />
       |     |10 - 25033hz frequency ---------------------------+-+|<br />
       |     |11 - 50066hz frequency ---------------------------+-'|<br />
       |     |Samples are always signed. In stereo mode, data is   |<br />
       |     |arranged in pairs with high pair the left channel,low|<br />
       |     |pair right channel. Sample length MUST be even in    |<br />
       |     |either mono or stereo mode.                          |<br />
       |     |Example: 8 bit Stereo : LRLRLRLRLRLRLRLR             |<br />
       |     |        16 bit Stereo : LLRRLLRRLLRRLLRR (F030)      |<br />
       |     |2 track 16 bit stereo : LLRRllrrLLRRllrr (F030)      |<br />
<a name="STe Microwire Controller"></a>-------+-----+-----------------------------------------------------+----------<br />
##############STe Microwire Controller (STe/TT only!)         ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8922|byte |Microwire data register                              |R/W  (Mwr)<br />
&#36;FF8924|byte |Microwire mask register                              |R/W  (Mwr)<br />
       |     +-----------------------------------------------------+<br />
       |     |!! ATTENTION !! Microwire is now obsolete! It is not |<br />
       |     |present in the Falcon030 and is unlikely to be in any|<br />
       |     |future machines. You have been warned.               | <br />
       |     +-----------------------------------------------------+<br />
       |     |Volume/tone controller commands         (Address %10)|<br />
       |     |Master Volume                           10 011 DDDDDD|<br />
       |     |Left Volume                             10 101 .DDDDD|<br />
       |     |Right Volume                            10 100 .DDDDD|<br />
       |     |Treble                                  10 010 ..DDDD|<br />
       |     |Bass                                    10 001 ..DDDD|<br />
       |     |Mixer                                   10 000 ....DD|<br />
       |     +-----------------------------------------------------+<br />
       |     |Volume/tone controller values                        |<br />
       |     |Master Volume     : 0-40  (0 -80dB, 40=0dB)          |<br />
       |     |Left/Right Volume : 0-20    (0 80dB, 20=0dB)         |<br />
       |     |Treble/bass       : 0-12 (0 -12dB, 12 +12dB)         |<br />
       |     |Mixer             : 0-3 (0 -12dB, 1 mix PSG)         |<br />
       |     |                    (2 don't mix,3 reserved)         |<br />
       |     +-----------------------------------------------------+<br />
       |     |Procedure: Set mask register to &#36;7ff. Read data      |<br />
       |     |register and save original value.Write data register.|<br />
       |     |Compare data register with original value, repeat    |<br />
       |     |until data register returns to original value to     |<br />
       |     |ensure data has been sent over the interface.        |<br />
       |     +-----------------------------------------------------+<br />
       |     |Interrupts: Timer A can be set to interrupt at the   |<br />
       |     |end of a frame. Alternatively, the GPI7 (MFP mono    |<br />
       |     |detect) can be used to generate interrupts thereby   |<br />
       |     |freeing up Timer A. In this case, the active edge    |<br />
       |     |&#36;FFFA03 must be set by or-ing the active edge of     |<br />
       |     |&#36;FFFA03 with the contents of &#36;FF8260:                |<br />
       |     |&#36;FF8260 - 2 (mono)    or.b  #&#36;80 with edge           |<br />
       |     |&#36;FF8260 - 0,1 (colour) and.b #&#36;7F with edge          |<br />
       |     |This will generate an interrupt at the START of a    |<br />
       |     |frame, instead of at the end as with Timer A. To     |<br />
       |     |generate an interrupt at the END of a frame, simply  |<br />
       |     |reverse the edge values.                             |<br />
<a name="Falcon030 DMA/DSP Controllers"></a>-------+-----+-----------------------------------------------------+----------<br />
##############Falcon030 DMA/DSP Controllers                   ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8930|word |Crossbar Source Controller                           |R/W (F030)<br />
       |     +-----------------------------------------------------+<br />
       |     |Source: A/D Convertor                 BIT 15 14 13 12|<br />
       |     |1 - Connect, 0 - disconnect ---------------'  |  |  ||<br />
       |     |00 - 25.175Mhz clock -------------------------+--+  ||<br />
       |     |01 - External clock --------------------------+--+  ||<br />
       |     |10 - 32Mhz clock (Don't use) -----------------+--'  ||<br />
       |     |0 - Handshake on, 1 - Handshake off ----------------'|<br />
       |     +-----------------------------------------------------+<br />
       |     |Source: External Input                BIT 11 10  9  8|<br />
       |     |0 - DSP IN, 1 - All others ----------------'  |  |  ||<br />
       |     |00 - 25.175Mhz clock -------------------------+--+  ||<br />
       |     |01 - External clock --------------------------+--+  ||<br />
       |     |10 - 32Mhz clock -----------------------------+--'  ||<br />
       |     |0 - Handshake on, 1 - Handshake off ----------------'|<br />
       |     +-----------------------------------------------------+<br />
       |     |Source: DSP-XMIT                      BIT  7  6  5  4|<br />
       |     |0 - Tristate and disconnect DSP -----------+  |  |  ||<br />
       |     |    (Only for external SSI use)            |  |  |  ||<br />
       |     |1 - Connect DSP to multiplexer ------------'  |  |  ||<br />
       |     |00 - 25.175Mhz clock -------------------------+--+  ||<br />
       |     |01 - External clock --------------------------+--+  ||<br />
       |     |10 - 32Mhz clock -----------------------------+--'  ||<br />
       |     |0 - Handshake on, 1 - Handshake off ----------------'|<br />
       |     +-----------------------------------------------------+<br />
       |     |Source: DMA-PLAYBACK                  BIT  3  2  1  0|<br />
       |     |0 - Handshaking on, dest DSP-REC ----------+  |  |  ||<br />
       |     |1 - Destination is not DSP-REC ------------'  |  |  ||<br />
       |     |00 - 25.175Mhz clock -------------------------+--+  ||<br />
       |     |01 - External clock --------------------------+--+  ||<br />
       |     |10 - 32Mhz clock -----------------------------+--'  ||<br />
       |     |0 - Handshake on, 1 - Handshake off ----------------'|<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8932|word |Crossbar Destination Controller                      |R/W (F030)<br />
       |     +-----------------------------------------------------+<br />
       |     |Destination: D/A Convertor            BIT 15 14 13 12|<br />
        |     |1 - Connect, 0 - Disconnect ---------------'  |  |  ||<br />
       |     |00 - Source DMA-PLAYBACK ---------------------+--+  ||<br />
       |     |01 - Source DSP-XMIT -------------------------+--+  ||<br />
       |     |10 - Source External Input -------------------+--+  ||<br />
       |     |11 - Source A/D Convertor --------------------+--'  ||<br />
       |     |0 - Handshake on, 1 - Handshake off ----------------'|<br />
       |     +-----------------------------------------------------+<br />
       |     |Destination: External Output          BIT 11 10  9  8|<br />
       |     |0 - DSP out, 1 - All others ---------------'  |  |  ||<br />
       |     |00 - Source DMA-PLAYBACK ---------------------+--+  ||<br />
       |     |01 - Source DSP-XMIT -------------------------+--+  ||<br />
       |     |10 - Source External Input -------------------+--+  ||<br />
       |     |11 - Source A/D Convertor --------------------+--'  ||<br />
       |     |0 - Handshake on, 1 - Handshake off ----------------'|<br />
       |     +-----------------------------------------------------+<br />
       |     |Destination: DSP-RECORD               BIT  7  6  5  4|<br />
       |     |0 - Tristate and disconnect DSP -----------+  |  |  ||<br />
       |     |    (Only for external SSI use)            |  |  |  ||<br />
       |     |1 - Connect DSP to multiplexer ------------'  |  |  ||<br />
       |     |00 - Source DMA-PLAYBACK ---------------------+--+  ||<br />
       |     |01 - Source DSP-XMIT -------------------------+--+  ||<br />
       |     |10 - Source External Input -------------------+--+  ||<br />
       |     |11 - Source A/D Convertor --------------------+--'  ||<br />
       |     |0 - Handshake on, 1 - Handshake off ----------------'|<br />
       |     +-----------------------------------------------------+<br />
       |     |Destination: DMA-RECORD               BIT  3  2  1  0|<br />
       |     |0 - Handshaking on, src DSP-XMIT ----------+  |  |  ||<br />
       |     |1 - Source is not DSP-XMIT ----------------'  |  |  ||<br />
       |     |00 - Source DMA-PLAYBACK ---------------------+--+  ||<br />
       |     |01 - Source DSP-XMIT -------------------------+--+  ||<br />
       |     |10 - Source External Input -------------------+--+  ||<br />
       |     |11 - Source A/D Convertor --------------------+--'  ||<br />
       |     |0 - Handshake on, 1 - Handshake off ----------------'|<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8934|byte |Frequency Divider External Clock           BIT 3 2 1 0|R/W (F030)<br />
       |     |0000 - STe-Compatible mode                            |<br />
       |     |0001 - 1111  Divide by 256 and then number            |<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8935|byte |Frequency Divider Internal Sync          BIT 3 2 1 0|R/W (F030)<br />
       |     |0000 - STe-Compatible mode  1000 - 10927Hz*         |<br />
       |     |0001 - 49170Hz              1001 -  9834Hz          |<br />
       |     |0010 - 32780Hz              1010 -  8940Hz*         |<br />
       |     |0011 - 24585Hz              1011 -  8195Hz          |<br />
       |     |0100 - 19668Hz              1100 -  7565Hz*         |<br />
       |     |0101 - 16390Hz              1101 -  7024Hz*         |<br />
       |     |0110 - 14049Hz*             1110 -  6556Hz*         |<br />
       |     |0111 - 12292Hz              1111 -  6146Hz*         |<br />
       |     |              * - Invalid for CODEC                 |<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8936|byte |Record Tracks Select                          BIT 1 0|R/W (F030)<br />
       |     |00 - Record 1 Track ------------------------------+-+|<br />
       |     |01 - Record 2 Tracks -----------------------------+-+|<br />
       |     |10 - Record 3 Tracks -----------------------------+-+|<br />
       |     |11 - Record 4 Tracks -----------------------------+-'|<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8937|byte |CODEC Input Source from 16bit adder          BIT 1 0|R/W (F030)<br />
       |     |Source: Multiplexer ------------------------------' ||<br />
       |     |Source: A/D Convertor ------------------------------'|<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8938|byte |CODEC ADC-Input for L+R Channel              BIT 1 0|R/W (F030)<br />
       |     |0 - Microphone, 1 - Soundchip                    L R|<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8939|byte |Channel amplification                  BIT LLLL RRRR|R/W (F030)<br />
       |     |          Amplification is in +1.5dB steps          |<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF893A|word |Channel attenuation                    BIT LLLL RRRR|R/W (F030)<br />
       |     |          Attenuation is in -1.5dB steps            |<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF893C|byte |CODEC-Status                                  BIT 1 0|R/W (F030)<br />
       |     |Left Channel Overflow ----------------------------' ||<br />
       |     |Right Channel Overflow -----------------------------'|<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8941|byte |GPx Data Direction                          BIT 2 1 0|R/W (F030)<br />
       |     |0 - In, 1 - Out --------------------------------+-+-'|<br />
       |     | For the GP0-GP2 pins on the DSP connector           |<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8943|byte |GPx Data Port                               BIT 2 1 0|R/W (F030)<br />
<a name="TT Clock Chip"></a>-------+-----+-----------------------------------------------------+----------<br />
##############TT Clock Chip (MC146818A @ 32.768 khz)          ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8961|byte |Register select                                      |W    (TT)<br />
       |     |0 - Current Second                                   |<br />
       |     |1 - Second for alarm                                 |<br />
       |     |2 - Current Minute                                   |<br />
       |     |3 - Minute for alarm                                 |<br />
       |     |4 - Current Hour                                     |<br />
       |     |5 - Hour for alarm                                   |<br />
       |     |6 - Day of week (1=Sunday, 2=Monday, 3=...)          |<br />
       |     |7 - Day of Month                                     |<br />
       |     |8 - Month                                            |<br />
       |     |9 - Year (example : '93' for this year)              |<br />
       |     |A                                               BIT 7|<br />
       |     |    If set, update time in progress ----------------'|<br />
       |     |    don't read time &amp; date registers                 |<br />
       |     |B                                 BIT 7 6 5 4 3 2 1 0|<br />
       |     |1 = Write Protect time &amp; date --------'   | |   | | ||<br />
       |     |1 = Enable alarm interrupt ---------------' |   | | ||<br />
       |     |1 = Interrupt after time updated -----------'   | | ||<br />
       |     |1 = Format Binary, 0 = Format BCD --------------' | ||<br />
       |     |1 = 24hr format, 0 = 12hr format -----------------' ||<br />
       |     |1 = Summer hours, 0 = Winter hours -----------------'|<br />
       |     |C                                           BIT 6 5 4|<br />
       |     | ??? -------------------------------------------' | ||<br />
       |     |1 = alarm is ringing -----------------------------' ||<br />
       |     |1 = date is updated --------------------------------'|<br />
       |     |On interrupt, read this register to determine source.|<br />
       |     |D                                               BIT 7|<br />
       |     |1 = Battery dead -----------------------------------'|<br />
&#36;FF8963|byte |Register data                                        |R/W  (TT)<br />
<a name="Blitter"></a>-------+-----+-----------------------------------------------------+----------<br />
##############Blitter (Not present on TT!)                    ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8A00|word |Halftone-RAM, Word 0                                 |R/W (Blit)<br />
    :  |  :  |    :    :    :   :                                  | :    :<br />
&#36;FF8A1E|word |Halftone-RAM, Word 15                                |R/W (Blit)<br />
&#36;FF8A20|word |Source X Increment                      (signed,even)|R/W (Blit)<br />
&#36;FF8A22|word |Source Y Increment                      (signed,even)|R/W (Blit)<br />
&#36;FF8A24|long |Source Address Register                 (24 bit,even)|R/W (Blit)<br />
&#36;FF8A28|word |Endmask 1                     (First write of a line)|R/W (Blit)<br />
&#36;FF8A2A|word |Endmask 2                     (All other line writes)|R/W (Blit)<br />
&#36;FF8A2C|word |Endmask 3                      (Last write of a line)|R/W (Blit)<br />
&#36;FF8A2E|word |Destination X Increment                 (signed,even)|R/W (Blit)<br />
&#36;FF8A30|word |Destination Y Increment                 (signed,even)|R/W (Blit)<br />
&#36;FF8A32|long |Destination Address Register            (24 bit,even)|R/W (Blit)<br />
&#36;FF8A36|word |Words per Line in Bit-Block                 (0=65536)|R/W (Blit)<br />
&#36;FF8A38|word |Lines per Bit-Block                         (0=65536)|R/W (Blit)<br />
&#36;FF8A3A|byte |Halftone Operation Register                   BIT 1 0|R/W (Blit)<br />
       |     |00 - All ones ------------------------------------+-+|<br />
       |     |01 - Halftone ------------------------------------+-+|<br />
       |     |10 - Source --------------------------------------+-+|<br />
       |     |11 - Source AND Halftone -------------------------+-'|<br />
&#36;FF8A3B|byte |Logical Operation Register                BIT 3 2 1 0|R/W (Blit)<br />
       |     |0000 All zeros -------------------------------+-+-+-+|<br />
       |     |0001 Source AND destination ------------------+-+-+-+|<br />
       |     |0010 Source AND NOT destination --------------+-+-+-+|<br />
       |     |0011 Source ----------------------------------+-+-+-+|<br />
       |     |0100 NOT source AND destination --------------+-+-+-+|<br />
       |     |0101 Destination -----------------------------+-+-+-+|<br />
       |     |0110 Source XOR destination ------------------+-+-+-+|<br />
       |     |0111 Source OR destination -------------------+-+-+-+|<br />
       |     |1000 NOT source AND NOT destination ----------+-+-+-+|<br />
       |     |1001 NOT source XOR destination --------------+-+-+-+|<br />
       |     |1010 NOT destination -------------------------+-+-+-+|<br />
       |     |1011 Source OR NOT destination ---------------+-+-+-+|<br />
       |     |1100 NOT source ------------------------------+-+-+-+|<br />
       |     |1101 NOT source OR destination ---------------+-+-+-+|<br />
       |     |1110 NOT source OR NOT destination -----------+-+-+-+|<br />
       |     |1111 All ones --------------------------------+-+-+-'|<br />
&#36;FF8A3C|byte |Line Number Register              BIT 7 6 5 . 3 2 1 0|R/W (Blit)<br />
       |     |BUSY ---------------------------------' | |   | | | ||<br />
       |     |0 - Share bus, 1 - Hog bus -------------' |   | | | ||<br />
       |     |SMUDGE mode ------------------------------'   | | | ||<br />
       |     |Halftone line number -------------------------+-+-+-'|<br />
&#36;FF8A3D|byte |SKEW Register                     BIT 7 6 . . 3 2 1 0|R/W (Blit)<br />
       |     |Force eXtra Source Read --------------' |     | | | ||<br />
       |     |No Final Source Read -------------------'     | | | ||<br />
       |     |Source skew ----------------------------------+-+-+-'|<br />
<a name="SCC-DMA"></a>-------+-----+-----------------------------------------------------+----------<br />
##############SCC-DMA (TT Only!)                              ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8C01|byte |DMA Address Pointer (Highest Byte)                   |R/W  (TT)<br />
&#36;FF8C03|byte |DMA Address Pointer (High Byte)                      |R/W  (TT)<br />
&#36;FF8C05|byte |DMA Address Pointer (Low Byte)                       |R/W  (TT)<br />
&#36;FF8C07|byte |DMA Address Pointer (Lowest Byte)                    |R/W  (TT)<br />
&#36;FF8C09|byte |DMA Byte Count (Highest-Byte)                        |R/W  (TT)<br />
&#36;FF8C0B|byte |DMA Byte Count (High-Byte)                           |R/W  (TT)<br />
&#36;FF8C0D|byte |DMA Byte Count (Low-Byte)                            |R/W  (TT)<br />
&#36;FF8C0F|byte |DMA Byte Count (Lowest-Byte)                         |R/W  (TT)<br />
&#36;FF8C10|word |Residue Data Register (High-Word)                    |R    (TT)<br />
&#36;FF8C12|word |Residue Data register (Low-Word)                     |R    (TT)<br />
&#36;FF8C15|byte |Control register                  BIT 7 6 . . . . 1 0|R/W  (TT)<br />
       |     |Bus error ----------------------------' |         | ||<br />
       |     |Byte count zero ------------------------'         | ||<br />
       |     |Enable -------------------------------------------' ||<br />
       |     |DMA Direction (1 - out to port) --------------------'|<br />
<a name="Zilog 8530 SCC"></a>-------+-----+-----------------------------------------------------+----------<br />
##############Zilog 8530 SCC (MSTe/TT/F030)                   ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8C81|byte |Channel A - Control Register                         |R/W  (SCC)<br />
&#36;FF8C83|byte |Channel A - Data Register                            |R/W  (SCC)<br />
&#36;FF8C85|byte |Channel B - Control Register                         |R/W  (SCC)<br />
&#36;FF8C87|byte |Channel B - Data Register                            |R/W  (SCC)<br />
<a name="VME Bus System Control Unit"></a>-------+-----+-----------------------------------------------------+----------<br />
##############VME Bus System Control Unit (MSTe/TT)           ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8E01|byte |VME sys_mask                      BIT 7 6 5 4 . 2 1 .|R/W  (VME)<br />
&#36;FF8E03|byte |VME sys_stat                      BIT 7 6 5 4 . 2 1 .|R    (VME)<br />
       |     |_SYSFAIL in VMEBUS -------------------' | | |   | |  |program<br />
       |     |MFP ------------------------------------' | |   | |  |autovec<br />
       |     |SCC --------------------------------------' |   | |  |autovec<br />
       |     |VSYNC --------------------------------------'   | |  |program<br />
       |     |HSYNC ------------------------------------------' |  |program<br />
       |     |System software INT ------------------------------'  |program<br />
       |     +-----------------------------------------------------+<br />
       |     |Reading sys_mask resets pending int-bits in sys_stat,|<br />
       |     |so read sys_stat first.                              |<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8E05|byte |VME sys_int                                     BIT 0|R/W  (VME)<br />
       |    |Setting bit 0 to 1 forces an INT of level 1. INT must|Vector &#36;64<br />
       |     |be enabled in sys_mask to use it.                    |<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8E0D|byte |VME vme_mask                      BIT 7 6 5 4 3 2 1 .|R/W  (VME)<br />
&#36;FF8E0F|byte |VME vme_stat                      BIT 7 6 5 4 3 2 1 .|R    (VME)<br />
       |     |_IRQ7 from VMEBUS --------------------' | | | | | |  |program<br />
       |     |_IRQ6 from VMEBUS/MFP ------------------' | | | | |  |program<br />
       |     |_IRQ5 from VMEBUS/SCC --------------------' | | | |  |program<br />
       |     |_IRQ4 from VMEBUS --------------------------' | | |  |program<br />
       |     |_IRQ3 from VMEBUS/soft -----------------------' | |  |prog/autov<br />
       |     |_IRQ2 from VMEBUS ------------------------------' |  |program<br />
       |     |_IRQ1 from VMEBUS --------------------------------'  |program<br />
       |     +-----------------------------------------------------+<br />
       |     |MFP-int and SCC-int are hardwired to the VME-BUS-ints|<br />
       |     |(or'ed). Reading vme_mask resets pending int-bits in |<br />
       |     |vme_stat, so read vme_stat first.                    |<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8E07|byte |VME vme_int                                     BIT 0|R/W  (TT)<br />
       |     |Setting bit 0 to 1 forces an INT of level 3. INT must|Vector &#36;6C<br />
       |     |be enabled in vme_mask to use it.                    |<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8E09|byte |General purpose register - does nothing              |R/W  (TT)<br />
&#36;FF8E0B|byte |General purpose register - does nothing              |R/W  (TT)<br />
<a name="Mega STe Cache/Processor Control"></a>-------+-----+-----------------------------------------------------+----------<br />
##############Mega STe Cache/Processor Control                ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8E21|byte |Mega STe Cache/Processor Control           BIT 15-1 0|R/W (MSTe)<br />
       |     |Cache enable lines (set all to 1 to enable) -----'  ||<br />
       |     |CPU Speed (0 - 8mhz, 1 - 16mhz) --------------------'|<br />
<a name="STe/F030 Extended Joystick/Lightpen Ports"></a>-------+-----+-----------------------------------------------------+----------<br />
##############STe/F030 Extended Joystick/Lightpen Ports       ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF9200|word |Fire buttons 1-4                          Bit 3 2 1 0|R    (Ext)<br />
       |     |Pause/F0 -------------------------------------' | | ||<br />
       |     |F1 ---------------------------------------------' | ||<br />
       |     |F2 -----------------------------------------------' ||<br />
       |     |Option/F3 ------------------------------------------'|<br />
&#36;FF9202|word |Read Mask (0 - pin read)                             |W    (Ext)<br />
&#36;FF9202|word |Joystick Inputs                   BIT 7 6 5 4 3 2 1 0|R    (Ext)<br />
       |     |Controller 1 pin 4 -------------------' | | | | | | ||<br />
       |     |Controller 1 pin 3 ---------------------' | | | | | ||<br />
       |     |Controller 1 pin 2 -----------------------' | | | | ||<br />
       |     |Controller 1 pin 1 -------------------------' | | | ||<br />
       |     |Controller 0 pin 4 ---------------------------' | | ||<br />
       |     |Controller 0 pin 3/Paddle 1 Trigger ------------' | ||<br />
       |     |Controller 0 pin 2/Paddle 0 Trigger --------------' ||<br />
       |     |Controller 0 pin 1 ---------------------------------'|<br />
       |     |                            BIT 15 14 13 12 11 10 9 8|<br />
       |     |Controller 1 pin 14 ------------'   |  |  |  |  | | ||<br />
       |     |Controller 1 pin 13 ----------------'  |  |  |  | | ||<br />
       |     |Controller 1 pin 12 -------------------'  |  |  | | ||<br />
       |     |Controller 1 pin 11 ----------------------'  |  | | ||<br />
       |     |Controller 0 pin 14 -------------------------'  | | ||<br />
       |     |Controller 0 pin 13 ----------------------------' | ||<br />
       |     |Controller 0 pin 12 ------------------------------' ||<br />
       |     |Controller 0 pin 11 --------------------------------'|<br />
&#36;FF9210|word |X Paddle 0 Position               BIT 7 6 5 4 3 2 1 0|R    (Ext)<br />
&#36;FF9212|word |Y Paddle 0 Position               BIT 7 6 5 4 3 2 1 0|R    (Ext)<br />
&#36;FF9214|word |X Paddle 1 Position               BIT 7 6 5 4 3 2 1 0|R    (Ext)<br />
&#36;FF9216|word |Y Paddle 1 Position               BIT 7 6 5 4 3 2 1 0|R    (Ext)<br />
&#36;FF9220|word |Lightpen X-Position           BIT 9 8 7 6 5 4 3 2 1 0|R    (Ext)<br />
&#36;FF9222|word |Lightpen Y-Position           BIT 9 8 7 6 5 4 3 2 1 0|R    (Ext)<br />
<a name="Falcon VIDEL Palette Registers"></a>-------+-----+-----------------------------------------------------+----------<br />
##############Falcon VIDEL Palette Registers                  ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
       |     |              BIT 33222222 22221111 11111198 76543210|<br />
       |     |                   10987654 32109876 543210          |<br />
       |     |                  RRRRRr.. GGGGGg.. ........ BBBBBb..|<br />
&#36;FF9800|long |Palette Register  0                   Lowercase = LSB|R/W (F030)<br />
    :  |  :  |  :        :     :                                   | :    :<br />
&#36;FF98FC|long |Palette Register 255                                 |R/W (F030)<br />
<a name="Falcon DSP Host Interface"></a>-------+-----+-----------------------------------------------------+----------<br />
##############Falcon DSP Host Interface                       ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFA200|byte |Interrupt Ctrl Register          BIT 7 6 5 4 3 . 1 0|R/W (F030)<br />
X:&#36;FFE9|     |INIT bit -----------------------------' | | | |  | ||<br />
       |     |00 - Interupt mode (DMA off) -----------+-+ | |  | ||<br />
       |     |01 - 24-bit DMA mode -------------------+-+ | |  | ||<br />
       |     |10 - 16-bit DMA mode -------------------+-+ | |  | ||<br />
       |     |11 - 8-bit DMA mode --------------------+-' | |  | ||<br />
       |     |Host Flag 1 --------------------------------' |  | ||<br />
       |     |Host Flag 0 ----------------------------------'  | ||<br />
       |     |        Host mode Data transfers:                | ||<br />
       |     |              Interrupt mode                     | ||<br />
       |     |00 - No interrupts (Polling) --------------------+-+|<br />
       |     |01 - RXDF Request (Interrupt) -------------------+-+|<br />
       |     |10 - TXDE Request (Interrupt) -------------------+-+|<br />
       |     |11 - RXDF and TXDE Request (Interrupts) ---------+-+|<br />
       |     |                DMA Mode                         | ||<br />
       |     |00 - No DMA -------------------------------------+-+|<br />
       |     |01 - DSP to Host Request (RX) -------------------+-+|<br />
       |     |10 - Host to DSP Request (TX) -------------------+-+|<br />
       |     |11 - Undefined (Illegal) ------------------------+-'|<br />
&#36;FFA201|byte |Command Vector Register          BIT 7 . . 4 3 2 1 0|R/W (F030)<br />
X:&#36;FFE9|     |Host Command Bit (Handshake)---------'     | | | | ||<br />
       |     |Host Vector (0-31) ------------------------+-+-+-+-'|<br />
&#36;FFA202|byte |Interrupt Status Reg             BIT 7 6 . 4 3 2 1 0|R  (F030)<br />
X:&#36;FFE8|     |ISR Host Request --------------------' |   | | | | ||<br />
       |     |ISR DMA Status ------------------------'   | | | | ||<br />
       |     |Host Flag 3 -------------------------------' | | | ||<br />
       |     |Host Flag 2 ---------------------------------' | | ||<br />
       |     |ISR Transmitter Ready (TRDY) ------------------' | ||<br />
       |     |ISR Transmit Data Register Empty (TXDE) ---------' ||<br />
       |     |ISR Receive Data Register Full (RXDF) -------------'|<br />
&#36;FFA203|byte |Interrupt Vector Register                           |R/W (F030)<br />
&#36;FFA204|byte |Unused                                              |    (F030)<br />
&#36;FFA205|byte |DSP-Word High                                       |R/W (F030)<br />
X:&#36;FFEB|     |                                                    |<br />
&#36;FFA206|byte |DSP-Word Mid                                        |R/W (F030)<br />
X:&#36;FFEB|     |                                                    |<br />
&#36;FFA207|byte |DSP-Word Low                                        |R/W (F030)<br />
X:&#36;FFEB|     |                                                    |<br />
<a name="MFP 68901"></a>-------+-----+----------------------------------------------------+----------<br />
##############MFP 68901 - Multi Function Peripheral Chip      ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
       |     |    MFP Master Clock is 2,457,600 cycles/second      |<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA01|byte |Parallel Port Data Register                          |R/W<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA03|byte |Active Edge Register              BIT 7 6 5 4 . 2 1 0|R/W<br />
       |     |Monochrome monitor detect ------------' | | | | | | ||<br />
       |     |RS-232 Ring indicator ------------------' | | | | | ||<br />
       |     |FDC/HDC interrupt ------------------------' | | | | ||<br />
       |     |Keyboard/MIDI interrupt --------------------' | | | ||<br />
       |     |Reserved -------------------------------------' | | ||<br />
       |     |RS-232 CTS (input) -----------------------------' | ||<br />
       |     |RS-232 DCD (input) -------------------------------' ||<br />
       |     |Centronics busy ------------------------------------'|<br />
       |     +-----------------------------------------------------+<br />
       |     |      When port bits are used for input only:       |<br />
       |     |0 - Interrupt on pin high-low conversion             |<br />
       |     |1 - Interrupt on pin low-high conversion             |<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA05|byte |Data Direction                    BIT 7 6 5 4 3 2 1 0|R/W<br />
       |     |0 - In, 1 - Out ----------------------+-+-+-+-+-+-+-'|<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA07|byte |Interrupt Enable A                BIT 7 6 5 4 3 2 1 0|R/W<br />
&#36;FFFA0B|byte |Interrupt Pending A               BIT 7 6 5 4 3 2 1 0|R/W<br />
&#36;FFFA0F|byte |Interrupt In-service A            BIT 7 6 5 4 3 2 1 0|R/W<br />
&#36;FFFA13|byte |Interrupt Mask A                  BIT 7 6 5 4 3 2 1 0|R/W<br />
       |     |MFP Address                           | | | | | | | ||<br />
       |     |&#36;13C GPI7-Monochrome Detect ----------' | | | | | | ||<br />
       |     |&#36;138  RS-232 Ring Detector -------------' | | | | | ||<br />
       |     |&#36;134 (STe sound)    Timer A --------------' | | | | ||<br />
       |     |&#36;130    Receive buffer full ----------------' | | | ||<br />
       |     |&#36;12C          Receive error ------------------' | | ||<br />
       |     |&#36;128      Send buffer empty --------------------' | ||<br />
       |     |&#36;124            Send error -----------------------' ||<br />
       |     |&#36;120 (HBL)          Timer B ------------------------'|<br />
       |     |1 - Enable Interrupt            0 - Disable Interrupt|<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA09|byte |Interrupt Enable B                BIT 7 6 5 4 3 2 1 0|R/W<br />
&#36;FFFA0D|byte |Interrupt Pending B               BIT 7 6 5 4 3 2 1 0|R/W<br />
&#36;FFFA11|byte |Interrupt In-service B            BIT 7 6 5 4 3 2 1 0|R/W<br />
&#36;FFFA15|byte |Interrupt Mask B                  BIT 7 6 5 4 3 2 1 0|R/W<br />
       |     |MFP Address                           | | | | | | | ||<br />
       |     |&#36;11C                FDC/HDC ----------' | | | | | | ||<br />
       |     |&#36;118          Keyboard/MIDI ------------' | | | | | ||<br />
       |     |&#36;114 (200hz clock)  Timer C --------------' | | | | ||<br />
       |     |&#36;110 (USART timer)  Timer D ----------------' | | | ||<br />
       |     |&#36;10C          Blitter done -------------------' | | ||<br />
       |     |&#36;108    RS-232 CTS - input ---------------------' | ||<br />
       |     |&#36;104    RS-232 DCD - input -----------------------' ||<br />
       |     |&#36;100        Centronics Busy ------------------------'|<br />
       |     |1 - Enable Interrupt            0 - Disable Interrupt|<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA17|byte |Vector Register                   BIT 7 6 5 4 3 . . .|R/W<br />
       |     |Vector Base Offset -------------------+-+-+-' |      |<br />
       |     |1 - *Software End-interrupt mode -------------+      |<br />
       |     |0 - Automatic End-interrupt mode -------------'      |<br />
       |    |* - Default operating mode                           |<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA19|byte |Timer A Control                         BIT 4 3 2 1 0|R/W<br />
&#36;FFFA1B|byte |Timer B Control                         BIT 4 3 2 1 0|R/W<br />
       |     |Reset (force output low) -------------------' | | | ||<br />
       |     +----------------------------------------------+-+-+-++<br />
       |     |0000 - Timer stop, no function executed              |<br />
        |     |0001 - Delay mode, divide by 4                       |<br />
       |     |0010 -    :          :       10                      |<br />
       |     |0011 -    :          :       16                      |<br />
       |     |0100 -    :          :       50                      |<br />
       |     |0101 -    :          :       64                      |<br />
       |     |0110 -    :          :       100                     |<br />
       |     |0111 - Delay mode, divide by 200                     |<br />
       |     |1000 - Event count mode                              |<br />
       |     |1xxx - Pulse extension mode, divide as above         |<br />
       |     +-----------------------------------------------------+<br />
&#36;FFFA1F|byte |Timer A Data                                         |R/W<br />
&#36;FFFA21|byte |Timer B Data                                         |R/W<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA1D|byte |Timer C &amp; D Control                 BIT 6 5 4 . 2 1 0|R/W<br />
       |     |                                         Timer  Timer|<br />
       |     |                                           C      D  |<br />
       |     +-----------------------------------------------------+<br />
       |     |000 - Timer stop                                     |<br />
       |     |001 - Delay mode, divide by 4                        |<br />
       |     |010 -      :          :     10                       |<br />
       |     |011 -      :          :     16                       |<br />
       |     |100 -      :          :     50                       |<br />
       |     |101 -      :          :     64                       |<br />
       |     |110 -      :          :     100                      |<br />
       |     |111 - Delay mode, divide by 200                      |<br />
       |     +-----------------------------------------------------+<br />
&#36;FFFA23|byte |Timer C Data                                         |R/W<br />
&#36;FFFA25|byte |Timer D Data                                         |R/W<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA27|byte |Sync Character                                       |R/W<br />
&#36;FFFA29|byte |USART Control                     BIT 7 6 5 4 3 2 1 .|R/W<br />
       |     |Clock divide (1 - div by 16) ---------' | | | | | | ||<br />
       |     |Word Length 00 - 8 bits ----------------+-+ | | | | ||<br />
       |     |            01 - 7 bits ----------------+-+ | | | | ||<br />
       |     |            10 - 6 bits ----------------+-+ | | | | ||<br />
       |     |            11 - 5 bits ----------------+-' | | | | ||<br />
       |     |Bits Stop Start Format                      | | | | ||<br />
       |     |00    0    0  Synchronous ------------------+-+ | | ||<br />
       |     |01    1    1  Asynchronous -----------------+-+ | | ||<br />
       |     |10    1    1.5 Asynchronous ----------------+-+ | | ||<br />
       |     |11    1    2  Asynchronous -----------------+-' | | ||<br />
       |     |Parity (0 - ignore parity bit) -----------------' | ||<br />
       |     |Parity (0 - odd parity,1 - even) -----------------' ||<br />
       |     |Unused ---------------------------------------------'|<br />
&#36;FFFA2B|byte |Receiver Status                   BIT 7 6 5 4 3 2 1 0|R/W<br />
       |     |Buffer full --------------------------' | | | | | | ||<br />
       |     |Overrun error --------------------------' | | | | | ||<br />
       |     |Parity error -----------------------------' | | | | ||<br />
       |     |Frame error --------------------------------' | | | ||<br />
       |     |Found - Search/Break detected ----------------' | | ||<br />
       |     |Match/Character in progress --------------------' | ||<br />
       |     |Synchronous strip enable -------------------------' ||<br />
       |     |Receiver enable bit --------------------------------'|<br />
&#36;FFFA2D|byte |Transmitter Status                BIT 7 6 5 4 3 2 1 0|R/W<br />
       |     |Buffer empty -------------------------' | | | | | | ||<br />
       |     |Underrun error -------------------------' | | | | | ||<br />
       |     |Auto turnaround --------------------------' | | | | ||<br />
       |     |End of transmission ------------------------' | | | ||<br />
       |     |Break ----------------------------------------' | | ||<br />
       |     |High bit ---------------------------------------' | ||<br />
       |     |Low bit ------------------------------------------' ||<br />
       |     |Transmitter enable ---------------------------------'|<br />
&#36;FFFA2F|byte |USART data                                          |R/W<br />
<a name="Floating Point Coprocessor"></a>-------+-----+-----------------------------------------------------+----------<br />
########## Floating Point Coprocessor (CIR Interface in MSTe) ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA40|word |FP_Stat    Response-Register                         |??? (MSTe)<br />
&#36;FFFA42|word |FP_Ctl    Control-Register                           |??? (MSTe)<br />
&#36;FFFA44|word |FP_Save    Save-Register                             |??? (MSTe)<br />
&#36;FFFA46|word |FP_Restor  Restore-Register                          |??? (MSTe)<br />
&#36;FFFA48|word |                                                     |??? (MSTe)<br />
&#36;FFFA4A|word |FP_Cmd    Command-Register                           |??? (MSTe)<br />
&#36;FFFA4E|word |FP_Ccr    Condition-Code-Register                     |??? (MSTe)<br />
&#36;FFFA50|long |FP_Op      Operand-Register                           |??? (MSTe)<br />
&#36;FFFA54|word |FP_Selct  Register Select                           |??? (MSTe)<br />
&#36;FFFA58|long |FP_Iadr    Instruction Address                       |??? (MSTe)<br />
&#36;FFFA5C|long |          Operand Address                            |??? (MSTe)<br />
<a name="MFP 68901 #2 (MFP2) - TT Only"></a>-------+-----+-----------------------------------------------------+----------<br />
##############MFP 68901 #2 (MFP2) - TT Only                   ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA81|byte |Parallel Port Data Register                          |R/W  (TT)<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA83|byte |Active Edge Register              BIT 7 6 5 4 3 2 1 0|R/W  (TT)<br />
       |     +-----------------------------------------------------+<br />
       |     |      When port bits are used for input only:        |<br />
       |     |0 - Interrupt on pin high-low conversion             |<br />
       |     |1 - Interrupt on pin low-high conversion             |<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA85|byte |Data Direction                    BIT 7 6 5 4 3 2 1 0|R/W  (TT)<br />
       |     |0 - In, 1 - Out ----------------------+-+-+-+-+-+-+-'|<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA87|byte |Interrupt Enable A                BIT 7 6 5 4 3 2 1 0|R/W  (TT)<br />
&#36;FFFA8B|byte |Interrupt Pending A              BIT 7 6 5 4 3 2 1 0|R/W  (TT)<br />
&#36;FFFA8F|byte |Interrupt In-service A            BIT 7 6 5 4 3 2 1 0|R/W  (TT)<br />
&#36;FFFA93|byte |Interrupt Mask A                  BIT 7 6 5 4 3 2 1 0|R/W  (TT)<br />
       |     |MFP Address                           | | | | | | | ||<br />
       |     |&#36;17C        TT-SCSI NCR5380 ----------' | | | | | | ||<br />
       |     |&#36;178        RTC (MC146818A) ------------' | | | | | ||<br />
       |     |&#36;174                Timer A --------------' | | | | ||<br />
       |     |&#36;170    Receive buffer full ----------------' | | | ||<br />
       |     |&#36;16C          Receive error ------------------' | | ||<br />
       |     |&#36;168      Send buffer empty --------------------' | ||<br />
       |     |&#36;164              Send error ---------------------' ||<br />
       |     |&#36;160                Timer B ------------------------'|<br />
       |     |1 - Enable Interrupt            0 - Disable Interrupt|<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA89|byte |Interrupt Enable B                BIT 7 6 5 4 3 2 1 0|R/W  (TT)<br />
&#36;FFFA8D|byte |Interrupt Pending B               BIT 7 6 5 4 3 2 1 0|R/W  (TT)<br />
&#36;FFFA91|byte |Interrupt In-service B            BIT 7 6 5 4 3 2 1 0|R/W  (TT)<br />
&#36;FFFA95|byte |Interrupt Mask B                  BIT 7 6 5 4 3 2 1 0|R/W  (TT)<br />
       |     |MFP Address                           | | | | | | | ||<br />
       |     |&#36;15C    SCSI DMA Controller ----------' | | | | | | ||<br />
       |     |&#36;158      (Reserved) GPIP 4 ------------' | | | | | ||<br />
       |     |&#36;154                Timer C --------------' | | | | ||<br />
       |     |&#36;150                Timer D ----------------' | | | ||<br />
       |     |&#36;14C    SCC B Ring Indicator -----------------' | | ||<br />
       |     |&#36;148      SCC DMA Controller -------------------' | ||<br />
       |     |&#36;144 General Purpose Input 1 ---------------------' ||<br />
       |     |&#36;140 General Purpose Input 0 -----------------------'|<br />
       |     |1 - Enable Interrupt            0 - Disable Interrupt|<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA97|byte |Vector Register                   BIT 7 6 5 4 3 . . .|R/W  (TT)<br />
       |     |Vector Base Offset -------------------+-+-+-' |      |<br />
       |     |1 - *Software End-interrupt mode -------------+      |<br />
       |     |0 - Automatic End-interrupt mode -------------'      |<br />
       |     |* - Default operating mode                           |<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA99|byte |Timer A Control                         BIT 4 3 2 1 0|R/W  (TT)<br />
&#36;FFFA9B|byte |Timer B Control                         BIT 4 3 2 1 0|R/W  (TT)<br />
       |     |Reset (force output low) -------------------' | | | ||<br />
       |     +----------------------------------------------+-+-+-++<br />
       |     |0000 - Timer stop, no function executed              |<br />
       |     |0001 - Delay mode, divide by 4                       |<br />
       |     |0010 -    :          :       10                      |<br />
       |     |0011 -    :          :       16                      |<br />
       |     |0100 -    :          :       50                      |<br />
       |     |0101 -    :          :       64                      |<br />
       |     |0110 -    :          :       100                     |<br />
       |     |0111 - Delay mode, divide by 200                     |<br />
       |     |1000 - Event count mode                              |<br />
       |     |1xxx - Pulse extension mode, divide as above         |<br />
       |     +-----------------------------------------------------+<br />
&#36;FFFA9F|byte |Timer A Data                                         |R/W  (TT)<br />
&#36;FFFAA1|byte |Timer B Data                                         |R/W  (TT)<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA9D|byte |Timer C &amp; D Control                 BIT 6 5 4 . 2 1 0|R/W  (TT)<br />
       |     |                                         Timer  Timer|<br />
       |     |                                           C      D  |<br />
       |     +-----------------------------------------------------+<br />
       |     |000 - Timer stop                                     |<br />
       |     |001 - Delay mode, divide by 4                        |<br />
       |     |010 -      :          :     10                       |<br />
       |     |011 -      :          :     16                       |<br />
       |     |100 -      :          :     50                       |<br />
       |     |101 -      :          :     64                       |<br />
       |     |110 -      :          :     100                      |<br />
       |     |111 - Delay mode, divide by 200                      |<br />
       |     +-----------------------------------------------------+<br />
&#36;FFFAA3|byte |Timer C Data                                         |R/W  (TT)<br />
&#36;FFFAA5|byte |Timer D Data                                         |R/W  (TT)<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFAA7|byte |Sync Character                                       |R/W  (TT)<br />
&#36;FFFAA9|byte |USART Control                     BIT 7 6 5 4 3 2 1 .|R/W  (TT)<br />
       |     |Clock divide (1 - div by 16) ---------' | | | | | | ||<br />
       |     |Word Length 00 - 8 bits ----------------+-+ | | | | ||<br />
       |     |            01 - 7 bits ----------------+-+ | | | | ||<br />
       |     |            10 - 6 bits ----------------+-+ | | | | ||<br />
       |     |            11 - 5 bits ----------------+-' | | | | ||<br />
       |     |Bits Stop Start Format                      | | | | ||<br />
       |     |00    0    0  Synchronous ------------------+-+ | | ||<br />
       |     |01    1    1  Asynchronous -----------------+-+ | | ||<br />
       |     |10    1    1.5 Asynchronous ----------------+-+ | | ||<br />
       |     |11    1    2  Asynchronous -----------------+-' | | ||<br />
       |     |Parity (0 - ignore parity bit) -----------------' | ||<br />
       |     |Parity (0 - odd parity,1 - even) -----------------' ||<br />
       |     |Unused ---------------------------------------------'|<br />
&#36;FFFAAB|byte |Receiver Status                   BIT 7 6 5 4 3 2 1 0|R/W  (TT)<br />
       |     |Buffer full --------------------------' | | | | | | ||<br />
       |     |Overrun error --------------------------' | | | | | ||<br />
       |     |Parity error -----------------------------' | | | | ||<br />
       |     |Frame error --------------------------------' | | | ||<br />
       |     |Found - Search/Break detected ----------------' | | ||<br />
       |     |Match/Character in progress --------------------' | ||<br />
       |     |Synchronous strip enable -------------------------' ||<br />
       |     |Receiver enable bit --------------------------------'|<br />
&#36;FFFAAD|byte |Transmitter Status                BIT 7 6 5 4 3 2 1 0|R/W  (TT)<br />
       |     |Buffer empty -------------------------' | | | | | | ||<br />
       |     |Underrun error -------------------------' | | | | | ||<br />
       |     |Auto turnaround --------------------------' | | | | ||<br />
       |     |End of transmission ------------------------' | | | ||<br />
       |     |Break ----------------------------------------' | | ||<br />
       |     |High bit ---------------------------------------' | ||<br />
       |     |Low bit ------------------------------------------' ||<br />
       |     |Transmitter enable ---------------------------------'|<br />
&#36;FFFAAF|byte |USART data                                           |R/W  (TT)<br />
<a name="6850 ACIA I/O Chips"></a>-------+-----+-----------------------------------------------------+----------<br />
##############6850 ACIA I/O Chips                             ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFC00|byte |Keyboard ACIA control             BIT 7 6 5 4 3 2 1 0|W<br />
       |     |Rx Int enable (1 - enable) -----------' | | | | | | ||<br />
       |     |Tx Interrupts                           | | | | | | ||<br />
       |     |00 - RTS low, Tx int disable -----------+-+ | | | | ||<br />
       |     |01 - RTS low, Tx int enable ------------+-+ | | | | ||<br />
       |     |10 - RTS high, Tx int disable ----------+-+ | | | | ||<br />
       |     |11 - RTS low, Tx int disable,           | | | | | | ||<br />
       |     |    Tx a break onto data out -----------+-' | | | | ||<br />
       |     |Settings                                    | | | | ||<br />
       |     |000 - 7 bit, even, 2 stop bit --------------+-+-+ | ||<br />
       |     |001 - 7 bit, odd, 2 stop bit ---------------+-+-+ | ||<br />
       |     |010 - 7 bit, even, 1 stop bit --------------+-+-+ | ||<br />
       |     |011 - 7 bit, odd, 1 stop bit ---------------+-+-+ | ||<br />
       |     |100 - 8 bit, 2 stop bit --------------------+-+-+ | ||<br />
       |     |101 - 8 bit, 1 stop bit --------------------+-+-+ | ||<br />
       |     |110 - 8 bit, even, 1 stop bit --------------+-+-+ | ||<br />
       |     |111 - 8 bit, odd, 1 stop bit ---------------+-+-' | ||<br />
       |     |Clock divide                                      | ||<br />
       |     |00 - Normal --------------------------------------+-+|<br />
       |     |01 - Div by 16 -----------------------------------+-+|<br />
       |     |10 - Div by 64 -----------------------------------+-+|<br />
       |     |11 - Master reset --------------------------------+-'|<br />
&#36;FFFC00|byte |Keyboard ACIA control            BIT 7 6 5 4 3 2 1 0|R<br />
       |     |Interrupt request --------------------' | | | | | | ||<br />
       |     |Parity error ---------------------------' | | | | | ||<br />
       |     |Rx overrun -------------------------------' | | | | ||<br />
       |     |Framing error ------------------------------' | | | ||<br />
       |     |CTS ------------------------------------------' | | ||<br />
       |     |DCD --------------------------------------------' | ||<br />
       |     |Tx data register empty ---------------------------' ||<br />
       |     |Rx data register full ------------------------------'|<br />
&#36;FFFC02|byte |Keyboard ACIA data                                   |R/W<br />
&#36;FFFC04|byte |MIDI ACIA control                 BIT 7 6 5 4 3 2 1 0|W<br />
       |     |Rx Int enable (1 - enable) -----------' | | | | | | ||<br />
       |     |Tx Interrupts                           | | | | | | ||<br />
       |     |00 - RTS low, Tx int disable -----------+-+ | | | | ||<br />
       |     |01 - RTS low, Tx int enable ------------+-+ | | | | ||<br />
       |     |10 - RTS high, Tx int disable ----------+-+ | | | | ||<br />
       |     |11 - RTS low, Tx int disable,           | | | | | | ||<br />
       |     |    Tx a break onto data out -----------+-' | | | | ||<br />
       |     |Settings                                    | | | | ||<br />
       |     |000 - 7 bit, even, 2 stop bit --------------+-+-+ | ||<br />
       |     |001 - 7 bit, odd, 2 stop bit ---------------+-+-+ | ||<br />
       |     |010 - 7 bit, even, 1 stop bit --------------+-+-+ | ||<br />
       |     |011 - 7 bit, odd, 1 stop bit ---------------+-+-+ | ||<br />
       |     |100 - 8 bit, 2 stop bit --------------------+-+-+ | ||<br />
       |     |101 - 8 bit, 1 stop bit --------------------+-+-+ | ||<br />
       |     |110 - 8 bit, even, 1 stop bit --------------+-+-+ | ||<br />
       |     |111 - 8 bit, odd, 1 stop bit ---------------+-+-' | ||<br />
       |     |Clock divide                                      | ||<br />
       |     |00 - Normal --------------------------------------+-+|<br />
       |     |01 - Div by 16 -----------------------------------+-+|<br />
       |     |10 - Div by 64 -----------------------------------+-+|<br />
       |     |11 - Master reset --------------------------------+-'|<br />
&#36;FFFC04|byte |MIDI ACIA control                BIT 7 6 5 4 3 2 1 0|R<br />
       |     |Interrupt request --------------------' | | | | | | ||<br />
       |     |Parity error ---------------------------' | | | | | ||<br />
       |     |Rx overrun -------------------------------' | | | | ||<br />
       |     |Framing error ------------------------------' | | | ||<br />
       |     |CTS ------------------------------------------' | | ||<br />
       |     |DCD --------------------------------------------' | ||<br />
       |     |Tx data register empty ---------------------------' ||<br />
       |     |Rx data register full ------------------------------'|<br />
&#36;FFFC06|byte |MIDI ACIA data                                       |R/W<br />
<a name="Realtime Clock"></a>-------+-----+-----------------------------------------------------+----------<br />
##############Realtime Clock                                  ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFC21|byte |S_Units                                              |???<br />
&#36;FFFC23|byte |S_Tens                                               |???<br />
&#36;FFFC25|byte |M_Units                                              |???<br />
&#36;FFFC27|byte |M_Tens                                               |???<br />
&#36;FFFC29|byte |H_Units                                              |???<br />
&#36;FFFC2B|byte |H_Tens                                               |???<br />
&#36;FFFC2D|byte |Weekday                                              |???<br />
&#36;FFFC2F|byte |Day_Units                                            |???<br />
&#36;FFFC31|byte |Day_Tens                                             |???<br />
&#36;FFFC33|byte |Mon_Units                                            |???<br />
&#36;FFFC35|byte |Mon_Tens                                             |???<br />
&#36;FFFC37|byte |Yr_Units                                             |???<br />
&#36;FFFC39|byte |Yr_Tens                                              |???<br />
&#36;FFFC3B|byte |Cl_Mod                                               |???<br />
&#36;FFFC3D|byte |Cl_Test                                              |???<br />
&#36;FFFC3F|byte |Cl_Reset                                             |???<br />
-------+-----+-----------------------------------------------------+----------<br />
##############ROM                                             ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FA0000|    |                                                     |<br />
    :  |    |128K ROM expansion cartridge port                     |R<br />
&#36;FBFFFF|    |                                                     |<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FC0000|    |                                                     |<br />
    :  |    |192K System ROM                                       |R<br />
&#36;FEFFFF|    |                                                     |<br />
-------+-----+-----------------------------------------------------+----------<br />
                              Atari 32 bit Memory Map<br />
Addresses          Description<br />
-------------------+----------------------------------------------------------<br />
&#36;00000000-&#36;00DFFFFF|ST RAM<br />
&#36;00E00000-&#36;00EFFFFF|512k TOS ROMs<br />
&#36;00F00000-&#36;00F9FFFF|Reserved I/O Space<br />
&#36;00FA0000-&#36;00FBFFFF|128k ROM cartridge expansion port<br />
&#36;00FC0000-&#36;00FEFFFF|192k System ROM<br />
&#36;00FF0000-&#36;00FF7FFF|Reserved I/O Space<br />
&#36;00FF8000-&#36;00FFFFFF|ST/TT I/O<br />
&#36;01000000-&#36;013FFFFF|TT Fast Ram<br />
&#36;01400000-&#36;FDFFFFFF|Reserved<br />
&#36;FE000000-&#36;FEFFFFFF|VME A24/D16<br />
&#36;FEFF0000-&#36;FEFFFFFF|VME A16/D16<br />
&#36;FF000000-&#36;FFFFFFFF|ST 24 bit compatible shadow<br />
&#36;FFD000xx-&#36;FFD000xx|Set FastRAM refresh rate and generate a bus error<br />
<a name="Cookie Jar"></a>-------------------+----------------------------------------------------------<br />
                                  Cookie Jar<br />
                            Atari "Official" Cookies<br />
Cookie  Description<br />
-------+----------------------------------------------------------------------<br />
_CPU  | CPU Type                                          Bit 7 6 5 4 3 2 1 0<br />
      | Processor type is represented in decimal in the lowest byte.<br />
      | (0 - 68000, 40 - 68040)<br />
-------+----------------------------------------------------------------------<br />
_VDO  | Video Type                                                  BIT 17 16<br />
      | Shifter Type                                                     |  |<br />
      | 00 - ST ---------------------------------------------------------+--+<br />
      | 01 - STe --------------------------------------------------------+--+<br />
      | 10 - TT ---------------------------------------------------------+--+<br />
      | 11 - Falcon030 --------------------------------------------------+--'<br />
-------+----------------------------------------------------------------------<br />
_FDC  | Floppy Drive Controller                              BIT 25 24 . 23-0<br />
      | Floppy Format                                             |  |      |<br />
      | 00 - DD (Normal floppy interface) ------------------------+--+      |<br />
      | 01 - HD (1.44 MB with 3.5") ------------------------------+--+      |<br />
      | 10 - ED (2.88 MB with 3.5") ------------------------------+--'      |<br />
      | Controller ID                                                       |<br />
      | 0 - No information available                                        |<br />
      | 'ATC' - Fully compatible interface built in a way that -------------+<br />
      |        behaves like part of the system.                             |<br />
      | 'DP1' - "DreamPark Development", all ID's beginning with -----------'<br />
      |        "DP" are reserved for Dreampark.<br />
-------+----------------------------------------------------------------------<br />
_FLK  | File Locking<br />
      | If present, GEMDOS supports file locking. Value represents version<br />
      | number of the expansion.<br />
-------+----------------------------------------------------------------------<br />
_NET  | Network Type<br />
      | If present, there is GEMDOS network support. Points to 2 longs:<br />
      | The first is the ID of the producer, and the second is the version<br />
      | number.<br />
-------+----------------------------------------------------------------------<br />
_SLM  | SLM Driver<br />
      | Diablo-driver for the SLM laser printer. Value points to a<br />
      | non-documented structure.<br />
-------+----------------------------------------------------------------------<br />
_INF  | .INF Patch<br />
      | When present, STEFIX (patch program for TOS 1.06) is active.<br />
-------+----------------------------------------------------------------------<br />
_SND  | Sound Hardware                                        BIT 5 4 3 2 1 0<br />
      | CodeC (??) -----------------------------------------------' | | | | |<br />
      | Connection Matrix ------------------------------------------' | | | |<br />
      | DSP56001 -----------------------------------------------------' | | |<br />
      | 16 Bit DMA Sound -----------------------------------------------' | |<br />
      | 8 Bit DMA Sound --------------------------------------------------' |<br />
      | YM2149 -------------------------------------------------------------'<br />
-------+----------------------------------------------------------------------<br />
_MCH  | Machine Type                                                BIT 17 16<br />
      | 00 - ST/Mega ST -------------------------------------------------+--+<br />
      | 01 - STe &amp; Compatible Machines (See Below) ----------------------+--+<br />
      | 10 - TT ---------------------------------------------------------+--+<br />
      | 11 - Falcon030 --------------------------------------------------+--'<br />
      | STe &amp; Compatible Machines                             BIT 5 4 3 2 1 0<br />
      | 00000 - STe ----------------------------------------------+-+-+-+-+-+<br />
      | 00001 - ST Book ------------------------------------------+-+-+-+-+-+<br />
      | 10000 - Mega STe -----------------------------------------+-+-+-+-+-'<br />
-------+----------------------------------------------------------------------<br />
_SWI  | Configuration Switches<br />
      | State of configuration switches (MSTe/TT only)<br />
-------+----------------------------------------------------------------------<br />
_FRB  | Fast Ram Buffer<br />
      | (TT specific) 64k buffer for ACSI DMA<br />
      | 0 - no buffers assigned    Not 0 - address of FastRam buffer<br />
-------+----------------------------------------------------------------------<br />
_FPU  | FPU Type<br />
      | Software FPU                                              BIT 3 2 1 0<br />
      | 68040's internal FPU -----------------------------------------' | | |<br />
      | 01 - 6888x present ---------------------------------------------+-+ |<br />
      | 10 - 68881 for sure --------------------------------------------+-+ |<br />
      | 11 - 68882 for sure --------------------------------------------+-' |<br />
      | SFP004 present -----------------------------------------------------'<br />
      | Hardware FPU                                            BIT 11 10 9 8<br />
      | 68040's internal FPU ----------------------------------------'  | | |<br />
      | 01 - 6888x present ---------------------------------------------+-+ |<br />
      | 10 - 68881 for sure --------------------------------------------+-+ |<br />
      | 11 - 68882 for sure --------------------------------------------+-' |<br />
      | SFP004 present -----------------------------------------------------'<br />
-------+----------------------------------------------------------------------<br />
_OOL  | PoolFix<br />
      | Value corresponds to PoolFix version<br />
-------+----------------------------------------------------------------------<br />
_AKP  | Keyboard/Language Configuration<br />
      | Keyboard Configuration                                       Bit 15-8<br />
      | 1 - German  5 - Italian --------------------------------------------+<br />
      | 2 - French  7 - Swiss French ---------------------------------------+<br />
      | 4 - Spanish  8 - Swiss German --------------------------------------+<br />
      | All others - English -----------------------------------------------'<br />
      | Language Configuration                                        BIT 7-0<br />
      | 1 - German  5 - Italian --------------------------------------------+<br />
      | 2 - French  7 - Swiss French ---------------------------------------+<br />
      | 4 - Spanish  8 - Swiss German --------------------------------------+<br />
      | All others - English -----------------------------------------------'<br />
-------+----------------------------------------------------------------------<br />
_IDT  | International Date/Time Format<br />
      | Time Format                                                    BIT 12<br />
      | 0 - AM/PM, 1 - 24 hours --------------------------------------------+<br />
      | Date Format                                                   BIT 9 8<br />
      | 00 - MMDDYY ------------------------------------------------------+-+<br />
      | 01 - DDMMYY ------------------------------------------------------+-+<br />
      | 10 - YYMMDD ------------------------------------------------------+-+<br />
      | 11 - YYDDMM ------------------------------------------------------+-'<br />
      | Separator for date                                            BIT 7-0<br />
      | ASCII Value (i.e. "." or "/") --------------------------------------'<br />
-------+----------------------------------------------------------------------<br />
MiNT  | MiNT<br />
      | Present if MiNT/MultiTOS is active. Value represents the version<br />
      | number of the MiNT kernel in hex (0x104 = 1.04)<br />
-------+---------------------------------------------------------------<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a>--<br />
</div>
</span>]]></description>
			<content:encoded><![CDATA[<span style="font-family: Consolas;" class="mycode_font"><div style="text-align: left; margin-left: auto; margin-right: auto; background-color: #d3d3d3; border: 2px solid #808080; border-radius: 10px; padding: 12px; width: 680px; "></span><br />
<div style="text-align: center;" class="mycode_align"><span style="font-family: Consolas;" class="mycode_font">Memory Map<a name="contents"></a><br />
[titre]Index[/titre]<br />
<a href="#CPU Reset Vectors">CPU Reset Vectors</a>----------------- <a href="#YM2149 Sound Chip">YM2149 Sound Chip</a>-------------------------<br />
<a href="#CPU Exception Vectors">CPU Exception Vectors</a>------------- <a href="#DMA Sound System">DMA Sound System</a>--------------------------<br />
<a href="#Auto-Vector Interrupts">Auto-Vector Interrupts</a>------------ <a href="#STe Microwire Controller">STe Microwire Controller</a>------------------<br />
<a href="#Trap Instruction Vectors">Trap Instruction Vectors</a>---------- <a href="#Falcon030 DMA/DSP Controllers">Falcon030 DMA/DSP Controllers</a>-------------<br />
<a href="#Math Coprocessor Vectors">Math Coprocessor Vectors</a>---------- <a href="#TT Clock Chip">TT Clock Chip</a>-----------------------------<br />
<a href="#PMMU Coprocessor Vectors">PMMU Coprocessor Vectors</a>---------- <a href="#Blitter">Blitter</a>-----------------------------------<br />
<a href="#User Assigned Interrupt Vectors">User Assigned Interrupt Vectors</a>--- <a href="#SCC-DMA">SCC-DMA</a>-----------------------------------<br />
<a href="#System Crash Page">System Crash Page</a>----------------- <a href="#Zilog 8530 SCC">Zilog 8530 SCC</a>----------------------------<br />
<a href="#System Variables">System Variables</a>------------------ <a href="#VME Bus System Control Unit">VME Bus System Control Unit</a>---------------<br />
<a href="#ADSPEED">ADSPEED</a>--------------------------- <a href="#Mega STe Cache/Processor Control">Mega STe Cache/Processor Control</a>----------<br />
<a href="#IDE Controller">IDE Controller</a>-------------------- <a href="#STe/F030 Extended Joystick/Lightpen Ports">STe/F030 Extended Joystick/Lightpen Ports</a>-<br />
<a href="#ST MMU Controller">ST MMU Controller</a>----------------- <a href="#Falcon VIDEL Palette Registers">Falcon VIDEL Palette Registers</a>------------<br />
<a href="#Falcon030 Processor Control">Falcon030 Processor Control</a>------- <a href="#Falcon DSP Host Interface">Falcon DSP Host Interface</a>-----------------<br />
<a href="#SHIFTER Video Controller">SHIFTER Video Controller</a>---------- <a href="#MFP 68901">MFP 68901</a>---------------------------------<br />
<a href="#Falcon030 VIDEL Video Controller">Falcon030 VIDEL Video Controller</a>-- <a href="#Floating Point Coprocessor">Floating Point Coprocessor</a>----------------<br />
<a href="#DMA/WD1772 Disk controller">DMA/WD1772 Disk controller</a>-------- <a href="#MFP 68901 #2 (MFP2) - TT Only">MFP 68901 #2 (MFP2) - TT Only</a>-------------<br />
<a href="#TT-SCSI DMA Controller">TT-SCSI DMA Controller</a>------------ <a href="#6850 ACIA I/O Chips">6850 ACIA I/O Chips</a>-----------------------<br />
<a href="#TT-SCSI Drive Controller NCR 5380">TT-SCSI Drive Controller NCR 5380</a>- <a href="#Realtime Clock">Realtime Clock</a>----------------------------<br />
<a href="#Cookie Jar">Cookie Jar</a><br />
</span></div>
<span style="font-family: Consolas;" class="mycode_font"></div>
<br />
<div style="text-align: left; margin-left: auto; margin-right: auto; background-color: #d3d3d3; border: 2px solid #808080; border-radius: 10px; padding: 12px; width: 680px; ">
            .---------------------------------------------------.<br />
            |Atari ST/STe/MSTe/TT/F030 Hardware Register Listing|<br />
            `---------------------------------------------------'<br />
                        &lt;&lt;&lt; EXCLUSIVE ST-NEWS VERSION &gt;&gt;&gt;<br />
                      Version 7.0 (FINAL REVISION) - 1/22/94<br />
                                  By Dan Hollis<br />
                Copyright &copy; 1993/1994 MicroImages Software<br />
##############################################################################<br />
########## THIS IS THE LAST VERSION OF THE LISTING TO BE DISTRIBUTED #########<br />
##############################################################################<br />
Due to the absence of feedback, combined with the lack of free time, I will no<br />
longer be updating this listing. This is the FINAL revision.<br />
------------------------------------------------------------------------------<br />
This document may only be copied unmodified, in its entirety. This document<br />
may ONLY be copied freely, and may NOT be sold. I make no guarantees as to the<br />
accuracy of this document. I cannot be responsible for the use or misuse of<br />
information contained within this document. Use at your own risk! Regardless,<br />
every effort has been taken to ensure this document is as complete and<br />
accurate as possible.<br />
------------------------------------------------------------------------------<br />
Many thanks to the following people for their contributions!<br />
Markus Gutschke, Alexander Herzlinger, Karsten Isakovic, Thomas Binder,<br />
Julian Reschke, Georges Kesseler, Torbjoern Ose, Rickard Troedsson,<br />
Martin Griffiths, Eric Prevoteau<br />
Any comments or questions can be sent to me at the following addresses:<br />
Internet : goemon@venice.mps.ohio-state.edu<br />
MCI Mail : 679-5560<br />
Snail : Dan Hollis<br />
        744 NW Kinney<br />
        Grants Pass, OR 97526<br />
        U.S.A.<br />
Address Description                                                      Space<a name="CPU Reset Vectors"></a><br />
-------+-----------------------------------------------------------+-----<br />
########CPU Reset Vectors                                          #<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----------------------------------------------------------+-----<br />
&#36;000000|Reset : Initial SSP                                        |SP<br />
&#36;000004|Reset : Initial PC                                         |SP<a name="CPU Exception Vectors"></a><br />
-------+-----------------------------------------------------------+-----<br />
########CPU Exception Vectors                                      #<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----------------------------------------------------------+-----<br />
&#36;000008|Bus Error                                                  |SD<br />
&#36;00000C|Address Error                                              |SD<br />
&#36;000010|Illegal Instruction                                        |SD<br />
&#36;000014|Zero Divide                                                |SD<br />
&#36;000018|CHK, CHK2 Instruction                                      |SD<br />
&#36;00001C|cpTRAPcc, TRAPcc, TRAPV                                    |SD<br />
&#36;000020|Privilege Violation                                        |SD<br />
&#36;000024|Trace                                                      |SD<br />
&#36;000028|Line 1010 Emulator (LineA)                                 |SD<br />
&#36;00002C|Line 1111 Emulator (LineF)                                 |SD<br />
&#36;000030|(Unassigned, Reserved)                                     |SD<br />
&#36;000034|Coprocessor Protocol Violation (68030)                     |SD<br />
&#36;000038|Format Error (68010)                                       |SD<br />
&#36;00003C|Uninitialized Interrupt Vector                             |SD<br />
&#36;000040|(Unassigned, Reserved)                                     |SD<br />
    :  |   :            :                                          | :<br />
&#36;00005F|(Unassigned, Reserved)                                     |SD<br />
&#36;000060|Spurious Interrupt (Bus error during interrupt)            |SD                                          <br />
<a name="Auto-Vector Interrupts"></a>-------+-----------------------------------------------------------+-----<br />
########Auto-Vector Interrupts                                     #<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----------------------------------------------------------+-----<br />
&#36;000064|Level 1 Int Autovector (TT VME)                            |SD<br />
&#36;000068|Level 2 Int Autovector (HBL)                               |SD<br />
&#36;00006C|Level 3 Int Autovector (TT VME)                            |SD<br />
&#36;000070|Level 4 Int Autovector (VBL)                               |SD<br />
&#36;000074|Level 5 Int Autovector                                     |SD<br />
&#36;000078|Level 6 Int Autovector (MFP)                               |SD<br />
&#36;00007C|Level 7 Int Autovector                                     |SD<br />
<a name="Trap Instruction Vectors"></a>-------+-----------------------------------------------------------+-----<br />
######Trap Instruction Vectors (Trap #n = Vector number + 32 + n)  #<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----------------------------------------------------------+-----<br />
&#36;000080|Trap #0                                                    |SD<br />
&#36;000084|Trap #1 (GemDOS)                                           |SD<br />
&#36;000088|Trap #2 (AES/VDI)                                          |SD<br />
&#36;00008C|Trap #3                                                    |SD<br />
&#36;000090|Trap #4                                                    |SD<br />
&#36;000094|Trap #5                                                    |SD<br />
&#36;000098|Trap #6                                                    |SD<br />
&#36;00009C|Trap #7                                                    |SD<br />
&#36;0000A0|Trap #8                                                    |SD<br />
&#36;0000A4|Trap #9                                                    |SD<br />
&#36;0000A8|Trap #10                                                   |SD<br />
&#36;0000AC|Trap #11                                                   |SD<br />
&#36;0000B0|Trap #12                                                   |<br />
&#36;0000B4|Trap #13 (BIOS)                                            |SD<br />
&#36;0000B8|Trap #14 (XBIOS)                                           |SD<br />
<a name="Math Coprocessor Vectors"></a>-------+-----------------------------------------------------------+-----<br />
########Math Coprocessor Vectors (68881/68882/Internal)            #<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----------------------------------------------------------+-----<br />
&#36;0000C0|FFCP Branch or Set on Unordered Condition                  |SD<br />
&#36;0000C4|FFCP Inexact Result                                        |SD<br />
&#36;0000C8|FFCP Divide by Zero                                        |SD<br />
&#36;0000CC|FFCP Underflow                                             |SD<br />
&#36;0000D0|FFCP Operand Error                                         |SD<br />
&#36;0000D4|FFCP Overflow                                              |SD<br />
&#36;0000D8|FFCP Signaling NAN                                         |SD<br />
&#36;0000DC|(Unassigned, Reserved)                                     |SD<br />
<a name="PMMU Coprocessor Vectors"></a>-------+-----------------------------------------------------------+-----<br />
########PMMU Coprocessor Vectors (68851/Internal)                 #<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----------------------------------------------------------+-----<br />
&#36;0000E0|MMU Configuration Error                                    |SD<br />
&#36;0000E4|MC68851, not used by MC68030                               |SD<br />
&#36;0000E8|MC68851, not used by MC68030                               |SD<br />
-------+-----------------------------------------------------------+-----<br />
########Miscellaneous Vectors                                      #<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----------------------------------------------------------+-----<br />
&#36;0000EC|(Unassigned, Reserved)                                     |SD<br />
    :  |   :            :                                          | :<br />
&#36;0000FF|(Unassigned, Reserved)                                     |SD<br />
<a name="User Assigned Interrupt Vectors"></a>-------+-----------------------------------------------------------+-----<br />
########User Assigned Interrupt Vectors                            #<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----------------------------------------------------------+-----<br />
&#36;000100|ST-MFP-0 - Centronics busy                                 |SD<br />
&#36;000104|ST-MFP-1 - RS-232 DCD                                      |SD<br />
&#36;000108|ST-MFP-2 - RS-232 CTS                                      |SD<br />
&#36;00010C|ST-MFP-3 - Blitter done                                    |SD<br />
&#36;000110|ST-MFP-4 - Timer D (USART timer)                           |SD<br />
&#36;000114|ST-MFP-5 - Timer C (200hz Clock)                           |SD<br />
&#36;000118|ST-MFP-6 - Keyboard/MIDI (ACIA)                            |SD<br />
&#36;00011C|ST-MFP-7 - FDC/HDC                                         |SD<br />
&#36;000120|ST-MFP-8 - Timer B (HBL)                                   |SD<br />
&#36;000124|ST-MFP-9 - Send Error                                      |SD<br />
&#36;000128|ST-MFP-10 - Send buffer empty                              |SD<br />
&#36;00012C|ST-MFP-11 - Receive error                                  |SD<br />
&#36;000130|ST-MFP-12 - Receive buffer full                            |SD<br />
&#36;000134|ST-MFP-13 - Timer A (STe sound)                            |SD<br />
&#36;000138|ST-MFP-14 - RS-232 Ring detect                             |SD<br />
&#36;00013C|ST-MFP-15 - GPI7 - Monochrome Detect                       |SD<br />
&#36;000140|TT-MFP-0 - GPI 0                                           |SD<br />
&#36;000144|TT-MFP-1 - GPI 1                                           |SD<br />
&#36;000148|TT-MFP-2 - SCC-DMA Controller                              |SD<br />
&#36;00014C|TT-MFP-3 - Ring Indicator SCC B                            |SD<br />
&#36;000150|TT-MFP-4 - Timer D                                         |SD<br />
&#36;000154|TT-MFP-5 - Timer C                                         |SD<br />
&#36;000158|TT-MFP-6 - (Reserved) GPI 4                                |SD<br />
&#36;00015C|TT-MFP-7 - SCSI DMA Controller                             |SD<br />
&#36;000160|TT-MFP-8 - Timer B                                         |SD<br />
&#36;000164|TT-MFP-9 - Send Error                                      |SD<br />
&#36;000168|TT-MFP-10 - Send buffer empty                              |SD<br />
&#36;00016C|TT-MFP-11 - Receive error                                  |SD<br />
&#36;000170|TT-MFP-12 - Receive buffer full                            |SD<br />
&#36;000174|TT-MFP-13 - Timer A                                        |SD<br />
&#36;000176|TT-MFP-14 - TT Clock (MC146818A)                           |SD<br />
&#36;00017C|TT-MFP-15 - TT-SCSI Drive Controller NCR 5380              |SD<br />
&#36;000180|SCC Interrupt                                              |SD<br />
&#36;0001BC|SCC Interrupt                                              |SD<br />
&#36;0001C0|User Defined, Unused                                       |SD<br />
     :  |   :    :       :                                         | :<br />
&#36;0003FC|User Defined, Unused                                       |SD<br />
-------+-----------------------------------------------------------+-----<br />
Address Size  Description                                          Name<br />
<a name="System Crash Page"></a>-------+-----+-----------------------------------------------------+----------<br />
##############System Crash Page                               ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;000380|long |Validates System Crash Page if &#36;12345678             |proc_lives<br />
&#36;000384|.....|Saved registers D0-D7                                |proc_dregs<br />
&#36;0003A4|.....|Saved registers A0-A7                                |proc_aregs<br />
&#36;0003C4|long |Vector number of crash exception                     |proc_enum<br />
&#36;0003C8|long |Saved USP                                            |proc_usp<br />
&#36;0003CC|.....|Saved 16 words from exception stack                  |proc_stk<br />
<a name="System Variables"></a>-------+-----+-----------------------------------------------------+----------<br />
##############System Variables                                     ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;000400|long |GEM Event timer vector                               |etv_timer<br />
&#36;000404|long |GEM Critical error handler                           |etv_critic<br />
&#36;000408|long |GEM Program termination vector                       |etv_term<br />
&#36;00040C|long |GEM Additional vector #1 (Unused)                    |etv_xtra<br />
   :   |  :  | :      :        :    :     :                        |  :<br />
&#36;00041C|long |GEM Additional vector #5 (Unused)                    |etv_xtra<br />
&#36;000420|long |Validates memory configuration if &#36;752019F3          |memvalid<br />
&#36;000424|word |Copy of contents of &#36;FF8001                          |memctrl<br />
&#36;000426|long |Validates resvector if &#36;31415926                     |resvalid<br />
&#36;00042A|long |Reset vector                                         |resvector<br />
&#36;00042E|long |Physical top of RAM                                  |phystop<br />
&#36;000432|long |Start of TPA (user memory)                           |_membot<br />
&#36;000436|long |End of TPA (user memory)                             |_memtop<br />
&#36;00043A|long |Validates memcntrl and memconf if &#36;237698AA          |memval2<br />
&#36;00043E|word |If nonzero, floppy disk VBL routine is disabled      |flock<br />
&#36;000440|word |Floppy Seek rate - 0:6ms, 1:12ms, 2:2ms, 3:3ms       |seekrate<br />
&#36;000442|word |Time between two timer calls (in milliseconds)       |_timer_ms<br />
&#36;000444|word |If not zero, verify floppy disk writes               |_fverify<br />
&#36;000446|word |Default boot device                                  |_bootdev<br />
&#36;000448|word |0 - NTSC (60hz), &lt;&gt;0 - PAL (50hz)                    |palmode<br />
&#36;00044A|word |Default video resolution                             |defshiftmod<br />
&#36;00044C|word |Copy of contents of &#36;FF8260                          |sshiftmod<br />
&#36;00044E|long |Pointer to video RAM (logical screen base)           |_v_bas_ad<br />
&#36;000452|word |If not zero, VBL routine is not executed             |vblsem<br />
&#36;000454|word |Number of vertical blank routines                    |nvbls<br />
&#36;000456|long |Pointer to list of vertical blank routines           |_vblqueue<br />
&#36;00045A|long |If not zero, points to color palette to be loaded    |colorptr<br />
&#36;00045E|long |If not zero, points to video ram for next VBL        |screenpt<br />
&#36;000462|long |Counter for number of VBLs                           |_vbclock<br />
&#36;000466|long |Number of VBL routines executed                      |_frclock<br />
&#36;00046A|long |Vector for hard disk initialization                  |hdv_init<br />
&#36;00046E|long |Vector for resolution change                         |swv_vec<br />
&#36;000472|long |Vector for getbpb for hard disk                      |hdv_bpb<br />
&#36;000476|long |Vector for read/write routine for hard disk          |hdv_rw<br />
&#36;00047A|long |Vector for hard disk boot                            |hdv_boot<br />
&#36;00047E|long |Vector for hard disk media change                    |hdv_mediach<br />
&#36;000482|word |If not zero, attempt to load "COMMAND.PRG" on boot   |_comload<br />
&#36;000484|byte |Attribute vector for console output      BIT 3 2 1 0 |conterm<br />
       |     |Return "kbshift" for BIOS conin -------------' | | | |<br />
       |     |System bell (1 - on) --------------------------' | | |<br />
       |     |Key repeat (1 - on) -----------------------------' | |<br />
       |     |Key click (1 - on) --------------------------------' |<br />
&#36;000486|long |Return address for TRAP #14                  (unused)|trp14ret<br />
&#36;00048A|long |Return address for critical error handler    (unused)|criticret<br />
&#36;00048E|long |Memory descriptor block                              |themd<br />
&#36;00049E|long |Space for additional memory descriptors              |themdmd<br />
&#36;0004A2|long |Pointer to BIOS save registers block                 |savptr<br />
&#36;0004A6|word |Number of connected floppy drives                    |_nflops<br />
&#36;0004A8|long |Vector for screen output                             |con_state<br />
&#36;0004AC|word |Temporary storage for cursor line position           |save_row<br />
&#36;0004AE|long |Pointer to save area for exception processing        |sav_context<br />
&#36;0004B2|long |Pointer to buffer control block for GEMDOS data      |_bufl<br />
&#36;0004B6|long |Pointer to buffer control block for GEMDOS fat/dir   |_bufl<br />
&#36;0004BA|long |Counter for 200hz system clock                       |_hz_200<br />
&#36;0004BC|long |Pointer to default environment string                |the_env<br />
&#36;0004C2|long |Bit allocation for physical drives (bit 0=A, 1=B..)  |_drvbits<br />
&#36;0004C6|long |Pointer to 1024-byte disk buffer                     |_dskbufp<br />
&#36;0004CA|long |Pointer to autoexecute path                          |_autopath<br />
&#36;0004CE|long |Pointer to VBL routine #1                            |_vbl_lis<br />
   :   |  :  |  :      :  :    :    :                              |    :<br />
&#36;0004EA|long |Pointer to VBL routine #8                            |_vbl_lis<br />
&#36;0004EE|word |Flag for screen -&gt; printer dump                      |_dumpflg<br />
&#36;0004F0|word |Printer abort flag                                   |_prtabt<br />
&#36;0004F2|long |Pointer to start of OS                               |_sysbase<br />
&#36;0004F6|long |Global shell pointer                                 |_shell_p<br />
&#36;0004FA|long |Pointer to end of OS                                 |end_os<br />
&#36;0004FE|long |Pointer to entry point of OS                         |exec_os<br />
&#36;000502|long |Pointer to screen dump routine                       |scr_dump<br />
&#36;000506|long |Pointer to _lstostat()                               |prv_lsto<br />
&#36;00050A|long |Pointer to _lstout()                                 |prv_lst<br />
&#36;00050E|long |Pointer to _auxostat()                               |prv_auxo<br />
&#36;000512|long |Pointer to _auxout()                                 |prv_aux<br />
&#36;000516|long |If AHDI, pointer to pun_info                         |pun_ptr<br />
&#36;00051A|long |If &#36;5555AAAA, reset                                  |memval3<br />
&#36;00051E|long |8 Pointers to input-status routines                  |xconstat<br />
&#36;00053E|long |8 Pointers to input routines                         |xconin<br />
&#36;00055E|long |8 Pointers to output-status routines                 |xcostat<br />
&#36;00057E|long |8 Pointers to output routines                        |xconout<br />
&#36;00059E|word |If not 0, then not 68000 - use long stack frames     |_longframe<br />
&#36;0005A0|long |Pointer to cookie jar                                |_p_cookies<br />
&#36;0005A4|long |Pointer to end of FastRam                            |ramtop<br />
&#36;0005A8|long |Validates ramtop if &#36;1357BD13                        |ramvalid<br />
&#36;0005AC|long |Pointer to routine for system bell                   |bell_hook<br />
&#36;0005B0|long |Pointer to routine for system keyclick               |kcl_hook<br />
-------+-----+-----------------------------------------------------+----------<br />
Address Size  Description                                Bits used Read/Write<br />
-------+-----+-----------------------------------------------------+----------<br />
##############OS ROMs                                         ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;E00000|byte |TOS 512k ROMs                                        |R<br />
   :   |  :  | :   :    :                                          |:<br />
&#36;EFFFFF|byte |TOS 512k ROMs                                        |R<br />
<a name="ADSPEED"></a>-------+-----+-----------------------------------------------------+----------<br />
##############ADSPEED Configuration registers                 ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a>    <br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;F00000|byte |Switch to 16 Mhz                                     |W<br />
&#36;F10000|byte |Switch to 8 Mhz                                      |W<br />
&#36;F20000|byte |Turn on high speed ROM option in 16 Mhz              |W<br />
&#36;F30000|byte |Turn off high speed ROM option                       |W<br />
&#36;F40000|byte |Unknown                                              |W<br />
&#36;F50000|byte |Turn off cache while in 16 Mhz                       |W<br />
       |     |      &gt;&gt; Write 0 to an address to set it. &lt;&lt;         |<br />
<a name="IDE Controller"></a>-------+-----+-----------------------------------------------------+----------<br />
##############IDE Controller (Falcon, ST-Book, IDE cards)     ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;F00000|long |Data Register                                        |R/W<br />
&#36;F00005|byte |Error Register                    BIT 7 6 5 4 3 2 1 0|R<br />
       |     |Bad block mark -----------------------' | | | | | | ||<br />
       |     |Uncorrectable error --------------------' | | | | | ||<br />
       |     |Media change -----------------------------' | | | | ||<br />
       |     |ID-Field not found -------------------------' | | | ||<br />
       |     |Media change requested -----------------------' | | ||<br />
       |     |Command aborted --------------------------------' | ||<br />
       |     |Track 0 not found --------------------------------' ||<br />
       |     |DAM not found --------------------------------------'|<br />
&#36;F00009|byte |Sector Count Register                                |W<br />
&#36;F0000D|byte |Sector Number Register                               |W<br />
&#36;F00011|byte |Cylinder Low Register                                |W<br />
&#36;F00015|byte |Cylinder High Register                               |W<br />
&#36;F00019|byte |Drive Head Register                                  |W<br />
&#36;F0001D|byte |Status Register                                      |R<br />
&#36;F0001D|byte |Command Register                                     |W<br />
&#36;F00039|byte |Alternate Status Register                            |R<br />
&#36;F00039|byte |Data Output Register                                 |W<br />
<a name="ST MMU Controller"></a>-------+-----+-----------------------------------------------------+----------<br />
##############ST MMU Controller                               ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8001|byte |MMU memory configuration                  BIT 3 2 1 0|R/W<br />
       |     |Bank 0                                        | | | ||<br />
       |     |00 - 128k ------------------------------------+-+ | ||<br />
       |     |01 - 512k ------------------------------------+-+ | ||<br />
       |     |10 - 2m --------------------------------------+-+ | ||<br />
       |     |11 - reserved --------------------------------+-' | ||<br />
       |     |Bank 1                                            | ||<br />
       |     |00 - 128k ----------------------------------------+-+|<br />
       |     |01 - 512k ----------------------------------------+-+|<br />
       |     |10 - 2m ------------------------------------------+-+|<br />
       |     |11 - reserved ------------------------------------+-'|<br />
<a name="Falcon030 Processor Control"></a>-------+-----+-----------------------------------------------------+----------<br />
##############Falcon030 Processor Control                     ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8007|byte |Falcon Bus Control                    BIT 5 . . 2 . 0|R/W (F030)<br />
       |     |STe Bus Emulation (0 - on) ---------------'     |   ||<br />
       |     |Blitter (0 - 8mhz, 1 - 16mhz) ------------------'   ||<br />
       |     |68030 (0 - 8mhz, 1 - 16mhz) ------------------------'|<br />
<a name="SHIFTER Video Controller"></a>-------+-----+-----------------------------------------------------+----------<br />
##############SHIFTER Video Controller                        ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8201|byte |Video screen memory position (High byte)             |R/W<br />
&#36;FF8203|byte |Video screen memory position (Mid byte)              |R/W<br />
&#36;FF820D|byte |Video screen memory position (Low byte)              |R/W  (STe)<br />
&#36;FF8205|byte |Video address pointer (High byte)                    |R<br />
&#36;FF8207|byte |Video address pointer (Mid byte)                     |R<br />
&#36;FF8209|byte |Video address pointer (Low byte)                     |R<br />
&#36;FF820E|word |Offset to next line                                  |R/W (F030)<br />
&#36;FF820F|byte |Width of a scanline (width in words-1)               |R/W  (STe)<br />
&#36;FF8210|word |Width of a scanline (width in words)                 |R/W (F030)<br />
&#36;FF8265|byte |Horizontal scroll register (0-15)                    |R/W  (STe)<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF820A|byte |Video synchronization mode                    BIT 1 0|R/W<br />
       |     |0 - 60hz, 1 - 50hz -------------------------------+ ||<br />
       |     |0 - internal, 1 - external sync ------------------' ||      (TT)<br />
       |     |0 - internal, 1 - external sync --------------------'|    (!TT)<br />
-------+-----+-----------------------------------------------------+----------<br />
       |     |                                BIT 11111198 76543210|<br />
       |     |                                     543210          |<br />
       |     |                     ST color value .....RRr .GGr.BBb|<br />
       |     |                    STe color value ....rRRR gGGGbBBB|<br />
&#36;FF8240|word |Video palette register 0              Lowercase = LSB|R/W<br />
    :  |  :  |  :      :      :     :                              | :<br />
&#36;FF825E|word |Video palette register 15                            |R/W<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8260|byte |Shifter resolution                            BIT 1 0|R/W<br />
       |     |00 320x200x4 bitplanes (16 colors) ---------------+-+|<br />
       |     |01 640x200x2 bitplanes (4 colors) ----------------+-+|<br />
       |     |10 640x400x1 bitplane  (1 colors) ----------------+-'|<br />
&#36;FF8262|word |TT Shifter resolution                   BIT 15 . . 12|R/W  (TT)<br />
       |     |Sample/Hold mode ----------------------------'      ||<br />
       |     |Hypermono mode -------------------------------------'|<br />
       |     |Video Mode                                 BIT 10 9 8|<br />
       |     |000  320x200x4 bitplanes (16 colors) -----------+-+-+|<br />
       |     |001  640x200x2 bitplanes (4 colors) ------------+-+-+|<br />
       |     |010  640x400x1 bitplane  (2 colors)(Duochrome) -+-+-+|<br />
       |     |100  640x480x4 bitplanes (16 colors) -----------+-+-+|<br />
       |     |110 1280x960x1 bitplane  (2 colors) ------------+-+-+|<br />
       |     |111  320x480x8 bitplanes (256 colors) ----------+-+-'|<br />
       |     |ST Palette Bank                           BIT 3 2 1 0|<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF827E|???? |STACY Display Driver                                 |???(STACY)<br />
-------+-----+-----------------------------------------------------+----------<br />
       |     |                                BIT 11111198 76543210|<br />
       |     |                                     543210          |<br />
       |     |                     TT color value ....RRRr GGGgBBBb|<br />
&#36;FF8400|word |TT Palette  0                         Lowercase = LSB|R/W  (TT)<br />
    :  |  :  | :    :     :                                        | :      :<br />
&#36;FF85FE|word |TT Palette 255                                       |R/W  (TT)<br />
<a name="Falcon030 VIDEL Video Controller"></a>-------+-----+-----------------------------------------------------+----------<br />
##############Falcon030 VIDEL Video Controller                ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8006|byte |Monitor Type                                  BIT 1 0|R  (F030)<br />
       |     |00 - Monochrome (SM124) --------------------------+-+|<br />
       |     |01 - Color (SC1224) ------------------------------+-+|<br />
       |     |10 - VGA Color -----------------------------------+-+|<br />
       |     |11 - Television ----------------------------------+-'|<br />
&#36;FF820E|word |Offset to next line                                  |R/W (F030)<br />
&#36;FF8210|word |VWRAP - Linewidth in words                           |R/W (F030)<br />
&#36;FF8266|word |SPSHIFT                    BIT 10 . 8 . 6 5 4 3 2 1 0|R/W (F030)<br />
       |     |2-colour mode ------------------'   |   | | | | | | ||<br />
       |     |Truecolour mode --------------------'   | | | | | | ||<br />
       |     |Use external hsync ---------------------' | | | | | ||<br />
       |     |Use external vsync -----------------------' | | | | ||<br />
       |     |8 Bitplane mode ----------------------------' | | | ||<br />
       |     |? Bitplane mode ------------------------------' | | ||<br />
       |     |? Bitplane mode --------------------------------' | ||<br />
       |     |? Bitplane mode ----------------------------------' ||<br />
       |     |? Bitplane mode ------------------------------------'|<br />
       |     +-----------------------------------------------------+<br />
       |     |      Horizontal Control Registers             (9bit)|<br />
&#36;FF8280|word |HHC - Horizontal Hold Counter                        |R  (F030)<br />
&#36;FF8282|word |HHT - Horizontal Hold Timer                          |R/W (F030)<br />
&#36;FF8284|word |HBB - Horizontal Border Begin                        |R/W (F030)<br />
&#36;FF8286|word |HBE - Horizontal Border End                          |R/W (F030)<br />
&#36;FF8288|word |HDB - Horizontal Display Begin                       |R/W (F030)<br />
&#36;FF828A|word |HDE - Horizontal Display End                         |R/W (F030)<br />
&#36;FF828C|word |HSS - Horizontal SS                                  |R/W (F030)<br />
&#36;FF828E|word |HFS - Horizontal FS                                  |R/W (F030)<br />
&#36;FF8290|word |HEE - Horizontal EE                                  |R/W (F030)<br />
       |     +-----------------------------------------------------+<br />
       |     |      Vertical Control Registers              (10bit)|<br />
&#36;FF82A0|word |VFC - Vertcial Frequency Counter                     |R  (F030)<br />
&#36;FF82A2|word |VFT - Vertical Frequency Timer                       |R/W (F030)<br />
&#36;FF82A4|word |VBB - Vertical Border Begin     (count in 1/2 lines) |R/W (F030)<br />
&#36;FF82A6|word |VBE - Vertical Border End       (count in 1/2 lines) |R/W (F030)<br />
&#36;FF82A8|word |VDB - Vertical Display Begin                         |R/W (F030)<br />
&#36;FF82AA|word |VDE - Vertical Display End                           |R/W (F030)<br />
&#36;FF82AC|word |VSS - Vertical SS                                    |R/W (F030)<br />
       |     +-----------------------------------------------------+<br />
&#36;FF82C0|word |??? - Video Clock (?) (Super78 puts &#36;182 here)       |R/W (F030)<br />
&#36;FF82C2|word |VCO - Video Control                       BIT 3 2 1 0|R/W (F030)<br />
       |     |Quarter pixel width (quadruple pixels) -------' | | ||<br />
       |     |Half pixel width (double pixels) ---------------' | ||<br />
       |     |Skip line (interlace) ----------------------------' ||<br />
       |     |Line doubling --------------------------------------'|<br />
<a name="DMA/WD1772 Disk controller"></a>-------+-----+-----------------------------------------------------+----------<br />
##############DMA/WD1772 Disk controller                      ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8600|     |Reserved                                             |<br />
&#36;FF8602|     |Reserved                                             |<br />
&#36;FF8604|word |FDC access/sector count                              |R/W<br />
&#36;FF8606|word |DMA mode/status                             BIT 2 1 0|R<br />
       |     |Condition of FDC DATA REQUEST signal -----------' | ||<br />
       |     |0 - sector count null,1 - not null ---------------' ||<br />
       |     |0 - no error, 1 - DMA error ------------------------'|<br />
&#36;FF8606|word |DMA mode/status                 BIT 8 7 6 . 4 3 2 1 .|W<br />
       |     |0 - read FDC/HDC,1 - write ---------' | | | | | | |  |<br />
       |     |0 - HDC access,1 - FDC access --------' | | | | | |  |<br />
       |     |0 - DMA on,1 - no DMA ------------------' | | | | |  |<br />
       |     |Reserved ---------------------------------' | | | |  |<br />
       |     |0 - FDC reg,1 - sector count reg -----------' | | |  |<br />
       |     |0 - FDC access,1 - HDC access ----------------' | |  |<br />
       |     |0 - pin A1 low, 1 - pin A1 high ----------------' |  |<br />
       |     |0 - pin A0 low, 1 - pin A0 high ------------------'  |<br />
&#36;FF8609|byte |DMA base and counter (High byte)                     |R/W<br />
&#36;FF860B|byte |DMA base and counter (Mid byte)                      |R/W<br />
&#36;FF860D|byte |DMA base and counter (Low byte)                      |R/W<br />
<a name="TT-SCSI DMA Controller"></a>-------+-----+-----------------------------------------------------+----------<br />
##############TT-SCSI DMA Controller                          ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8701|byte |DMA Address Pointer (Highest byte)                   |R/W  (TT)<br />
&#36;FF8703|byte |DMA Address Pointer (High byte)                      |R/W  (TT)<br />
&#36;FF8705|byte |DMA Address Pointer (Low byte)                       |R/W  (TT)<br />
&#36;FF8707|byte |DMA Address Pointer (Lowest byte)                    |R/W  (TT)<br />
&#36;FF8709|byte |DMA Byte Count (Highest byte)                        |R/W  (TT)<br />
&#36;FF870B|byte |DMA Byte Count (High byte)                           |R/W  (TT)<br />
&#36;FF870D|byte |DMA Byte Count (Low byte)                            |R/W  (TT)<br />
&#36;FF870F|byte |DMA Byte Count (Lowest byte)                         |R/W  (TT)<br />
&#36;FF8710|word |Residue Data Register (High Word)                    |R    (TT)<br />
&#36;FF8712|word |Residue Data Register (Low Word)                     |R    (TT)<br />
&#36;FF8715|byte |Control register                  BIT 7 6 . . . . 1 0|R/W  (TT)<br />
       |     |Bus error ----------------------------' |         | ||<br />
       |     |Byte count zero ------------------------'         | ||<br />
       |     |Enable -------------------------------------------' ||<br />
       |     |DMA Direction (1 - out to port) --------------------'|<br />
<a name="TT-SCSI Drive Controller NCR 5380"></a>-------+-----+-----------------------------------------------------+----------<br />
##############TT-SCSI Drive Controller NCR 5380               ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8781|byte |Data register                                        |R/W  (TT)<br />
&#36;FF8783|byte |Init-Command Register                                |R/W  (TT)<br />
&#36;FF8785|byte |Mode Register                                        |R/W  (TT)<br />
&#36;FF8787|byte |Target-Command Register                              |R/W  (TT)<br />
&#36;FF8789|byte |ID Select/SCSI Control Register                      |R/W  (TT)<br />
&#36;FF878B|byte |Status Register                                      |R/W  (TT)<br />
&#36;FF878D|byte |Target Receive/Input Data                            |R/W  (TT)<br />
&#36;FF878F|byte |Initiate Receive/Reset                               |R/W  (TT)<br />
<a name="YM2149 Sound Chip"></a>-------+-----+-----------------------------------------------------+----------<br />
##############YM2149 Sound Chip                               ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8800|byte |Read data/Register select                            |R/W<br />
       |     |0 Channel A Freq Low              BIT 7 6 5 4 3 2 1 0|<br />
       |     |1 Channel A Freq High                     BIT 3 2 1 0|<br />
       |     |2 Channel B Freq Low              BIT 7 6 5 4 3 2 1 0|<br />
       |     |3 Channel B Freq High                     BIT 3 2 1 0|<br />
       |     |4 Channel C Freq Low              BIT 7 6 5 4 3 2 1 0|<br />
       |     |5 Channel C Freq High                     BIT 3 2 1 0|<br />
       |     |6 Noise Freq                          BIT 5 4 3 2 1 0|<br />
       |     |7 Mixer Control                   BIT 7 6 5 4 3 2 1 0|<br />
       |     |  Port B IN/OUT (1=Output) -----------' | | | | | | ||<br />
       |     |  Port A IN/OUT ------------------------' | | | | | ||<br />
       |     |  Channel C Noise (1=Off) ----------------' | | | | ||<br />
       |     |  Channel B Noise --------------------------' | | | ||<br />
       |     |  Channel A Noise ----------------------------' | | ||<br />
       |     |  Channel C Tone (0=On) ------------------------' | ||<br />
       |     |  Channel B Tone ---------------------------------' ||<br />
       |     |  Channel A Tone -----------------------------------'|<br />
       |     |8 Channel A Amplitude Control           BIT 4 3 2 1 0|<br />
       |     |  Fixed/Variable Level (0=Fixed) -----------' | | | ||<br />
       |     |  Amplitude level control --------------------+-+-+-'|<br />
       |     |9 Channel B Amplitude Control           BIT 4 3 2 1 0|<br />
       |     |  Fixed/Variable Level ---------------------' | | | ||<br />
       |     |  Amplitude level control --------------------+-+-+-'|<br />
       |     |10 Channel C Amplitude Control          BIT 4 3 2 1 0|<br />
       |     |  Fixed/Variable Level ---------------------' | | | ||<br />
       |     |  Amplitude level control --------------------+-+-+-'|<br />
       |     |11 Envelope Period High           BIT 7 6 5 4 3 2 1 0|<br />
       |     |12 Envelope Period Low            BIT 7 6 5 4 3 2 1 0|<br />
       |     |13 Envelope Shape                         BIT 3 2 1 0|<br />
       |     |  Continue -----------------------------------' | | ||<br />
       |     |  Attack ---------------------------------------' | ||<br />
       |     |  Alternate --------------------------------------' ||<br />
       |     |  Hold ---------------------------------------------'|<br />
       |     |  00xx - \____________________________________       |<br />
       |     |  01xx - /|___________________________________       |<br />
       |     |  1000 - \|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\|\       |<br />
       |     |  1001 - \____________________________________       |<br />
       |     |  1010 - \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\       |<br />
       |     |  1011 - \|-----------------------------------       |<br />
       |     |  1100 - /|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/|/       |<br />
       |     |  1101 - /------------------------------------       |<br />
       |     |  1110 - /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/       |<br />
       |     |  1111 - /|___________________________________       |<br />
       |     |14 Port A                         BIT 7 6 5 4 3 2 1 0|<br />
       |     |  IDE Drive On/OFF -------------------+ | | | | | | ||    (F030)<br />
       |     |  SCC A (0=LAN, 1=Serial2) -----------' | | | | | | ||      (TT)<br />
       |     |  Monitor jack GPO pin -----------------+ | | | | | ||<br />
       |     |  Internal Speaker On/Off --------------' | | | | | ||    (F030)<br />
       |     |  Centronics strobe ----------------------' | | | | ||<br />
       |     |  RS-232 DTR output ------------------------' | | | ||<br />
       |     |  RS-232 RTS output --------------------------' | | ||<br />
       |     |  Drive select 1 -------------------------------' | ||<br />
       |     |  Drive select 0 ---------------------------------' ||<br />
       |     |  Drive side select --------------------------------'|<br />
       |     |15 Port B (Parallel port)                            |<br />
&#36;FF8802|byte |Write data                                           |W<br />
       |     +-----------------------------------------------------+<br />
       |     |Note: PSG Registers are now fixed at these addresses.|<br />
       |     |All other addresses are masked out on the Falcon. Any|<br />
       |     |writes to the shadow registers &#36;8804-&#36;88FF will cause|<br />
       |     |bus errors. Game/Demo coders beware!                 |<br />
<a name="DMA Sound System"></a>-------+-----+-----------------------------------------------------+----------<br />
##############DMA Sound System                                ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8900|byte |Buffer interrupts                         BIT 3 2 1 0|R/W (F030)<br />
       |     |TimerA-Int at end of record buffer -----------' | | ||<br />
       |     |TimerA-Int at end of replay buffer -------------' | ||<br />
       |     |MFP-15-Int (I7) at end of record buffer ----------' ||<br />
       |     |MFP-15-Int (I7) at end of replay buffer ------------'|<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8901|byte |DMA Control Register              BIT 7 . 5 4 . . 1 0|R/W<br />
       |     |1 - select record register -----------+   | |     | ||    (F030) <br />
       |     |0 - select replay register -----------'   | |     | ||    (F030)<br />
       |     |Loop record buffer -----------------------' |     | ||    (F030)<br />
       |     |DMA Record on ------------------------------'     | ||    (F030)<br />
       |     |Loop replay buffer -------------------------------' ||    (STe)<br />
       |     |DMA Replay on --------------------------------------'|    (STe)<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8903|byte |Frame start address (high byte)                      |R/W  (STe)<br />
&#36;FF8905|byte |Frame start address (mid byte)                       |R/W  (STe)<br />
&#36;FF8907|byte |Frame start address (low byte)                       |R/W  (STe)<br />
&#36;FF8909|byte |Frame address counter (high byte)                    |R    (STe)<br />
&#36;FF890B|byte |Frame address counter (mid byte)                     |R    (STe)<br />
&#36;FF890D|byte |Frame address counter (low byte)                     |R    (STe)<br />
&#36;FF890F|byte |Frame end address (high byte)                        |R/W  (STe)<br />
&#36;FF8911|byte |Frame end address (mid byte)                         |R/W  (STe)<br />
&#36;FF8913|byte |Frame end address (low byte)                         |R/W  (STe)<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8920|byte |DMA Track Control                     BIT 5 4 . . 1 0|R/W (F030)<br />
       |     |00 - Set DAC to Track 0 ------------------+-+     | ||<br />
       |     |01 - Set DAC to Track 1 ------------------+-+     | ||<br />
       |     |10 - Set DAC to Track 2 ------------------+-+     | ||<br />
       |     |11 - Set DAC to Track 3 ------------------+-'     | ||<br />
       |     |00 - Play 1 Track --------------------------------+-+|<br />
       |     |01 - Play 2 Tracks -------------------------------+-+|<br />
       |     |10 - Play 3 Tracks -------------------------------+-+|<br />
       |     |11 - Play 4 Tracks -------------------------------+-'|<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8921|byte |Sound mode control                BIT 7 6 . . . . 1 0|R/W  (STe)<br />
       |     |0 - Stereo, 1 - Mono -----------------' |         | ||<br />
       |     |0 - 8bit -------------------------------+         | ||<br />
       |     |1 - 16bit (F030 only) ------------------'         | ||    (F030)<br />
       |     |Frequency control bits                            | ||<br />
       |     |00 - Off (F030 only) -----------------------------+-+|    (F030)<br />
       |     |00 - 6258hz frequency (STe only) -----------------+-+|<br />
       |     |01 - 12517hz frequency ---------------------------+-+|<br />
       |     |10 - 25033hz frequency ---------------------------+-+|<br />
       |     |11 - 50066hz frequency ---------------------------+-'|<br />
       |     |Samples are always signed. In stereo mode, data is   |<br />
       |     |arranged in pairs with high pair the left channel,low|<br />
       |     |pair right channel. Sample length MUST be even in    |<br />
       |     |either mono or stereo mode.                          |<br />
       |     |Example: 8 bit Stereo : LRLRLRLRLRLRLRLR             |<br />
       |     |        16 bit Stereo : LLRRLLRRLLRRLLRR (F030)      |<br />
       |     |2 track 16 bit stereo : LLRRllrrLLRRllrr (F030)      |<br />
<a name="STe Microwire Controller"></a>-------+-----+-----------------------------------------------------+----------<br />
##############STe Microwire Controller (STe/TT only!)         ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8922|byte |Microwire data register                              |R/W  (Mwr)<br />
&#36;FF8924|byte |Microwire mask register                              |R/W  (Mwr)<br />
       |     +-----------------------------------------------------+<br />
       |     |!! ATTENTION !! Microwire is now obsolete! It is not |<br />
       |     |present in the Falcon030 and is unlikely to be in any|<br />
       |     |future machines. You have been warned.               | <br />
       |     +-----------------------------------------------------+<br />
       |     |Volume/tone controller commands         (Address %10)|<br />
       |     |Master Volume                           10 011 DDDDDD|<br />
       |     |Left Volume                             10 101 .DDDDD|<br />
       |     |Right Volume                            10 100 .DDDDD|<br />
       |     |Treble                                  10 010 ..DDDD|<br />
       |     |Bass                                    10 001 ..DDDD|<br />
       |     |Mixer                                   10 000 ....DD|<br />
       |     +-----------------------------------------------------+<br />
       |     |Volume/tone controller values                        |<br />
       |     |Master Volume     : 0-40  (0 -80dB, 40=0dB)          |<br />
       |     |Left/Right Volume : 0-20    (0 80dB, 20=0dB)         |<br />
       |     |Treble/bass       : 0-12 (0 -12dB, 12 +12dB)         |<br />
       |     |Mixer             : 0-3 (0 -12dB, 1 mix PSG)         |<br />
       |     |                    (2 don't mix,3 reserved)         |<br />
       |     +-----------------------------------------------------+<br />
       |     |Procedure: Set mask register to &#36;7ff. Read data      |<br />
       |     |register and save original value.Write data register.|<br />
       |     |Compare data register with original value, repeat    |<br />
       |     |until data register returns to original value to     |<br />
       |     |ensure data has been sent over the interface.        |<br />
       |     +-----------------------------------------------------+<br />
       |     |Interrupts: Timer A can be set to interrupt at the   |<br />
       |     |end of a frame. Alternatively, the GPI7 (MFP mono    |<br />
       |     |detect) can be used to generate interrupts thereby   |<br />
       |     |freeing up Timer A. In this case, the active edge    |<br />
       |     |&#36;FFFA03 must be set by or-ing the active edge of     |<br />
       |     |&#36;FFFA03 with the contents of &#36;FF8260:                |<br />
       |     |&#36;FF8260 - 2 (mono)    or.b  #&#36;80 with edge           |<br />
       |     |&#36;FF8260 - 0,1 (colour) and.b #&#36;7F with edge          |<br />
       |     |This will generate an interrupt at the START of a    |<br />
       |     |frame, instead of at the end as with Timer A. To     |<br />
       |     |generate an interrupt at the END of a frame, simply  |<br />
       |     |reverse the edge values.                             |<br />
<a name="Falcon030 DMA/DSP Controllers"></a>-------+-----+-----------------------------------------------------+----------<br />
##############Falcon030 DMA/DSP Controllers                   ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8930|word |Crossbar Source Controller                           |R/W (F030)<br />
       |     +-----------------------------------------------------+<br />
       |     |Source: A/D Convertor                 BIT 15 14 13 12|<br />
       |     |1 - Connect, 0 - disconnect ---------------'  |  |  ||<br />
       |     |00 - 25.175Mhz clock -------------------------+--+  ||<br />
       |     |01 - External clock --------------------------+--+  ||<br />
       |     |10 - 32Mhz clock (Don't use) -----------------+--'  ||<br />
       |     |0 - Handshake on, 1 - Handshake off ----------------'|<br />
       |     +-----------------------------------------------------+<br />
       |     |Source: External Input                BIT 11 10  9  8|<br />
       |     |0 - DSP IN, 1 - All others ----------------'  |  |  ||<br />
       |     |00 - 25.175Mhz clock -------------------------+--+  ||<br />
       |     |01 - External clock --------------------------+--+  ||<br />
       |     |10 - 32Mhz clock -----------------------------+--'  ||<br />
       |     |0 - Handshake on, 1 - Handshake off ----------------'|<br />
       |     +-----------------------------------------------------+<br />
       |     |Source: DSP-XMIT                      BIT  7  6  5  4|<br />
       |     |0 - Tristate and disconnect DSP -----------+  |  |  ||<br />
       |     |    (Only for external SSI use)            |  |  |  ||<br />
       |     |1 - Connect DSP to multiplexer ------------'  |  |  ||<br />
       |     |00 - 25.175Mhz clock -------------------------+--+  ||<br />
       |     |01 - External clock --------------------------+--+  ||<br />
       |     |10 - 32Mhz clock -----------------------------+--'  ||<br />
       |     |0 - Handshake on, 1 - Handshake off ----------------'|<br />
       |     +-----------------------------------------------------+<br />
       |     |Source: DMA-PLAYBACK                  BIT  3  2  1  0|<br />
       |     |0 - Handshaking on, dest DSP-REC ----------+  |  |  ||<br />
       |     |1 - Destination is not DSP-REC ------------'  |  |  ||<br />
       |     |00 - 25.175Mhz clock -------------------------+--+  ||<br />
       |     |01 - External clock --------------------------+--+  ||<br />
       |     |10 - 32Mhz clock -----------------------------+--'  ||<br />
       |     |0 - Handshake on, 1 - Handshake off ----------------'|<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8932|word |Crossbar Destination Controller                      |R/W (F030)<br />
       |     +-----------------------------------------------------+<br />
       |     |Destination: D/A Convertor            BIT 15 14 13 12|<br />
        |     |1 - Connect, 0 - Disconnect ---------------'  |  |  ||<br />
       |     |00 - Source DMA-PLAYBACK ---------------------+--+  ||<br />
       |     |01 - Source DSP-XMIT -------------------------+--+  ||<br />
       |     |10 - Source External Input -------------------+--+  ||<br />
       |     |11 - Source A/D Convertor --------------------+--'  ||<br />
       |     |0 - Handshake on, 1 - Handshake off ----------------'|<br />
       |     +-----------------------------------------------------+<br />
       |     |Destination: External Output          BIT 11 10  9  8|<br />
       |     |0 - DSP out, 1 - All others ---------------'  |  |  ||<br />
       |     |00 - Source DMA-PLAYBACK ---------------------+--+  ||<br />
       |     |01 - Source DSP-XMIT -------------------------+--+  ||<br />
       |     |10 - Source External Input -------------------+--+  ||<br />
       |     |11 - Source A/D Convertor --------------------+--'  ||<br />
       |     |0 - Handshake on, 1 - Handshake off ----------------'|<br />
       |     +-----------------------------------------------------+<br />
       |     |Destination: DSP-RECORD               BIT  7  6  5  4|<br />
       |     |0 - Tristate and disconnect DSP -----------+  |  |  ||<br />
       |     |    (Only for external SSI use)            |  |  |  ||<br />
       |     |1 - Connect DSP to multiplexer ------------'  |  |  ||<br />
       |     |00 - Source DMA-PLAYBACK ---------------------+--+  ||<br />
       |     |01 - Source DSP-XMIT -------------------------+--+  ||<br />
       |     |10 - Source External Input -------------------+--+  ||<br />
       |     |11 - Source A/D Convertor --------------------+--'  ||<br />
       |     |0 - Handshake on, 1 - Handshake off ----------------'|<br />
       |     +-----------------------------------------------------+<br />
       |     |Destination: DMA-RECORD               BIT  3  2  1  0|<br />
       |     |0 - Handshaking on, src DSP-XMIT ----------+  |  |  ||<br />
       |     |1 - Source is not DSP-XMIT ----------------'  |  |  ||<br />
       |     |00 - Source DMA-PLAYBACK ---------------------+--+  ||<br />
       |     |01 - Source DSP-XMIT -------------------------+--+  ||<br />
       |     |10 - Source External Input -------------------+--+  ||<br />
       |     |11 - Source A/D Convertor --------------------+--'  ||<br />
       |     |0 - Handshake on, 1 - Handshake off ----------------'|<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8934|byte |Frequency Divider External Clock           BIT 3 2 1 0|R/W (F030)<br />
       |     |0000 - STe-Compatible mode                            |<br />
       |     |0001 - 1111  Divide by 256 and then number            |<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8935|byte |Frequency Divider Internal Sync          BIT 3 2 1 0|R/W (F030)<br />
       |     |0000 - STe-Compatible mode  1000 - 10927Hz*         |<br />
       |     |0001 - 49170Hz              1001 -  9834Hz          |<br />
       |     |0010 - 32780Hz              1010 -  8940Hz*         |<br />
       |     |0011 - 24585Hz              1011 -  8195Hz          |<br />
       |     |0100 - 19668Hz              1100 -  7565Hz*         |<br />
       |     |0101 - 16390Hz              1101 -  7024Hz*         |<br />
       |     |0110 - 14049Hz*             1110 -  6556Hz*         |<br />
       |     |0111 - 12292Hz              1111 -  6146Hz*         |<br />
       |     |              * - Invalid for CODEC                 |<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8936|byte |Record Tracks Select                          BIT 1 0|R/W (F030)<br />
       |     |00 - Record 1 Track ------------------------------+-+|<br />
       |     |01 - Record 2 Tracks -----------------------------+-+|<br />
       |     |10 - Record 3 Tracks -----------------------------+-+|<br />
       |     |11 - Record 4 Tracks -----------------------------+-'|<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8937|byte |CODEC Input Source from 16bit adder          BIT 1 0|R/W (F030)<br />
       |     |Source: Multiplexer ------------------------------' ||<br />
       |     |Source: A/D Convertor ------------------------------'|<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8938|byte |CODEC ADC-Input for L+R Channel              BIT 1 0|R/W (F030)<br />
       |     |0 - Microphone, 1 - Soundchip                    L R|<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8939|byte |Channel amplification                  BIT LLLL RRRR|R/W (F030)<br />
       |     |          Amplification is in +1.5dB steps          |<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF893A|word |Channel attenuation                    BIT LLLL RRRR|R/W (F030)<br />
       |     |          Attenuation is in -1.5dB steps            |<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF893C|byte |CODEC-Status                                  BIT 1 0|R/W (F030)<br />
       |     |Left Channel Overflow ----------------------------' ||<br />
       |     |Right Channel Overflow -----------------------------'|<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8941|byte |GPx Data Direction                          BIT 2 1 0|R/W (F030)<br />
       |     |0 - In, 1 - Out --------------------------------+-+-'|<br />
       |     | For the GP0-GP2 pins on the DSP connector           |<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8943|byte |GPx Data Port                               BIT 2 1 0|R/W (F030)<br />
<a name="TT Clock Chip"></a>-------+-----+-----------------------------------------------------+----------<br />
##############TT Clock Chip (MC146818A @ 32.768 khz)          ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8961|byte |Register select                                      |W    (TT)<br />
       |     |0 - Current Second                                   |<br />
       |     |1 - Second for alarm                                 |<br />
       |     |2 - Current Minute                                   |<br />
       |     |3 - Minute for alarm                                 |<br />
       |     |4 - Current Hour                                     |<br />
       |     |5 - Hour for alarm                                   |<br />
       |     |6 - Day of week (1=Sunday, 2=Monday, 3=...)          |<br />
       |     |7 - Day of Month                                     |<br />
       |     |8 - Month                                            |<br />
       |     |9 - Year (example : '93' for this year)              |<br />
       |     |A                                               BIT 7|<br />
       |     |    If set, update time in progress ----------------'|<br />
       |     |    don't read time &amp; date registers                 |<br />
       |     |B                                 BIT 7 6 5 4 3 2 1 0|<br />
       |     |1 = Write Protect time &amp; date --------'   | |   | | ||<br />
       |     |1 = Enable alarm interrupt ---------------' |   | | ||<br />
       |     |1 = Interrupt after time updated -----------'   | | ||<br />
       |     |1 = Format Binary, 0 = Format BCD --------------' | ||<br />
       |     |1 = 24hr format, 0 = 12hr format -----------------' ||<br />
       |     |1 = Summer hours, 0 = Winter hours -----------------'|<br />
       |     |C                                           BIT 6 5 4|<br />
       |     | ??? -------------------------------------------' | ||<br />
       |     |1 = alarm is ringing -----------------------------' ||<br />
       |     |1 = date is updated --------------------------------'|<br />
       |     |On interrupt, read this register to determine source.|<br />
       |     |D                                               BIT 7|<br />
       |     |1 = Battery dead -----------------------------------'|<br />
&#36;FF8963|byte |Register data                                        |R/W  (TT)<br />
<a name="Blitter"></a>-------+-----+-----------------------------------------------------+----------<br />
##############Blitter (Not present on TT!)                    ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8A00|word |Halftone-RAM, Word 0                                 |R/W (Blit)<br />
    :  |  :  |    :    :    :   :                                  | :    :<br />
&#36;FF8A1E|word |Halftone-RAM, Word 15                                |R/W (Blit)<br />
&#36;FF8A20|word |Source X Increment                      (signed,even)|R/W (Blit)<br />
&#36;FF8A22|word |Source Y Increment                      (signed,even)|R/W (Blit)<br />
&#36;FF8A24|long |Source Address Register                 (24 bit,even)|R/W (Blit)<br />
&#36;FF8A28|word |Endmask 1                     (First write of a line)|R/W (Blit)<br />
&#36;FF8A2A|word |Endmask 2                     (All other line writes)|R/W (Blit)<br />
&#36;FF8A2C|word |Endmask 3                      (Last write of a line)|R/W (Blit)<br />
&#36;FF8A2E|word |Destination X Increment                 (signed,even)|R/W (Blit)<br />
&#36;FF8A30|word |Destination Y Increment                 (signed,even)|R/W (Blit)<br />
&#36;FF8A32|long |Destination Address Register            (24 bit,even)|R/W (Blit)<br />
&#36;FF8A36|word |Words per Line in Bit-Block                 (0=65536)|R/W (Blit)<br />
&#36;FF8A38|word |Lines per Bit-Block                         (0=65536)|R/W (Blit)<br />
&#36;FF8A3A|byte |Halftone Operation Register                   BIT 1 0|R/W (Blit)<br />
       |     |00 - All ones ------------------------------------+-+|<br />
       |     |01 - Halftone ------------------------------------+-+|<br />
       |     |10 - Source --------------------------------------+-+|<br />
       |     |11 - Source AND Halftone -------------------------+-'|<br />
&#36;FF8A3B|byte |Logical Operation Register                BIT 3 2 1 0|R/W (Blit)<br />
       |     |0000 All zeros -------------------------------+-+-+-+|<br />
       |     |0001 Source AND destination ------------------+-+-+-+|<br />
       |     |0010 Source AND NOT destination --------------+-+-+-+|<br />
       |     |0011 Source ----------------------------------+-+-+-+|<br />
       |     |0100 NOT source AND destination --------------+-+-+-+|<br />
       |     |0101 Destination -----------------------------+-+-+-+|<br />
       |     |0110 Source XOR destination ------------------+-+-+-+|<br />
       |     |0111 Source OR destination -------------------+-+-+-+|<br />
       |     |1000 NOT source AND NOT destination ----------+-+-+-+|<br />
       |     |1001 NOT source XOR destination --------------+-+-+-+|<br />
       |     |1010 NOT destination -------------------------+-+-+-+|<br />
       |     |1011 Source OR NOT destination ---------------+-+-+-+|<br />
       |     |1100 NOT source ------------------------------+-+-+-+|<br />
       |     |1101 NOT source OR destination ---------------+-+-+-+|<br />
       |     |1110 NOT source OR NOT destination -----------+-+-+-+|<br />
       |     |1111 All ones --------------------------------+-+-+-'|<br />
&#36;FF8A3C|byte |Line Number Register              BIT 7 6 5 . 3 2 1 0|R/W (Blit)<br />
       |     |BUSY ---------------------------------' | |   | | | ||<br />
       |     |0 - Share bus, 1 - Hog bus -------------' |   | | | ||<br />
       |     |SMUDGE mode ------------------------------'   | | | ||<br />
       |     |Halftone line number -------------------------+-+-+-'|<br />
&#36;FF8A3D|byte |SKEW Register                     BIT 7 6 . . 3 2 1 0|R/W (Blit)<br />
       |     |Force eXtra Source Read --------------' |     | | | ||<br />
       |     |No Final Source Read -------------------'     | | | ||<br />
       |     |Source skew ----------------------------------+-+-+-'|<br />
<a name="SCC-DMA"></a>-------+-----+-----------------------------------------------------+----------<br />
##############SCC-DMA (TT Only!)                              ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8C01|byte |DMA Address Pointer (Highest Byte)                   |R/W  (TT)<br />
&#36;FF8C03|byte |DMA Address Pointer (High Byte)                      |R/W  (TT)<br />
&#36;FF8C05|byte |DMA Address Pointer (Low Byte)                       |R/W  (TT)<br />
&#36;FF8C07|byte |DMA Address Pointer (Lowest Byte)                    |R/W  (TT)<br />
&#36;FF8C09|byte |DMA Byte Count (Highest-Byte)                        |R/W  (TT)<br />
&#36;FF8C0B|byte |DMA Byte Count (High-Byte)                           |R/W  (TT)<br />
&#36;FF8C0D|byte |DMA Byte Count (Low-Byte)                            |R/W  (TT)<br />
&#36;FF8C0F|byte |DMA Byte Count (Lowest-Byte)                         |R/W  (TT)<br />
&#36;FF8C10|word |Residue Data Register (High-Word)                    |R    (TT)<br />
&#36;FF8C12|word |Residue Data register (Low-Word)                     |R    (TT)<br />
&#36;FF8C15|byte |Control register                  BIT 7 6 . . . . 1 0|R/W  (TT)<br />
       |     |Bus error ----------------------------' |         | ||<br />
       |     |Byte count zero ------------------------'         | ||<br />
       |     |Enable -------------------------------------------' ||<br />
       |     |DMA Direction (1 - out to port) --------------------'|<br />
<a name="Zilog 8530 SCC"></a>-------+-----+-----------------------------------------------------+----------<br />
##############Zilog 8530 SCC (MSTe/TT/F030)                   ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8C81|byte |Channel A - Control Register                         |R/W  (SCC)<br />
&#36;FF8C83|byte |Channel A - Data Register                            |R/W  (SCC)<br />
&#36;FF8C85|byte |Channel B - Control Register                         |R/W  (SCC)<br />
&#36;FF8C87|byte |Channel B - Data Register                            |R/W  (SCC)<br />
<a name="VME Bus System Control Unit"></a>-------+-----+-----------------------------------------------------+----------<br />
##############VME Bus System Control Unit (MSTe/TT)           ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8E01|byte |VME sys_mask                      BIT 7 6 5 4 . 2 1 .|R/W  (VME)<br />
&#36;FF8E03|byte |VME sys_stat                      BIT 7 6 5 4 . 2 1 .|R    (VME)<br />
       |     |_SYSFAIL in VMEBUS -------------------' | | |   | |  |program<br />
       |     |MFP ------------------------------------' | |   | |  |autovec<br />
       |     |SCC --------------------------------------' |   | |  |autovec<br />
       |     |VSYNC --------------------------------------'   | |  |program<br />
       |     |HSYNC ------------------------------------------' |  |program<br />
       |     |System software INT ------------------------------'  |program<br />
       |     +-----------------------------------------------------+<br />
       |     |Reading sys_mask resets pending int-bits in sys_stat,|<br />
       |     |so read sys_stat first.                              |<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8E05|byte |VME sys_int                                     BIT 0|R/W  (VME)<br />
       |    |Setting bit 0 to 1 forces an INT of level 1. INT must|Vector &#36;64<br />
       |     |be enabled in sys_mask to use it.                    |<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8E0D|byte |VME vme_mask                      BIT 7 6 5 4 3 2 1 .|R/W  (VME)<br />
&#36;FF8E0F|byte |VME vme_stat                      BIT 7 6 5 4 3 2 1 .|R    (VME)<br />
       |     |_IRQ7 from VMEBUS --------------------' | | | | | |  |program<br />
       |     |_IRQ6 from VMEBUS/MFP ------------------' | | | | |  |program<br />
       |     |_IRQ5 from VMEBUS/SCC --------------------' | | | |  |program<br />
       |     |_IRQ4 from VMEBUS --------------------------' | | |  |program<br />
       |     |_IRQ3 from VMEBUS/soft -----------------------' | |  |prog/autov<br />
       |     |_IRQ2 from VMEBUS ------------------------------' |  |program<br />
       |     |_IRQ1 from VMEBUS --------------------------------'  |program<br />
       |     +-----------------------------------------------------+<br />
       |     |MFP-int and SCC-int are hardwired to the VME-BUS-ints|<br />
       |     |(or'ed). Reading vme_mask resets pending int-bits in |<br />
       |     |vme_stat, so read vme_stat first.                    |<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8E07|byte |VME vme_int                                     BIT 0|R/W  (TT)<br />
       |     |Setting bit 0 to 1 forces an INT of level 3. INT must|Vector &#36;6C<br />
       |     |be enabled in vme_mask to use it.                    |<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8E09|byte |General purpose register - does nothing              |R/W  (TT)<br />
&#36;FF8E0B|byte |General purpose register - does nothing              |R/W  (TT)<br />
<a name="Mega STe Cache/Processor Control"></a>-------+-----+-----------------------------------------------------+----------<br />
##############Mega STe Cache/Processor Control                ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF8E21|byte |Mega STe Cache/Processor Control           BIT 15-1 0|R/W (MSTe)<br />
       |     |Cache enable lines (set all to 1 to enable) -----'  ||<br />
       |     |CPU Speed (0 - 8mhz, 1 - 16mhz) --------------------'|<br />
<a name="STe/F030 Extended Joystick/Lightpen Ports"></a>-------+-----+-----------------------------------------------------+----------<br />
##############STe/F030 Extended Joystick/Lightpen Ports       ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FF9200|word |Fire buttons 1-4                          Bit 3 2 1 0|R    (Ext)<br />
       |     |Pause/F0 -------------------------------------' | | ||<br />
       |     |F1 ---------------------------------------------' | ||<br />
       |     |F2 -----------------------------------------------' ||<br />
       |     |Option/F3 ------------------------------------------'|<br />
&#36;FF9202|word |Read Mask (0 - pin read)                             |W    (Ext)<br />
&#36;FF9202|word |Joystick Inputs                   BIT 7 6 5 4 3 2 1 0|R    (Ext)<br />
       |     |Controller 1 pin 4 -------------------' | | | | | | ||<br />
       |     |Controller 1 pin 3 ---------------------' | | | | | ||<br />
       |     |Controller 1 pin 2 -----------------------' | | | | ||<br />
       |     |Controller 1 pin 1 -------------------------' | | | ||<br />
       |     |Controller 0 pin 4 ---------------------------' | | ||<br />
       |     |Controller 0 pin 3/Paddle 1 Trigger ------------' | ||<br />
       |     |Controller 0 pin 2/Paddle 0 Trigger --------------' ||<br />
       |     |Controller 0 pin 1 ---------------------------------'|<br />
       |     |                            BIT 15 14 13 12 11 10 9 8|<br />
       |     |Controller 1 pin 14 ------------'   |  |  |  |  | | ||<br />
       |     |Controller 1 pin 13 ----------------'  |  |  |  | | ||<br />
       |     |Controller 1 pin 12 -------------------'  |  |  | | ||<br />
       |     |Controller 1 pin 11 ----------------------'  |  | | ||<br />
       |     |Controller 0 pin 14 -------------------------'  | | ||<br />
       |     |Controller 0 pin 13 ----------------------------' | ||<br />
       |     |Controller 0 pin 12 ------------------------------' ||<br />
       |     |Controller 0 pin 11 --------------------------------'|<br />
&#36;FF9210|word |X Paddle 0 Position               BIT 7 6 5 4 3 2 1 0|R    (Ext)<br />
&#36;FF9212|word |Y Paddle 0 Position               BIT 7 6 5 4 3 2 1 0|R    (Ext)<br />
&#36;FF9214|word |X Paddle 1 Position               BIT 7 6 5 4 3 2 1 0|R    (Ext)<br />
&#36;FF9216|word |Y Paddle 1 Position               BIT 7 6 5 4 3 2 1 0|R    (Ext)<br />
&#36;FF9220|word |Lightpen X-Position           BIT 9 8 7 6 5 4 3 2 1 0|R    (Ext)<br />
&#36;FF9222|word |Lightpen Y-Position           BIT 9 8 7 6 5 4 3 2 1 0|R    (Ext)<br />
<a name="Falcon VIDEL Palette Registers"></a>-------+-----+-----------------------------------------------------+----------<br />
##############Falcon VIDEL Palette Registers                  ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
       |     |              BIT 33222222 22221111 11111198 76543210|<br />
       |     |                   10987654 32109876 543210          |<br />
       |     |                  RRRRRr.. GGGGGg.. ........ BBBBBb..|<br />
&#36;FF9800|long |Palette Register  0                   Lowercase = LSB|R/W (F030)<br />
    :  |  :  |  :        :     :                                   | :    :<br />
&#36;FF98FC|long |Palette Register 255                                 |R/W (F030)<br />
<a name="Falcon DSP Host Interface"></a>-------+-----+-----------------------------------------------------+----------<br />
##############Falcon DSP Host Interface                       ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFA200|byte |Interrupt Ctrl Register          BIT 7 6 5 4 3 . 1 0|R/W (F030)<br />
X:&#36;FFE9|     |INIT bit -----------------------------' | | | |  | ||<br />
       |     |00 - Interupt mode (DMA off) -----------+-+ | |  | ||<br />
       |     |01 - 24-bit DMA mode -------------------+-+ | |  | ||<br />
       |     |10 - 16-bit DMA mode -------------------+-+ | |  | ||<br />
       |     |11 - 8-bit DMA mode --------------------+-' | |  | ||<br />
       |     |Host Flag 1 --------------------------------' |  | ||<br />
       |     |Host Flag 0 ----------------------------------'  | ||<br />
       |     |        Host mode Data transfers:                | ||<br />
       |     |              Interrupt mode                     | ||<br />
       |     |00 - No interrupts (Polling) --------------------+-+|<br />
       |     |01 - RXDF Request (Interrupt) -------------------+-+|<br />
       |     |10 - TXDE Request (Interrupt) -------------------+-+|<br />
       |     |11 - RXDF and TXDE Request (Interrupts) ---------+-+|<br />
       |     |                DMA Mode                         | ||<br />
       |     |00 - No DMA -------------------------------------+-+|<br />
       |     |01 - DSP to Host Request (RX) -------------------+-+|<br />
       |     |10 - Host to DSP Request (TX) -------------------+-+|<br />
       |     |11 - Undefined (Illegal) ------------------------+-'|<br />
&#36;FFA201|byte |Command Vector Register          BIT 7 . . 4 3 2 1 0|R/W (F030)<br />
X:&#36;FFE9|     |Host Command Bit (Handshake)---------'     | | | | ||<br />
       |     |Host Vector (0-31) ------------------------+-+-+-+-'|<br />
&#36;FFA202|byte |Interrupt Status Reg             BIT 7 6 . 4 3 2 1 0|R  (F030)<br />
X:&#36;FFE8|     |ISR Host Request --------------------' |   | | | | ||<br />
       |     |ISR DMA Status ------------------------'   | | | | ||<br />
       |     |Host Flag 3 -------------------------------' | | | ||<br />
       |     |Host Flag 2 ---------------------------------' | | ||<br />
       |     |ISR Transmitter Ready (TRDY) ------------------' | ||<br />
       |     |ISR Transmit Data Register Empty (TXDE) ---------' ||<br />
       |     |ISR Receive Data Register Full (RXDF) -------------'|<br />
&#36;FFA203|byte |Interrupt Vector Register                           |R/W (F030)<br />
&#36;FFA204|byte |Unused                                              |    (F030)<br />
&#36;FFA205|byte |DSP-Word High                                       |R/W (F030)<br />
X:&#36;FFEB|     |                                                    |<br />
&#36;FFA206|byte |DSP-Word Mid                                        |R/W (F030)<br />
X:&#36;FFEB|     |                                                    |<br />
&#36;FFA207|byte |DSP-Word Low                                        |R/W (F030)<br />
X:&#36;FFEB|     |                                                    |<br />
<a name="MFP 68901"></a>-------+-----+----------------------------------------------------+----------<br />
##############MFP 68901 - Multi Function Peripheral Chip      ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
       |     |    MFP Master Clock is 2,457,600 cycles/second      |<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA01|byte |Parallel Port Data Register                          |R/W<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA03|byte |Active Edge Register              BIT 7 6 5 4 . 2 1 0|R/W<br />
       |     |Monochrome monitor detect ------------' | | | | | | ||<br />
       |     |RS-232 Ring indicator ------------------' | | | | | ||<br />
       |     |FDC/HDC interrupt ------------------------' | | | | ||<br />
       |     |Keyboard/MIDI interrupt --------------------' | | | ||<br />
       |     |Reserved -------------------------------------' | | ||<br />
       |     |RS-232 CTS (input) -----------------------------' | ||<br />
       |     |RS-232 DCD (input) -------------------------------' ||<br />
       |     |Centronics busy ------------------------------------'|<br />
       |     +-----------------------------------------------------+<br />
       |     |      When port bits are used for input only:       |<br />
       |     |0 - Interrupt on pin high-low conversion             |<br />
       |     |1 - Interrupt on pin low-high conversion             |<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA05|byte |Data Direction                    BIT 7 6 5 4 3 2 1 0|R/W<br />
       |     |0 - In, 1 - Out ----------------------+-+-+-+-+-+-+-'|<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA07|byte |Interrupt Enable A                BIT 7 6 5 4 3 2 1 0|R/W<br />
&#36;FFFA0B|byte |Interrupt Pending A               BIT 7 6 5 4 3 2 1 0|R/W<br />
&#36;FFFA0F|byte |Interrupt In-service A            BIT 7 6 5 4 3 2 1 0|R/W<br />
&#36;FFFA13|byte |Interrupt Mask A                  BIT 7 6 5 4 3 2 1 0|R/W<br />
       |     |MFP Address                           | | | | | | | ||<br />
       |     |&#36;13C GPI7-Monochrome Detect ----------' | | | | | | ||<br />
       |     |&#36;138  RS-232 Ring Detector -------------' | | | | | ||<br />
       |     |&#36;134 (STe sound)    Timer A --------------' | | | | ||<br />
       |     |&#36;130    Receive buffer full ----------------' | | | ||<br />
       |     |&#36;12C          Receive error ------------------' | | ||<br />
       |     |&#36;128      Send buffer empty --------------------' | ||<br />
       |     |&#36;124            Send error -----------------------' ||<br />
       |     |&#36;120 (HBL)          Timer B ------------------------'|<br />
       |     |1 - Enable Interrupt            0 - Disable Interrupt|<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA09|byte |Interrupt Enable B                BIT 7 6 5 4 3 2 1 0|R/W<br />
&#36;FFFA0D|byte |Interrupt Pending B               BIT 7 6 5 4 3 2 1 0|R/W<br />
&#36;FFFA11|byte |Interrupt In-service B            BIT 7 6 5 4 3 2 1 0|R/W<br />
&#36;FFFA15|byte |Interrupt Mask B                  BIT 7 6 5 4 3 2 1 0|R/W<br />
       |     |MFP Address                           | | | | | | | ||<br />
       |     |&#36;11C                FDC/HDC ----------' | | | | | | ||<br />
       |     |&#36;118          Keyboard/MIDI ------------' | | | | | ||<br />
       |     |&#36;114 (200hz clock)  Timer C --------------' | | | | ||<br />
       |     |&#36;110 (USART timer)  Timer D ----------------' | | | ||<br />
       |     |&#36;10C          Blitter done -------------------' | | ||<br />
       |     |&#36;108    RS-232 CTS - input ---------------------' | ||<br />
       |     |&#36;104    RS-232 DCD - input -----------------------' ||<br />
       |     |&#36;100        Centronics Busy ------------------------'|<br />
       |     |1 - Enable Interrupt            0 - Disable Interrupt|<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA17|byte |Vector Register                   BIT 7 6 5 4 3 . . .|R/W<br />
       |     |Vector Base Offset -------------------+-+-+-' |      |<br />
       |     |1 - *Software End-interrupt mode -------------+      |<br />
       |     |0 - Automatic End-interrupt mode -------------'      |<br />
       |    |* - Default operating mode                           |<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA19|byte |Timer A Control                         BIT 4 3 2 1 0|R/W<br />
&#36;FFFA1B|byte |Timer B Control                         BIT 4 3 2 1 0|R/W<br />
       |     |Reset (force output low) -------------------' | | | ||<br />
       |     +----------------------------------------------+-+-+-++<br />
       |     |0000 - Timer stop, no function executed              |<br />
        |     |0001 - Delay mode, divide by 4                       |<br />
       |     |0010 -    :          :       10                      |<br />
       |     |0011 -    :          :       16                      |<br />
       |     |0100 -    :          :       50                      |<br />
       |     |0101 -    :          :       64                      |<br />
       |     |0110 -    :          :       100                     |<br />
       |     |0111 - Delay mode, divide by 200                     |<br />
       |     |1000 - Event count mode                              |<br />
       |     |1xxx - Pulse extension mode, divide as above         |<br />
       |     +-----------------------------------------------------+<br />
&#36;FFFA1F|byte |Timer A Data                                         |R/W<br />
&#36;FFFA21|byte |Timer B Data                                         |R/W<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA1D|byte |Timer C &amp; D Control                 BIT 6 5 4 . 2 1 0|R/W<br />
       |     |                                         Timer  Timer|<br />
       |     |                                           C      D  |<br />
       |     +-----------------------------------------------------+<br />
       |     |000 - Timer stop                                     |<br />
       |     |001 - Delay mode, divide by 4                        |<br />
       |     |010 -      :          :     10                       |<br />
       |     |011 -      :          :     16                       |<br />
       |     |100 -      :          :     50                       |<br />
       |     |101 -      :          :     64                       |<br />
       |     |110 -      :          :     100                      |<br />
       |     |111 - Delay mode, divide by 200                      |<br />
       |     +-----------------------------------------------------+<br />
&#36;FFFA23|byte |Timer C Data                                         |R/W<br />
&#36;FFFA25|byte |Timer D Data                                         |R/W<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA27|byte |Sync Character                                       |R/W<br />
&#36;FFFA29|byte |USART Control                     BIT 7 6 5 4 3 2 1 .|R/W<br />
       |     |Clock divide (1 - div by 16) ---------' | | | | | | ||<br />
       |     |Word Length 00 - 8 bits ----------------+-+ | | | | ||<br />
       |     |            01 - 7 bits ----------------+-+ | | | | ||<br />
       |     |            10 - 6 bits ----------------+-+ | | | | ||<br />
       |     |            11 - 5 bits ----------------+-' | | | | ||<br />
       |     |Bits Stop Start Format                      | | | | ||<br />
       |     |00    0    0  Synchronous ------------------+-+ | | ||<br />
       |     |01    1    1  Asynchronous -----------------+-+ | | ||<br />
       |     |10    1    1.5 Asynchronous ----------------+-+ | | ||<br />
       |     |11    1    2  Asynchronous -----------------+-' | | ||<br />
       |     |Parity (0 - ignore parity bit) -----------------' | ||<br />
       |     |Parity (0 - odd parity,1 - even) -----------------' ||<br />
       |     |Unused ---------------------------------------------'|<br />
&#36;FFFA2B|byte |Receiver Status                   BIT 7 6 5 4 3 2 1 0|R/W<br />
       |     |Buffer full --------------------------' | | | | | | ||<br />
       |     |Overrun error --------------------------' | | | | | ||<br />
       |     |Parity error -----------------------------' | | | | ||<br />
       |     |Frame error --------------------------------' | | | ||<br />
       |     |Found - Search/Break detected ----------------' | | ||<br />
       |     |Match/Character in progress --------------------' | ||<br />
       |     |Synchronous strip enable -------------------------' ||<br />
       |     |Receiver enable bit --------------------------------'|<br />
&#36;FFFA2D|byte |Transmitter Status                BIT 7 6 5 4 3 2 1 0|R/W<br />
       |     |Buffer empty -------------------------' | | | | | | ||<br />
       |     |Underrun error -------------------------' | | | | | ||<br />
       |     |Auto turnaround --------------------------' | | | | ||<br />
       |     |End of transmission ------------------------' | | | ||<br />
       |     |Break ----------------------------------------' | | ||<br />
       |     |High bit ---------------------------------------' | ||<br />
       |     |Low bit ------------------------------------------' ||<br />
       |     |Transmitter enable ---------------------------------'|<br />
&#36;FFFA2F|byte |USART data                                          |R/W<br />
<a name="Floating Point Coprocessor"></a>-------+-----+-----------------------------------------------------+----------<br />
########## Floating Point Coprocessor (CIR Interface in MSTe) ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA40|word |FP_Stat    Response-Register                         |??? (MSTe)<br />
&#36;FFFA42|word |FP_Ctl    Control-Register                           |??? (MSTe)<br />
&#36;FFFA44|word |FP_Save    Save-Register                             |??? (MSTe)<br />
&#36;FFFA46|word |FP_Restor  Restore-Register                          |??? (MSTe)<br />
&#36;FFFA48|word |                                                     |??? (MSTe)<br />
&#36;FFFA4A|word |FP_Cmd    Command-Register                           |??? (MSTe)<br />
&#36;FFFA4E|word |FP_Ccr    Condition-Code-Register                     |??? (MSTe)<br />
&#36;FFFA50|long |FP_Op      Operand-Register                           |??? (MSTe)<br />
&#36;FFFA54|word |FP_Selct  Register Select                           |??? (MSTe)<br />
&#36;FFFA58|long |FP_Iadr    Instruction Address                       |??? (MSTe)<br />
&#36;FFFA5C|long |          Operand Address                            |??? (MSTe)<br />
<a name="MFP 68901 #2 (MFP2) - TT Only"></a>-------+-----+-----------------------------------------------------+----------<br />
##############MFP 68901 #2 (MFP2) - TT Only                   ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA81|byte |Parallel Port Data Register                          |R/W  (TT)<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA83|byte |Active Edge Register              BIT 7 6 5 4 3 2 1 0|R/W  (TT)<br />
       |     +-----------------------------------------------------+<br />
       |     |      When port bits are used for input only:        |<br />
       |     |0 - Interrupt on pin high-low conversion             |<br />
       |     |1 - Interrupt on pin low-high conversion             |<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA85|byte |Data Direction                    BIT 7 6 5 4 3 2 1 0|R/W  (TT)<br />
       |     |0 - In, 1 - Out ----------------------+-+-+-+-+-+-+-'|<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA87|byte |Interrupt Enable A                BIT 7 6 5 4 3 2 1 0|R/W  (TT)<br />
&#36;FFFA8B|byte |Interrupt Pending A              BIT 7 6 5 4 3 2 1 0|R/W  (TT)<br />
&#36;FFFA8F|byte |Interrupt In-service A            BIT 7 6 5 4 3 2 1 0|R/W  (TT)<br />
&#36;FFFA93|byte |Interrupt Mask A                  BIT 7 6 5 4 3 2 1 0|R/W  (TT)<br />
       |     |MFP Address                           | | | | | | | ||<br />
       |     |&#36;17C        TT-SCSI NCR5380 ----------' | | | | | | ||<br />
       |     |&#36;178        RTC (MC146818A) ------------' | | | | | ||<br />
       |     |&#36;174                Timer A --------------' | | | | ||<br />
       |     |&#36;170    Receive buffer full ----------------' | | | ||<br />
       |     |&#36;16C          Receive error ------------------' | | ||<br />
       |     |&#36;168      Send buffer empty --------------------' | ||<br />
       |     |&#36;164              Send error ---------------------' ||<br />
       |     |&#36;160                Timer B ------------------------'|<br />
       |     |1 - Enable Interrupt            0 - Disable Interrupt|<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA89|byte |Interrupt Enable B                BIT 7 6 5 4 3 2 1 0|R/W  (TT)<br />
&#36;FFFA8D|byte |Interrupt Pending B               BIT 7 6 5 4 3 2 1 0|R/W  (TT)<br />
&#36;FFFA91|byte |Interrupt In-service B            BIT 7 6 5 4 3 2 1 0|R/W  (TT)<br />
&#36;FFFA95|byte |Interrupt Mask B                  BIT 7 6 5 4 3 2 1 0|R/W  (TT)<br />
       |     |MFP Address                           | | | | | | | ||<br />
       |     |&#36;15C    SCSI DMA Controller ----------' | | | | | | ||<br />
       |     |&#36;158      (Reserved) GPIP 4 ------------' | | | | | ||<br />
       |     |&#36;154                Timer C --------------' | | | | ||<br />
       |     |&#36;150                Timer D ----------------' | | | ||<br />
       |     |&#36;14C    SCC B Ring Indicator -----------------' | | ||<br />
       |     |&#36;148      SCC DMA Controller -------------------' | ||<br />
       |     |&#36;144 General Purpose Input 1 ---------------------' ||<br />
       |     |&#36;140 General Purpose Input 0 -----------------------'|<br />
       |     |1 - Enable Interrupt            0 - Disable Interrupt|<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA97|byte |Vector Register                   BIT 7 6 5 4 3 . . .|R/W  (TT)<br />
       |     |Vector Base Offset -------------------+-+-+-' |      |<br />
       |     |1 - *Software End-interrupt mode -------------+      |<br />
       |     |0 - Automatic End-interrupt mode -------------'      |<br />
       |     |* - Default operating mode                           |<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA99|byte |Timer A Control                         BIT 4 3 2 1 0|R/W  (TT)<br />
&#36;FFFA9B|byte |Timer B Control                         BIT 4 3 2 1 0|R/W  (TT)<br />
       |     |Reset (force output low) -------------------' | | | ||<br />
       |     +----------------------------------------------+-+-+-++<br />
       |     |0000 - Timer stop, no function executed              |<br />
       |     |0001 - Delay mode, divide by 4                       |<br />
       |     |0010 -    :          :       10                      |<br />
       |     |0011 -    :          :       16                      |<br />
       |     |0100 -    :          :       50                      |<br />
       |     |0101 -    :          :       64                      |<br />
       |     |0110 -    :          :       100                     |<br />
       |     |0111 - Delay mode, divide by 200                     |<br />
       |     |1000 - Event count mode                              |<br />
       |     |1xxx - Pulse extension mode, divide as above         |<br />
       |     +-----------------------------------------------------+<br />
&#36;FFFA9F|byte |Timer A Data                                         |R/W  (TT)<br />
&#36;FFFAA1|byte |Timer B Data                                         |R/W  (TT)<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFA9D|byte |Timer C &amp; D Control                 BIT 6 5 4 . 2 1 0|R/W  (TT)<br />
       |     |                                         Timer  Timer|<br />
       |     |                                           C      D  |<br />
       |     +-----------------------------------------------------+<br />
       |     |000 - Timer stop                                     |<br />
       |     |001 - Delay mode, divide by 4                        |<br />
       |     |010 -      :          :     10                       |<br />
       |     |011 -      :          :     16                       |<br />
       |     |100 -      :          :     50                       |<br />
       |     |101 -      :          :     64                       |<br />
       |     |110 -      :          :     100                      |<br />
       |     |111 - Delay mode, divide by 200                      |<br />
       |     +-----------------------------------------------------+<br />
&#36;FFFAA3|byte |Timer C Data                                         |R/W  (TT)<br />
&#36;FFFAA5|byte |Timer D Data                                         |R/W  (TT)<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFAA7|byte |Sync Character                                       |R/W  (TT)<br />
&#36;FFFAA9|byte |USART Control                     BIT 7 6 5 4 3 2 1 .|R/W  (TT)<br />
       |     |Clock divide (1 - div by 16) ---------' | | | | | | ||<br />
       |     |Word Length 00 - 8 bits ----------------+-+ | | | | ||<br />
       |     |            01 - 7 bits ----------------+-+ | | | | ||<br />
       |     |            10 - 6 bits ----------------+-+ | | | | ||<br />
       |     |            11 - 5 bits ----------------+-' | | | | ||<br />
       |     |Bits Stop Start Format                      | | | | ||<br />
       |     |00    0    0  Synchronous ------------------+-+ | | ||<br />
       |     |01    1    1  Asynchronous -----------------+-+ | | ||<br />
       |     |10    1    1.5 Asynchronous ----------------+-+ | | ||<br />
       |     |11    1    2  Asynchronous -----------------+-' | | ||<br />
       |     |Parity (0 - ignore parity bit) -----------------' | ||<br />
       |     |Parity (0 - odd parity,1 - even) -----------------' ||<br />
       |     |Unused ---------------------------------------------'|<br />
&#36;FFFAAB|byte |Receiver Status                   BIT 7 6 5 4 3 2 1 0|R/W  (TT)<br />
       |     |Buffer full --------------------------' | | | | | | ||<br />
       |     |Overrun error --------------------------' | | | | | ||<br />
       |     |Parity error -----------------------------' | | | | ||<br />
       |     |Frame error --------------------------------' | | | ||<br />
       |     |Found - Search/Break detected ----------------' | | ||<br />
       |     |Match/Character in progress --------------------' | ||<br />
       |     |Synchronous strip enable -------------------------' ||<br />
       |     |Receiver enable bit --------------------------------'|<br />
&#36;FFFAAD|byte |Transmitter Status                BIT 7 6 5 4 3 2 1 0|R/W  (TT)<br />
       |     |Buffer empty -------------------------' | | | | | | ||<br />
       |     |Underrun error -------------------------' | | | | | ||<br />
       |     |Auto turnaround --------------------------' | | | | ||<br />
       |     |End of transmission ------------------------' | | | ||<br />
       |     |Break ----------------------------------------' | | ||<br />
       |     |High bit ---------------------------------------' | ||<br />
       |     |Low bit ------------------------------------------' ||<br />
       |     |Transmitter enable ---------------------------------'|<br />
&#36;FFFAAF|byte |USART data                                           |R/W  (TT)<br />
<a name="6850 ACIA I/O Chips"></a>-------+-----+-----------------------------------------------------+----------<br />
##############6850 ACIA I/O Chips                             ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFC00|byte |Keyboard ACIA control             BIT 7 6 5 4 3 2 1 0|W<br />
       |     |Rx Int enable (1 - enable) -----------' | | | | | | ||<br />
       |     |Tx Interrupts                           | | | | | | ||<br />
       |     |00 - RTS low, Tx int disable -----------+-+ | | | | ||<br />
       |     |01 - RTS low, Tx int enable ------------+-+ | | | | ||<br />
       |     |10 - RTS high, Tx int disable ----------+-+ | | | | ||<br />
       |     |11 - RTS low, Tx int disable,           | | | | | | ||<br />
       |     |    Tx a break onto data out -----------+-' | | | | ||<br />
       |     |Settings                                    | | | | ||<br />
       |     |000 - 7 bit, even, 2 stop bit --------------+-+-+ | ||<br />
       |     |001 - 7 bit, odd, 2 stop bit ---------------+-+-+ | ||<br />
       |     |010 - 7 bit, even, 1 stop bit --------------+-+-+ | ||<br />
       |     |011 - 7 bit, odd, 1 stop bit ---------------+-+-+ | ||<br />
       |     |100 - 8 bit, 2 stop bit --------------------+-+-+ | ||<br />
       |     |101 - 8 bit, 1 stop bit --------------------+-+-+ | ||<br />
       |     |110 - 8 bit, even, 1 stop bit --------------+-+-+ | ||<br />
       |     |111 - 8 bit, odd, 1 stop bit ---------------+-+-' | ||<br />
       |     |Clock divide                                      | ||<br />
       |     |00 - Normal --------------------------------------+-+|<br />
       |     |01 - Div by 16 -----------------------------------+-+|<br />
       |     |10 - Div by 64 -----------------------------------+-+|<br />
       |     |11 - Master reset --------------------------------+-'|<br />
&#36;FFFC00|byte |Keyboard ACIA control            BIT 7 6 5 4 3 2 1 0|R<br />
       |     |Interrupt request --------------------' | | | | | | ||<br />
       |     |Parity error ---------------------------' | | | | | ||<br />
       |     |Rx overrun -------------------------------' | | | | ||<br />
       |     |Framing error ------------------------------' | | | ||<br />
       |     |CTS ------------------------------------------' | | ||<br />
       |     |DCD --------------------------------------------' | ||<br />
       |     |Tx data register empty ---------------------------' ||<br />
       |     |Rx data register full ------------------------------'|<br />
&#36;FFFC02|byte |Keyboard ACIA data                                   |R/W<br />
&#36;FFFC04|byte |MIDI ACIA control                 BIT 7 6 5 4 3 2 1 0|W<br />
       |     |Rx Int enable (1 - enable) -----------' | | | | | | ||<br />
       |     |Tx Interrupts                           | | | | | | ||<br />
       |     |00 - RTS low, Tx int disable -----------+-+ | | | | ||<br />
       |     |01 - RTS low, Tx int enable ------------+-+ | | | | ||<br />
       |     |10 - RTS high, Tx int disable ----------+-+ | | | | ||<br />
       |     |11 - RTS low, Tx int disable,           | | | | | | ||<br />
       |     |    Tx a break onto data out -----------+-' | | | | ||<br />
       |     |Settings                                    | | | | ||<br />
       |     |000 - 7 bit, even, 2 stop bit --------------+-+-+ | ||<br />
       |     |001 - 7 bit, odd, 2 stop bit ---------------+-+-+ | ||<br />
       |     |010 - 7 bit, even, 1 stop bit --------------+-+-+ | ||<br />
       |     |011 - 7 bit, odd, 1 stop bit ---------------+-+-+ | ||<br />
       |     |100 - 8 bit, 2 stop bit --------------------+-+-+ | ||<br />
       |     |101 - 8 bit, 1 stop bit --------------------+-+-+ | ||<br />
       |     |110 - 8 bit, even, 1 stop bit --------------+-+-+ | ||<br />
       |     |111 - 8 bit, odd, 1 stop bit ---------------+-+-' | ||<br />
       |     |Clock divide                                      | ||<br />
       |     |00 - Normal --------------------------------------+-+|<br />
       |     |01 - Div by 16 -----------------------------------+-+|<br />
       |     |10 - Div by 64 -----------------------------------+-+|<br />
       |     |11 - Master reset --------------------------------+-'|<br />
&#36;FFFC04|byte |MIDI ACIA control                BIT 7 6 5 4 3 2 1 0|R<br />
       |     |Interrupt request --------------------' | | | | | | ||<br />
       |     |Parity error ---------------------------' | | | | | ||<br />
       |     |Rx overrun -------------------------------' | | | | ||<br />
       |     |Framing error ------------------------------' | | | ||<br />
       |     |CTS ------------------------------------------' | | ||<br />
       |     |DCD --------------------------------------------' | ||<br />
       |     |Tx data register empty ---------------------------' ||<br />
       |     |Rx data register full ------------------------------'|<br />
&#36;FFFC06|byte |MIDI ACIA data                                       |R/W<br />
<a name="Realtime Clock"></a>-------+-----+-----------------------------------------------------+----------<br />
##############Realtime Clock                                  ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FFFC21|byte |S_Units                                              |???<br />
&#36;FFFC23|byte |S_Tens                                               |???<br />
&#36;FFFC25|byte |M_Units                                              |???<br />
&#36;FFFC27|byte |M_Tens                                               |???<br />
&#36;FFFC29|byte |H_Units                                              |???<br />
&#36;FFFC2B|byte |H_Tens                                               |???<br />
&#36;FFFC2D|byte |Weekday                                              |???<br />
&#36;FFFC2F|byte |Day_Units                                            |???<br />
&#36;FFFC31|byte |Day_Tens                                             |???<br />
&#36;FFFC33|byte |Mon_Units                                            |???<br />
&#36;FFFC35|byte |Mon_Tens                                             |???<br />
&#36;FFFC37|byte |Yr_Units                                             |???<br />
&#36;FFFC39|byte |Yr_Tens                                              |???<br />
&#36;FFFC3B|byte |Cl_Mod                                               |???<br />
&#36;FFFC3D|byte |Cl_Test                                              |???<br />
&#36;FFFC3F|byte |Cl_Reset                                             |???<br />
-------+-----+-----------------------------------------------------+----------<br />
##############ROM                                             ######<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a><br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FA0000|    |                                                     |<br />
    :  |    |128K ROM expansion cartridge port                     |R<br />
&#36;FBFFFF|    |                                                     |<br />
-------+-----+-----------------------------------------------------+----------<br />
&#36;FC0000|    |                                                     |<br />
    :  |    |192K System ROM                                       |R<br />
&#36;FEFFFF|    |                                                     |<br />
-------+-----+-----------------------------------------------------+----------<br />
                              Atari 32 bit Memory Map<br />
Addresses          Description<br />
-------------------+----------------------------------------------------------<br />
&#36;00000000-&#36;00DFFFFF|ST RAM<br />
&#36;00E00000-&#36;00EFFFFF|512k TOS ROMs<br />
&#36;00F00000-&#36;00F9FFFF|Reserved I/O Space<br />
&#36;00FA0000-&#36;00FBFFFF|128k ROM cartridge expansion port<br />
&#36;00FC0000-&#36;00FEFFFF|192k System ROM<br />
&#36;00FF0000-&#36;00FF7FFF|Reserved I/O Space<br />
&#36;00FF8000-&#36;00FFFFFF|ST/TT I/O<br />
&#36;01000000-&#36;013FFFFF|TT Fast Ram<br />
&#36;01400000-&#36;FDFFFFFF|Reserved<br />
&#36;FE000000-&#36;FEFFFFFF|VME A24/D16<br />
&#36;FEFF0000-&#36;FEFFFFFF|VME A16/D16<br />
&#36;FF000000-&#36;FFFFFFFF|ST 24 bit compatible shadow<br />
&#36;FFD000xx-&#36;FFD000xx|Set FastRAM refresh rate and generate a bus error<br />
<a name="Cookie Jar"></a>-------------------+----------------------------------------------------------<br />
                                  Cookie Jar<br />
                            Atari "Official" Cookies<br />
Cookie  Description<br />
-------+----------------------------------------------------------------------<br />
_CPU  | CPU Type                                          Bit 7 6 5 4 3 2 1 0<br />
      | Processor type is represented in decimal in the lowest byte.<br />
      | (0 - 68000, 40 - 68040)<br />
-------+----------------------------------------------------------------------<br />
_VDO  | Video Type                                                  BIT 17 16<br />
      | Shifter Type                                                     |  |<br />
      | 00 - ST ---------------------------------------------------------+--+<br />
      | 01 - STe --------------------------------------------------------+--+<br />
      | 10 - TT ---------------------------------------------------------+--+<br />
      | 11 - Falcon030 --------------------------------------------------+--'<br />
-------+----------------------------------------------------------------------<br />
_FDC  | Floppy Drive Controller                              BIT 25 24 . 23-0<br />
      | Floppy Format                                             |  |      |<br />
      | 00 - DD (Normal floppy interface) ------------------------+--+      |<br />
      | 01 - HD (1.44 MB with 3.5") ------------------------------+--+      |<br />
      | 10 - ED (2.88 MB with 3.5") ------------------------------+--'      |<br />
      | Controller ID                                                       |<br />
      | 0 - No information available                                        |<br />
      | 'ATC' - Fully compatible interface built in a way that -------------+<br />
      |        behaves like part of the system.                             |<br />
      | 'DP1' - "DreamPark Development", all ID's beginning with -----------'<br />
      |        "DP" are reserved for Dreampark.<br />
-------+----------------------------------------------------------------------<br />
_FLK  | File Locking<br />
      | If present, GEMDOS supports file locking. Value represents version<br />
      | number of the expansion.<br />
-------+----------------------------------------------------------------------<br />
_NET  | Network Type<br />
      | If present, there is GEMDOS network support. Points to 2 longs:<br />
      | The first is the ID of the producer, and the second is the version<br />
      | number.<br />
-------+----------------------------------------------------------------------<br />
_SLM  | SLM Driver<br />
      | Diablo-driver for the SLM laser printer. Value points to a<br />
      | non-documented structure.<br />
-------+----------------------------------------------------------------------<br />
_INF  | .INF Patch<br />
      | When present, STEFIX (patch program for TOS 1.06) is active.<br />
-------+----------------------------------------------------------------------<br />
_SND  | Sound Hardware                                        BIT 5 4 3 2 1 0<br />
      | CodeC (??) -----------------------------------------------' | | | | |<br />
      | Connection Matrix ------------------------------------------' | | | |<br />
      | DSP56001 -----------------------------------------------------' | | |<br />
      | 16 Bit DMA Sound -----------------------------------------------' | |<br />
      | 8 Bit DMA Sound --------------------------------------------------' |<br />
      | YM2149 -------------------------------------------------------------'<br />
-------+----------------------------------------------------------------------<br />
_MCH  | Machine Type                                                BIT 17 16<br />
      | 00 - ST/Mega ST -------------------------------------------------+--+<br />
      | 01 - STe &amp; Compatible Machines (See Below) ----------------------+--+<br />
      | 10 - TT ---------------------------------------------------------+--+<br />
      | 11 - Falcon030 --------------------------------------------------+--'<br />
      | STe &amp; Compatible Machines                             BIT 5 4 3 2 1 0<br />
      | 00000 - STe ----------------------------------------------+-+-+-+-+-+<br />
      | 00001 - ST Book ------------------------------------------+-+-+-+-+-+<br />
      | 10000 - Mega STe -----------------------------------------+-+-+-+-+-'<br />
-------+----------------------------------------------------------------------<br />
_SWI  | Configuration Switches<br />
      | State of configuration switches (MSTe/TT only)<br />
-------+----------------------------------------------------------------------<br />
_FRB  | Fast Ram Buffer<br />
      | (TT specific) 64k buffer for ACSI DMA<br />
      | 0 - no buffers assigned    Not 0 - address of FastRam buffer<br />
-------+----------------------------------------------------------------------<br />
_FPU  | FPU Type<br />
      | Software FPU                                              BIT 3 2 1 0<br />
      | 68040's internal FPU -----------------------------------------' | | |<br />
      | 01 - 6888x present ---------------------------------------------+-+ |<br />
      | 10 - 68881 for sure --------------------------------------------+-+ |<br />
      | 11 - 68882 for sure --------------------------------------------+-' |<br />
      | SFP004 present -----------------------------------------------------'<br />
      | Hardware FPU                                            BIT 11 10 9 8<br />
      | 68040's internal FPU ----------------------------------------'  | | |<br />
      | 01 - 6888x present ---------------------------------------------+-+ |<br />
      | 10 - 68881 for sure --------------------------------------------+-+ |<br />
      | 11 - 68882 for sure --------------------------------------------+-' |<br />
      | SFP004 present -----------------------------------------------------'<br />
-------+----------------------------------------------------------------------<br />
_OOL  | PoolFix<br />
      | Value corresponds to PoolFix version<br />
-------+----------------------------------------------------------------------<br />
_AKP  | Keyboard/Language Configuration<br />
      | Keyboard Configuration                                       Bit 15-8<br />
      | 1 - German  5 - Italian --------------------------------------------+<br />
      | 2 - French  7 - Swiss French ---------------------------------------+<br />
      | 4 - Spanish  8 - Swiss German --------------------------------------+<br />
      | All others - English -----------------------------------------------'<br />
      | Language Configuration                                        BIT 7-0<br />
      | 1 - German  5 - Italian --------------------------------------------+<br />
      | 2 - French  7 - Swiss French ---------------------------------------+<br />
      | 4 - Spanish  8 - Swiss German --------------------------------------+<br />
      | All others - English -----------------------------------------------'<br />
-------+----------------------------------------------------------------------<br />
_IDT  | International Date/Time Format<br />
      | Time Format                                                    BIT 12<br />
      | 0 - AM/PM, 1 - 24 hours --------------------------------------------+<br />
      | Date Format                                                   BIT 9 8<br />
      | 00 - MMDDYY ------------------------------------------------------+-+<br />
      | 01 - DDMMYY ------------------------------------------------------+-+<br />
      | 10 - YYMMDD ------------------------------------------------------+-+<br />
      | 11 - YYDDMM ------------------------------------------------------+-'<br />
      | Separator for date                                            BIT 7-0<br />
      | ASCII Value (i.e. "." or "/") --------------------------------------'<br />
-------+----------------------------------------------------------------------<br />
MiNT  | MiNT<br />
      | Present if MiNT/MultiTOS is active. Value represents the version<br />
      | number of the MiNT kernel in hex (0x104 = 1.04)<br />
-------+---------------------------------------------------------------<a href="#contents"><span style="color: #3333FF;" class="mycode_color"><span style="text-decoration: underline;" class="mycode_u">INDEX</span></span></a>--<br />
</div>
</span>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[ASCII Codes]]></title>
			<link>https://www.ihcmot.fr/board/showthread.php?tid=3</link>
			<pubDate>Mon, 29 Jul 2024 09:12:01 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.ihcmot.fr/board/member.php?action=profile&uid=2">tomchi</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.ihcmot.fr/board/showthread.php?tid=3</guid>
			<description><![CDATA[<div style="text-align: center;" class="mycode_align"><img src="https://ihcmot.fr/images/board/code/ATARI-ASCII.png" loading="lazy"  alt="[Image: ATARI-ASCII.png]" class="mycode_img" /></div>
<br />
<div style="text-align: left; margin-left: auto; margin-right: auto; background-color: #d3d3d3; border: 2px solid #808080; border-radius: 10px; padding: 12px; width: 680px; ">
<div class="code-container" tabindex="0">
  <div class="code-header">
    <span>ASCII Table</span><br />
  </div>
  <pre class="code-content"><span style="font-family: Consolas;" class="mycode_font">File Description : ASCII Table<br />
Author           : Stephen McNabb<br />
Creation Date    : 21st February 1995<br />
Last Updated     : 21st Februray 1995<br />
This document is a table of all the standard ASCII characters and<br />
their hexidecimal values.<br />
ASCII = American Standard Code for Information Interchange<br />
 Least Sig.<br />
        0   1   2   3   4   5   6   7   8   9   A   B   C   D   E   F<br />
      +----------------------------------------------------------------<br />
M  0 + NUL SOH STX ETX EOT ENQ ACK BEL BS  HT  LF  VT  FF  CR  SO  ST<br />
o  1 + DLE DC1 DC2 DC3 DC4 NAK SYN ETB CAN EM  SUB ESC FS  GS  RS  US<br />
s  2 + SPC  !   "   #   &#36;   %   &amp;   '   (   )   *   +   ,   -   .   /<br />
t  3 +  0   1   2   3   4   5   6   7   8   9   :   ;   &lt;   =   &gt;   ?<br />
   4 +  @   A   B   C   D   E   F   G   H   I   J   K   L   M   N   O<br />
S  5 +  P   Q   R   S   T   U   V   W   X   Y   Z   [   \   ]   ^   _<br />
i  6 +  `   a   b   c   d   e   f   g   h   i   j   k   l   m   n   o<br />
g  7 +  p   q   r   s   t   u   v   w   x   y   z   {   |   }   ~  DEL<br />
  <br />
Example<br />
 The character 'A' is 41 in Hex.<br />
 The space character is 20 in Hex.<br />
 <br />
NUL Null character          DLE Data Link Escape<br />
SOH Start of Heading        DC1 Device Control One (XON)<br />
STX Start of Text           DC2 Device Control Two<br />
ETX End of Text             DC3 Device Control Three (XOFF)<br />
EOT End of Transmission     DC4 Device Control Four<br />
ENQ Enquiry                 NAK Negative Acknowledge<br />
ACK Acknowledge             SYN Synchronous Idle<br />
BEL Bell, Alert             ETB End of Transmission Block<br />
BS Backspace                CAN Cancel<br />
HT Horizontal Tab           EM End of medium<br />
LF Line Feed                SUB Substitute<br />
VT Vertical Tabulation      ESC Escape<br />
FF Form Feed                FS File Separator<br />
CR Carriage Return          GS Group Separator<br />
SO Shift Out                RS Record Separator<br />
SI Shift In                 US Unit Separator<br />
*** End of File ***<br />
</span> <br />
</pre>
</div>
</div>
]]></description>
			<content:encoded><![CDATA[<div style="text-align: center;" class="mycode_align"><img src="https://ihcmot.fr/images/board/code/ATARI-ASCII.png" loading="lazy"  alt="[Image: ATARI-ASCII.png]" class="mycode_img" /></div>
<br />
<div style="text-align: left; margin-left: auto; margin-right: auto; background-color: #d3d3d3; border: 2px solid #808080; border-radius: 10px; padding: 12px; width: 680px; ">
<div class="code-container" tabindex="0">
  <div class="code-header">
    <span>ASCII Table</span><br />
  </div>
  <pre class="code-content"><span style="font-family: Consolas;" class="mycode_font">File Description : ASCII Table<br />
Author           : Stephen McNabb<br />
Creation Date    : 21st February 1995<br />
Last Updated     : 21st Februray 1995<br />
This document is a table of all the standard ASCII characters and<br />
their hexidecimal values.<br />
ASCII = American Standard Code for Information Interchange<br />
 Least Sig.<br />
        0   1   2   3   4   5   6   7   8   9   A   B   C   D   E   F<br />
      +----------------------------------------------------------------<br />
M  0 + NUL SOH STX ETX EOT ENQ ACK BEL BS  HT  LF  VT  FF  CR  SO  ST<br />
o  1 + DLE DC1 DC2 DC3 DC4 NAK SYN ETB CAN EM  SUB ESC FS  GS  RS  US<br />
s  2 + SPC  !   "   #   &#36;   %   &amp;   '   (   )   *   +   ,   -   .   /<br />
t  3 +  0   1   2   3   4   5   6   7   8   9   :   ;   &lt;   =   &gt;   ?<br />
   4 +  @   A   B   C   D   E   F   G   H   I   J   K   L   M   N   O<br />
S  5 +  P   Q   R   S   T   U   V   W   X   Y   Z   [   \   ]   ^   _<br />
i  6 +  `   a   b   c   d   e   f   g   h   i   j   k   l   m   n   o<br />
g  7 +  p   q   r   s   t   u   v   w   x   y   z   {   |   }   ~  DEL<br />
  <br />
Example<br />
 The character 'A' is 41 in Hex.<br />
 The space character is 20 in Hex.<br />
 <br />
NUL Null character          DLE Data Link Escape<br />
SOH Start of Heading        DC1 Device Control One (XON)<br />
STX Start of Text           DC2 Device Control Two<br />
ETX End of Text             DC3 Device Control Three (XOFF)<br />
EOT End of Transmission     DC4 Device Control Four<br />
ENQ Enquiry                 NAK Negative Acknowledge<br />
ACK Acknowledge             SYN Synchronous Idle<br />
BEL Bell, Alert             ETB End of Transmission Block<br />
BS Backspace                CAN Cancel<br />
HT Horizontal Tab           EM End of medium<br />
LF Line Feed                SUB Substitute<br />
VT Vertical Tabulation      ESC Escape<br />
FF Form Feed                FS File Separator<br />
CR Carriage Return          GS Group Separator<br />
SO Shift Out                RS Record Separator<br />
SI Shift In                 US Unit Separator<br />
*** End of File ***<br />
</span> <br />
</pre>
</div>
</div>
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[SCANCODES]]></title>
			<link>https://www.ihcmot.fr/board/showthread.php?tid=2</link>
			<pubDate>Mon, 29 Jul 2024 09:06:20 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.ihcmot.fr/board/member.php?action=profile&uid=2">tomchi</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.ihcmot.fr/board/showthread.php?tid=2</guid>
			<description><![CDATA[<div style="text-align: center;" class="mycode_align">
<img src="https://ihcmot.fr/images/board/Posts/SCANCODE.GIF" loading="lazy"  alt="[Image: SCANCODE.GIF]" class="mycode_img" /><br />
<br />
<img src="https://ihcmot.fr/images/board/Posts/scancode-COOL.gif" loading="lazy"  alt="[Image: scancode-COOL.gif]" class="mycode_img" /><br />
</div>]]></description>
			<content:encoded><![CDATA[<div style="text-align: center;" class="mycode_align">
<img src="https://ihcmot.fr/images/board/Posts/SCANCODE.GIF" loading="lazy"  alt="[Image: SCANCODE.GIF]" class="mycode_img" /><br />
<br />
<img src="https://ihcmot.fr/images/board/Posts/scancode-COOL.gif" loading="lazy"  alt="[Image: scancode-COOL.gif]" class="mycode_img" /><br />
</div>]]></content:encoded>
		</item>
	</channel>
</rss>