Search found 56 matches
- Sun Jun 04, 2023 4:40 am
- Forum: Hardware
- Topic: Are address/data registers usually single or double latched?
- Replies: 4
- Views: 782
Re: Are address/data registers usually single or double latc
If all modern CPUs use master-slave flip flops, does that mean the PC has to be copied to the address bus register a cycle ahead of time?
- Fri Jun 02, 2023 1:32 pm
- Forum: Hardware
- Topic: Are address/data registers usually single or double latched?
- Replies: 4
- Views: 782
Are address/data registers usually single or double latched?
Single meaning, that the output changes as soon as it gets written to, vs double, as in a "slave-master" flip-flop where the second latch waits for the first latch to finish latching before it updates the output.
The fact that most websites describe the fetch cycle in the fetch-decode-execute ...
The fact that most websites describe the fetch cycle in the fetch-decode-execute ...
- Mon May 29, 2023 8:22 pm
- Forum: General Discussions
- Topic: What would you change in 1974 with Mensch & Peddle
- Replies: 90
- Views: 132338
Re: What would you change in 1974 with Mensch & Peddle
I don't know if all these opcodes can fit in 256, nor would I have any idea of what price the 6502 would have cost if they implemented all these features but:
-Everything the 65c02 already added.
-ADD and SUB without carry
-Using X and Y registers themselves as an addressing mode
-ADX/ADY/SBX/SBY ...
-Everything the 65c02 already added.
-ADD and SUB without carry
-Using X and Y registers themselves as an addressing mode
-ADX/ADY/SBX/SBY ...
- Sat May 27, 2023 4:26 pm
- Forum: General Discussions
- Topic: What would you change in 1974 with Mensch & Peddle
- Replies: 90
- Views: 132338
Re: What would you change in 1974 with Mensch & Peddle
Even though the 6502 was supposed to be the original RISC CPU, later RISC CPUs like ARM went in a completely different direction, with less addressing modes but more registers. I always wondered what would've happened if the makers of the 6502 took the approach of more registers but less addressing ...
- Tue Jun 21, 2022 12:47 am
- Forum: Programming
- Topic: Stacking Multiplication and Division similar to ADC/SBC
- Replies: 18
- Views: 2908
Re: Stacking Multiplication and Division similar to ADC/SBC
Proxy wrote:
nope, because the ADDs overlap on the upper byte of eachother, which effectly acts like a 8-bit wide carry, and the muliplication never sets the carry bit because the result is only ever 16-bits wide.
- Sat Jun 18, 2022 2:32 am
- Forum: Programming
- Topic: Stacking Multiplication and Division similar to ADC/SBC
- Replies: 18
- Views: 2908
Re: Stacking Multiplication and Division similar to ADC/SBC
You may find this thread of interest:
http://forum.6502.org/viewtopic.php?f=2&t=6838
There is code there. One version where I implemented a 32x32 multiply using 128KB tables held in RAM was pretty fast.. But "stacking" a 16x16 to give 32x32 is relatively straightforward - this is for the case of ...
http://forum.6502.org/viewtopic.php?f=2&t=6838
There is code there. One version where I implemented a 32x32 multiply using 128KB tables held in RAM was pretty fast.. But "stacking" a 16x16 to give 32x32 is relatively straightforward - this is for the case of ...
- Mon Jun 13, 2022 4:43 pm
- Forum: Programming
- Topic: Why doesn't the 6502 have "sty abs,x" and "stx abs,y"?
- Replies: 12
- Views: 2152
Re: Why doesn't the 6502 have "sty abs,x" and "stx abs,y"?
That's always been a headscratcher for me. They have "ldy abs,x" and "ldx abs,y" so you would think they would have a "sty" and "stx" to go with it but they don't, and the opcode number you would expect these instructions to be, both have illegal opcodes, instead of what you would expect.
Note ...
Note ...
- Mon Jun 06, 2022 9:55 pm
- Forum: Programming
- Topic: Why doesn't the 6502 have "sty abs,x" and "stx abs,y"?
- Replies: 12
- Views: 2152
Re: Why doesn't the 6502 have "sty abs,x" and "stx abs,y"?
https://www.masswerk.at/nowgobang/2021/ ... al-opcodes
From this article it is speculated that the illegal instructions "SHY abs,x" and "SHX abs,y" were glitched versions of "STY abs,x" and "STX abs,y".
From this article it is speculated that the illegal instructions "SHY abs,x" and "SHX abs,y" were glitched versions of "STY abs,x" and "STX abs,y".
- Mon Jun 06, 2022 8:35 pm
- Forum: Programming
- Topic: Why doesn't the 6502 have "sty abs,x" and "stx abs,y"?
- Replies: 12
- Views: 2152
Why doesn't the 6502 have "sty abs,x" and "stx abs,y"?
That's always been a headscratcher for me. They have "ldy abs,x" and "ldx abs,y" so you would think they would have a "sty" and "stx" to go with it but they don't, and the opcode number you would expect these instructions to be, both have illegal opcodes, instead of what you would expect.
- Tue Oct 09, 2018 7:19 am
- Forum: General Discussions
- Topic: O.T.: Reason for RISC cpus not having absolute mode?
- Replies: 9
- Views: 3743
Re: O.T.: Reason for RISC cpus not having absolute mode?
When I'm looking at hardware specs at old school game systems from the late 80s and early 90s it makes me scratch my head wondering there wasn't a cheaper alternative to the 68000 that also had a nice instruction set. I think the 68000 instruction set can be almost made into RISC cpu if they ...
- Mon Oct 08, 2018 5:58 pm
- Forum: General Discussions
- Topic: How would YOU extend the 6502?
- Replies: 34
- Views: 14925
Re: How would YOU extend the 6502?
Maybe a dummy cycle reduce mode, where instructions that normally take 2 cycles take 1 cycle.
- Mon Sep 24, 2018 10:03 pm
- Forum: General Discussions
- Topic: O.T.: Reason for RISC cpus not having absolute mode?
- Replies: 9
- Views: 3743
Re: O.T.: Reason for RISC cpus not having absolute mode?
When I'm looking at hardware specs at old school game systems from the late 80s and early 90s it makes me scratch my head wondering there wasn't a cheaper alternative to the 68000 that also had a nice instruction set. I think the 68000 instruction set can be almost made into RISC cpu if they removed ...
- Mon Sep 24, 2018 5:40 pm
- Forum: General Discussions
- Topic: O.T.: Reason for RISC cpus not having absolute mode?
- Replies: 9
- Views: 3743
Re: O.T.: Reason for RISC cpus not having absolute mode?
Back in the 80s and 90s you'd think a 24-bit address is enough.
- Mon Sep 24, 2018 4:55 am
- Forum: General Discussions
- Topic: O.T.: Reason for RISC cpus not having absolute mode?
- Replies: 9
- Views: 3743
O.T.: Reason for RISC cpus not having absolute mode?
Why was having an absolute address mode missing in the majority of RISC CPUs? If you have 4 bits for the register number, 24 bits for the address, you still have 4 bits left for the instruction field, which is perfectly fine as long as it's limited to loads and stores.
- Sat May 19, 2018 3:32 pm
- Forum: General Discussions
- Topic: game machines
- Replies: 148
- Views: 32446
Re: game machines
One little fun fact about the SNES CPU, the speed is often quoted as 3.58Mhz, however that is the maximum speed. It also can run at 2.68Mhz, and most SNES games were released on cartridges where the cheaper ROMs only supported 2.68Mhz. Like BDD mentioned, it slows down to 1.79Mhz during port access ...