Why Does The Border Have to Be White?

Any discussions related to the creation of new hardware or software for the ZX80 or ZX81
Post Reply
Fruitcake
Posts: 351
Joined: Wed Sep 01, 2010 10:53 pm

Why Does The Border Have to Be White?

Post by Fruitcake »

Doesn't time fly? It's the beginning of April already! What better than to start off the first day of the new month with an interesting development.

Have you ever played a ZX81 game that is set on a black background but felt that the look of it was somewhat let down by the border having to remain white? For instance, here is Macronics' Space Intruders:

SpaceIntrudersWhiteBorder.png
SpaceIntrudersWhiteBorder.png (3.82 KiB) Viewed 721 times

Wouldn't a Space Invaders clone like this look much nicer with the border black? Imagine if it could look like this:

SpaceIntrudersBlackBorder.png
SpaceIntrudersBlackBorder.png (3.67 KiB) Viewed 721 times

If you think about it, when you run something in FAST mode then the whole screen goes black, which proves that the hardware is capable of displaying black in the border area. So why can't the border be black and the game displayed in the centre of the screen as normal? Well, it actually turns out that this can be done!! I know, who knew?!!

Now I appreciate this might sound quite unbelievable but you can try it out for yourself, either in an emulator or ideally on a real ZX81 (assuming you can get a good stable picture from it normally). No special hardware is required; just a standard ZX81 with 16K RAM. Here is the enhanced black border version of Space Intruders for you to try out:

SpaceIntruders(BlackBorder).p
(1.7 KiB) Downloaded 77 times

I feel a little foolish now for having thought all these years that this just wasn't possible on the ZX81!
Moggy
Posts: 3269
Joined: Wed Jun 18, 2008 2:00 pm

Re: Why Does The Border Have to Be White?

Post by Moggy »

Thankfully anyone with a ZX8-CCB (nearly all of us ) have that facility built in, hmmm what's todays date? :lol:
Fruitcake
Posts: 351
Joined: Wed Sep 01, 2010 10:53 pm

Re: Why Does The Border Have to Be White?

Post by Fruitcake »

Well, today is the 2nd of April. And for those of us that don't have a ZX8-CCB fitted then a software mechanism that can output the border black will just have to do.
stroebeljc
Posts: 67
Joined: Thu Apr 23, 2020 6:02 am

Re: Why Does The Border Have to Be White?

Post by stroebeljc »

Here is a 60Hz version for those, like me, afflicted with NTSC, including source code (compiled using TASM with NTSC defined). I'm stuck with a white line at the top because of how little processing time is left over for gameplay. Any ideas on how to remove it, if possible?
60Hz.png
60Hz.png (3.81 KiB) Viewed 404 times
Attachments
SpaceIntruders(BlackBorder)_60Hz.p
(1.7 KiB) Downloaded 22 times
SpaceIntruders(BlackBorder)_60Hz.asm
(44.06 KiB) Downloaded 24 times
John
stroebeljc
Posts: 67
Joined: Thu Apr 23, 2020 6:02 am

Re: Why Does The Border Have to Be White?

Post by stroebeljc »

I did a bit more work on this, but still have some white bars at the top and bottom on the 60Hz build. The problem is that eliminating the white bars slows gameplay too much. So, here is where I've ended up.
50Hz
New 50Hz.png
New 50Hz.png (3.84 KiB) Viewed 279 times
60Hz
New 60Hz.png
New 60Hz.png (3.33 KiB) Viewed 279 times
Attachments
SpaceIntruders(BlackBorder)_60Hz.p
(1.55 KiB) Downloaded 14 times
SpaceIntruders(BlackBorder)_60Hz.asm
(38 KiB) Downloaded 14 times
SpaceIntruders(BlackBorder)_50Hz.p
(1.65 KiB) Downloaded 15 times
John
Post Reply