Search found 483 matches

by DerTrueForce
Wed Jun 01, 2022 12:14 am
Forum: Hardware
Topic: 5V -> 3V3 Level Shifter for SPI-10
Replies: 11
Views: 2378

Re: 5V -> 3V3 Level Shifter for SPI-10

There are a few modules going around online that are basically four of the bi-directional transistor circuits that BillO mentioned, all on one board, approximately the size of a wide DIP12. I know you can get them from places like Adafruit and Sparkfun, but I found a pack of 10 for a fraction of the ...
by DerTrueForce
Wed Apr 21, 2021 4:36 am
Forum: Programmable Logic
Topic: Alternative to WinCUPL?
Replies: 8
Views: 2797

Re: Alternative to WinCUPL?

Back when I used it, I found that it was the GUI itself that was causing all the problems, not anything underlying, and that the GUI is only a pretty wrapper on top of the command-line utilities.
I ended up working out how to use the command-line utilities, and threw the GUI in the bin ...
by DerTrueForce
Thu Aug 20, 2020 6:00 am
Forum: Programming
Topic: indirect addressing
Replies: 22
Views: 2220

Re: indirect addressing

Oh. I had a braino moment... I'll see myself out...
by DerTrueForce
Thu Aug 20, 2020 5:21 am
Forum: Programming
Topic: indirect addressing
Replies: 22
Views: 2220

Re: indirect addressing

What you're doing in that first snippet is putting a label at the assembler's current address, then laying down two bytes starting at that position.
The second snippet is correct, if you remove the question marks.
Your assembler should tell you how to assign a value to a label somewhere in its ...
by DerTrueForce
Sat Aug 15, 2020 12:11 pm
Forum: Hardware
Topic: W65C165
Replies: 19
Views: 3888

Re: W65C165

I believe I've also found the SPI and I2C cores used in the '165, based on the sheer similarity in naming, structure, and register descriptions.
They can be found here: https://opencores.org/projects/simple_spi and here: https://opencores.org/projects/i2c/ .
The documentation is here: [Link] and ...
by DerTrueForce
Sat Aug 15, 2020 6:04 am
Forum: Hardware
Topic: W65C165
Replies: 19
Views: 3888

Re: W65C165

I've worked out the format the W65c165 uploader wants, that it calls Z-bin. WDC's linker outputs this, but it can be generated by just about anything using appropriate assembler directives. This format is also documented in the linker manual, found here , on page 37.
It's basically a header ...
by DerTrueForce
Wed Aug 12, 2020 3:51 am
Forum: Programming
Topic: First C64 assembly road block
Replies: 16
Views: 2237

Re: First C64 assembly road block

That's a good one, Garth. I hadn't thought of that.
Another way would be to do pointer arithmetic, using 16-bit increment and compare operations, and indirection instead of indexing.
The 65-series use little-endian format (low address = low byte) for multi-byte values.
by DerTrueForce
Fri Jul 31, 2020 9:15 am
Forum: Hardware
Topic: W65C165
Replies: 19
Views: 3888

Re: W65C165

Ideally, I'd just use that script, but it's supposed to be in WDCTools. The version I have(v2.1) doesn't have it, and I seem to be unable to get hold of a newer one.
by DerTrueForce
Fri Jul 31, 2020 5:35 am
Forum: Hardware
Topic: W65C165
Replies: 19
Views: 3888

Re: W65C165

So I've had my '165 for a week, and I've made a little headway, but not enough to do anything with it. I tried to contact WDC about a week ago, and I've got no communication back, so I assume it's been lost in the shuffle.
Do you know enough about the protocol to give me a clue as to how I'd be able ...
by DerTrueForce
Mon Jul 13, 2020 2:39 am
Forum: Hardware
Topic: W65C165
Replies: 19
Views: 3888

Re: W65C165

So I've been reading the datasheet(going about implementing what I can from it), and I'm finding that it's referencing a bunch of things that aren't in it, and that do not appear to be available, particularly the SPI and I2C specifications. I'm also unable to find any information about the embedded ...
by DerTrueForce
Thu Jul 09, 2020 11:38 pm
Forum: Hardware
Topic: W65C165
Replies: 19
Views: 3888

Re: W65C165

Thank you. I intend to use one of these as the core of a standalone handheld device, and having the firmware autostart is just a bit critical if the monitor works the way I think it does.

EDIT:
Reading the datasheet, it says the interrupt module's vectors are up against the normal vectors. I'm ...
by DerTrueForce
Thu Jul 09, 2020 3:17 am
Forum: Hardware
Topic: W65C165
Replies: 19
Views: 3888

Re: W65C165

Do you know if there's any way to get the monitor out of the road without altering the HDL, similar to the 65c265, perhaps? I've ordered one, and only now realised that this critical to what I want to do with it.
I'll be able to work out if it's possible when I have the thing in hand, but has anyone ...
by DerTrueForce
Sun May 24, 2020 1:54 pm
Forum: Programming
Topic: Building a Cartridge Header in 64tass, Confused
Replies: 15
Views: 2486

Re: Building a Cartridge Header in 64tass, Confused

By the looks of that tutorial, the value of the program counter is entirely irrelevant to the header itself. Those examples look to me like they're using a behaviour of their assemblers that is not standardized.
The most assembler-agnostic method of doing that(while still keeping it within the ...
by DerTrueForce
Sun May 24, 2020 1:14 pm
Forum: Programming
Topic: Building a Cartridge Header in 64tass, Confused
Replies: 15
Views: 2486

Re: Building a Cartridge Header in 64tass, Confused

Is the cartridge header supposed to be at address $0000, as seen by the 6502? Because that's what you're telling the assembler to set up there.
Or have I entirely missed what this header data is actually for?
by DerTrueForce
Mon May 18, 2020 7:50 am
Forum: General Discussions
Topic: Writing code on your build (not cross assembling)
Replies: 12
Views: 1478

Re: Writing code on your build (not cross assembling)

I normally cross-assemble, since Ittiara(my system) isn't great to code on at present, and it's a bit annoying to get it to write to its own EEPROM (I've not set up an easy way to do that yet). The fact that it doesn't have any real external storage capability doesn't help either.
I haven't written ...