Search found 813 matches

by dp11
Thu Aug 16, 2018 9:19 pm
Forum: software: other
Topic: Designer Castles..
Replies: 19
Views: 282

Re: Designer Castles..

I wonder, does it have protection to prevent in running in SWR ? there was something I had to do to get it to work. I'm pretty sure I had to load multiple swr banks. Was there a later version with a bigger rom ?
by dp11
Wed Aug 15, 2018 7:43 pm
Forum: software: other
Topic: Designer Castles..
Replies: 19
Views: 282

Re: Designer Castles..

A master can have a rom which takes two banks 16K banks.

It was a long time ago so I may have bits wrong.
by dp11
Wed Aug 15, 2018 6:57 pm
Forum: software: other
Topic: Designer Castles..
Replies: 19
Views: 282

Re: Designer Castles..

I don't recall any extra logic . I was using a Master at the time and Masters can take 32K ROMs.
by dp11
Wed Aug 15, 2018 5:52 pm
Forum: software: other
Topic: Designer Castles..
Replies: 19
Views: 282

Re: Designer Castles..

IIRC there is something funny about the ROM ( e.g. 32K ). I have memories of moding it to run from SWR.
by dp11
Wed Aug 15, 2018 10:56 am
Forum: hardware
Topic: Open Source Logic Analyzer Experiments
Replies: 201
Views: 10886

Re: Open Source Logic Analyzer Experiments

That looks much better it matches : http://mdfs.net/Docs/Comp/BBC/OS1-20/D940
by dp11
Tue Aug 14, 2018 8:07 pm
Forum: hardware
Topic: Open Source Logic Analyzer Experiments
Replies: 201
Views: 10886

Re: Open Source Logic Analyzer Experiments

realtime USB over a VM can be an issue.
by dp11
Tue Aug 14, 2018 7:42 pm
Forum: hardware
Topic: Open Source Logic Analyzer Experiments
Replies: 201
Views: 10886

Re: Open Source Logic Analyzer Experiments

Doesn't look right to me. The reset vector on a beeb points to D9CD . Executing code in the FC page is also very unlikely.
by dp11
Sat Aug 11, 2018 6:41 am
Forum: hardware
Topic: Raspberry Pi B+ compatible GPIO Extender 40-way Ribbon Cable Female-Male
Replies: 27
Views: 395

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

Can you post a screenshot of the text. And how long is the cable.
by dp11
Wed Aug 08, 2018 8:46 pm
Forum: hardware
Topic: Z80 Protocol Decoder
Replies: 134
Views: 2040

Re: Z80 Protocol Decoder

sound a bit like you need a protocol encoder to drive signals on to the bus , fire interrupts and clock the cpu. No need for rom or ram
by dp11
Mon Jul 09, 2018 6:46 pm
Forum: emulators
Topic: Ceefax Engineering Test Page - BeebEm 4.13 & B-em
Replies: 67
Views: 10891

Re: Ceefax Engineering Test Page - BeebEm 4.13 & B-em

Clocksp adjust its run time so that very fast cpus don't finish so quickly you end up with a test taking zero time.
by dp11
Sun Jul 08, 2018 11:46 am
Forum: hardware
Topic: RGB to HDMI using a Pi Zero and a small CPLD
Replies: 257
Views: 9301

Re: RGB to HDMI using a Pi Zero and a small CPLD

If glitches do occur then a diode across R119 will speed up the rising edge. If the ls86 is socketed then replacing it with a 74hc86 could also work.
by dp11
Sat Jul 07, 2018 6:26 pm
Forum: hardware
Topic: RGB to HDMI using a Pi Zero and a small CPLD
Replies: 257
Views: 9301

Re: RGB to HDMI using a Pi Zero and a small CPLD

Simply take the video input and feed it through a potential divider. E. G. Video input via R1 to Cpld input. At the junction of of R1 and the cpld connect R2. The other end of R2 could just go to ground but could goto a dac.
by dp11
Sat Jul 07, 2018 5:24 pm
Forum: hardware
Topic: RGB to HDMI using a Pi Zero and a small CPLD
Replies: 257
Views: 9301

Re: RGB to HDMI using a Pi Zero and a small CPLD

You could move the sampling threshold voltage with two resistors. For a dac you can a pwm and and rc filter.
by dp11
Fri Jun 29, 2018 4:08 pm
Forum: off-topic
Topic: Using BBC BASIC to teach programming concepts in 2017
Replies: 93
Views: 2656

Re: Using BBC BASIC to teach programming concepts in 2017

There are a number of solutions

A P C
42 6 52
41 13 46
40 20 40
39 27 34
38 34 28
37 41 22
36 48 16
35 55 10
34 62 4

Notice how P changes by 7 each time and C changes by 6
by dp11
Mon Jun 04, 2018 10:42 pm
Forum: hardware
Topic: RGB to HDMI using a Pi Zero and a small CPLD
Replies: 257
Views: 9301

Re: RGB to HDMI using a Pi Zero and a small CPLD

An option would be to use the spare GPIO signals and TX RX Via Jumpers so that the CPLD can be insystem programmed
by dp11
Sun Jun 03, 2018 8:18 am
Forum: programming
Topic: 12-second Mandelbrot rendering on the BBC Master!
Replies: 107
Views: 3020

Re: 12-second Mandelbrot rendering on the BBC Master!

If I'm right this

Code: Select all

bit #1
    beq left_margin_even
    inc A
    
Can be replaced with

Code: Select all

   Inc a
   And #&fe
Saves a few bytes
by dp11
Sat Jun 02, 2018 8:17 pm
Forum: programming
Topic: 12-second Mandelbrot rendering on the BBC Master!
Replies: 107
Views: 3020

Re: 12-second Mandelbrot rendering on the BBC Master!

The final txa in kernel isn't used in hline or vline (14000ish times) it is used in box (1751 times) so it might be worth in box after calculate_through_cache testing bit 7 of A is it is clear doing ASL A
by dp11
Sat Jun 02, 2018 6:10 pm
Forum: programming
Topic: 12-second Mandelbrot rendering on the BBC Master!
Replies: 107
Views: 3020

Re: 12-second Mandelbrot rendering on the BBC Master!

just a bit of tidying up really in .box lda #&ff sta colourflag I think the lda can be removed before JSR hline there is this bit of code sec lda boxx2 sbc boxx1 sta sidecount This can be moved into hline. similar for vline. bne hline will need to be changed to bne hline_loop. I do wonder if hline c...
by dp11
Fri Jun 01, 2018 10:26 pm
Forum: programming
Topic: 12-second Mandelbrot rendering on the BBC Master!
Replies: 107
Views: 3020

Re: 12-second Mandelbrot rendering on the BBC Master!

I was thinking just one kernel, but two setups. Mandel setup is the longest so that is one block followed by kernel. julia is assembled with a bra to kernel at the end of it. then just swap block over at the start.
by dp11
Fri Jun 01, 2018 8:57 pm
Forum: programming
Topic: 12-second Mandelbrot rendering on the BBC Master!
Replies: 107
Views: 3020

Re: 12-second Mandelbrot rendering on the BBC Master!

I think

inc zp;5
lda zp;3

is the same as

lda zp;3
inc a;2
sta zp; 3

But does save code space which is good.
by dp11
Fri Jun 01, 2018 7:25 pm
Forum: programming
Topic: 12-second Mandelbrot rendering on the BBC Master!
Replies: 107
Views: 3020

Re: 12-second Mandelbrot rendering on the BBC Master!

how much more space do you think we can get in ZP ?

Can we get recalculate_pixel at the beginning of kernel but make the beginning self modifying by copying two different code sets one for Julia and one for mandel at first call . saves an LDA, BNE and JMP
by dp11
Fri Jun 01, 2018 6:39 pm
Forum: programming
Topic: 12-second Mandelbrot rendering on the BBC Master!
Replies: 107
Views: 3020

Re: 12-second Mandelbrot rendering on the BBC Master!

If I can count correctly that is 37px so over 1% gain.

In flood fill very minor but

Code: Select all

    lda screeny
    inc A
    sta screeny
can become

Code: Select all

    inc screeny
by dp11
Fri Jun 01, 2018 4:46 pm
Forum: programming
Topic: 12-second Mandelbrot rendering on the BBC Master!
Replies: 107
Views: 3020

Re: 12-second Mandelbrot rendering on the BBC Master!

Just when we thought fixup was optimal. As all the important fixups are in ZP we can pull another trick macro fixup_a_zp { STA lowbyteoftable ; 3 cycles lowbyteoftable = *+1 LDA fixuptable;4 cycle } align &100 .fixuptable ;.... Fixup is now always 7 cycles and 5 bytes long, The and #&AA can move in ...
by dp11
Wed May 30, 2018 9:50 pm
Forum: programming
Topic: 12-second Mandelbrot rendering on the BBC Master!
Replies: 107
Views: 3020

Re: 12-second Mandelbrot rendering on the BBC Master!

Can't give much but a better floodfill if nothing else it is smaller ; Fill the current box with corecolour, which is corrupted. .floodfill { ; Hacky temporary storage, reusing zr and zi in the kernel. boxx1i = zr+0 boxy1i = zr+1 boxx2i = zi+0 boxy2i = zi+1 ; Compute pixel colour. lda corecolour lsr...
by dp11
Wed May 30, 2018 8:30 pm
Forum: programming
Topic: 12-second Mandelbrot rendering on the BBC Master!
Replies: 107
Views: 3020

Re: 12-second Mandelbrot rendering on the BBC Master!

can you page align the palette table such that when the palette table is read it is ldx absolute ; where the low byte of absolute is the iterations byte?
by dp11
Wed May 30, 2018 7:33 pm
Forum: programming
Topic: 12-second Mandelbrot rendering on the BBC Master!
Replies: 107
Views: 3020

Re: 12-second Mandelbrot rendering on the BBC Master!

well I'm baffled why the palette change doesn't make any speed difference.
by dp11
Wed May 30, 2018 6:15 pm
Forum: programming
Topic: 12-second Mandelbrot rendering on the BBC Master!
Replies: 107
Views: 3020

Re: 12-second Mandelbrot rendering on the BBC Master!

Could the palette table be extended so the and #7 isn't required before accessing the palette table ? Can .box be tweaked to: pla: sta boxy1 plx: stx boxx2 ; Recurse into bottom right. ldx boxx1: phx ;lda boxy1: ; A now already has boxy1 pha I think floodfill will now fit straight after .box and the...
by dp11
Wed May 30, 2018 2:00 pm
Forum: programming
Topic: 12-second Mandelbrot rendering on the BBC Master!
Replies: 107
Views: 3020

Re: 12-second Mandelbrot rendering on the BBC Master!

Sorry, You are right, I miss read the code