Author Topic: MLC 68k  (Read 24306 times)

0 Members and 1 Guest are viewing this topic.

Offline bfr

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 819
  • Rating: +4/-0
    • View Profile
    • bfr's website
MLC 68k
« Reply #45 on: December 13, 2006, 10:51:00 am »
MLC 68K will pretty much have everything that xLIB has.  :)smile.gif

tenniskid493

  • Guest
MLC 68k
« Reply #46 on: December 13, 2006, 05:44:00 pm »
very cool work bfr...keep up the progress

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
MLC 68k
« Reply #47 on: December 14, 2006, 01:45:00 pm »
that would be amazing, are u planning to have sprite clipping?
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline bfr

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 819
  • Rating: +4/-0
    • View Profile
    • bfr's website
MLC 68k
« Reply #48 on: December 15, 2006, 11:33:00 am »
xlibman:  probably.

Until winter break for me starts (which will be 3 days before Chirstmas or something like that), progress on MLC will most likely be slow.  

Liazon

  • Guest
MLC 68k
« Reply #49 on: December 15, 2006, 11:57:00 am »
lucky for you, I hope to see progress continue at this rate or faster.

x.x as for me, it's still a week before break and I've already got more school work due the day after than I can chew. x.x

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
MLC 68k
« Reply #50 on: December 15, 2006, 02:02:00 pm »
christmas homework should be banned from the world, its christmas time after all x.x
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline bfr

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 819
  • Rating: +4/-0
    • View Profile
    • bfr's website
MLC 68k
« Reply #51 on: December 22, 2006, 11:12:00 am »
The MLC integer parser is almost complete.  Integers can be added, subtracted, multiplied, divided, and exponents are even availible.  What isn't done, yet?  I still might add roots, and I definitely have to make it so that integer variables can be added/subtracted/multipled... to each other, not just constants.

elfprince13

  • Guest
MLC 68k
« Reply #52 on: December 22, 2006, 01:17:00 pm »
I can teach you how to calculate square roots by -h-a-n-d- code.

Offline bfr

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 819
  • Rating: +4/-0
    • View Profile
    • bfr's website
MLC 68k
« Reply #53 on: December 22, 2006, 01:20:00 pm »
I actually have a few (but not very good) formulas/ways to calculate the square root of a number.

Could you teach me your method?  

elfprince13

  • Guest
MLC 68k
« Reply #54 on: December 22, 2006, 02:10:00 pm »
sure, I assume you are familiar with binary searching a sorted array?

if not you should go read up on it. otherwise here's some fairly easy to translate java code for it (assuming you have floating point capability.....if you dont care about the decimals it should work anyway.)

c1-->
CODE
ec1public static double sqrt(double value){
 

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
MLC 68k
« Reply #55 on: December 22, 2006, 04:01:00 pm »
that sound nice, I hope to see it in action soon
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline bfr

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 819
  • Rating: +4/-0
    • View Profile
    • bfr's website
MLC 68k
« Reply #56 on: December 23, 2006, 02:14:00 pm »
Thanks, elfprince13.  I'll try to add square root capabilities soon.

I've added full support for integers and floating-point numbers.  Both of their ranges are huge and accessing them and storing values to them is really fast.  The range for floating-point numbers is 1e-999 to 9.999999999999999e999 the value for integers is -2147483648 to 2147483647.  These ranges should be more than enough.  :)smile.gif

The next variable types I'm going to add with the new VAT system are probably going to be "pictures" and strings.

EDIT:  I've come up with an idea, which I think is pretty awesome.  I'm going to allow MLC programs to manipulate the VATs in all sorts of awesome ways, to allow the VAT to act as an array, and to allow pseudo-pointers and all sorts of crazy stuff (there will be normal arrays and regular pointers to be backwards-compatible with MLC 86).  Here's some pseudo-code to demonstrate what I mean (kind of a combination of C and MLC and a made-up language :Ptongue.gif):

%int=534  // First VAT item
%int2=745 // Second VAT item
IntVatItem(1).name="int2" // Change first VAT item's name to int2
IntVatItem(2).name="int" // Change first VAT item's name to int
%int3=55555; // Make third VAT item
// Time to use the VAT as an array
for(%a=0;%a<3;%a++){
IntVatItem(%a).value=%a
if(IntVatItem(%a).name="int2"){
display("Name is int2")
}
}

Offline bfr

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 819
  • Rating: +4/-0
    • View Profile
    • bfr's website
MLC 68k
« Reply #57 on: December 29, 2006, 07:04:00 am »
Here's the new MLC website (it's under construction though...):

http://bfr.tifreakware.net/cgi-bin/mlc.cgi

(My new website is at http://bfr.tifreakware.net)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
MLC 68k
« Reply #58 on: December 31, 2006, 09:25:00 am »
wow nice so far, you need to update some of the links tho. Omnimaga still says RPG headquarter while it is also a programming group now and it still go to the old URL
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

elfprince13

  • Guest
MLC 68k
« Reply #59 on: December 31, 2006, 01:27:00 pm »
hehe, and its no longer really multi calc either :Ptongue.gif just a fun new language. anyway, awesome work, do you have any sort of functional demo?