Search found 1198 matches

by dp11
Mon Jun 08, 2020 9:37 pm
Forum: new projects in development: games
Topic: RPG project
Replies: 103
Views: 6444

Re: RPG project

I think with a bit of code jiggling you can endup with just one call to getbyte in the main plot loop instead of one outside and one inside. you can then remove wbyte%

Which functions are most used ? I 've really looked at the other functions much.
by dp11
Mon Jun 08, 2020 1:59 pm
Forum: new projects in development: games
Topic: RPG project
Replies: 103
Views: 6444

Re: RPG project

I've been enjoying it too.

Code: Select all

.gbi2nohigh
STY temp%
TAY
LDA (&8E),Y
STA wbyte%
LDY temp%

If the table always sits on a page boundary. Then you can just do STA &8E and you don't need to preserve Y. saves 5 cycles
by dp11
Mon Jun 08, 2020 11:13 am
Forum: new projects in development: games
Topic: RPG project
Replies: 103
Views: 6444

Re: RPG project

A very little bit more from .clearcity .clearcity LDY#0 STY &70 LDA #&14 STA &71 .middleclearloop LDX#8 LDA #60 .clearloopY1 STA (&70),Y INY STA (&70),Y INY STA (&70),Y INY STA (&70),Y INY STA (&70),Y INY STA (&70),Y INY STA (&70),Y INY STA (&70),Y INY DEX BNE clearloopY1 LDX#8 LDA #3 .clearloopY2 S...
by dp11
Mon Jun 08, 2020 9:05 am
Forum: new projects in development: games
Topic: RPG project
Replies: 103
Views: 6444

Re: RPG project

A bit more on getbyte .getbyte LDA (readaddr%) BPL pair AND #127 LDX #1 BRA inchigh .pair TAX INC readaddr% BNE nohighpair INC readaddr%+1 .nohighpair LDA (readaddr%) .inchigh INC readaddr% BNE nohigh INC readaddr%+1 .nohigh BIT flag% ; change flag from 0 or 1 to 0 or 128 BPL return sta wbyte% AND #...
by dp11
Sun Jun 07, 2020 8:18 pm
Forum: new projects in development: games
Topic: RPG project
Replies: 103
Views: 6444

Re: RPG project

A little more saving here ( but check my maths) .loadsw LDA &F4 STA save% LDA wbyte% SEI STA &F4 STA &FE30 CLI LDY#0 .lswloop LDA (readaddr%),Y STA (writeaddr%),Y INY CPY byte% BNE lswloop INC readaddr%+1 INC writeaddr%+1 LDA bytes%+1 BEQ finished DEC bytes%+1 STZ byte% bra lswloop .finished LDA sav...
by dp11
Sun Jun 07, 2020 6:35 pm
Forum: new projects in development: games
Topic: RPG project
Replies: 103
Views: 6444

Re: RPG project

In your clearcity function Use X in the inner loop two loops instead of xcounter% and use another zeropage location for the outer loop You have what looks good INY:TYA but LDA #8 is quicker In fact if I understand the the loop correctly take the add 8 out of the loop and do it at the end add 64 inst...
by dp11
Sun Jun 07, 2020 6:06 pm
Forum: new projects in development: games
Topic: RPG project
Replies: 103
Views: 6444

Re: RPG project

A few more cycles out of the inner plot loop LDY #0 LDA wbyte% ; move outside inner loop .iloopY STA (writeaddr%),Y ; 6 cycles DEC counter% ; 5 cycles -> 2 cycles if it can be DEX BNE icontinue ; 3 cycles JSR getbyte LDA wbyte% ; duplicate to get newer version .icontinue INY ; 2 cycles CPY height% ;...
by dp11
Sun Jun 07, 2020 5:17 pm
Forum: new projects in development: games
Topic: RPG project
Replies: 103
Views: 6444

Re: RPG project

A bit more work on getbyte .getbyte LDA (readaddr%) BPL pair AND #127 STA wbyte% LDA #1 STA counter% INC readaddr% BNE nohigh BRA inchigh .pair STA counter% STY temp% ; save old Y locally so if we only do it if required. LDY #1 LDA (readaddr%),Y LDY temp% ; restore Y STA wbyte% CLC LDA #2 ADC readad...
by dp11
Sun Jun 07, 2020 4:31 pm
Forum: new projects in development: games
Topic: RPG project
Replies: 103
Views: 6444

Re: RPG project

Well done!! =D> =D> =D> =D> 12% is a good improvement.
by dp11
Sun Jun 07, 2020 2:37 pm
Forum: new projects in development: games
Topic: RPG project
Replies: 103
Views: 6444

Re: RPG project

A quick look suggests the counter% could actually be in X as getbyte doesn't use X , but please check
by dp11
Sun Jun 07, 2020 2:35 pm
Forum: new projects in development: games
Topic: RPG project
Replies: 103
Views: 6444

Re: RPG project

0xC0DE wrote:
Sun Jun 07, 2020 2:28 pm
You're right but be careful those 2 loops are not the same. You are skipping the Y==0 case, and including the Y==160 case.
I could be wrong , but I've moved the DEY so I think I have corrected for that ?
by dp11
Sun Jun 07, 2020 1:46 pm
Forum: new projects in development: games
Topic: RPG project
Replies: 103
Views: 6444

Re: RPG project

a few more minor tweaks : .getbyte STY temp% LDA (readaddr%) BIT #128 BEQ pair AND #127 STA wbyte% LDA #1 STA counter% INC readaddr% BNE nohigh ; changed to branch directly to nohigh bra inchigh ; changed to use an existing inchigh .pair STA counter% LDY #1 LDA (readaddr%),Y STA wbyte% CLC LDA #2 AD...
by dp11
Sat Jun 06, 2020 7:54 am
Forum: 8-bit acorn software: other
Topic: Applications using "virtual memory"?
Replies: 6
Views: 700

Re: Applications using "virtual memory"?

Bas128 effectively used paging too as it used multiple sideways ram bank.
by dp11
Thu Jun 04, 2020 5:53 am
Forum: 8-bit acorn hardware
Topic: Pi1MHz Software
Replies: 39
Views: 1841

Re: Pi1MHz Software

Looking good I don't know if osword 5 would be any faster .

http://beebwiki.mdfs.net/OSWORD_%2605

Making another variable to hold & FFF4 will almost certainly be faster.
by dp11
Wed Jun 03, 2020 8:26 pm
Forum: 8-bit acorn hardware
Topic: Pi1MHz Software
Replies: 39
Views: 1841

Re: Pi1MHz Software

What is the ‘sampling rate’, if thats the right term, on the Pi? I.e. if the beeb was to continuously write data to the 1MHz port as fast as it could would the Pi keep up? Well is depends . The only thing that you could possible overrun is screen writes if you directly poke bytes to the fake VDU qu...
by dp11
Wed Jun 03, 2020 5:53 pm
Forum: 8-bit acorn hardware
Topic: Pi1MHz Software
Replies: 39
Views: 1841

Re: Pi1MHz Software

P.$&FD00 is only valid after power up as if something writes to FRED it will be over written.
by dp11
Wed Jun 03, 2020 5:25 pm
Forum: 8-bit acorn hardware
Topic: Pi1MHz Software
Replies: 39
Views: 1841

Re: Pi1MHz Software

Excellent!
by dp11
Wed Jun 03, 2020 5:14 pm
Forum: 8-bit acorn hardware
Topic: Pi1MHz Software
Replies: 39
Views: 1841

Re: Pi1MHz Software

If P.$&FD00 doesn't work nothing will.

Can you check you are Actually typing

Code: Select all

P.$&FD00 
by dp11
Wed Jun 03, 2020 4:51 pm
Forum: 8-bit acorn hardware
Topic: Pi1MHz Software
Replies: 39
Views: 1841

Re: Pi1MHz Software

Thats not right. Are you running in a copro ? if so can you disable it.
by dp11
Wed Jun 03, 2020 4:27 pm
Forum: 8-bit acorn hardware
Topic: Pi1MHz Software
Replies: 39
Views: 1841

Re: Pi1MHz Software

On the beeb if you type

Code: Select all

P.$&FD00
what do you get ?
by dp11
Wed Jun 03, 2020 9:45 am
Forum: 32-bit acorn software: other
Topic: RiscOS File type D96 CFSIzw
Replies: 4
Views: 447

Re: RiscOS File type D96 CFSIzw

You need CFS which I think was distrubted by computer concepts.
by dp11
Tue Jun 02, 2020 9:06 pm
Forum: 8-bit acorn hardware
Topic: Corrections to the Tribbeck circuit diagram for the BBC B
Replies: 39
Views: 2943

Re: Corrections to the Tribbeck circuit diagram for the BBC B

Okay a few more minor issues

There are two C60's ( 47uF at the bottom ) the left on should be C25

Ic54(RAM) pin numbers have shifted slightly
by dp11
Tue Jun 02, 2020 5:41 pm
Forum: 32-bit acorn hardware
Topic: PC Card - DIY upgrades (CPU/cache)
Replies: 9
Views: 758

Re: PC Card - DIY upgrades (CPU/cache)

Found on comp.sys.acorn.extra-cpu : The refer to the fact Gemini II cards after March 1997 had 512K and before had 128K Here follows the official details 512K cache option (standard from March 1997) IC2,3,5,6 (cache RAM): 128K x8 SRAM 25nS IC4 (Tag RAM): 32Kx8 SRAM 20nS R31, R44: 0R link fited 128K ...
by dp11
Tue Jun 02, 2020 4:50 pm
Forum: 32-bit acorn hardware
Topic: PC Card - DIY upgrades (CPU/cache)
Replies: 9
Views: 758

Re: PC Card - DIY upgrades (CPU/cache)

The other link changes listed might be because I have and 5x86 fitted. so I would try just the Address lined first. Look at the CJE micros picture in the links in your first post there does appear to be some differences between my board and CJEs board. A quick look at the board suggests my PGA jumpe...
by dp11
Tue Jun 02, 2020 4:48 pm
Forum: 32-bit acorn hardware
Topic: PC Card - DIY upgrades (CPU/cache)
Replies: 9
Views: 758

Re: PC Card - DIY upgrades (CPU/cache)

Don't worry abut the bit of tinned copper wire top right , that would have been have a earth point for my scope probes. Change looks as though they are all on the bottom. Remove LK25 LK15 LK18 LK17 R46 R42 R43 Possibly fit 20K resistor for R29 and R38 I can't tell if I just soldered some test wires ...
by dp11
Tue Jun 02, 2020 2:51 pm
Forum: 8-bit acorn hardware
Topic: Pi1MHz Software
Replies: 39
Views: 1841

Re: Pi1MHz Software

That might be possible I've never tried, but it is more likely to work than DSI due to the resolution
by dp11
Tue Jun 02, 2020 2:05 pm
Forum: programming
Topic: "Legally" writing to the screen
Replies: 17
Views: 1140

Re: "Legally" writing to the screen

BigEd wrote:
Tue Jun 02, 2020 11:59 am
I very much like Richard's idea of vector art in a string. It might even be Mode agnostic to some extent. And it should work also with new VDU technologies like the pi on 1MHz bus.
My lastest version supports vdu23 and vdu 5 as well as nula vdu 19
by dp11
Tue Jun 02, 2020 11:01 am
Forum: 8-bit acorn hardware
Topic: Corrections to the Tribbeck circuit diagram for the BBC B
Replies: 39
Views: 2943

Re: Corrections to the Tribbeck circuit diagram for the BBC B

Very minor C18 in the Econet section should be polarised .
by dp11
Tue Jun 02, 2020 6:27 am
Forum: 32-bit acorn hardware
Topic: PC Card - DIY upgrades (CPU/cache)
Replies: 9
Views: 758

Re: PC Card - DIY upgrades (CPU/cache)

I certainly did the upgrade back in the day I think I found out how to do it on usenet.
by dp11
Sun May 31, 2020 9:19 pm
Forum: off-topic
Topic: Advice wanted on ATTINY 2313 dev
Replies: 8
Views: 573

Re: Advice wanted on ATTINY 2313 dev

ATMEL studio is built on Visual studio so it is reasonably familiar to some people. or I think MPLAB now supports the atmel devices too.

Go to advanced search