Search found 99 matches

by Ped7g
Mon Jan 28, 2019 12:41 pm
Forum: ZX Spectrum Next
Topic: Update 42 - New graphics mode
Replies: 21
Views: 2841

Re: Update 42 - New graphics mode

... Information required for design: Number of colors available in tiles, number of color palettes. Tile map position on screen, scroll register. Is that a question? As part of that in answered in the rest of your post, although not all of it, so let's summarize: - tiles graphics is 4-bit (16 offse...
by Ped7g
Sun Jan 27, 2019 10:31 am
Forum: ZX Spectrum Next
Topic: Update 41 and "2.00.X."
Replies: 60
Views: 7865

Re: Update 41 and "2.00.X."

Some changes for sprites and nextreg: ... So I updated wiki (links below in case you will find time to check), but from the description I'm not sure about some details. When sprite index 64..127 is selected (either on port $303B or reg $34), what happens to pattern slot? Is it "undefined behaviour"...
by Ped7g
Fri Jan 25, 2019 6:37 pm
Forum: General
Topic: Basic Apps take advantage of Turbo modes?
Replies: 1
Views: 416

Re: Basic Apps take advantage of Turbo modes?

> were there any good games for Spectrum made in Basic? Good? I think yes (although I can't recall any particular). Fast? No, not in default ZX BASIC. > will Next make things speedy enough to make games in Basic? Hmm... depends.. the BASIC itself is still very slow generally, i.e. your game must be ...
by Ped7g
Fri Jan 25, 2019 4:54 pm
Forum: Software
Topic: HW Sprites and how to use them
Replies: 6
Views: 1067

Re: HW Sprites and how to use them

I'm not aware of any, except the new `ADD HL/DE/BC,A` and `ADD HL/BC/DE,$nnnn` Z80N extensions, but I don't think those would seriously change the code above. In principle, you have to upload new data to move sprite. To get new data, you have to either generate them by some formula, or have previous...
by Ped7g
Fri Jan 25, 2019 7:56 am
Forum: Software
Topic: HW Sprites and how to use them
Replies: 6
Views: 1067

Re: HW Sprites and how to use them

Hm, there's even some more space for optimization without too much of sacrifice... If you can guarantee to use "natural" form of either `add` or `sub` for movement right/left, i.e. `x_add` constant will be always positive, and you don't need bigger than 255px movement, you can use only 8 bit `x_add`...
by Ped7g
Thu Jan 24, 2019 9:54 pm
Forum: Software
Topic: HW Sprites and how to use them
Replies: 6
Views: 1067

Re: HW Sprites and how to use them

.... ld hl,shadow_memory + sprite_index*5 ; Load the address of some sprite ... In my recent code (working on Next tests) I fell into trap of preferring rather simple and short source over performance... with tests it's of course no issue, but while prototyping some game, I would maybe consider tha...
by Ped7g
Thu Jan 24, 2019 9:11 pm
Forum: Software
Topic: HW Sprites and how to use them
Replies: 6
Views: 1067

Re: HW Sprites and how to use them

There's also one more aspect you didn't mention in your post, that is "z-index" of sprites, if the overdraw order of sprites is important for you, then you have to have way to insert-into the whole list, at particular position... (if you have somewhat fixed amount of particular sprite types, you can...
by Ped7g
Wed Jan 23, 2019 3:18 pm
Forum: ZX Spectrum Next
Topic: Update 42 - New graphics mode
Replies: 21
Views: 2841

Re: Update 42 - New graphics mode

It was just finalized today so maybe a short wait for running tests and writing documentation. Actually, that mode could have remained secret for as many days as you need, but you could have at least updated the other docs maybe... Then again, I guess I have most of it already in wiki and hopefully...
by Ped7g
Tue Jan 22, 2019 10:56 pm
Forum: ZX Spectrum Next
Topic: Update 42 - New graphics mode
Replies: 21
Views: 2841

Re: Update 42 - New graphics mode

It's Sunday 20.1. in programmers time, i.e. probably next tuesday.. :) (or sooner but with bugs and deficiencies... :D )
by Ped7g
Sun Jan 20, 2019 7:29 pm
Forum: News
Topic: Port system documentation updated
Replies: 43
Views: 6839

Re: Port system documentation updated

Not sure if I fully follow you, but just recently I wrote again some Z80 code (after ~21 years of hiatus), to test some Next abilities... And if using `out (c),a` vs `otir` vs `out (nn),a` counts for you as "different", then I already managed to break your rule on about ~500 lines of my new code (us...