Search found 3467 matches

by dml
Mon Sep 18, 2017 2:14 pm
Forum: C / PASCAL etc.
Topic: GCC 7.1 - entering supervisor mode
Replies: 4
Views: 222

Re: GCC 7.1 - entering supervisor mode

That's usually a bad idea. If you compile your code with -fomit-frame-pointer, then local variables that are not in registers are accessed through xx(SP). gcc will not recognize that you changed the SP, and therefore access the wrong memory when trying to load/store them. That's what I was explaini...
by dml
Mon Sep 18, 2017 11:26 am
Forum: C / PASCAL etc.
Topic: GCC 7.1 - entering supervisor mode
Replies: 4
Views: 222

Re: GCC 7.1 - entering supervisor mode

Hi! While I can't say conclusively what's happening here (because I normally provide a new SSP stack when using Super()), I can say that I had similar problems with this function - and the problems have much to do with the method of changing mode versus the compiler's knowledge of what just happened...
by dml
Sun Sep 17, 2017 8:09 am
Forum: 680x0
Topic: Bad Mood : Falcon030 'Doom'
Replies: 2327
Views: 192010

Re: Bad Mood : Falcon030 'Doom'

Quick update - we figured out what went wrong with the MIDI replay and the ongoing problems with BMC update pass getting stuck on some (missing!) textures. Those things are all fixed now so v0.38 zips will be along soon.
by dml
Fri Sep 15, 2017 6:47 pm
Forum: 680x0
Topic: Bad Mood : Falcon030 'Doom'
Replies: 2327
Views: 192010

Re: Bad Mood : Falcon030 'Doom'

There's no network support in BM currently. There could be, but no work was done on it. Also it would probably only work Falcon-to-Falcon and some of the patches would need to be bypassed or undone to keep the game worlds in sync.

Midi port could probably work though as a sort of IPX hack.
by dml
Tue Sep 12, 2017 10:04 pm
Forum: 680x0
Topic: Bad Mood : Falcon030 'Doom'
Replies: 2327
Views: 192010

Re: Bad Mood : Falcon030 'Doom'

I tested the latest version from here with latest Hatari: http://www.leonik.net/dml/sec_bm.py Thanks Eero - I'll look at the hud thing next time I build it. Something funny with the new ELF/GCC makefile I think. BTW I wanted to ask you about Hatari symbol loading direct from the Atari binary - as i...
by dml
Tue Sep 12, 2017 10:01 pm
Forum: 680x0
Topic: Bad Mood : Falcon030 'Doom'
Replies: 2327
Views: 192010

Re: Bad Mood : Falcon030 'Doom'

Although CT60 TOS contains an exception handler for unimplemented instructions, this shouldn't be present in an 060 build, agreed. -m68020-60 doesn't generate unimplemented integer instructions like DIV{S,U}.L <ea>,Dr:Dq so perhaps a wrong compilation flag was used. A big part of the project is ass...
by dml
Sat Sep 09, 2017 7:37 pm
Forum: 680x0
Topic: Bad Mood : Falcon030 'Doom'
Replies: 2327
Views: 192010

Re: Bad Mood : Falcon030 'Doom'

I had a look and the MIDI support does seem to be broken. Can't get it to work at all on my Falcon. It also causes my copy of Hatari to crash. Will probably need to go back a bunch of revisions to see where it last worked and figure out what happened. Might just be breakage from gcc6 compiler upgrade.
by dml
Fri Sep 08, 2017 2:16 pm
Forum: 680x0
Topic: Bad Mood : Falcon030 'Doom'
Replies: 2327
Views: 192010

Re: Bad Mood : Falcon030 'Doom'

Not sure if anyone has tried HW MIDI since I built v0.37 so I'll try to test it next chance I get with the Falcon set up - in case something is wrong there. It did work ok in v0.36.

Meanwhile if anyone else has success with it I'd like to know.
by dml
Wed Sep 06, 2017 10:25 pm
Forum: 680x0
Topic: Bad Mood : Falcon030 'Doom'
Replies: 2327
Views: 192010

Re: Bad Mood : Falcon030 'Doom'

By the way, I sort of want to do a comparison between the music output by the Falcon and various other systems, I'm pretty sure it has the best Doom music I've ever heard. :cheers: It was one of the longer parts of the whole project... getting the sound right. BTW music cheats... type 'idmusXX' whe...
by dml
Tue Sep 05, 2017 9:33 am
Forum: 680x0
Topic: Bad Mood : Falcon030 'Doom'
Replies: 2327
Views: 192010

Re: Bad Mood : Falcon030 'Doom'

Got this running today, and yeah the CT60 build has the unstable HUD and it also crashed twice on me, rebooting the machine and causing the sound to freak out. It does work in 030 mode, but moves rather smoothly at high details with the largest screen, which the High details kills the performance o...
by dml
Tue Sep 05, 2017 9:26 am
Forum: Hardware
Topic: Please Help (Fried Pins) I think i am slowly killing my STE
Replies: 53
Views: 1607

Re: Please Help (Fried Pins) I think i am slowly killing my STE

Yep ok - but I'd still calculate the resistor from the optoisolator datasheet vs 5v. Don't just copy something from the internet without checking stuff. e.g. for 10mA to the optoisolator @ 5V: 5V / 0.010A = 500ohm. But use the mA rating from the actual datasheet - somewhere between switching thresho...
by dml
Mon Sep 04, 2017 10:08 pm
Forum: Hardware
Topic: Please Help (Fried Pins) I think i am slowly killing my STE
Replies: 53
Views: 1607

Re: Please Help (Fried Pins) I think i am slowly killing my STE

Yes although the resistor values are wrong, especially the one on the left, for 22v. It will toast the IC.

The layout is ok though - for the simplest version of it.
by dml
Mon Sep 04, 2017 8:41 am
Forum: Hardware
Topic: Please Help (Fried Pins) I think i am slowly killing my STE
Replies: 53
Views: 1607

Re: Please Help (Fried Pins) I think i am slowly killing my STE

Could i use optoisolators? How might i do that? If you have optoisolators you could connect the input (LED) side across the 22v/sensor rails so when sensor-0v open circuit is closed by the car, it will activate the isolator LED briefly. But you'll need a resistor (at a minimum) to protect the LED f...
by dml
Mon Sep 04, 2017 8:07 am
Forum: 680x0
Topic: Bad Mood : Falcon030 'Doom'
Replies: 2327
Views: 192010

Re: Bad Mood : Falcon030 'Doom'

Firstly, I am downloading everything on a PC, unzipping it there and transferring to the Falcon via USB Parcp. I have ensured I have DOOMU.WAD and it's the correct filesize (12,408,292) when checking in Windows. I am using Bad Mood v0.37. Do you also have the other files present? BMT1.WAD and the t...
by dml
Sun Sep 03, 2017 7:18 pm
Forum: 680x0
Topic: Bad Mood : Falcon030 'Doom'
Replies: 2327
Views: 192010

Re: Bad Mood : Falcon030 'Doom'

Sounds suspicious. PARCP will usually rule out transfer errors so assuming you have 14MB and your disk works properly, it should run. It could still be a HD disk driver incompatibility but it should work with HDDriver, ICD and AHDI. It is a normal Falcon though? Not accelerated? Make sure you don't ...
by dml
Tue Aug 29, 2017 3:40 pm
Forum: Hardware
Topic: Please Help (Fried Pins) I think i am slowly killing my STE
Replies: 53
Views: 1607

Re: Please Help (Fried Pins) I think i am slowly killing my STE

No problem - I'll have a play with CircuitMaker later if i can, and see if I can get values correct for a first try. The simulator should be good enough for a test (well nothing ever works first time but you always find something out along the way ;)
by dml
Tue Aug 29, 2017 2:45 pm
Forum: Hardware
Topic: Please Help (Fried Pins) I think i am slowly killing my STE
Replies: 53
Views: 1607

Re: Please Help (Fried Pins) I think i am slowly killing my STE

You can find small toroids in dead power supplies, CFL lamps, PCBs for display backlights and other common electronic scrap. That's where I generally get them from. However you want to make sure you can find several the same size. We're talking 1cm diameter probably. Not big things. Still I'd start ...
by dml
Tue Aug 29, 2017 1:06 pm
Forum: Hardware
Topic: Please Help (Fried Pins) I think i am slowly killing my STE
Replies: 53
Views: 1607

Re: Please Help (Fried Pins) I think i am slowly killing my STE

1 - need to make 6 transformers I'd start with one. Otherwise you will end up with 6x the mistakes while getting it to work. 2 - need to get the right caps to be able to cope trigger the counter. I'm really uncertain about this, the connection was so simple this is getting more and more complicated...
by dml
Tue Aug 29, 2017 12:52 pm
Forum: Hardware
Topic: Please Help (Fried Pins) I think i am slowly killing my STE
Replies: 53
Views: 1607

Re: Please Help (Fried Pins) I think i am slowly killing my STE

I'd start with one small hand-wound transformer with e.g. 22 turns on the track side, maybe 6-7 turns on the STE side (which will step 22v down to approx 5v with some extra margin) and tweak the number of turns to get the it working - get a confirmed detection. Once that's good, make the other trans...
by dml
Tue Aug 29, 2017 11:54 am
Forum: Hardware
Topic: Please Help (Fried Pins) I think i am slowly killing my STE
Replies: 53
Views: 1607

Re: Please Help (Fried Pins) I think i am slowly killing my STE

BTW I forgot to add - there are other, implicitly isolated ways of detecting the cars. You could use a hall-effect sensor (small magnet attached to each car, passing a coil) or a LED arrangement where the LED reflects light back to an adjacent photodiode or equivalent, when the car passes on top. Bo...
by dml
Tue Aug 29, 2017 11:20 am
Forum: Hardware
Topic: Please Help (Fried Pins) I think i am slowly killing my STE
Replies: 53
Views: 1607

Re: Please Help (Fried Pins) I think i am slowly killing my STE

Unfortunately it seems CircuitLab is no longer 'free' so it threw up a membership banner, then logged me out and I just lost that circuit diagram. The joys of 'cloud'.
by dml
Tue Aug 29, 2017 11:01 am
Forum: Hardware
Topic: Please Help (Fried Pins) I think i am slowly killing my STE
Replies: 53
Views: 1607

Re: Please Help (Fried Pins) I think i am slowly killing my STE

Here's a new version which triggers the transformers when the cars close the SW1 or SW2 circuit. ver2.png Someone better than me can optimise this/simplify it - but this method will be safe and should work ok. You can make the transformers by hand using a few turns on small ferrite rings - they don'...
by dml
Tue Aug 29, 2017 10:43 am
Forum: Hardware
Topic: Please Help (Fried Pins) I think i am slowly killing my STE
Replies: 53
Views: 1607

Re: Please Help (Fried Pins) I think i am slowly killing my STE

I think the key part of my last answer is this: The main issue here - I don't know what your sensors are, what kind of signal they produce (I assume its some kind of pulse) and how much energy in that pulse.... So from your last reply I understand a bit better now how your sensor works - and yes, th...
by dml
Tue Aug 29, 2017 10:31 am
Forum: Hardware
Topic: Please Help (Fried Pins) I think i am slowly killing my STE
Replies: 53
Views: 1607

Re: Please Help (Fried Pins) I think i am slowly killing my STE

Soooooo Even if its just the same braid... within mm of each contact the motor can still feed back EMF. OK this should plainly be addressed. Taking everything into account, the common ground is more likely to be the cause. However anytime you're dealing with EMF spikes, imperfect connections, long ...
by dml
Tue Aug 29, 2017 10:05 am
Forum: Hardware
Topic: Please Help (Fried Pins) I think i am slowly killing my STE
Replies: 53
Views: 1607

Re: Please Help (Fried Pins) I think i am slowly killing my STE

Here's an example of isolation via small signal transformers. Note this isn't a complete circuit - just an explanation! prot.png Smaller transformers will be more responsive to faster signals. Need to be big enough to couple enough energy though for the receiving circuit. This will ensure no DC curr...

Go to advanced search