Search found 7342 matches

by hoglet
Wed Aug 15, 2018 5:58 am
Forum: hardware
Topic: Raspberry Pi B+ compatible GPIO Extender 40-way Ribbon Cable Female-Male
Replies: 22
Views: 267

Re: Raspberry Pi B+ compatible GPIO Extender 40-way Ribbon Cable Female-Male

Back2skooldaze wrote:
Tue Aug 14, 2018 9:48 pm
I still can't get the pi to work on the extended cable? If the pins where tarnished then the pi would not work when plugged in directly to the TUBE connector?
Is this now with a 30cm cable?
by hoglet
Wed Aug 15, 2018 5:40 am
Forum: hardware
Topic: Z80 Protocol Decoder
Replies: 123
Views: 1752

Re: Z80 Protocol Decoder

Could you add WZ=xxxx to your log after SP, for PUSH AF if nothing else? It'll be needed when using my new device! That's already there (with the -s2 option) I just didn't include it in this example. The extra stuff looks like: IR=???? IF1=? IF2=? IM=? WZ=???? If anyone reading this is confused abo...
by hoglet
Wed Aug 15, 2018 5:36 am
Forum: acorn atom
Topic: Atom 2k18 ?
Replies: 41
Views: 1215

Re: Atom 2k18 ?

I tried to add my cpld files to the Atom Godil project in ISE but it did not recognise these files. Even when I force an error ( keyword: entyty ) there was no error. How can I add my two sources? How exactly did you add the sources? As well as placing them in the src directory, you need to tell th...
by hoglet
Tue Aug 14, 2018 9:39 pm
Forum: hardware
Topic: Open Source Logic Analyzer Experiments
Replies: 171
Views: 10517

Re: Open Source Logic Analyzer Experiments

Another possibility with a machine like this is to blind type *FX 2,2 and *FX 3,1 then use the serial port to run some tests.
by hoglet
Tue Aug 14, 2018 9:14 pm
Forum: hardware
Topic: Open Source Logic Analyzer Experiments
Replies: 171
Views: 10517

Re: Open Source Logic Analyzer Experiments

Edit2: As you can see from the thread https://stardot.org.uk/forums/viewtopic.php?f=3&t=9438 I dont have much visual clues to go on. I feel like I am making progress, even f only in understand what tools to use and how to use them. Yes, but from that thread you say: Restarted it and goes through po...
by hoglet
Tue Aug 14, 2018 8:47 pm
Forum: hardware
Topic: Z80 Protocol Decoder
Replies: 123
Views: 1752

Re: Z80 Protocol Decoder

The flag info in "The Undocumented Z80 Documented" for the block repeat instructions only applies when the counter = 1. Yes, I tend to agree. Take OTIR for example with B=3. This will look like: - OUTI (16 cycles) - decrement PC by 2 (5 cycles) - check for interrupt - OUTI (16 cycles) - decrement P...
by hoglet
Tue Aug 14, 2018 8:28 pm
Forum: hardware
Topic: Open Source Logic Analyzer Experiments
Replies: 171
Views: 10517

Re: Open Source Logic Analyzer Experiments

This very is nearly working... it's just bits 4 and 2 not making proper contact somewhere. Definitely start by cleaning the tube connector, either with something abrasive, or by plugging/unplugging the cable about 20 times. Then it will get really interesting and you'll see the value of this over a ...
by hoglet
Tue Aug 14, 2018 8:21 pm
Forum: hardware
Topic: Open Source Logic Analyzer Experiments
Replies: 171
Views: 10517

Re: Open Source Logic Analyzer Experiments

I think either the Myelin FX board is faulty, or the tube connector is dirty and not making a good connection.
by hoglet
Tue Aug 14, 2018 8:18 pm
Forum: hardware
Topic: Open Source Logic Analyzer Experiments
Replies: 171
Views: 10517

Re: Open Source Logic Analyzer Experiments

This is interesting.... Here's my "reference trace" for a Beeb booting: 0 68 1 1 1 1 68 0 1 1 2 01 0 1 1 3 ff 0 1 1 4 01 0 1 1 5 cd 0 1 1 6 d9 0 1 1 ???? : : RESET !! 0 a9 1 1 1 1 40 0 1 1 D9CD : A9 40 : LDA #40 0 8d 1 1 1 1 00 0 1 1 2 0d 0 1 1 3 40 0 0 1 D9CF : 8D 00 0D : STA 0D00 0 78 1 1 1 1 d8 0...
by hoglet
Tue Aug 14, 2018 7:50 pm
Forum: hardware
Topic: Open Source Logic Analyzer Experiments
Replies: 171
Views: 10517

Re: Open Source Logic Analyzer Experiments

Do you have a working Model B you can capture a reset trace off first, just to check the tools are working properly. Otherwise you might be chasing ghosts.... Oh, and don't use "live mode" for now, too many variables and if the system struggles to keep up the USB link will drop data and you'll just ...
by hoglet
Tue Aug 14, 2018 7:48 pm
Forum: hardware
Topic: Z80 Protocol Decoder
Replies: 123
Views: 1752

Re: Z80 Protocol Decoder

Maybe I'm too simple-minded now but the above log suggests that the flags changed after PUSH AF and before that H = C as expected. Before the PUSH AF, the flags are what's being predicted by the emulation. After the PUSH AF, the value that is pushed to the stack represents "reality" At the point, t...
by hoglet
Tue Aug 14, 2018 7:41 pm
Forum: hardware
Topic: Open Source Logic Analyzer Experiments
Replies: 171
Views: 10517

Re: Open Source Logic Analyzer Experiments

It should work fine on a Model B - I've used this quite extensively.

But that trace looks very broken.

Can you zip up the data.bin and upload it and I'll take a quick look?

Dave
by hoglet
Tue Aug 14, 2018 6:30 pm
Forum: hardware
Topic: Raspberry Pi B+ compatible GPIO Extender 40-way Ribbon Cable Female-Male
Replies: 22
Views: 267

Re: Raspberry Pi B+ compatible GPIO Extender 40-way Ribbon Cable Female-Male

Master != Model B

i.e. they are very very different environments.
by hoglet
Tue Aug 14, 2018 6:29 pm
Forum: hardware
Topic: Raspberry Pi B+ compatible GPIO Extender 40-way Ribbon Cable Female-Male
Replies: 22
Views: 267

Re: Raspberry Pi B+ compatible GPIO Extender 40-way Ribbon Cable Female-Male

Are you using a shorted cable now? How long exactly?

I've found even 30cm is marginal on a heavily populated machine.

There is a reason I think that the real Acorn Co Pros only have a 15cm cable.
by hoglet
Tue Aug 14, 2018 6:25 pm
Forum: hardware
Topic: Z80 Tube Speed
Replies: 2
Views: 64

Re: Z80 Tube Speed

In his results for the ClockSP program, JGH lists an Acorn Z80 co-processor running at 4Mhz. Elsewhere in these forums someone commented that running at 6Mhz, the Z80 processor was one of the fastest Z80 systems of the 1980s. Did both variants exist or was someone mistaken? I know the processor its...
by hoglet
Tue Aug 14, 2018 6:01 pm
Forum: hardware
Topic: Open Source Logic Analyzer Experiments
Replies: 171
Views: 10517

Re: Open Source Logic Analyzer Experiments

Not sure what I have missed? (I am using Myelin's cart board, on a Beeb using Tube interface. both jumpers in place and 3 wires hooks to 6502 to give missing signals. I think the Linux kernel is getting in the way... If you do a dmesg, do you see any lines referring to usbtest? [67235.159416] usbte...
by hoglet
Tue Aug 14, 2018 5:54 pm
Forum: hardware
Topic: Z80 Protocol Decoder
Replies: 123
Views: 1752

Re: Z80 Protocol Decoder

Something that puzzles me a little bit is how the Russian MEMPTR/WZ investigators know WZ when BC <> 1 during LDxR, as it must be overwritten during IM 1 and 2 interrupts. I doubt they used any hardware, but perhaps they added pull-up/pull-down resistors on the data bus to set the IM 0 opcode to E9...
by hoglet
Tue Aug 14, 2018 4:46 pm
Forum: hardware
Topic: Z80 Protocol Decoder
Replies: 123
Views: 1752

Re: Z80 Protocol Decoder

Have you tested CPxR, INxR and OTxR during interrupts? I don't see why the repeat logic would differ from LDxR. No I haven't, so I've just now tried INIR. You are right, when interrupted it seems to be following the same pattern as LDIR. My decoder is currently wrong on this case, so I'll fix and r...
by hoglet
Tue Aug 14, 2018 3:38 pm
Forum: acorn atom
Topic: Atom 2k18 ?
Replies: 41
Views: 1215

Re: Atom 2k18 ?

Unfortunately the Xilinx tools are completely rubbish when dealing with warnings. It seems their FPGAs tools are much worse than their CPLD tools in this regard. I get 289 warnings for this project, mostly unconnected ports, signals not being used, logic being optimised. But I agree it is a real pai...
by hoglet
Tue Aug 14, 2018 3:25 pm
Forum: hardware
Topic: Z80 Protocol Decoder
Replies: 123
Views: 1752

Re: Z80 Protocol Decoder

Changed, then changed back, as right first time, I think. That works, nice optimization! 10 code%=&E000 20 FOR I%=0 TO 3 STEP 3 30 P%=code% 40 [OPT I% 50 .test 60 DI 70 LD A,(&0000) 80 \ work out the value of MEMPTR without disturbing it 90 LD IX,&FFFF 100 \ copy bit 13 of MEMPTR INTO E 110 BIT 0,(...
by hoglet
Tue Aug 14, 2018 2:49 pm
Forum: hardware
Topic: Z80 Protocol Decoder
Replies: 123
Views: 1752

Re: Z80 Protocol Decoder

A minor point: LD HL,loop is needed only once before the loop as you're adding 0 to L until bit 13 flips. Change LD HL,loop to RRA and insert LD HL,loop before .loop and all the NOPs can be deleted! I don't think that is going to work, because CPD decrements HL. Edit: but it might work if I used JP...
by hoglet
Tue Aug 14, 2018 1:56 pm
Forum: hardware
Topic: Z80 Protocol Decoder
Replies: 123
Views: 1752

Re: Z80 Protocol Decoder

And here's a greatly improved version that only has one loop, and uses IX as the counter. It works by decrementing MEMPTR until bit 13 is seen to change state, which is much simpler. This works out bits 12..0, and we can just OR-in bit 13 at the end. So it ends up being faster as well. 10 code%=&E00...
by hoglet
Tue Aug 14, 2018 1:00 pm
Forum: hardware
Topic: Z80 Protocol Decoder
Replies: 123
Views: 1752

Re: Z80 Protocol Decoder

For a bit of fun, I've written a program to work out the current value of the hidden Z80 MEMPTR register. I've read that Boo-boo and Vladimir Kladov, who made the final MEMPTR discoveries in 2006, had such a program. But I've not seen it posted anywhere. Here's a few notes to go along with it: - the...
by hoglet
Tue Aug 14, 2018 7:27 am
Forum: hardware
Topic: Z80 Protocol Decoder
Replies: 123
Views: 1752

Re: Z80 Protocol Decoder

Hi Tony, Yes, indeed an interesting idea and thought-provoking idea. Am I right in thinking the main advantage over any existing software approach is the ability to gain some insights into the operation of an instruction machine cycle by machine cycle? My approach to testing the Z80 Protocol Decoder...
by hoglet
Mon Aug 13, 2018 6:32 pm
Forum: hardware
Topic: Z80 Protocol Decoder
Replies: 123
Views: 1752

Re: Z80 Protocol Decoder

TonyB wrote:
Mon Aug 13, 2018 6:28 pm
How much free space does the ROM have?
Here's a disassembly:
https://acorn.huininga.nl/pub/docs/sour ... 80_120.asm

There is an obvious block from F069-F1D3 that could be re-purposed.

Dave
by hoglet
Mon Aug 13, 2018 5:50 pm
Forum: hardware
Topic: Z80 Protocol Decoder
Replies: 123
Views: 1752

Re: Z80 Protocol Decoder

This still leaves IM 0, which could be used with a little bit of circuitry. The best opcode to put on the data bus during the interrupt acknowledge cycle is E9H for JP (HL) as this does not modify WZ, according to the doc. Incidentally, this is a good example of why the instruction mnemonic should ...
by hoglet
Mon Aug 13, 2018 5:41 am
Forum: hardware
Topic: Z80 Protocol Decoder
Replies: 123
Views: 1752

Re: Z80 Protocol Decoder

So this implies MEMPTR is involved during cycle 17-21 when the PC is decremented, but not elsewhere. Would you know if it was used before that? Surely the flags are only available to inspect at the end of the instruction so only the last use of MEMPTR within an instruction is visible. The documenta...
by hoglet
Mon Aug 13, 2018 5:36 am
Forum: hardware
Topic: Z80 Protocol Decoder
Replies: 123
Views: 1752

Re: Z80 Protocol Decoder

Tony, Re MEMPTR, I mean validating just the LDIR behaviour in the document, if possible. I think the tricky bit is making sure WZ is not used between the interrupted LDIR and BIT x,(HL), which rules out IM 2. It sounds like you have better documentation about MEMPTR than I have. The document I have ...
by hoglet
Sun Aug 12, 2018 10:14 pm
Forum: hardware
Topic: Z80 Protocol Decoder
Replies: 123
Views: 1752

Re: Z80 Protocol Decoder

I got a bit lost on the thread as so many others to follow, but my rc2014 was a Zilog Z84C0010PEG z80 if anyone needs me to check anything. If already have one of those for testing then it lets me off the hook! Mostly of the last few days has been a deep dive into some of the undocumented aspects o...
by hoglet
Sun Aug 12, 2018 9:43 pm
Forum: hardware
Topic: Z80 Protocol Decoder
Replies: 123
Views: 1752

Re: Z80 Protocol Decoder

[Thanks for the info. Perhaps you could check MEMPTR too, on a Zilog Z80? The tests so far on the Z80 Co Pro have used a SGS Z8400BB1 Z80B CPU (6MHz) datecode 88346. When you say check MEMPTR, what do you mean exactly? i.e. Attempt to validate the info in that document, or something more specific?