6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Nov 22, 2024 8:33 pm

All times are UTC




Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Mon Jan 09, 2023 3:22 pm 
Offline

Joined: Thu Jan 21, 2016 7:33 pm
Posts: 282
Location: Placerville, CA
Alarm Siren wrote:
I'm particularly defuddled as to the apparent arbitrary nature of that which remains. Why DEC and not INC? Why XOR and not AND/OR?

Haha, you should have a look at the PDP-8 instruction set sometime.


Top
 Profile  
Reply with quote  
PostPosted: Tue Jan 10, 2023 12:10 pm 
Offline
User avatar

Joined: Wed Feb 14, 2018 2:33 pm
Posts: 1488
Location: Scotland
Here's another thought ...

Say you had a process that allowed to you build a modular CPU (based on the 6502) with selectable blocks handling various registers, addressing modes, RAM, ROM and so on....

Then you get your programmer(s) to write the code on a conventional 6502 system, then analyse the code - Maybe the process might look like "oh look, you only used Y twice, can you remove it?" , or "Ah, 129 bytes of RAM, could it be 128?", ... Lather, rinse, repeat until you get the least used instructions, least RAM and so on - maybe bigger code, but ROM is cheaper than RAM, so ..... Then feed the code into the CPU generator and off you go...

But I really don't know if such a thing exists... (or could exist back in the mid-late 90's)

-Gordon

_________________
--
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/


Top
 Profile  
Reply with quote  
PostPosted: Tue Jan 10, 2023 4:57 pm 
Offline
User avatar

Joined: Tue Nov 16, 2010 8:00 am
Posts: 2353
Location: Gouda, The Netherlands
drogon wrote:
Say you had a process that allowed to you build a modular CPU (based on the 6502) with selectable blocks handling various registers, addressing modes, RAM, ROM and so on....


One simple way to do that would be to have a synthesizable core, remove all the parts you don't need/are static, and then let the tools do the optimizations.


Top
 Profile  
Reply with quote  
PostPosted: Tue Jan 10, 2023 7:14 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8543
Location: Southern California
Alarm Siren wrote:
It always astonishes me how much they'll strip back to save a few pennies.

As much as a fan as I am of the 6502, I would consider it a pretty basic architecture - stripping away what little functionality exists seems like madness!

But, I suppose, its a case of which saves more money: £20,000 in extra programmer's headaches or 2p per unit sold... If you're selling more than a million units, the latter!

You also have to consider time to market.  Somewhat related, in the late 1980's, my boss kept coming up with ideas of how his envisioned product could go with one less digit of display, to save money.  He seemed kind of disappointed (for ego reasons) that we found the 1x16 intelligent character LCD modules which were available off the shelf and cheaper than his idea and better in every way with no development time & cost required on our part for a custom display.

_________________
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  
PostPosted: Sun Jan 15, 2023 7:44 pm 
Offline

Joined: Wed Jan 08, 2014 3:31 pm
Posts: 578
commodorejohn wrote:
Haha, you should have a look at the PDP-8 instruction set sometime.

I would recommend any 6502 fan take a look at the PDP-8 instruction set. You'll see similarities between that architecture and the 6502. Specifically the use of memory pages, and addressing modes like page zero and page zero indirect. But the 6502 is luxurious in comparison with its X and Y registers, and a call stack!


Top
 Profile  
Reply with quote  
PostPosted: Mon Jan 16, 2023 10:28 am 
Offline
User avatar

Joined: Tue Oct 25, 2016 8:56 pm
Posts: 362
Martin_H wrote:
commodorejohn wrote:
Haha, you should have a look at the PDP-8 instruction set sometime.

I would recommend any 6502 fan take a look at the PDP-8 instruction set. You'll see similarities between that architecture and the 6502. Specifically the use of memory pages, and addressing modes like page zero and page zero indirect. But the 6502 is luxurious in comparison with its X and Y registers, and a call stack!


I did actually have a look at Commodorejohn's urging, and it is certainly an.... interesting architecture. Though I did like the concept of the OPR instruction, I'm not sure I've ever seen anything quite like it elsewhere. Its almost like a "build your own instruction" instruction. Actually, now I think about it, it resembles some of the accidentally-useful-combinations of the NMOS 6502's undefined instructions.

_________________
Want to design a PCB for your project? I strongly recommend KiCad. Its free, its multiplatform, and its easy to learn!
Also, I maintain KiCad libraries of Retro Computing and Arduino components you might find useful.


Top
 Profile  
Reply with quote  
PostPosted: Mon Jan 16, 2023 2:03 pm 
Offline

Joined: Wed Jan 08, 2014 3:31 pm
Posts: 578
Alarm Siren wrote:
Though I did like the concept of the OPR instruction, I'm not sure I've ever seen anything quite like it elsewhere. Its almost like a "build your own instruction" instruction. Actually, now I think about it, it resembles some of the accidentally-useful-combinations of the NMOS 6502's undefined instructions.

The PDP-8 could process three microcoded instructions in a single cycle, which made them really useful for creating commonly needed constants. It provided some of the value of a load immediate instruction, but in a really obscure and roundabout way.


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 14 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: