thought,trashing,masasm,masinterp,source,star
Quick Search for:  in language:    
thought,trashing,masasm,masinterp,source,star
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
C/ C++ Stats

 Code: 485,557 lines
 Jobs: 1,067 postings

 
Sponsored by:

 

You are in:

 
Login



Latest Code Ticker for C/ C++.
mini math programs
By Johno on 10/24


The matrix
By Alcodes on 10/24


Palindrome Finder
By Jonathan Volk on 10/24


processor identification and info
By Razvan Petrescu on 10/24


Login Interface using ncurses for Linux
By Suvoraj Biswas on 10/24


Matrix Encryption Algorithm
By Tony Fecteau on 10/23


SMALL TEXT GAME
By cJ! on 10/23


stod
By Mark Jundo P. Documento on 10/23


Basic Loops
By richard james on 10/23


Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

Master Assembly Script Alpha 2

Print
Email
 

Submitted on: 9/5/2001 9:06:49 PM
By: Jared Bruni  
Level: Advanced
User Rating: By 16 Users
Compatibility:C++ (general), Microsoft Visual C++

Users have accessed this article 2712 times.
 

(About the author)
 
     I thought about trashing the old masasm and masinterp source, and starting over, and have decided to not do that until version 2. This is the second alpha of my scripting engine, and is still very far from completion. This alpha includes backslash escape character sequence, the ability to produce your own objects other then just jared.mve, code labels, and a jmp instruction for loop logic. Right now I am working on the virtual stack, and flag registers, for the cmp instruction so until thats complete we can only do forever loops. However alpha 3 will contain all the completed loop logic. This project still has a long way to go until it is completed I say atleast another month and a few thousand more lines. Any suggestions on language features you think I should add or things I should change are greatly appeciated.(I know Im working on the tokenized string rotuine :))..

 
 
Terms of Agreement:   
By using this article, you agree to the following terms...   
1) You may use this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this article from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.


Master Assembly Script ALpha 2









I had alot of thinking to do about this project that Im working, on at first I decided I was going to scrap it and start from scratch, but then I realized I would be wasting a good 4,000 lines of code. So instead,I have decided just to optomize, and fix the code up as much as I can. Major additions to this alpha release is backslash escape character sequence. So you can use \n \r and \b in your strings I am also going to add all the other characters. Also the interpreator allows you to pick out what mve file to execute. Also the constructs of the language have changed each object is layed out as follows

mas object TheObject {
variables
{
}

begin {
start:
println "hello world"
}

end {
stop:
println " goodbye world "
}
}



Within this alpha includes, code lables, and the jmp instruction for loop logic. Right now I am in the proccess of writing the virtual flags register, stack, and calling conventions. Once thats done , then I can implement the cmp instruction for the logic of the loops. Theres still alot to be done, alot to optomize and any suggestions anyone has on improving the application I would enjoy.

List of Exisiting Instructions

add var,var
sub var,var
mul var,var
div var,var
or var,var
xor var,var
and var,var
mov var,var

inc var
dec var
not var

jmp label

smov str,str
scat str,str

input var
iline var
print var
println var


Download Alpha 2

Download MASASM alpha 2
Download MasInterp alpha 2
Download Alpha 2 Compiled Demo

to use the demo, you gotta use the command line, for the masasm assembler to assemble a .mas file into .mve , simply say

masasm example.mas

then run the interp and it will prompt you for a mve file to execute enter the correct path, and it will execute the mve file


Other 278 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this article(in the Advanced category)?
(The article with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
9/5/2001 9:08:27 PM:Jared Bruni
"you tell me thats its evolution, well you know we all want to change the world"
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/5/2001 10:21:06 PM:Jared Bruni
right now I am working on incorperating all the structured programming aspects of the language, and then soon as thats complete, I will work on adding in the object orietned features, like inheritance.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/5/2001 10:22:04 PM:Jared Bruni
it wont be pure object oriented code like Java, but more of a werid hybrid language. After all its just for fun and to practice, and what better way to get better at coding, then to code something complex.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/5/2001 10:50:40 PM:Jared Bruni
"home sweet home"
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/5/2001 10:51:07 PM:Jared Bruni
$ is primative
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/5/2001 10:54:20 PM:Jared Bruni
"learning disabilitys?" -> "pure mind capabilities"
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/5/2001 10:54:52 PM:Jared Bruni
Being creative, rather then just following what everyone else does
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/5/2001 11:31:06 PM:kc
Hey Jared. I think it's awsome your making your own programming language :) My question is how this coincides with c++? Do you use c++ programming to make the compiler? Sorry you probabley have answered this a million and one times but I was just wondering.. Keep up the good work! ~kc~
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/6/2001 7:52:16 AM:Dwarth Vador
This is really impressive code ! I always wonder where you find the time to do so many things. Do you think you will make a compiler for masasm ? Just continue the good job !
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/6/2001 12:54:52 PM:Jared Bruni
Its going to work kind of like how you insert javascript into HTML, well your going to insert MASASM into your C++, with a custom interpreator.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/6/2001 4:21:28 PM:Jared Bruni
It does assemble to its own bytecode, ill add a picture so you can see :)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/6/2001 4:21:55 PM:Jared Bruni
"war is over, so this is christMas?" -John Lennon
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/6/2001 4:24:40 PM:Jared Bruni
"practice and change"
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/6/2001 4:25:35 PM:Jared Bruni
"nothing to kill or die for, no relegion to, imagine all the people, living life in peace "- John Lennon
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/6/2001 4:26:11 PM:Jared Bruni
"and the world will -> be as one"
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/6/2001 4:32:38 PM:Jared Bruni
"will my love grow?"
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/6/2001 4:33:02 PM:Jared Bruni
beyond "my" 1 know's :)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/6/2001 4:33:31 PM:Jared Bruni
forget the $ and give peace a chance come together
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/6/2001 4:35:23 PM:Jared Bruni
"work together, not for yourself with each other"
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/6/2001 4:44:00 PM:Jared Bruni
stand by "me", look beyond and youll C
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/6/2001 4:49:23 PM:Jared Bruni
"I love you"- "now and forever"
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/6/2001 4:54:30 PM:Jared Bruni
"strawberry fields forever" - "nothing is real "
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/6/2001 4:58:36 PM:Jared Bruni
MasterPeace (-<) " 1 Love 1 mind 1 life"
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/6/2001 8:22:39 PM:Jared Bruni
the new version of the interpeator dosent support the old version's .mve files, so dont try and run jared.mve thats in the zip (i accidently left it there), use the assembler to assemble a new file, also I need to make it check and make sure the file you entered is correct, so this version is sort of buggy, and touchy but that will all be fixed
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/6/2001 8:28:07 PM:Jared Bruni
so if you start getting memory access errors, its because I havent put up the checks to prevent errors, in alpha 3 they will be there. So those of you who remember masasm alpha 1, I suggest playing with it, others I suggest just taking a peek at the source, since it is still early in devlopment.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/6/2001 10:29:43 PM:Jared Bruni
"power" (12345) - "peace" - (12345)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 12:25:39 AM:Jared Bruni
"im looking through you, were did you go, I thought I knew you, what did I know ?, you dont look different, but you have changed, I am looking through you, your not the same ! "-the beatles
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 12:26:42 AM:Jared Bruni
"your thinking of me, the same old way, you were above me, but not today "-the beatles
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 12:27:55 AM:Jared Bruni
" point. there is no sadness, only the removal of happiness "-jared bruni
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 12:34:01 AM:Jared Bruni
"moving way far , high right back up sticking sickness , left out in the spot, got away, and they never found a trace went to a place, way out in space flying high above, filling me with love the place i always dreamed of. "- Jared Bruni
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 12:35:32 AM:Jared Bruni
" into the bottomless depth of our eyes outside of the souring sound of our cries shift of the madness, move it all aside forgotten and left, but she is in inside " -Jared Bruni
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 12:36:22 AM:Jared Bruni
Pretty Picture in my Head sweetest memories open wide pain is leaving, anguish subsides wrapped in warmth, wide awake this is my chance, i shall take little tears flowing out lost my pain, perfect route, here i am, i got out, free again singled shout perfect vision eyes in tune, found myself i got lost way to soon symptom reverse, harmless wow forever one into the now
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 12:37:08 AM:Jared Bruni
-"Jared Bruni"-> 1
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 12:38:14 AM:Jared Bruni
guided by spirits from the 4th-> Life is a beautiful MasterPeace
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 12:39:09 AM:Jared Bruni
"far beyond the beast"-> I find peace (123)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 12:41:46 AM:Jared Bruni
"forever the life, i live for who, everything is my anything, and its all just for you and for this, i love you "the 1 I spin is a MasterPeace - Jared Bruni
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 12:42:50 AM:Jared Bruni
"working on a mystery" -> think you can peice the puzzle (peace)?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 12:43:53 AM:Jared Bruni
"love the sounds, i hear today, the little flowers, my mind begins to display the current image, beyond my scope, everything and anything is my hope."-Jared Bruni
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 12:45:03 AM:Jared Bruni
" the depth in sight, so beautiful this life the purpose ,is to recite, you are the love i feel and you are forever with me in the vastness of the night."-Jared Bruni
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 12:45:40 AM:Jared Bruni
straight up spin it -> "looking for your love i found the place lost way out in the middle of space, pressed down into everyplace. "
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 12:46:27 AM:Jared Bruni
"gonna break even" 123
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 12:47:28 AM:Jared Bruni
twisting me into the land of the dead.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 12:48:07 AM:Jared Bruni
the LostSideDead -> the Astral Plane
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 12:48:37 AM:Jared Bruni
"shes got a ticket to ride, but she dont care"
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 12:49:32 AM:Jared Bruni
to be 1
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 12:50:00 AM:Jared Bruni
is to be rolled and spun
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 12:50:41 AM:Jared Bruni
no paper needed
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 12:51:29 AM:Jared Bruni
we are the future-> ask yourself what do you hold ?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 12:52:01 AM:Jared Bruni
to soar, or to cry, to be, or to fry
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 12:52:38 AM:Jared Bruni
you dEcidE
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 12:56:03 AM:Jared Bruni
"money its gas" - pink floyd
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 12:58:40 AM:Jared Bruni
"all we are saying is give peace a chance "-> MasterPeace out :)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 1:07:27 AM:Jared Bruni
truth: " the words I forgot I left out red. LSD is the key, nah its just in my head. yes the answer is that one you said."
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 1:08:30 AM:Jared Bruni
simple 1 mind
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 1:11:13 AM:Jared Bruni
plain and simple
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 1:11:36 AM:Jared Bruni
"evolve and adapt"
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 2:40:54 PM:vbmew
It must have tooks years to create this. On a personal level I think Jared a robot inside the cpu. 5 Novas for me.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 3:11:43 PM:Jared Bruni
I just practice alot, and every time I learn more and more, and it bulids up.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 4:16:32 PM:Jared Bruni
"pushing the barrier, planting seed"
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 8:51:18 PM:Jared Bruni
"seamus"- pink floyd
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 8:52:46 PM:Jared Bruni
1 = Love, 0 = Fear
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 8:53:21 PM:Jared Bruni
"the apple" -> " the fruit of knowledge", " the ship "
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 8:54:40 PM:Jared Bruni
I got 1 word to say " Karma "
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 8:55:08 PM:Jared Bruni
"the eletric transistor " - " the eletric kool aid"
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 8:55:33 PM:Jared Bruni
"electric"
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 8:56:02 PM:Jared Bruni
for every action, there is a reaction
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 8:56:34 PM:Jared Bruni
"was it just a dream?"
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/7/2001 8:56:54 PM:Jared Bruni
"it seemed so real to me" -John Lennon
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/10/2001 8:20:44 PM:Jared Bruni
"nothing you can sing, that cant be sung"-the beatles
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/10/2001 9:56:14 PM:Vbmew
This rocks voted 1 then 5 again lol
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/10/2001 10:02:39 PM:Vbmew
yes positive
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/10/2001 11:04:03 PM:Jared Bruni
:) thats more like it
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/11/2001 10:41:44 AM:Jared Bruni
"and the mountian will crumble into the sea"
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/11/2001 10:42:21 AM:Jared Bruni
"peace not war"
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/22/2001 7:19:19 PM:Jared Bruni
"Here comes the Sun"the beatles->(MicroSystems that is)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/28/2001 8:12:48 PM:Patrick Gallagher
ok, um, that's, um, cool, um, and, um, ack man thats AWESOME
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
9/30/2001 11:40:50 AM:Jared Bruni
Hey thanks Jason and Andy, ill see you guys in class!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this article has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular article, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | C/ C++ Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.