Search found 1706 matches

by kc5tja
Tue May 31, 2022 7:11 pm
Forum: Hardware
Topic: Serial Interface Bus CONF Protocol
Replies: 9
Views: 5302

Re:

It would seem however that the addresses some of the info is stored at shouldn't matter to the host, and that the list of parameters following a command from the master, or ...

Yup; this whole idea is basically a non-starter.

In 2010, I was probably thinking in terms of how Forth operates on a ...
by kc5tja
Tue May 31, 2022 6:55 pm
Forum: Hardware
Topic: Serial Interface Bus CONF Protocol
Replies: 9
Views: 5302

Re: Serial Interface Bus CONF Protocol

A recent e-mail from Garth has reminded me of this post.

I sure am glad nobody implemented this. 12 years of accumulated experience since this post has left me wondering how economical this approach to a configuration mechanism this approach would have been. My current hunch says not very. So, take ...
by kc5tja
Wed Apr 17, 2019 6:40 pm
Forum: Emulation and Simulation
Topic: Commodore DOS-compatible filesystem with > 256 byte sectors?
Replies: 4
Views: 2348

Commodore DOS-compatible filesystem with > 256 byte sectors?

I'm wondering if anyone knows of a Commodore DOS-compatible file storage device or server software that runs on a (e.g.) Linux PC which uses (and exposes) sectors larger than 256 bytes.

CBM DOS filesystems are limited to 16MB partitions because of the two bytes used for pointers in the filesystem ...
by kc5tja
Wed Apr 17, 2019 6:34 pm
Forum: Forth
Topic: Speed of Forth vs. BASIC on C64
Replies: 19
Views: 18925

Re: Speed of Forth vs. BASIC on C64

I'm very well versed in Forth, having implemented several dialects myself over the years and having personal interactions with a number of significant members of the Forth community, including Moore, Dr. Ting, and others. I'm a regular contributor to the Silicon Valley Forth Interest Group, where my ...
by kc5tja
Sat Apr 13, 2019 6:34 pm
Forum: General Discussions
Topic: slightly OT: a simple Benchmark
Replies: 209
Views: 42443

Re: slightly OT: a simple Benchmark

I'm not sure if this has been mentioned earlier; but, at least in CBM BASIC, integer variables are always slower than floating point variables. This is because CBM BASIC (in order to fit in 10K of ROM) converts integers into floats before operating on them, then back again to store its results into ...
by kc5tja
Sat Apr 13, 2019 6:24 pm
Forum: Forth
Topic: Speed of Forth vs. BASIC on C64
Replies: 19
Views: 18925

Re: Speed of Forth vs. BASIC on C64

As my previous post hinted, Forth has one more advantage over BASIC, the use of low level code. Once the logic of a program is tested, the slower parts ( like inner loops ) can be rewritten as CODE words. A code definition gets compiled to the same dictionary as high level words, at least on the ...
by kc5tja
Sat Apr 13, 2019 6:20 pm
Forum: Forth
Topic: Speed of Forth vs. BASIC on C64
Replies: 19
Views: 18925

Re: Speed of Forth vs. BASIC on C64

It's a little bit extra unfair to BASIC considering it's always doing floating point math.
That's perhaps the 2nd contributor to its sluggishness. The 1st is the fact that CBM BASIC is always parsing (tokenized) source code, even when in RUN-mode. Forth doesn't tokenize its source code, it ...
by kc5tja
Sat Apr 13, 2019 6:16 pm
Forum: Nostalgia
Topic: Commodore 64 address decoding
Replies: 3
Views: 1316

Re: Commodore 64 address decoding

The PLA is the only chip that does any kind of address decoding. The PLA equations contain all that's needed to know what chip receives its chip-select given the current address on the bus. The VIC-II chip is responsible for DRAM timing generation. And the 6510 processor has an I/O port built into ...
by kc5tja
Fri Apr 12, 2019 6:09 am
Forum: Programming
Topic: Alternative 65816 assembly syntax
Replies: 34
Views: 7518

Re: Alternative 65816 assembly syntax


Code like this:

addr = $00A000
LDA addr

I believe would select absolute addressing. If the programmer wanted this to be absolute long I'm not sure how that could be specified.
In every 65816 assembler I've personally used, without exception, the code above would generate absolute-long ...
by kc5tja
Fri Apr 12, 2019 5:40 am
Forum: Programming
Topic: IMPLEMENTING AN OPERATING SYSTEM API IN A 65C816 SYSTEM
Replies: 19
Views: 4991

Re: IMPLEMENTING AN OPERATING SYSTEM API IN A 65C816 SYSTEM

The other thing that I've not seen mentioned is the JMP ($xxxx,X) instruction. Load the function ID into X (ensuring bit 0 is clear), then JML, BRK, or COP. That leaves A,Y for passing an address to a parameter block, or using the stack.

The reason you want to avoid using a single COP and a single ...
by kc5tja
Fri Apr 12, 2019 5:21 am
Forum: Programming
Topic: IMPLEMENTING AN OPERATING SYSTEM API IN A 65C816 SYSTEM
Replies: 19
Views: 4991

Re: IMPLEMENTING AN OPERATING SYSTEM API IN A 65C816 SYSTEM

One of the simple and tempting things to do to improve the '816 memory map is to hide the vectors until they are needed (using the vector pull signals) - that works well with COP but not with jumps. With the OS in low memory you can then have contiguous memory starting part way through bank 0.
But ...
by kc5tja
Fri Apr 12, 2019 4:33 am
Forum: Programming
Topic: How does this piece of 65C816 assembly code work?
Replies: 8
Views: 1385

Re: How does this piece of 65C816 assembly code work?

But my strongest hunch is that the peripheral IC requires completion time for the internal auto-increment Andrew mentioned, and thus isn't capable of accepting back-to-back writes.


To be fair, that's what the RDY signal was intended to address. If they'd used it, the 16-bit write still would ...
by kc5tja
Wed Dec 21, 2016 1:12 am
Forum: Hardware
Topic: 65C816 vs 68000
Replies: 131
Views: 26081

Re: 65C816 vs 68000

My homebrew RISC-V CPU works the same way; instruction and data fetch are on separate memory channels, but with the introduction of an external memory arbiter, may access a common memory pool.
So this is full harvard, where the different memory channels hit different physical RAM chips, and you ...
by kc5tja
Tue Dec 20, 2016 9:50 pm
Forum: Hardware
Topic: 65C816 vs 68000
Replies: 131
Views: 26081

Re: 65C816 vs 68000


I still have my Amiga 500 and it still boots today. :)

But what do you do with it? There are Amiga collectors, and Amigans.

Right now, nothing. It is sentimental to me, as my family spent their entire year's savings to get it for me when I was younger. To me, it is a family heirloom.

I have ...
by kc5tja
Tue Dec 20, 2016 9:45 pm
Forum: Hardware
Topic: 65C816 vs 68000
Replies: 131
Views: 26081

Re: 65C816 vs 68000

Hmm, I don't think the idea is well-described as NUMA - that's where different parts of the memory system are different distances from the core in question

What is a core? Does it have one memory bus? Two? Four? Eight? Or, should we be more precise and consider masters instead? From the POV of ...