### Author Topic: What are you working on at the moment?  (Read 138809 times)

0 Members and 1 Guest are viewing this topic.

#### Rbz

• Founder Member
• Posts: 2717
• Karma: 484
##### Re: What are you working on at the moment?
« Reply #780 on: August 11, 2018 »
@boogop: This is an interesting piece of asm code, and I've tried to convert it to C and I got this result below.
Not exactly sure if it is correctly but it seems to be working.

Quote
short bx[16384] = {};

short cx = 0x783F;
char ch = 0;
short si = 0;
short ax = 0;
short dx = 0;

for(int i = 0; i < 16384; i++)
{
ax = -39;//65497;
dx = (cx * ax) >> 16;
si += dx;
cx += si;

ch = (cx >> 8 ) & 0xFF;
bx[ i ] = ch;
short b = bx[ i ];
bx[ i ] = b >> 1;

printf("%d    ", bx[ i ]);
}

If you want to investigate further please open a new thread for it on a proper coding section, I'm sure people will like to try this.

I've attached part of the numbers I got and an image of those points plotted on x coordinate.
« Last Edit: August 11, 2018 by Rbz »
Challenge Trophies Won:

#### inc.

• Contact me @ skype: a5recordings
• Amiga 1200
• Posts: 260
• Karma: 18
• I SPEAK ENGLISH & GERMAN as good as i can :D
##### Re: What are you working on at the moment?
« Reply #781 on: August 15, 2018 »
i can provide a sinus generator for windows:

it calculate your values and give a preview. the output can be exported for further usage in C or C++. I used this Gen. back in the late nineties for Playstation 1 C++ coding for Sinus Scrollers and effects / wobbler
currently coding in PureBasic: GLSL Shader Maker & Editor Tool for further Demo coding usage

#### aNdy

• C= 64
• Posts: 63
• Karma: 27
##### Re: What are you working on at the moment?
« Reply #782 on: August 18, 2018 »
Continuing my learning in PureBasic, so converting to PC a Cosine game called 'Blok Copy' that has previously been released on C64, C64DTV, Atari 8bit, Commodore PET.

Main engine all functioning, just working out a way to animate the blocks which involves building sprites on the fly and then moving them.  Getting there...

#### Kirl

• Senior Member
• Pentium
• Posts: 1199
• Karma: 229
##### Re: What are you working on at the moment?
« Reply #783 on: September 28, 2018 »
Wow, Rbz and inc, those drawings are awesome!

Cool project aNdy, i love all things retro.

Im working on nothing atm, nothing to report... Thanks for a bit of inspirational zest!
www.kirl.nl
Challenge Trophies Won: