Search found 128 matches

by ctr
Tue Apr 17, 2018 11:35 pm
Forum: software: other
Topic: How t pass arrays into procedures?
Replies: 13
Views: 362

Re: How t pass arrays into procedures?

On a real beeb keywords like COLOUR and PRINT are tokenised to a single byte when you enter a line of code, so abbreviating them doesn't make any difference to the memory used.
by ctr
Mon Apr 09, 2018 8:19 pm
Forum: software: other
Topic: Any short type-ins for unattended Beebs?
Replies: 39
Views: 887

Re: Any short type-ins for unattended Beebs?

You could possibly shorten this by using a four-element array for the positions and a similar array for the velocities. 0REM Walking Lines 10MODE2 20VDU23,1,0;0;0;0; 30X%=640:Y%=512:A%=768:B%=768 40V%=32:W%=24:C%=16:D%=-28 50DIME%(7),F%(7),G%(7),H%(7) 60FORI%=1TO7 70GCOL3,I% 80MOVEE%(I%),F%(I%):DRAW...
by ctr
Fri Mar 30, 2018 12:55 am
Forum: software: new games
Topic: Prince of Persia
Replies: 105
Views: 3072

Re: Prince of Persia

Bravo!

This is brilliant. The graphics look incredible, the animation is absolutely rock solid and the sound works really well. And it's a good game!
by ctr
Sun Mar 25, 2018 8:04 pm
Forum: development tools
Topic: BeebAsm
Replies: 67
Views: 3615

Re: BeebAsm

Prime wrote:Also what is the currently worked upon branch of the source as I'd like to test the updates.....

https://github.com/stardot/beebasm/tree ... ed-updates

Note that the EXE isn't quite up-to-date. It does include all the new features.
by ctr
Sun Mar 25, 2018 4:31 pm
Forum: off-topic
Topic: Acorn Art Thread
Replies: 242
Views: 16666

Re: Acorn Art Thread

I'm loving these animations.

Having already written some code to convert the original pictures into MODE 2 format I extended it to handle the animations. A couple of ssds are attached.
by ctr
Sun Mar 18, 2018 10:04 pm
Forum: development tools
Topic: BeebAsm
Replies: 67
Views: 3615

Re: BeebAsm

I have had a look at rewriting the code to avoid the warnings by using ostringstream, which we already used in other places, so there's no new compatibility problem this way. This builds fine on Windows. The boot functionality works. I also tested a couple of the BASIC error messages and the rest l...
by ctr
Thu Mar 15, 2018 10:33 pm
Forum: development tools
Topic: BeebAsm
Replies: 67
Views: 3615

Re: BeebAsm

I merged my change. Yours looks good too.
by ctr
Thu Mar 15, 2018 4:32 pm
Forum: development tools
Topic: BeebAsm
Replies: 67
Views: 3615

Re: BeebAsm

I'm open to suggestions, but we could just #define (or 'const double our_pi = ...') our own constant here, if trying to use a library-provided value is causing problems. I can't see PI changing in the near future or across platforms. :-) I was thinking #undef/#define M_PI but you're right, a new co...
by ctr
Wed Mar 14, 2018 4:03 pm
Forum: development tools
Topic: BeebAsm
Replies: 67
Views: 3615

Re: BeebAsm

With gcc, M_PI seems to come from the platform math.h (via cmath), which on openbsd contains: #define M_PI ((double)3.14159265358979323846) /* pi */ Which is an old-style cast, hence the error. M_PI doesn't seem to come from any standard, so it's hard to say this is wrong, but the type of a real con...
by ctr
Tue Mar 13, 2018 4:38 pm
Forum: development tools
Topic: BeebAsm
Replies: 67
Views: 3615

Re: BeebAsm

Thank you Steve and Kieran, I can push to github now.

There's a new exe on github. The last commit is a fix to the buffer overflow identified by tricky in the previous post.
by ctr
Mon Mar 12, 2018 6:26 pm
Forum: development tools
Topic: Request membership of the Stardot organisation on GitHub here
Replies: 45
Views: 3558

Re: Request membership of the Stardot organisation on GitHub here

Please give me (mungre) permission to commit to beebasm. Thanks again.

Edit: To add some context, I asked SteveF who's currently maintaining beebasm but he's not an admin so he directed me here. I think what I'm actually asking for is to be added as a collaborator to beebasm.
by ctr
Mon Mar 12, 2018 5:12 pm
Forum: development tools
Topic: BeebAsm
Replies: 67
Views: 3615

Re: BeebAsm

For me, a single mention of my stardot username in the credits file is enough. More detail is available in the commit log. You could maybe change the copyright to something like "Copyright (C) Rich Talbot-Watkins and the contributors 2007 - 2018". I have updated the Visual Studio project f...
by ctr
Fri Mar 02, 2018 5:09 pm
Forum: emulators
Topic: Emulation Request
Replies: 133
Views: 14099

Re: Emulation Request

As far as I can see fsd2fdi doesn't handle the complex cases of overlapping sector reads and the like. And it will never handle weak bits so a few games simply won't work with this approach. So there seem to be two options: * Create yet another file format that does handle weak bits. * Support fsd. ...
by ctr
Wed Feb 28, 2018 2:14 am
Forum: emulators
Topic: Emulation Request
Replies: 133
Views: 14099

Re: Emulation Request

In terms of what's practical for emulators, we know from Pernod earlier that MAME needs something it can turn into an MFM bit stream. So ambiguity on overlapping sectors is problematic. Yes, it's a problem, but it's exactly the problem we've got. How to handle the existing fsd files. As above, in m...
by ctr
Wed Feb 28, 2018 12:14 am
Forum: off-topic
Topic: Acorn Art Thread
Replies: 242
Views: 16666

Re: Acorn Art Thread

This is really nice. I drank a coffee and watched it as a break from thinking about beebem and disk emulation!
by ctr
Wed Feb 28, 2018 12:13 am
Forum: emulators
Topic: Emulation Request
Replies: 133
Views: 14099

Re: Emulation Request

One of the non-obvious parts of fsd is the handling of over-read sectors. For example, when the error code is &E1 the data includes the current sector, its CRC, the gap, the next id field, another gap and a chunk of the next data field. And, most importantly, any additional data stuffed in betwe...
by ctr
Mon Feb 26, 2018 9:53 pm
Forum: emulators
Topic: Emulation Request
Replies: 133
Views: 14099

Re: Emulation Request

Sorry, I wasn't very clear. This isn't something new. I'm attempting to document the format of the hundreds of FSDs that already exist.

I get the impression that the design was largely driven by ease of acquisition.
by ctr
Mon Feb 26, 2018 6:31 pm
Forum: emulators
Topic: Emulation Request
Replies: 133
Views: 14099

Re: Emulation Request

Updated documentation for the FSD format based on sweh's original, discussions with billcarr2005 and looking at the files. Header: ======= Identifier: "FSD" string literal 3 bytes Creator: 5 bytes; date of creation/author Title: Character string (unlimited length; may contain any but null)...
by ctr
Sun Feb 25, 2018 3:27 pm
Forum: off-topic
Topic: Acorn Art Thread
Replies: 242
Views: 16666

Re: Acorn Art Thread

I've been loving these pictures. Has anyone created compressed versions of these and shoved them on a disc or multiple discs to create a slideshow? If not, I'm quite happy to try to do so, but just wanted to avoid duplication of work if they'd already been converted. I've been loving the pictures t...
by ctr
Wed Feb 21, 2018 2:07 am
Forum: emulators
Topic: Double-clicking .SSD overrides VDU 14 ?!
Replies: 13
Views: 521

Re: Double-clicking .SSD overrides VDU 14 ?!

So the only way to stop the emulator pressing Shift (after a double-click on the .SSD) and scrolling the screen is to change the program (or the !BOOT) to ask for user-input first? I just tried b-em and it also cancels the shift if you don't press a key for a couple of seconds. So you could use INK...
by ctr
Wed Feb 21, 2018 12:21 am
Forum: emulators
Topic: Double-clicking .SSD overrides VDU 14 ?!
Replies: 13
Views: 521

Re: Double-clicking .SSD overrides VDU 14 ?!

The emulator is probably simulating a shift key-press to make the shift+break work. This also allows the text to scroll. The emulator may well cancel the fake key-press when you press a key.
by ctr
Mon Feb 19, 2018 7:48 pm
Forum: software: other
Topic: Hacking the school Econet
Replies: 15
Views: 758

Re: Hacking the school Econet

I wrote some code to intercept the command line interpreter vector and told the teacher I needed him to configure something for me, knowing he would use my computer. When he logged in my code recognised the command, displayed the usual prompt, squirelled away the password, unhooked the vector and di...
by ctr
Sat Feb 17, 2018 2:48 am
Forum: stardot.org.uk
Topic: Stardot logo fixed and now spud and banana free!
Replies: 57
Views: 1394

Re: Stardot logo disappeared!

richardtoohey wrote:I was so curious about this spud that I pressed Ctrl+R and now I have it as well. :D

(I posted the proper logo on page 1 in case it got missed?)

I am so confused right now. The wine doesn't help. This is what I see:
by ctr
Mon Feb 12, 2018 5:16 pm
Forum: development tools
Topic: BeebAsm
Replies: 67
Views: 3615

Re: BeebAsm

I must admit I got a bit nervous on seeing your long post and expected you'd found a lot of bugs, so I'm glad it all seemed OK. :-) Yeah, by the time I'd finished testing I realised I had quite a long post that really didn't say very much. But thank you for making the couple of changes. We could po...
by ctr
Sun Feb 11, 2018 11:59 pm
Forum: development tools
Topic: BeebAsm
Replies: 67
Views: 3615

Re: BeebAsm

I tested the changes in your proposed-updates branch. I tested that each feature works in a couple of simple cases and that it handled any error or corner cases I could think of. I've looked at a bit of the code but I haven't reviewed any of it in detail. PUTBASIC automatic line-numbering is missing...
by ctr
Sun Feb 11, 2018 4:13 pm
Forum: development tools
Topic: BeebAsm
Replies: 67
Views: 3615

Re: BeebAsm

I've had a quick play with this. It seems to work pretty well to me and the implementation is nice and simple. I did think the syntax was a little ugly, but it really isn't that bad and it's already growing on me. Thanks for having a look. An alternative syntax could be "?=", which would ...
by ctr
Fri Feb 09, 2018 11:11 am
Forum: development tools
Topic: BeebAsm
Replies: 67
Views: 3615

Re: BeebAsm

I have a BeebAsm related question. Is there any way to test if a variable is already defined in an IF expression? I would like to use this to provide a default value, if one is not already set. Dave The short answer is not in the current version. There is a patch to add IFDEF but this causes unavoi...
by ctr
Tue Feb 06, 2018 5:14 pm
Forum: development tools
Topic: BeebAsm
Replies: 67
Views: 3615

Re: BeebAsm

I've had a bash at summarising that RS thread. The requirements seem to be: 1. Allow conditional compilation; 2. with options that can be overridden on the command-line; 3. or overridden in an outer asm file that includes the main asm file. The difficulties were: 1. Attempting to use a symbol that m...
by ctr
Thu Jan 25, 2018 7:59 pm
Forum: adventures
Topic: Level 9 posters
Replies: 6
Views: 530

Re: Level 9 posters

by ctr
Thu Jan 04, 2018 1:01 pm
Forum: archive issues
Topic: Flip! - Icon
Replies: 18
Views: 925

Re: Flip! - Icon

CMcDougall wrote:just tried both on emulator (BeebEm414 1770 2.26DFS &bEm22)

I hadn't noticed this detail previously. I'm using beebem with the 8271 and DFS 1.20.