Author Topic: [Project] BASIC ReCode  (Read 14286 times)

0 Members and 3 Guests are viewing this topic.

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
[Project] BASIC ReCode
« on: November 11, 2010, 10:53:52 pm »
I have already unveiled this project on TIBD and I am liking it enough to post it here. I started this back near the end of June, but after a few days I finally came across something called Axe Parser. I thought Axe was pretty cool and was pretty far along compared to my start of a programming language, so I put it aside. Then I started thinking. Axe doesn't actually execute the code it compiles, which is what mine did. Mine was an interpreted language whereas Axe actually compiled it into an assembly program. Axe has the advantage of speed and the fact that it is pretty far along in development, whereas mine has the advantage of using less memory. I just checked my computer yesterday and it seems that I have deleted everything except one random file which detailed the first few commands. Today I started over and I made the basic outline of the program and I made the Pause command. The Pause in my original program was very similar to the one in Axe and I did not change that.

And for those who are curious, yes it is in hex at the moment. I have got two small calls in their mnemonic form, I will work on the rest when I have time (so right now).

prgmA is the program
prgmB is the example use (not really much of an example)

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: [Project] BASIC ReCode
« Reply #1 on: November 11, 2010, 11:01:36 pm »
Seems interesting. What is going to be the focus for this language (like Axe is game oriented)? Or what is it going to look like? It seems interesting though, can't wait to see what this becomes :)
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: [Project] BASIC ReCode
« Reply #2 on: November 11, 2010, 11:02:26 pm »
This sounds similar to stuff like xlib, am I right?

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: [Project] BASIC ReCode
« Reply #3 on: November 11, 2010, 11:03:57 pm »
I think it's going to be more like Axe where it's an actual language.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: [Project] BASIC ReCode
« Reply #4 on: November 12, 2010, 12:51:29 am »
Sorry I am late to getting back to y'all, I am having to fix the charger on my computer, but yes, it will be an actual language instead of a library.

Offline shmibs

  • しらす丼
  • Administrator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2132
  • Rating: +281/-3
  • try to be ok, ok?
    • View Profile
    • shmibbles.me
Re: [Project] BASIC ReCode
« Reply #5 on: November 12, 2010, 01:17:11 am »
coolio!
what about support for the calling of asm/axe progs? if so and this turns out well it could act as a replacement for basic+libs entirely/save people a lot of space who would otherwise be writing pure asm/axe.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: [Project] BASIC ReCode
« Reply #6 on: November 12, 2010, 01:54:51 am »
Also, couple questions. Are you going to eventually make this an app or are you going to keep it as a program? Also, how fast will it be?
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: [Project] BASIC ReCode
« Reply #7 on: November 12, 2010, 01:57:22 am »
Will this be open source (or alternatively, will you make the source available)?
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [Project] BASIC ReCode
« Reply #8 on: November 12, 2010, 03:58:35 am »
Interesting. Just make sure to start with the small stuff first then the larger stuff afterward and try to make sure the interpreter is not too large. Seems interesting. One thing I like with BASIC is that code is smaller than Axe, but data is ridiculously large.

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: [Project] BASIC ReCode
« Reply #9 on: November 12, 2010, 09:40:31 am »
Again, sorry to be late responding.
-I can throw in the ability to call assembly programs, but for now only up to 768 byte of code.
-I plan to make it an app, but for now it is a program. It takes a short time opening the asm program (like all asm programs), but while it is actually interpreting the code, it is just as fast as assembly (because it is). If I made a command equivalent to an OS command, it would be faster.
-For now, the source is in hex (because that is how I am programming), but I am slowly converting it to mnemonics when I get the chance.
-I definitely plan to start small and then I will build my way up. I think I will wait to add crazy things like labels and jumps and calls.

Actually, I just thought of this with that last one... I think I am going to make calls end with "End" and the code end with "Stop" because I only need to change one byte of the code for that.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [Project] BASIC ReCode
« Reply #10 on: November 12, 2010, 10:36:40 am »
Again, sorry to be late responding.
-I can throw in the ability to call assembly programs, but for now only up to 768 byte of code.
-I plan to make it an app, but for now it is a program. It takes a short time opening the asm program (like all asm programs), but while it is actually interpreting the code, it is just as fast as assembly (because it is). If I made a command equivalent to an OS command, it would be faster.
-For now, the source is in hex (because that is how I am programming), but I am slowly converting it to mnemonics when I get the chance.
-I definitely plan to start small and then I will build my way up. I think I will wait to add crazy things like labels and jumps and calls.

Actually, I just thought of this with that last one... I think I am going to make calls end with "End" and the code end with "Stop" because I only need to change one byte of the code for that.

YAY coding in Hex is super hard, you are one of the few who can make games and stuff using HEX 100%, though.

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: [Project] BASIC ReCode
« Reply #11 on: November 12, 2010, 02:56:30 pm »
I think there is a small bug when dealing with commas. I am going to test it (I think I just need a Inc HL), so the Disp x,y,<<String>> idea I had isn't working for me. But, I have made it so that you can store numbers to Ans! ...Which isn't very useful, yet. It would be better if I could make use of Ans instead... Anyway, I am not going to upload it yet, but after I get a few more commands in, I will. I was working on it during Calc, so I didn't get very far.

Offline tloz128

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 324
  • Rating: +58/-6
  • I feel asleep.
    • View Profile
Re: [Project] BASIC ReCode
« Reply #12 on: November 12, 2010, 04:43:04 pm »
This sounds really interesting. And also, you write asm in hex? That's awesome! I'm an unbelievably huge noob at asm so I'm wondering how would one go about doing that?
Naaa... Na Nah Na Nana Na Nah... Hey Jude!

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: [Project] BASIC ReCode
« Reply #13 on: November 12, 2010, 04:45:11 pm »
well, I learned BASIC first, so if you need any help I can try to give the BASIC or English behind assembly :D I started playing with Celtic 3 and modifying data before I really figured it all out.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: [Project] BASIC ReCode
« Reply #14 on: November 13, 2010, 01:32:10 am »
Wow, you program Assembly in hex? That is seriously badass! :D How many programmers can say they program practically in binary ^^