Search found 119 matches

by Stefan123
Fri Jul 14, 2017 5:31 pm
Forum: Software
Topic: XeO3 Layer 2 scroll demo source
Replies: 13
Views: 3358

Re: XeO3 Layer 2 scroll demo source

Mike, how do you control the scroll direction, i.e. left or right when scrolling horizontally and up or down when scrolling vertically? I don't think this is clear from the I/O port system description: (R/W) 22 => Layer2 Offset X bits 7-0 = X Offset (0-255) (Reset to 0 after a reset) (R/W) 23 => Lay...
by Stefan123
Thu Jul 13, 2017 8:38 pm
Forum: News
Topic: DMA Sound Wav File Playback!
Replies: 20
Views: 5951

Re: DMA Sound Wav File Playback!

Amazing!!! How are the WAV files played? Using the AY/SID/FM chips or with a DAC?
by Stefan123
Thu Jul 13, 2017 8:27 pm
Forum: Software
Topic: Layer2 emulated on ZEsarUX
Replies: 16
Views: 3701

Re: Layer2 emulated on ZEsarUX

Correction: In my previous post I said that I could not get memset() and memcpy() to work with the layer 2 screen. That is not correct, memcpy() does work (as you would expect). I had several versions of my test program and I accidentally pointed ZEsarUX to the wrong TAP file when testing memcpy().....
by Stefan123
Thu Jul 13, 2017 4:32 pm
Forum: Software
Topic: Layer2 emulated on ZEsarUX
Replies: 16
Views: 3701

Re: Layer2 emulated on ZEsarUX

Thanks seedy1812 for your observation. Silly mistake of me. What I meant was the following for painting all paged-in 64 lines in green (and which works): for (y = 0; y < 64; y++) { for (x = 0; x < 256; x++) { z80_bpoke(x + y * 256, 20); } } I'm still not sure why memset() and memcpy() doesn't work. ...
by Stefan123
Thu Jul 13, 2017 3:26 pm
Forum: Software
Topic: Layer2 emulated on ZEsarUX
Replies: 16
Views: 3701

Re: Layer2 emulated on ZEsarUX

Okay I understand, you can only write to the paged in layer 2 screen memory, not read it. Let's say you would want to write a blit function that doesn't only overwrite the destination pixels but also perform a logical operation between the source and destination pixels. How would you do that on the ...
by Stefan123
Thu Jul 13, 2017 1:53 pm
Forum: Software
Topic: Layer2 emulated on ZEsarUX
Replies: 16
Views: 3701

Re: Layer2 emulated on ZEsarUX

I have been playing with the preliminary layer2 support in ZEsarUX using C and z88dk. There is one thing I don't understand. If you page in one of the sections (top/middle/bottom) of the layer2 screen for writing in the RAM area 0 to 16383, are you only allowed to write this memory, not read it? If ...
by Stefan123
Mon Jul 10, 2017 5: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

Great, I assume port 0x5B can then be used with the otir instruction :-)
by Stefan123
Sun Jul 09, 2017 2:27 pm
Forum: Software
Topic: NEW ZEsarUX Beta with Layer2 support
Replies: 20
Views: 4910

Re: NEW ZEsarUX Beta with Layer2 support

Hi chernandezba, Thanks for the latest ZEsarUX update. I'm looking forward to play with the new preliminary layer 2 support :-) However, the latest snapshot version from 2017-07-08 has problems when the sprite pattern port 0x55 is used as an 8-bit port in z88dk. Note: The sprite palette port 0x53 an...
by Stefan123
Fri Jul 07, 2017 9:55 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 got a bit eager and built ZEsarUX myself according to the instructions at https://sourceforge.net/p/zesarux/code/ci/master/tree/INSTALLWINDOWS Good to hear that the generated code looks okay. I did suspect that the problem was with ZEsarUX but I wanted a second opinion. Yes, inlining z80_otir() wo...
by Stefan123
Fri Jul 07, 2017 6:00 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 read that ZEsarUX (latest version built from source code) now treats the 0x53 (sprite palette port), 0x55 (sprite pattern port) and 0x57 (sprite attributes port) ports as 8-bit ports so we should now be able to define them as 8-bit SFR ports in z88dk as below (i.e. the __banked attribute is remove...