English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 09 May 2018, 00:49   #1
Crank
Registered User

 
Join Date: Mar 2018
Location: Prague
Posts: 31
320x256 on OCS?

I can't figure out how to setup 320x256 display resolution. I currently have 320x200 running but how should I modify it to show 320x256 pixels?

BTW: I'm targeting my code for OCS. Is the 256 Y-resolution even possible on OCS?

EDIT 1:
Actually I think I can see 211 vertical pixels on screen at the moment :-/

EDIT 2:
OK, I get 216 Y pixels if I do this:
DIWSTRT = 0x2781
DIWSTOP = 0xFFD1

Everywhere I've read that I should do this:
DIWSTRT = 0x2C81
DIWSTOP = 0xFFD1

Is there a reason I should always go with the latter instead of the first one?

Last edited by Crank; 09 May 2018 at 00:58.
Crank is offline  
AdSense AdSense  
Old 09 May 2018, 07:18   #2
StingRay
move.l #$c0ff33,throat

StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 5,955
Quote:
Originally Posted by Crank View Post
Is the 256 Y-resolution even possible on OCS?
Of course it is. Default DIWSTRT/STOP values are $2c81/$2cc1.
StingRay is offline  
Old 09 May 2018, 09:25   #3
Crank
Registered User

 
Join Date: Mar 2018
Location: Prague
Posts: 31
Now it works, just by changing one line of code

And by reading carefully the Hardware Reference Manual page about DIWSTRT/STOP I now see that both registers assume that there are some extra bits in play which make the values written in them different. I.e. in DIWSTOP the V8 is automatically different than V7, but in DIWSTRT V8 is always 0. My ignorance about these details explains why I couldn't figure out how to use these registers properly.
Crank is offline  
Old 19 May 2018, 18:47   #4
Photon
Moderator
Photon's Avatar
 
Join Date: Nov 2004
Location: Hult / Sweden
Posts: 4,536
H.R.M. is - a reference. Exact and complete*, but abstract. For concrete "how-to" explanations with examples, you could try System Programmer's Guide, link.

Under Denise in the menu, there is also a thought on centering.

*=asterisk.
Photon is offline  
AdSense AdSense  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trolls OCS absence project.SPS (was CAPS) 41 13 November 2016 12:17
Saving a screenshot @ 320x256 ? Mousey support.FS-UAE 3 30 January 2014 23:37
320x256 crashes WinUAE bLAZER support.WinUAE 23 06 September 2007 19:20
Emerald Mine full-screen 320x256 patch mark_k support.Games 2 09 May 2007 21:03
320x256 resolution Kodoichi support.WinUAE 2 17 June 2006 12:21

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 13:16.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Page generated in 0.06159 seconds with 15 queries