Search found 1020 matches

by Coeus
Mon Oct 15, 2018 11:01 pm
Forum: emulators
Topic: Filing system tests and B-Em
Replies: 1
Views: 28

Filing system tests and B-Em

This thread continues from Building B-em with Visual studio , where we had started to go off-topic on filing system tests. This is because it is checking the return value of OSFILE, called with A=00, to check it is 01 to say it created a file. When looked up the documentation it said the return valu...
by Coeus
Mon Oct 15, 2018 10:48 pm
Forum: emulators
Topic: Building B-em with Visual studio
Replies: 55
Views: 551

Re: Building B-em with Visual studio

That's good. It may be worth having a MSVC definitions file so we could simply say: #ifdef _MSC_VER #include "vs-includes/defines.h" #endif That would keep it nice and separate and relatively easy to maintain. That's a good idea. b-em.h can have this exact code in it for the main executable but any...
by Coeus
Mon Oct 15, 2018 10:08 pm
Forum: software: other
Topic: Any short type-ins for unattended Beebs?
Replies: 124
Views: 5888

Re: Any short type-ins for unattended Beebs?

Andrew_Waite wrote:
Mon Oct 15, 2018 7:41 pm
As SIN(x) and COS(x) for all x can both be calculated from one quadrant of SIN(x) or COS(x) the code can be optimised for speed further, as shown below.
Well spotted. Initialisation down to 3s.
by Coeus
Mon Oct 15, 2018 9:54 pm
Forum: emulators
Topic: Building B-em with Visual studio
Replies: 55
Views: 551

Re: Building B-em with Visual studio

I did originally use sndfile in a proof of concept for recording but I thought I had removed it in favour of direct writing of a WAV header specifically because I didn't know how easy it would be to get sndfile working in VS or even on Windows with MingW. I will check if it builds on Linux without ...
by Coeus
Mon Oct 15, 2018 9:51 pm
Forum: emulators
Topic: Building B-em with Visual studio
Replies: 55
Views: 551

Re: Building B-em with Visual studio

I was just tinkering really and when reviewing the changes you'd made for the M3000 I saw that they were significant... There are probably many changed lines but there is an overall approach which is to take all the variables that implement the state of a Music 5000 and stuff them in a structure so...
by Coeus
Mon Oct 15, 2018 9:06 pm
Forum: hardware
Topic: BBD B+ Issues..please help
Replies: 16
Views: 409

Re: BBD B+ Issues..please help

Does anyone know if I should expect something to happen on Q2 and Q6 on power-up. These are the values programmed into this IC on power-up, obtained by having B-Em print them out. These are the values that should appear on the outputs, not on the inputs: 80 1010000 C0 1011010 E0 1011010 F0 1011010 ...
by Coeus
Mon Oct 15, 2018 5:24 pm
Forum: emulators
Topic: Building B-em with Visual studio
Replies: 55
Views: 551

Re: Building B-em with Visual studio

Just as an aside, the stardot master which I forked didn't have the Music 3000 support in it... Paul, I am not sure from your description exactly what you have done here. Did you find the branch https://github.com/stardot/b-em/tree/sf/music3000 with the Music 3000 support and apply your VS changes ...
by Coeus
Sun Oct 14, 2018 11:39 pm
Forum: emulators
Topic: Building B-em with Visual studio
Replies: 55
Views: 551

Re: Building B-em with Visual studio

Having fixed that, your test program now stops with "Not found at 3100". If I change FST to just create files in the current directory and not swap between $ and +, it gets a little further. Now, instead, I get: STOP at line 3110 This is because it is checking the return value of OSFILE, called wit...
by Coeus
Sun Oct 14, 2018 11:02 pm
Forum: emulators
Topic: Building B-em with Visual studio
Replies: 55
Views: 551

Re: Building B-em with Visual studio

Ok, the crash was caused by failure to handle the case of trying to create a file in a non-existent directory. Here's the fix: $ git diff diff --git a/src/vdfs.c b/src/vdfs.c index 3fd9801..c5047b0 100644 --- a/src/vdfs.c +++ b/src/vdfs.c @@ -1547,7 +1547,12 @@ static void osfile_write(uint32_t pb, ...
by Coeus
Sun Oct 14, 2018 9:47 pm
Forum: emulators
Topic: Building B-em with Visual studio
Replies: 55
Views: 551

Re: Building B-em with Visual studio

If you want an additional test suite, I've attached the one I used for BeebLink... Ok, it works fine on DFS, crashes B-Em with VDFS on Linux, so nothing to do with Paul's work getting it to compile on Visual Studio. Thread 1 "b-em" received signal SIGSEGV, Segmentation fault. 0x00005555555f6cd0 in ...
by Coeus
Sun Oct 14, 2018 9:30 pm
Forum: software: other
Topic: Any short type-ins for unattended Beebs?
Replies: 124
Views: 5888

Re: Any short type-ins for unattended Beebs?

I am pleased with this one, it draws a starfield then planets in the foreground. I like it. Looking at it I was interested to see the optimisation of creating lookup tables of SIN/COS to make up for these functions being slow. That can be further optimised by taking advantage that SIN and COS are e...
by Coeus
Sun Oct 14, 2018 8:51 pm
Forum: emulators
Topic: Building B-em with Visual studio
Replies: 55
Views: 551

Re: Building B-em with Visual studio

So, further to my last message here is the filing system test suite. It should work with a virgin BCPL ROM but that is old and only knows about filing systems up to DFS. In you use a more modern filing system it does not know about it assumes it only has CFS/RFS-like capabilities, i.e. no OSGBPB and...
by Coeus
Sun Oct 14, 2018 8:44 pm
Forum: emulators
Topic: Building B-em with Visual studio
Replies: 55
Views: 551

Re: Building B-em with Visual studio

EDIT: Also, I'm not particularly versed in the use of the VDFS.... I thought I'd made a strart on some documentation for VDFS and couldn't find it but, after a walk, concluded it may be the explanatory section at the top of vdfs.c So, taking that as as read there are two things that need to be set ...
by Coeus
Sun Oct 14, 2018 5:30 pm
Forum: off-topic
Topic: Poor manufacturing
Replies: 3
Views: 159

Poor manufacturing

A pair of digital kitchen scales of our have just fallen apart. Looking at the pieces, the top plate was a piece of glass, painted on the bottom, then this was glued to four pressure sensing pads mounted in the base. What has happened is the paint has remained stuck to the pads, but come off the gla...
by Coeus
Sun Oct 14, 2018 5:25 pm
Forum: hardware
Topic: BBC B repair help
Replies: 9
Views: 228

Re: BBC B repair help

The MODE used for start-up is determined by the keyboard links/DIP switches (as are some filing systems options). See this web page . If the “system” 6522 VIA (IC3) is not present, the OS can’t read the keyboard links/DIP switches. Yes, I know that most machines don’t have any links or DIP switches...
by Coeus
Sun Oct 14, 2018 4:52 pm
Forum: emulators
Topic: Building B-em with Visual studio
Replies: 55
Views: 551

Re: Building B-em with Visual studio

The fork is available here: https://github.com/newmediadev/b-em It still compiles with no errors or warnings on Linux with gcc 8.2.1 and the resulting executable runs. Also, on Windows with MingW. Just Mac to go then, or were you hoping someone else with Visual Studio will check that what you have ...
by Coeus
Sat Oct 13, 2018 1:47 pm
Forum: emulators
Topic: Building B-em with Visual studio
Replies: 55
Views: 551

Re: Building B-em with Visual studio

I guess I'll have to request access to GitHub proper now... Well done, Paul, on finally getting this sorted. I just logged on to mention getting your changes merged back into the stardot repository and you're already thinking about it. If you're not already registered as a contrubutor to the stardo...
by Coeus
Fri Oct 12, 2018 9:02 pm
Forum: emulators
Topic: Building B-em with Visual studio
Replies: 55
Views: 551

Re: Building B-em with Visual studio

Unhandled exception at 0x773395A8 in b-em.exe: 0xC0000005: Access violation executing location 0x00000000. That suggests to me that something in Allegro has implemented a plugin/driver architecture where function pointers are stored in a struct so that functions can be dispatched that way, a bit li...
by Coeus
Fri Oct 12, 2018 8:43 pm
Forum: emulators
Topic: Building B-em with Visual studio
Replies: 55
Views: 551

Re: Building B-em with Visual studio

It seems the linker is failing at the last stage now when trying to combine the object files with the resource file to build the exe. Paul I don't think much of the resource file is used. The menu is created via Allegro which presumably does so dynamically rather than use these resources. Now you'v...
by Coeus
Fri Oct 12, 2018 12:54 pm
Forum: emulators
Topic: Building B-em with Visual studio
Replies: 55
Views: 551

Re: Building B-em with Visual studio

...Doing this has revealed vdfs.c and tsearch.c as being problematic for VS with several "syntax errors" being present... tsearch doesn't appear to have a header file in the project and the following variables it uses are undefined: VISIT leaf preorder postorder endorder The history behind this is ...
by Coeus
Fri Oct 12, 2018 11:32 am
Forum: emulators
Topic: Music 5000 in B-Em
Replies: 225
Views: 13769

Re: Music 5000 in B-Em

That's my testing over with for a while :-o That's a pity. Does this affect the pre-built version from the GitHub release as well as the visual studio one? I am not really expecting there to be a difference between the two as I think the re-try loop you refer to must be inside Allegro as B-Em does ...
by Coeus
Fri Oct 12, 2018 12:21 am
Forum: emulators
Topic: Building B-em with Visual studio
Replies: 55
Views: 551

Re: Building B-em with Visual studio

There are four instances of the error in video.c and two in pal.c with the fix in pal.c as below gcc was happy with the fix for the most part except casting a pointer to which += is to be applied - it complaint the cast pointer is no longer an lvalue. So, I tried this, which works in gcc, does it w...
by Coeus
Thu Oct 11, 2018 11:48 pm
Forum: emulators
Topic: Music 5000 in B-Em
Replies: 225
Views: 13769

Re: Music 5000 in B-Em

...I found I could not MAKE words.. As mentioned in the other thread I think the version of the AMPLE ROM in the disc distributed with B-Em has been patched to try to avoid a sort of copy protection that insists the modules match the ROM. The way this has been done seems to have affected the check-...
by Coeus
Thu Oct 11, 2018 3:02 pm
Forum: emulators
Topic: Building B-em with Visual studio
Replies: 55
Views: 551

Re: Building B-em with Visual studio

The first error is to do with concatenating defined strings: That is using the C compiler concatenation syntax rather than the pre-processor syntax and obviously the GNU pre-processor must be defining VERSION_STR to be both tokens and inserting both tokens as the replacment text wherever the macro ...
by Coeus
Thu Oct 11, 2018 12:09 pm
Forum: software: other
Topic: Music 500/5000 software/music
Replies: 45
Views: 753

Re: Music 500/5000 software/music

Try this version of Chariots of fire. This is taken directly from the virtual Music 5000 output (no Allegro or OS processing), resampled to 44100 and normalised and then to MP3.
by Coeus
Thu Oct 11, 2018 11:23 am
Forum: software: other
Topic: Music 500/5000 software/music
Replies: 45
Views: 753

Re: Music 500/5000 software/music

...Dave/hoglet did something with scaling with his 5000 model to avoid clipping... found it, it was in BeebFPGA: https://github.com/hoglet67/BeebFpga/commit/4e1b3a763678e8796fbd1dde7e0fb2909d9f9678 That's in B-Em too. If it detects the output has clipped, it reduces the gain by 3dB. The problem thi...
by Coeus
Thu Oct 11, 2018 8:47 am
Forum: hardware
Topic: M3000 vs M5000
Replies: 47
Views: 2981

Re: M3000 vs M5000

Interesting. I have been looking at a couple of AMPLE ROMs to work out why they behave differently and, in the process, discovered what looks like an intermediate code interpreter... The answer to this seems to be that the core AMPLE words are implemented in machine code and each has an entry in th...
by Coeus
Wed Oct 10, 2018 8:41 pm
Forum: software: other
Topic: Music 500/5000 software/music
Replies: 45
Views: 753

Re: Music 500/5000 software/music

DutchAcorn wrote:
Wed Oct 10, 2018 8:26 pm
Attached is an original one. I have another rom with a different serial number, but have not yet made an image of that one.
Thanks, I can now see what has been done to the other two.
by Coeus
Wed Oct 10, 2018 8:29 pm
Forum: software: other
Topic: Music 500/5000 software/music
Replies: 45
Views: 753

Re: Music 500/5000 software/music

That's great. I've been trying to get B-em to build in my Visual Studio environment (2017 and 2010) but I lost the will to live as getting allegro to co-operate with my environment appeared to be downright impossible. Paul, As I am not a Windows developer I don't propose to fight Visual Studio and ...
by Coeus
Wed Oct 10, 2018 7:21 pm
Forum: hardware
Topic: M3000 vs M5000
Replies: 47
Views: 2981

Re: M3000 vs M5000

B-Em now has Music 3000 support in this branch in Github: https://github.com/stardot/b-em/tree/sf/music3000