Search found 51 matches

by andydansby
Mon Sep 19, 2022 9:45 am
Forum: MSX, SVI, TMS99x8 and Sega Master System
Topic: Arkos Tracker 2 in z88dk
Replies: 53
Views: 15622

Re: Arkos Tracker 2 in z88dk

I'm not sure how useful this will be to you, but I did finally cover Arkos 2 at:
https://zxspectrumcoding.wordpress.com/ ... lesson-13/
by andydansby
Wed Oct 20, 2021 6:03 am
Forum: MSX, SVI, TMS99x8 and Sega Master System
Topic: Arkos Tracker 2 in z88dk
Replies: 53
Views: 15622

Re: Arkos Tracker 2 in z88dk

derekfountain wrote: Fri Oct 08, 2021 10:31 am I have one of the demo AT2 tunes working from a z88dk C program. I used rasm and the binary blob method, so not the ideal approach.

I've put a (Linux) project here:

https://github.com/derekfountain/z88dk- ... r2-example

if it's of any use to anyone.
Really nice work.
by andydansby
Wed Oct 20, 2021 6:01 am
Forum: Sinclair ZX
Topic: Custom linker memory map howto
Replies: 3
Views: 2782

Re: Custom linker memory map howto

I did briefly touch on this @ https://zxspectrumcoding.wordpress.com/ ... -lesson-4/. This is of course SCCZ80. The mmap is a pretty powerful tool.
by andydansby
Mon Oct 04, 2021 2:01 am
Forum: MSX, SVI, TMS99x8 and Sega Master System
Topic: Arkos Tracker 2 in z88dk
Replies: 53
Views: 15622

Re: Arkos Tracker 2 in z88dk

A binary blob is jargon for a chunk of data or code that's not native to the compiling program. It's usually, but not always, loaded via asm using a link into assembler with something like. This is just a quick overview, not a step by step. In an assembler file, place a bit of code like: BINARY &quo...
by andydansby
Sat Oct 02, 2021 9:26 pm
Forum: MSX, SVI, TMS99x8 and Sega Master System
Topic: Arkos Tracker 2 in z88dk
Replies: 53
Views: 15622

Re: Arkos Tracker 2 in z88dk

Arkos Tracker 2 has been on my todo list for a while, but I just haven't gotten around to it. Best guess for it now is to compile it with the built in compiler and include it in an asm file as a binary blob with known entry points.
by andydansby
Sat Oct 02, 2021 9:06 pm
Forum: Sinclair ZX
Topic: RAGE1: New Adventure Game Engine for ZX Spectrum
Replies: 42
Views: 11045

Re: RAGE1: New Adventure Game Engine for ZX Spectrum

Nice. I really enjoy your work, looking forward to seeing your tutorial. When you pop up the tutorial, I'll link up to it from my blog. Love to see work like this.

andy
by andydansby
Sat Oct 02, 2021 1:54 pm
Forum: Sinclair ZX
Topic: Cubic Bezier Curves
Replies: 16
Views: 7841

Re: Cubic Bezier Curves

I downloaded those files and started playing around. Interesting examples. My opinion is that the WAV files are a bit complex to be playing on the Speccy without them sounding really distorted. It appears that to clean up the files and recompile them we need to run voicenc https://sites.google.com/s...
by andydansby
Thu Sep 30, 2021 9:48 am
Forum: Sinclair ZX
Topic: Cubic Bezier Curves
Replies: 16
Views: 7841

Re: Cubic Bezier Curves

@cborn
If interesting and customizable sound effects is what you are interested in, you may want to check out the Arkos 2 tracker.https://www.julien-nevo.com/arkostracker/ . It has quite a bit of flexibility in the software, and the ability to create interesting effects.
by andydansby
Wed Sep 29, 2021 11:07 am
Forum: Sinclair ZX
Topic: Cubic Bezier Curves
Replies: 16
Views: 7841

Re: Cubic Bezier Curves

I am not entirely quite sure what I just saw, as the video had no real context, so I had to google to find it. https://dinisnoise.org/?what=about Looks interesting, but I this is a modern PC application, but the noises it makes is really interesting. I don't this that this could be a native Z80 prog...
by andydansby
Tue Aug 24, 2021 12:55 pm
Forum: Sinclair ZX
Topic: how pass a #define from c to asm? - newbie question
Replies: 12
Views: 5353

Re: how pass a #define from c to asm? - newbie question

#define creates a C preprocessor macro definition, and passing such a thing to the assembler doesn't make a lot of sense. That said, I did spent quite a while trying to find a way to share a simple numerical value between C and ASM files. There might be a way to do it with pragmas: https://www.z88d...
by andydansby
Sun Aug 15, 2021 1:50 pm
Forum: Sinclair ZX
Topic: RAGE1: New Adventure Game Engine for ZX Spectrum
Replies: 42
Views: 11045

Re: RAGE1: New Adventure Game Engine for ZX Spectrum

Nice, I am planning on looking at your engine in the near future, trying to get a kid off to college and set him up in an apartment the next weeks. So ugggg, hardly time for much..

Nice sample game BTW.
by andydansby
Sun Aug 15, 2021 1:45 pm
Forum: Sinclair ZX
Topic: Compile and link data to a predetermined address
Replies: 8
Views: 5014

Re: Compile and link data to a predetermined address

A simpler C-plan would involve generating relocation data with -Cl -reloc-info, parsing the generated .reloc file and patching the binary file: just adding the 0x5b00 base address to the value found at each relocation address extracted from the relocation file. Some kind of poor-man's linking. The ...
by andydansby
Sat Jun 26, 2021 12:21 pm
Forum: Sinclair ZX
Topic: Memory banking in 128K model
Replies: 20
Views: 9818

Re: Memory banking in 128K model

jorgegv wrote: Sun Jun 20, 2021 8:34 am Mmmm thanks! From the example it seems that using banking is dead easy. Also I'll need to check not onl code pointers, but data as well. My main need for banking now is due to data, not code.

My current setup fpr my engine is newlib+sdcc, but I'll dig into it. Thanks again.

J.
by andydansby
Sat Jun 26, 2021 11:27 am
Forum: Sinclair ZX
Topic: Cubic Bezier Curves
Replies: 16
Views: 7841

Re: Cubic Bezier Curves

Andy, I thought the (portable) classic graphics library was accessible from the "new" lib but I was wrong. Sorry for the misleading comment. The classic graphics library would certainly be nice to use with the new library. At one point Allen told me the reason of why that is but for the l...
by andydansby
Sat Jun 19, 2021 1:05 pm
Forum: Sinclair ZX
Topic: Memory banking in 128K model
Replies: 20
Views: 9818

Re: Memory banking in 128K model

At the time that I wrote that article, there is not an in-built function, all done manually. I'm still working at 1.99C so something might have change in later versions of Z88DK. I wrote that article at the time with Mr. Albright's help. As for the setup, it's a bit of a pain, but not horrible. I've...
by andydansby
Sat Jun 19, 2021 11:15 am
Forum: Sinclair ZX
Topic: Cubic Bezier Curves
Replies: 16
Views: 7841

Re: Cubic Bezier Curves

cborn wrote: Fri Jun 18, 2021 11:03 pm Can you make a voice on AY with it? it would be a different type off "enveloppe".
I would normally say no to that question, but anytime I do, somebody proves me wrong.
by andydansby
Thu Jun 17, 2021 9:36 pm
Forum: Sinclair ZX
Topic: Cubic Bezier Curves
Replies: 16
Views: 7841

Re: Cubic Bezier Curves

I am certainly open to suggestions, I don't know any other way. Since the technique that I'm using works I have stuck with it for several test projects.
by andydansby
Thu Jun 17, 2021 10:01 am
Forum: Sinclair ZX
Topic: Cubic Bezier Curves
Replies: 16
Views: 7841

Re: Cubic Bezier Curves

Just added Forward Differencing Bezier. It's zippy fast
by andydansby
Thu Jun 17, 2021 12:43 am
Forum: Sinclair ZX
Topic: Cubic Bezier Curves
Replies: 16
Views: 7841

Cubic Bezier Curves

I don't know how many will find this interesting, but I've released a new Z88dk mini project to calculate Bezier Curves. https://github.com/andydansby/ZX_bezier_curves This does not have any fancy interfaces, you manually enter your P0 - P3 points and then press Q - W - E - R or T to draw the Cubic ...
by andydansby
Sat May 08, 2021 12:50 pm
Forum: Misc
Topic: Fast Sine calculation
Replies: 3
Views: 3397

Fast Sine calculation

While playing around with the Z88dk Sine function, I started to try to search for a faster algorithm. I found on a defunt message board (through archive.org) a pretty faster alternative Sine function that operates nearly twice the speed of the Z88dk version. So, I wanted to post this to share. Enjoy...
by andydansby
Sat Feb 03, 2018 12:36 pm
Forum: Sinclair ZX
Topic: A Star in algorithms.h
Replies: 1
Views: 2719

A Star in algorithms.h

Having trouble understand how to use this particularly useful function. Are there any coding examples on using it on a tiled array? Also, assuming that this would be called during the enemy placement loop, what is delay and memory usage it would introduce into the game if placed in? It seems that al...
by andydansby
Sat Feb 03, 2018 12:29 pm
Forum: Sinclair ZX
Topic: having problems with Random numbers
Replies: 13
Views: 11003

I ended up using a macro and it works great with a pretty small footprint static unsigned short jz,jsr=5;//used in randomizer in my global variables with the macro being #define SHR3 (jz=jsr, jsr^=(jsr<<7), jsr^=(jsr>>5), jsr^=(jsr<<3),jz+jsr) calling the random number via. decision = (SHR3 % 4);//o...
by andydansby
Sun Jan 28, 2018 10:04 pm
Forum: Sinclair ZX
Topic: having problems with Random numbers
Replies: 13
Views: 11003

Well, I am certainly getting a compile now. I'm going to have to do further troubleshooting on the code, I am getting an immediate crash on menu selection that I did not get when using the older version of Z88dk. My feeling is that is has to do with the function pointer. I'll try to reformulate the ...
by andydansby
Sun Jan 28, 2018 3:56 pm
Forum: Sinclair ZX
Topic: having problems with Random numbers
Replies: 13
Views: 11003

Well, I just upgraded to the latest Z88dk and boy did that compile get out of hand real quick. Dom, you said that you were able to get it to compile with a few bug fixes, any pointers (love that pun) on what I should address or do you have a copy of the bug fixes you did on the code I posted, so my ...
by andydansby
Sat Jan 27, 2018 8:13 pm
Forum: Sinclair ZX
Topic: having problems with Random numbers
Replies: 13
Views: 11003

BTW, I do want to say the sources for the random number macros were adapted from http://www.ciphersbyritter.com/NEWS4/RANDC.HTM I adjust the shifting using http://www.arklyffe.com/main/2010/08/29/xorshift-pseudorandom-number-generator/ as a bit of guidance, just want to give where credit is due on t...