It is currently Mon Oct 20, 2014 4:48 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Thu Apr 03, 2008 4:49 pm 
Offline
User avatar
 WWW  Profile

Joined: Thu Apr 03, 2008 2:49 pm
Posts: 277
Location: Antarctica
Hello

I'm trying to define my screen mode by writing into the CRTC registers and the video ULA. The problem I'm having is that it appears to work for a few frames, then it would appear to have the teletext bit set again in the video ULA.

If I re-write my value into the video ULA each frame it sort of works but occasionally there'll be a flash of teletext(!). Does anyone know what causes the BBC to do this? I don't really want to write into that register every frame.

Cheers.


Top
 
PostPosted: Thu Apr 03, 2008 4:51 pm 
Offline
User avatar
 WWW  Profile

Joined: Wed Jan 09, 2008 10:23 am
Posts: 359
Location: Glasgow, Scotland
Do you have some sample code to illustrate the problem?

Also, are you trying this on a real BBC or under emulation?

Kind regards,

Francis.


Top
 
PostPosted: Thu Apr 03, 2008 4:53 pm 
Offline
User avatar
 WWW  Profile

Joined: Thu Apr 03, 2008 2:49 pm
Posts: 277
Location: Antarctica
It's under (BeebEm) emulation.

I'm pushed a bit today at work but I'll try and get some sample code knocked up tomorrow.


Top
 
PostPosted: Thu Apr 03, 2008 8:29 pm 
Offline
User avatar
 Profile

Joined: Mon Jan 07, 2008 7:02 pm
Posts: 273
The OS rewrites the ULA control every few frames for flashing colours. Either set a graphics mode before rewriting all the registers (rather than doing it from mode 7) and put up with colours 8-15 flashing, disable all interrupts, or stop the vsync interrupt from getting to the OS (using IRQ1V).


Top
 
PostPosted: Thu Apr 03, 2008 8:44 pm 
Offline
User avatar
 Profile

Joined: Mon Jan 07, 2008 6:46 pm
Posts: 380
Location: Málaga, Spain
Or use *FX 154,n to write to the Video ULA, which also updates the OS's copy that is rewritten every flash period.


Top
 
PostPosted: Fri Apr 04, 2008 8:58 am 
Offline
User avatar
 WWW  Profile

Joined: Thu Apr 03, 2008 2:49 pm
Posts: 277
Location: Antarctica
Aha! Cheers wizards!


Top
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron