[hatari-devel] Demo Don't break the oath (DHS)

Markus Fritze my at sarnau.com
Mon Feb 14 21:14:35 CET 2011


I've looked at the TOS 4.04 code and the source of the Falcon Diagnostic Cartridge. This is what is used:

$FFFF8006.b
        Bit 0: 
        Bit 1: 
        Bit 2: into Bit 7 of the VCO (to select Hz base offset, 0 for ST resolutions (128 cycles), 1 for others (64 cycles))
        Bit 3: 
        Bit 4: 
        Bit 5: 
        Bit 6-7: 00 = monochrome monitor, 01 = color monitor, 10 = VGA, 11 = TV, copied into Bit 0&1 of the VCO

installed memory = $80000 << (Bit 1 + (Bit 4/5) * 2)
if the shift factor is 5, assume 14MB

$FFFF8007.b
	Bit 0: 0:8 MHz CPU Clock 1:16 MHz CPU Clock
	Bit 1: 0:default 1:combel hack for quick F-LINES OFF!
	Bit 2: 0:8 MHz Blitter Clock 1:16 MHz Blitter Clock
	Bit 3: 0:Blitter off 1:Blitter On
	Bit 4: 0:MCUG off 1:MCUG On (only if COMBO test pin high)
	Bit 5: 0:Address Bus Errors Off 1:Address Bus Errors On
	Bit 6: 0:Powerfail (reset by POR) 1:default value
	Bit 7: 0:Bus Error Timeout 16us 1:Bus Error Timeout 32us

TOS 4.04 initializes $FFFF8007.w with #$25 on reset (16MHz CPU, 16MHz Blitter, Bus Errors On)


On Feb 14, 2011, at 11:33 AM, Thomas Huth wrote:

> Am Mon, 14 Feb 2011 00:06:18 +0100
> schrieb Laurent Sallafranque <laurent.sallafranque at free.fr>:
> 
>> OK, found : it's because of the patch I added in stMemory.c
>> 
>> This mean that all the descriptions of the $ff8006.b register I read 
>> were wrong.
>> 
>> Anybody here as a complete description of this register ?
> 
> This register seems to be different in each register listing that I've
> got ... one that describes the missing bits in ff8006 (not ff8007) is
> in a german doc called "FALREG.TXT":
> 
> $FFFF8006 [R/W] B         76543210  Monitor-Type Hi
>                          ||||||||
>                          |||||||+- RAM Wait Status
>                          |||||||   0 =  1 Wait (default)
>                          |||||||   1 =  0 Wait
>                          ||||||+-- Video Bus Breite
>                          ||||||    0 = 16 Bit
>                          ||||||    1 = 32 Bit (default)
>                          ||||++--- ROM Wait Status
>                          ||||      00 = Reserviert
>                          ||||      01 =  2 Wait (default)
>                          ||||      10 =  1 Wait
>                          ||||      11 =  0 Wait
>                          ||++----- Größe Hauptspeicherkarte
>                          ||        01 =  4 MB
>                          ||        10 = 16 MB
>                          ++------- Monitor-Typ
>                                    00 Monochrom
>                                    01 RGB - Farbmonitor
>                                    10 VGA - Farbmonitor
>                                    11 Fernseher (über Modulator)
> 
> Hope that helps,
>  Thomas
> _______________________________________________
> hatari-devel mailing list
> hatari-devel at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/hatari-devel




More information about the hatari-devel mailing list