Search found 119 matches

by Stefan123
Thu Aug 17, 2017 8:42 pm
Forum: Compilers (Boriel, Z88dk etc)
Topic: C API for Next hardware sprites
Replies: 34
Views: 13347

Re: C API for Next hardware sprites

Still, it shouldn't be too much longer and we can use real hardware!
I bought the accelerated version so I have to patiently wait until January... Now I regret not buying the dev board as well :(
by Stefan123
Thu Aug 17, 2017 8:37 pm
Forum: Compilers (Boriel, Z88dk etc)
Topic: C API for Next hardware sprites
Replies: 34
Views: 13347

Re: C API for Next hardware sprites

Now it works in both ZEsarUX and CSpect :) I have updated the source code and the prebuilt libraries on GitHub. The problem was in the set_sprite_pattern() function. This function used z80_otir() for passing the sprite pattern to the sprite pattern port 0x5B. This works fine in ZEsarUX but not in CS...
by Stefan123
Thu Aug 17, 2017 3:01 pm
Forum: Compilers (Boriel, Z88dk etc)
Topic: C API for Next hardware sprites
Replies: 34
Views: 13347

Re: C API for Next hardware sprites

I used ZEsarUX when developing and testing the sprite API. I have just started to use CSpect of lately when playing with layer 2 screen features not yet available in ZEsarUX. I will test the sprite API with CSpect tonight or tomorrow. If you only see a black rectangle, I would suspect that the probl...
by Stefan123
Mon Aug 14, 2017 1:02 pm
Forum: Compilers (Boriel, Z88dk etc)
Topic: Z88DK :- ZX Next Target (+zxn)
Replies: 19
Views: 8320

Re: Z88DK :- ZX Next Target (+zxn)

Great work! I'm impressed that you have already added the Next-specific Z80 instructions to the Z88DK's assembler, you're really fast at adding new features. The new ESXDOS integration in Z88DK is a pleasure to use. I have used Z88DK now for a while and I can really recommend it as a way of quickly ...
by Stefan123
Tue Jul 25, 2017 2:56 pm
Forum: Compilers (Boriel, Z88dk etc)
Topic: C API for Next hardware sprites
Replies: 34
Views: 13347

Re: C API for Next hardware sprites

The C API for Next hardware sprites at https://github.com/stefanbylund/zxnext_sprite has now been updated to use the revised sprite pattern port 0x5B and now uses the otir instruction in the set_sprite_pattern() function.
by Stefan123
Wed Jul 19, 2017 10:09 am
Forum: Compilers (Boriel, Z88dk etc)
Topic: C API for Next hardware sprites
Replies: 34
Views: 13347

Re: C API for Next hardware sprites

Thanks for the detailed explanations. I will download the latest z88dk snapshot and test the intrinsic_outi() and intrinsic_ldi() functions for hardware sprites and layer 2 screen manipulations.
by Stefan123
Tue Jul 18, 2017 6:21 pm
Forum: Compilers (Boriel, Z88dk etc)
Topic: C API for Next hardware sprites
Replies: 34
Views: 13347

Re: C API for Next hardware sprites

Thanks for the update :-) Is intrinsic_outi() faster than z80_otir() when, for example, transferring 256 bytes? Is it faster even if z80_otir() would be inlined? Will using intrinsic_outi() make the code size larger? I assume that intrinsic_ldi() would be a good fit for implementing a blit function ...
by Stefan123
Sun Jul 16, 2017 12:23 pm
Forum: Showcase
Topic: Fun with Next Features
Replies: 9
Views: 4145

Re: Fun with Next Features

Nice :-)
by Stefan123
Sat Jul 15, 2017 9:46 pm
Forum: Software
Topic: XeO3 Layer 2 scroll demo source
Replies: 13
Views: 3358

Re: XeO3 Layer 2 scroll demo source

Aha, that was something else :-) I didn't realize that scrolled out pixels would reappear automagically on the other side.
by Stefan123
Sat Jul 15, 2017 9:11 pm
Forum: Software
Topic: XeO3 Layer 2 scroll demo source
Replies: 13
Views: 3358

Re: XeO3 Layer 2 scroll demo source

Okay, so it makes sense to think of this byte as a signed value where 1 to 127 scrolls that many pixels in one direction and -1 to -128 scrolls that many pixels in the opposite direction.