🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #29342

Re: SPECTRUM

#29342
From: landon
Date: Wed, 25 Nov 1987 04:56
34 lines
2020 bytes
0. I took Spectrum apart with a logic analyzer one day.  This is not for the
   faint of heart:

1. Spectrum 512 is a kernel (any 2600 programmers out there?).

2. There is a clever synchronization technique.  Basically they use
   the video scan register (the low byte of it) to determine how far
   the processor is into the line, using it as a jump-index into a
   table of NOPs when it changes.  The number of NOPs is (are?) tuned
   so the 68000 starts off "on the right foot" of the kernel.

3. All interrupts are off (IPL-7) during the kernel, naturally.

4. Each line of the kernel itself looks something like:

	MOVEM.L	<location>,<register-mask>	; suck-in pallette assignments
	MOVEM.L	<register-mask>,COLOR0		; set pallette registers
	MOVEM.L	<location>,<register-mask>	; suck-in pallette assignments
	MOVEM.L	<register-mask>,COLOR0		; set pallette registers
	MOVEM.L	<location>,<register-mask>	; suck-in pallette assignments
	MOVEM.L	<register-mask>,COLOR0		; set pallette registers
	(NOPs for alignment)			; sync with next scanline

   Quiz: how many registers do you need?  How many cycles does this take?
   [Hint: you can get about 3.5 complete pallette changes on a scanline].

5. This gets you 48+ colors on a LINE.  I don't know how to get 48 CONSECUTIVE
   colors -- I suspect it is impossible without playing tricks with alternating
   video frames.  There may be other even more hair-raising things you can do
   with MOVEM, however.

-- 

I speak for me.
Technical Details
Message-ID: <6826@apple.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!ames!ucbcad!ucbvax!hplabs!nsc!voder!apple!landon
References: <19389@yale-celray.yale.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!ames!ucbcad!ucbvax!hplabs!nsc!voder!apple!landon
From: landon@apple.UUCP
Newsgroups: comp.sys.atari.st
Subject: Re: SPECTRUM
Message-ID: <6826@apple.UUCP>
Date: Tue, 24-Nov-87 23:56:33 EST
Article-I.D.: apple.6826
Posted: Tue Nov 24 23:56:33 1987
Date-Received: Sat, 28-Nov-87 15:40:46 EST
References: <19389@yale-celray.yale.UUCP>
Organization: Apple Computer, Inc., Cupertino, USA
Lines: 34