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

0 Members and 1 Guest are viewing this topic.

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2689
  • Karma: 483
    • View Profile
    • http://www.rbraz.com/
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:

Offline inc.

  • Contact me @ skype: a5recordings
  • Amiga 1200
  • ****
  • Posts: 260
  • Karma: 16
  • I SPEAK ENGLISH & GERMAN as good as i can :D
    • View Profile
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 :D
currently coding in PureBasic: GLSL Shader Maker & Editor Tool for further Demo coding usage

Offline aNdy

  • ZX 81
  • *
  • Posts: 24
  • Karma: 2
    • View Profile
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...