Advertisement
2002C Miscellaneous #16304

Master Assembly Script( MAS ) Beta

Mas Release 1, MasterX SDK 2.2, MVX with MAS, and a Mas Demo

AI

KI-Zusammenfassung: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Quellcode
original-source
<HTML>
<FONT FACE="FIXEDSYS" COLOR="#BD0000">
<IMG SRC="http://www.lostsidedead-software.com/mp/logo.jpg"><br><br>
<br><b> Master Assembly Script (MAS)</b><Br><br>
Mas is a scripting language designed for use in video game programming. It is meant to allow 
aspects of the game to be scripted rather then hard coded so they can be changed without
the actual executable being changed. It is a simple scripting language and in its first ful 
release has very limited functionality.<br><br>
A mas program is simple, and is layed out as follows<br><br>
<pre>
mas ProgramName {
var {
var& variable ; comment var& means long integer
var# float ; means floating point 
var$ string ; means string variable
}
begin {
start:
mov variable, 0
jmp start ; jump to start code label
}
}
</pre>
 Mas is similar to assembly language, in that you use code labels, do compares, and
then use instructions to jump based on the flags register. However there are no registers
and the instructions directly operate on variables. <br><br>
<b> Download </b><br><br>
<a href="http://www.lostsidedead-software.com/masasm2.zip">Mas Demo</a><br>
<a href="http://www.lostsidedead-software.com/mx2_2.zip">MasterX SDK with Mas (2.2)</a><br>
<a href="http://www.lostsidedead-software.com/mvx_mas.zip">MVX Game Engine with Mas</a> <br>
<br>
<br><br>
<b> Instruction List</b><br><br>
<pre>
mov - takes 2 operands
mov source,from
cls - takes 1 operand
cls 0
println takes 1 operand
println variable
input takes 1 operand
input variable
return takes 1 operand
return 0
cmp takes 2 operands
cmp variable1,variable2
jmp takes 1 operand
jmp label
jne takes 1 operand
jne label
jg takes 1 operand
jg label
jl takes 1 operand
jl label
jge takes 1 operand
jge label
jle takes 1 operand
jle label
pause takes 1 operand
pause 0
inc takes 1 operand
inc variable
dec takes 1 operand
dec variable
add takes 2 operands
add var1 , var2
sub takes 2 operands
sub var1, var2
mul takes 2 operands
mul var1, var2
div takes 2 operands
div var1, var2
finc takes 1 operand
finc variable
fdec takes 1 operand
fdec varaible
fadd takes 2 operands
fadd var1, var2
fsub takes 2 operands
fsub var1, var2
fmul takes 2 operands
fmul var1, var2
fdiv takes 2 operands
fdiv var1, var2
int takes 1 operand
int interupt number for callback
push takes 1 operand
push variable to push into stack
pop takes 1 operand
pop variable to pop off of stack
</pre>
</FONT>
</HTML>
Originalkommentare (3)
Wiederhergestellt von der Wayback Machine