Added redesigned arithmetic operations and
Added add , sub , mul , div
Format :
keyword flag operand1 operand2 output
Flags Supported
.data : Represents a defined variable (defined using .define which will be added in future , assumes 0 for now) - May 09 2026
.result : Represents Primary 16-Bit Accumulator , Doesn't need operand2
.xword : Represents Secondary 16-Bit Accumulator , Doesn't need operand2
.value : Works on two immediate values between 0-255
Outputs
.result : Saves in Primary Accumulator
.xword : Saves in Secondary Accumulator
symbol : Saves in user defined variable
Behavior
using .result and .xword as flag and output causes result preservation , this method is used for 16-Bit Arithmetic
Added .print
Format : .print target format
Targets Supported :
symbol : Represents a user defined variable (will be added later , prints 0 for now) - May 09 2026
.xword : Print data of Secondary Accumulator
.result : Print Data of Primary Accumulator
Format:
&d : Represents Decimal Printing (Numbers printed as 456 , 234 , etc)
&b : Represents Binary ASCII (Numbers printed as "00001010" , "01010100" , etc)
&d&b : Represents Decimal followed by Binary ASCII (Example : 127
01111111)
Behavior :
.result prints vACC ("Virtual Accumulator")
.xword prints xWORD ("X-TRA Word")
Example of some arithmetic commands
Example of terminal I/O
Added exit
Indicates the end of the script , the script will loop infinitely if it is omitted.