Skip to content

Assembly-like programming language that initially was written in Pascal when I was 12 y.o :) Now rewritten in Python

Notifications You must be signed in to change notification settings

fromgodd/stubler-lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stubler

Assembly-like programming language that initially was written in Pascal when I was 12 y.o :) Now rewritten in Python

Examples

Here is simple "Hello, World!"

M$
MSG "Hello, World!"
p

M$ - is header function that will indicate this is main program
MSG means print something in console
and P is pause in console (interruption)

Second example is calculator

M$
@int a
@int b
@int c
MSG "Enter A"
RS a
MSG "Enter B"
RS b
c = a + b
MEM c i@+
MSG c

Here is M$ - main program
@int means integer (we define @int to a,b,c)
RS means read line
MEM means memory. MEM c i@+ means to put c into memory. Put function is i@+

About

Assembly-like programming language that initially was written in Pascal when I was 12 y.o :) Now rewritten in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages