Search found 1841 matches

by barnacle
Sat Mar 28, 2026 4:04 am
Forum: Forth
Topic: Claude and I Vibe Coded a Forth Interpreter
Replies: 107
Views: 2277

Re: Claude and I Vibe Coded a Forth Interpreter

Martin_H wrote:
* Claude must be paid by the word because he can be long winded.
It's been trained on MBA presentations. "Tell 'em what you're going to tell 'em, then tell 'em, then tell 'em what you told 'em. Three different ways."

Neil
by barnacle
Tue Mar 24, 2026 9:02 pm
Forum: Programming
Topic: Adventures in FAT32 with 65c02
Replies: 203
Views: 7559

Re: Adventures in FAT32 with 65c02

I believe this may hunt down a crocodile or two... I still need to test it, and before that, think about _how_ to set things up with that damn edge case.

Here's the idea: I have a DIR_ENTRY structure (which will probably be fixed ZP locations when I convert to assembly).

typedef struct {
uint32 ...
by barnacle
Tue Mar 24, 2026 6:16 am
Forum: Programming
Topic: Adventures in FAT32 with 65c02
Replies: 203
Views: 7559

Re: Adventures in FAT32 with 65c02

In Which Our Hero Discovers His Secret Name May Be Claude

While looking into the issue around creating files and directories, a couple of issues raised their crocodilian snouts from the murky Slough of Despond, and started to look at our hero with hungry eyes.

Crocodile One: Allocating New ...
by barnacle
Tue Mar 24, 2026 5:25 am
Forum: General Discussions
Topic: Printable 3D model of 6502 die
Replies: 5
Views: 396

Re: Printable 3D model of 6502 die

Easy. All you need is 600nm fabrication factory :mrgreen:

Neil
by barnacle
Sun Mar 22, 2026 4:44 pm
Forum: Programming
Topic: Adventures in FAT32 with 65c02
Replies: 203
Views: 7559

Re: Adventures in FAT32 with 65c02

It gets better. We _note_ that first second, as hundredths of a second counting 0-199, in a variable named by MS 'tenths'.

The pellet with the poison's in the flagon with the dragon, the vessel with the pestle has the brew that is true.

So, after today I can create new files in my linux/c dev ...
by barnacle
Sun Mar 22, 2026 12:32 pm
Forum: Programming
Topic: Adventures in FAT32 with 65c02
Replies: 203
Views: 7559

Re: Adventures in FAT32 with 65c02

Standards? We've heard of 'em. Currently working in the C domain under linux, which has proven handy to do some refactoring, and with the advantage that I can test code on a file image mounted so the linux file handlers can complain directly when I get it wrong.

Linux time, and the variant FAT32 ...
by barnacle
Sun Mar 22, 2026 10:19 am
Forum: Forth
Topic: Claude and I Vibe Coded a Forth Interpreter
Replies: 107
Views: 2277

Re: Claude and I Vibe Coded a Forth Interpreter

Has there ever been any doubt about this?

Neil
by barnacle
Fri Mar 20, 2026 5:19 am
Forum: Programming
Topic: Adventures in FAT32 with 65c02
Replies: 203
Views: 7559

Re: Adventures in FAT32 with 65c02

Thanks for the recommendation.

Neil
by barnacle
Thu Mar 19, 2026 10:16 am
Forum: Programming
Topic: Adventures in FAT32 with 65c02
Replies: 203
Views: 7559

Re: Adventures in FAT32 with 65c02

Just for the record: to copy a formatted _complete_ disk image to a file:

$ sudo dd if=/dev/sda of=cleanfmt bs=4096
125118+0 records in
125118+0 records out
512483328 bytes (512 MB, 489 MiB) copied, 53,8369 s, 9,5 MB/s

That includes all the data on the original disk - the MBR, the partitions ...
by barnacle
Thu Mar 19, 2026 9:35 am
Forum: Programming
Topic: Adventures in FAT32 with 65c02
Replies: 203
Views: 7559

Re: Adventures in FAT32 with 65c02

At the moment, I'm trying to mount an image of the file in loopback, so I can play with C algorithms and see the results immediately in the browser. However, while I can mount it, Linux insists it belongs to root and I'm not allowed to change permissions, which is a bit of a shame.

Neil
by barnacle
Wed Mar 18, 2026 5:12 pm
Forum: Programming
Topic: Adventures in FAT32 with 65c02
Replies: 203
Views: 7559

Re: Adventures in FAT32 with 65c02

That's exactly my next thought, though I think I shall reduce the size of the partition to the minimum that will format as FAT32, to keep the size manageable.

Turns out that trying to use hexedit on multi-megabyte files is, um, a bit tedious.

Neil
by barnacle
Wed Mar 18, 2026 10:07 am
Forum: Programming
Topic: Adventures in FAT32 with 65c02
Replies: 203
Views: 7559

Re: Adventures in FAT32 with 65c02

Nope... wasn't that. Though I did discover previous testing on the timer interrupt had left it running at 50 times normal speed...

Neil
by barnacle
Wed Mar 18, 2026 9:48 am
Forum: Programming
Topic: Adventures in FAT32 with 65c02
Replies: 203
Views: 7559

Re: Adventures in FAT32 with 65c02

Still confused... I have proven to my satisfaction that both procedures are using the same cluster # -> sector calculation.

format partition (linux)
copy directory into root (linux)
copy file into new directory (linux)
read file data (6502) - directory (cluster 3) shows dot, dotdot, and file ...
by barnacle
Wed Mar 18, 2026 5:47 am
Forum: Programming
Topic: Adventures in FAT32 with 65c02
Replies: 203
Views: 7559

Re: Adventures in FAT32 with 65c02


If I am correctly following you, you are formatting the CF card with FAT32 on your Linux box, creating a subdirectory named DIRECT00 , and then attempting to read the root directory on your 6502 machine. Is that correct?

Upside down, BDD. I'm trying to create DIRECT00 on a freshly formatted CF ...
by barnacle
Tue Mar 17, 2026 10:11 am
Forum: Programming
Topic: Adventures in FAT32 with 65c02
Replies: 203
Views: 7559

Re: Adventures in FAT32 with 65c02

My head is really getting bent out of shape now; I cannot see what I am missing.

With a newly formatted disk, no files added, this is what I see from the various parameter blocks:

NeoDOS32 v0.0411
VIB sector $00000800
FSI sector $00000801
Sectors in partition $000EA000
Sectors per cluster $08 ...