Search found 217 matches

by TMorita
Mon Dec 22, 2025 12:50 pm
Forum: General Discussions
Topic: Emulating NES CPU and PPU on PIC32, too slow?
Replies: 96
Views: 23145

Re: Emulating NES CPU and PPU on PIC32, too slow?

Hey everyone!

I'm posting on this topic again because... I've been working on my very own NES emulator! Over the past couple of days I've been coding the 6502 instruction set in C, using a lot of pre-compiler macros. Did you know that STA (d),y uses the indirect addressing to *store* a value, not ...
by TMorita
Mon Dec 22, 2025 5:41 am
Forum: Nostalgia
Topic: Running 6502 assembly program on boot for the Apple //e
Replies: 6
Views: 3445

Re: Running 6502 assembly program on boot for the Apple //e

If you want to run a program on boot, then you need to burn it into an EPROM and put it on an expansion card.

If the program is less than 256 bytes, you can put it map it into $CX00 where X is the slot number.
The first few bytes need to be the ID of a disk controller so the ROM will jump to the ...
by TMorita
Mon Dec 22, 2025 5:25 am
Forum: Hardware
Topic: Fast Mem accessed slowly
Replies: 17
Views: 1684

Re: Fast Mem accessed slowly

Has anyone experienced or heard of problems when accessing fast memory slowly? Such as 20-55nS sram being accessed with 500nS /CE?
SRAM means “ static random-access memory.” The key word here is “static,” which means the RAM merely responds to input signal states (low or high), without regard to ...
by TMorita
Tue Dec 03, 2013 8:23 am
Forum: Programming
Topic: 6502 can be faster than 68k :-)
Replies: 93
Views: 17545

Re: 6502 can be faster than 68k :-)

I have in front of me "Computer Architecture: A Quantitative Approach". This is the standard textbook used in colleges for teaching basic computer architecture written by Hennessey and Patterson, two of the guys who wrote many of the original RISC papers.

If you look at the index at the back of the ...
by TMorita
Tue Dec 03, 2013 5:34 am
Forum: Programming
Topic: 6502 can be faster than 68k :-)
Replies: 93
Views: 17545

Re: 6502 can be faster than 68k :-)


I find the phrase "Every[one|body] will agree..." is fairly consistently a red flag for a weak argument. It is a weak attempt to take one's opinion and elevate it to the level of a group consensus.


I think he was joking. Since everyone here has some special interest in the 6502, of course we're ...
by TMorita
Tue Dec 03, 2013 5:23 am
Forum: Nostalgia
Topic: False hopes
Replies: 8
Views: 1860

Re: False hopes

If I remember correctly, the Commodore Amiga was orginally supposed to be based on the Z8000.
The Z8000 was late to market, so they wound up using the 68000 instead.

Toshi

As far as I know Commodore 900 was designed to have that CPU (Z8000). Amiga (had different name then, can't remember, Lorine ...
by TMorita
Tue Dec 03, 2013 5:14 am
Forum: Newbies
Topic: My 6502 game console project
Replies: 8
Views: 2337

Re: My 6502 game console project

In my experience, the most important part of design is to define your end goals.
If you don't have clearly defined end goals, then it becomes impossible to decide whether a particular change is good or bad, because you can't tell whether it brings the design closer to or farther from the end goal ...
by TMorita
Tue Dec 03, 2013 2:40 am
Forum: Programming
Topic: 6502 can be faster than 68k :-)
Replies: 93
Views: 17545

Re: 6502 can be faster than 68k :-)

You guys are comparing a pipelined processor (6502) with microcoded processors (68000, 8088, etc).
This is like comparing apples and oranges.

Yes, pipelined processors are generally faster-per-clock than microcoded processors because there is no internal state ROM which needs to be sequenced. A ...
by TMorita
Tue Dec 03, 2013 2:23 am
Forum: Programming
Topic: 6502 can be faster than 68k :-)
Replies: 93
Views: 17545

Re: 6502 can be faster than 68k :-)


Now before this turns into some sort of flame war, if it hasn't already,

Flame war? This has been an academic discussion amongst well respected gentlemen (and ladies?). Everybody will agree here that the 6502 was one of the greatest achievements of the last century, ....

I find the phrase ...
by TMorita
Sat Nov 30, 2013 7:34 am
Forum: Programming
Topic: 6502 can be faster than 68k :-)
Replies: 93
Views: 17545

Re: 6502 can be faster than 68k :-)


The discrete form of the W65C02S readily operates at 20 MHz, as does the W65C816S. ASIC forms of the 65C02 have run at speeds up to 200 MHz, far beyond what the fastest versions of the 68K family could do.
Standard tests, such as the Sieve, suggest that the 68K does no better in integer addition ...
by TMorita
Sat Nov 23, 2013 4:26 am
Forum: Nostalgia
Topic: False hopes
Replies: 8
Views: 1860

Re: False hopes

If I remember correctly, the Commodore Amiga was orginally supposed to be based on the Z8000.
The Z8000 was late to market, so they wound up using the 68000 instead.

Toshi
by TMorita
Sat Nov 23, 2013 2:59 am
Forum: Programming
Topic: Assembler that automatically select what to put in ZP
Replies: 31
Views: 5553

Re: Assembler that automatically select what to put in ZP

It's really a variant of the register allocation problem, and compiler writers have been tackling that one for years. It may need heuristics, it may not be optimal, it might have poor worst-case behaviour - but it still might be worth doing!

Cheers
Ed

IMHO this is not a variant of the register ...
by TMorita
Thu Nov 21, 2013 2:06 am
Forum: Programming
Topic: Assembler that automatically select what to put in ZP
Replies: 31
Views: 5553

Re: Assembler that automatically select what to put in ZP

Short answer: This is a variant of the halting problem.

Long answer: Imagine you have a program that handles conditions A and B based n external input. Imagine the code that handles A and B are both long and use many variables. Does the compiler allocate zero page memory to A or B or both? If the ...
by TMorita
Wed Nov 20, 2013 10:29 pm
Forum: Emulation and Simulation
Topic: Instruction Caching
Replies: 4
Views: 1634

Re: Instruction Caching

Your question is too vague to be able to deduce what you're attempting much less offer an useful advice.

Toshi
by TMorita
Mon Oct 21, 2013 7:29 pm
Forum: Hardware
Topic: WDC 65C51 chips defective
Replies: 147
Views: 74981

Re: WDC 65C51 chips defective

Another UART you may want to consider is the Zilog Z8530.

It was used on the Apple //gs, so I suspect it would be fairly easy to interface with a 6502/65816 system. It also supports HDLC/SDLC CRC generation in hardware iirc which makes it easy to implement serial LAN protocols such as AppleTalk ...