Search found 284 matches

by varmfskii
Sun Apr 26, 2020 1:23 pm
Forum: Showcase
Topic: Simple hex dumper with source
Replies: 10
Views: 1645

Re: Simple hex dumper with source

With some of the app targets for the zx next, malloc in z88dk doesn't work. It will always work but you may have to define where the malloced memory comes from. The default is to take it from the end of the program to the bottom of the stack and that makes sense for most programs and makes it very ...
by varmfskii
Fri Apr 24, 2020 10:04 pm
Forum: Showcase
Topic: Simple hex dumper with source
Replies: 10
Views: 1645

Re: Simple hex dumper with source

With some of the app targets for the zx next, malloc in z88dk doesn't work. The only time build times are slow is when you use aggressive optimization options.
by varmfskii
Tue Apr 21, 2020 3:01 pm
Forum: Basic
Topic: Question about PALETTE FORMAT and PAPER
Replies: 5
Views: 854

Re: Question about PALETTE FORMAT and PAPER

There should be one more that I left out, 255, which will give you 8 bits for foreground (ink 0-255) and none for paper (every area on the screen will use the same paper colour, palette index 128). The BASIC command just interacts with nextreg $42 (66).
by varmfskii
Mon Apr 20, 2020 1:55 pm
Forum: Basic
Topic: Switching between 2 BMPs from memory
Replies: 11
Views: 1377

Re: Switching between 2 BMPs from memory

It is worth a try. Nearly everything I have done with the ZX Next so far has been direct with the hardware (asm/C) with a little (when necessary) messing with OS calls. I can help you with how the hardware works, but, I'm afraid when things get really BASIC specific, I am very weak.
by varmfskii
Mon Apr 20, 2020 12:15 am
Forum: Basic
Topic: Question about PALETTE FORMAT and PAPER
Replies: 5
Views: 854

Re: Question about PALETTE FORMAT and PAPER

If I understand what basic is doing here. You are setting so each attribute is interpreted as 7 bits for foreground (ink) and 1 bit for background (paper). So, if you want more than 2 paper colours, you need to use a different value for PALETTE FORMAT. 63 will allow you 0-3, 31 0-7, 15 0-15, 7 0-31,...
by varmfskii
Sat Apr 18, 2020 9:40 pm
Forum: Off-Topic
Topic: The ZX Spectrum Next project now seems to end
Replies: 7
Views: 1969

Re: The ZX Spectrum Next project now seems to end

I like you have a bare board, I can be patient.
by varmfskii
Sat Apr 18, 2020 9:20 pm
Forum: Basic
Topic: Switching between 2 BMPs from memory
Replies: 11
Views: 1377

Re: Switching between 2 BMPs from memory

Depends on when it was written and whether it has been modified. After all there is a default location for layer 2.

If that is the case it is load, change registers to new location, load. No need to copy data at all.
by varmfskii
Sat Apr 18, 2020 7:59 pm
Forum: Off-Topic
Topic: The ZX Spectrum Next project now seems to end
Replies: 7
Views: 1969

Re: The ZX Spectrum Next project now seems to end

Well, I haven't even gotten confirmation of shipping. Of course, while I am a lower backer number than you, I live in another part of the world.
by varmfskii
Sat Apr 18, 2020 7:57 pm
Forum: Basic
Topic: Switching between 2 BMPs from memory
Replies: 11
Views: 1377

Re: Switching between 2 BMPs from memory

If I was going to do this, assuming that I for some reason restricted myself to the sources being BMP files and using .bmpload to load them in memory, , I would write a routine that would write a routine that would page in each part of the source and destination areas (16k at a time) and perform DMA...
by varmfskii
Thu Apr 16, 2020 8:01 pm
Forum: General
Topic: Persistence of Layer2 after reset
Replies: 10
Views: 1958

Re: Persistence of Layer2 after reset

Two possibilities. 1) assume people cleaned up after themselves (it will normally be in starting config). 2) assume that everything that matters is going to be set wrong and act accordingly. (2 is safer, but more work, of course).