6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Nov 24, 2024 7:26 pm

All times are UTC




Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: 65org09 and 65org18
PostPosted: Mon Sep 23, 2013 2:51 pm 
Offline

Joined: Sun Nov 08, 2009 1:56 am
Posts: 411
Location: Minnesota
Quote:
9 bit data bus (nice for 3-bit-per-component RGB among other things).


Nice from a theoretical standpoint, but in practice the human eye is least sensitive to changes in blue, and most sensitive to changes in green, so 3-3-3 RGB is probably not noticeably different from 3-3-2 RGB.

Quote:
I haven't had a chance to look at the assembler for 'org16. I wonder how much work it would be to convert it to 18.


There are two. My first thought was "just make macros to emit the instructions and data you want until you're satisfied with the set, then hard-code a native version".

But then it occurred to me that, at least in HXA's case, it doesn't know anything about 18-bit "byte" sizes. It knows 8-, 16- and 32-bit "byte" sizes. Binary output is not a problem in any case, and it's not too difficult to create more-or-less familiar-looking Intel and Motorola output files.

So...generalizing to "byte" sizes that are not multiples of eight seems doable but not simple. Offhand, it would appear to involve packing the non-standard "bytes" into the least common multiple of eight and the non-standard size for output, since the creation tools "think" in terms of eight-bit bytes.

If a text output is desired (ie., non-binary), there'd have to be some way to indicate to a loader what the "byte" size is - as well as writing a loader that can handle non-standard sizes in the first place. Maybe not too difficult if only one non-standard size is involved - then it would "know" and not need any kind of flag - but there are a lot of different sizes being tossed around here, and a standard solution might be preferrable to multiple one-offs.


Top
 Profile  
Reply with quote  
 Post subject: Re: 65org09 and 65org18
PostPosted: Mon Sep 23, 2013 3:09 pm 
Offline
User avatar

Joined: Tue Nov 16, 2010 8:00 am
Posts: 2353
Location: Gouda, The Netherlands
teamtempest wrote:
Nice from a theoretical standpoint, but in practice the human eye is least sensitive to changes in blue, and most sensitive to changes in green, so 3-3-3 RGB is probably not noticeably different from 3-3-2 RGB.

From 2 to 3 bits is still going to be very noticeable, even for blue.


Top
 Profile  
Reply with quote  
 Post subject: Re: 65org09 and 65org18
PostPosted: Mon Sep 23, 2013 5:14 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
teamtempest wrote:
Quote:
I haven't had a chance to look at the assembler for 'org16. I wonder how much work it would be to convert it to 18.


There are two.

Three if you count my easy6502 fork! (https://github.com/BigEd/6502js)
Cheers
Ed


Top
 Profile  
Reply with quote  
 Post subject: Re: 65org09 and 65org18
PostPosted: Mon Sep 23, 2013 5:54 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8546
Location: Southern California
BigEd wrote:
On the topic of peripherals and the standard nature of the 6522 VIA, there are open-source HDL versions of the chip, so it should be straightforward to construct something in-FPGA but having a conventional programming model. It's a good point that timers are handy.

See for example http://www.mike-stirling.com/retro-fpga ... gn-detail/ which takes its 6522 model from fpgaarcade.com

That's great! Yes, I depend heavily on the timers and on the synchronous-serial port which uses Timer 2 in some of its modes. At the page linked above, its says,
Quote:
VHDL models of the MOS 6522 VIAs were available from the VIC20 project at FPGA Arcade, so two of these were instantiated for the System and User VIAs.
but the link in it is dead and after a few minutes of looking around the site I did not find the 6522 VHDL project. Do you know where it got moved to? They say they have a new site under construction, but there doesn't seem to be anything there yet.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
 Post subject: Re: 65org09 and 65org18
PostPosted: Mon Sep 23, 2013 6:12 pm 
Offline
User avatar

Joined: Tue Nov 16, 2010 8:00 am
Posts: 2353
Location: Gouda, The Netherlands
There's a link at the bottom of Mike's page in the "Downloads" section, pointing to this zip file: http://www.mikestirling.co.uk/files/bbc ... 110918.zip


Top
 Profile  
Reply with quote  
 Post subject: Re: 65org09 and 65org18
PostPosted: Mon Sep 23, 2013 6:19 pm 
Offline

Joined: Mon Mar 02, 2009 7:27 pm
Posts: 3258
Location: NC, USA
Peter Wendrich has a 6526 CIA in VHDL also. Not sure if it is complete though. It's under older versions: /zips/fpga64_027.zip (20081009).

_________________
65Org16:https://github.com/ElEctric-EyE/verilog-6502


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 13 guests


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: