Welcome to your wiki!
This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: [SamplePage].
The wiki uses Markdown syntax.
8 pointers jba,jbb,jbc,jbd,jbe,jbf,jbg,jbh
only integer digits..
;{1} is pointer ;{2} is pointer or digit commands:
mov {1} {2} ; c equals: {1}={2} xor {1} {2} ; c equals: {1}^={2} add {1} {2} ; c equals: {1}+={2} sub {1} {2} ; c equals: {1}-={2} mul {1} {2} ; c equals: {1}+={2} div {1} {2} ; c equals: {1}/={2} mod {1} {2} ; c equals: {1}%={2} ceq {1} {2} ; c equals: if({1} == {2}) cne {1} {2} ; c equals: if({1} != {2}) cle {1} {2} ; c equals: if({1} <= {2}) clt {1} {2} ; c equals: if({1} < {2}) cge {1} {2} ; c equals: if({1} >= {2}) cgt {1} {2} ; c equals: if({1} > {2}) ;if resoultion is false the next row not running
jmp [1] ; jump [1] label exit {d} ; exiting program {d} code dmp {1|2} ; printing to screen {1|2} content dmps {1|2} ; printing to screen as char {1|2} content
LABELS: A -> Z; definition example: A:
comment: ; chareter to end of line
EXAMPLE PROGRAM:
;for loop mov jba 0 A: cge jba 10 exit 0 dmp jba dmps 10 add jba 1 jmp A
Log in to post a comment.
8 pointers
jba,jbb,jbc,jbd,jbe,jbf,jbg,jbh
only integer digits..
;{1} is pointer
;{2} is pointer or digit
commands:
mov {1} {2} ; c equals: {1}={2}
xor {1} {2} ; c equals: {1}^={2}
add {1} {2} ; c equals: {1}+={2}
sub {1} {2} ; c equals: {1}-={2}
mul {1} {2} ; c equals: {1}+={2}
div {1} {2} ; c equals: {1}/={2}
mod {1} {2} ; c equals: {1}%={2}
ceq {1} {2} ; c equals: if({1} == {2})
cne {1} {2} ; c equals: if({1} != {2})
cle {1} {2} ; c equals: if({1} <= {2})
clt {1} {2} ; c equals: if({1} < {2})
cge {1} {2} ; c equals: if({1} >= {2})
cgt {1} {2} ; c equals: if({1} > {2})
;if resoultion is false the next row not running
jmp [1] ; jump [1] label
exit {d} ; exiting program {d} code
dmp {1|2} ; printing to screen {1|2} content
dmps {1|2} ; printing to screen as char {1|2} content
LABELS:
A -> Z;
definition example:
A:
comment:
; chareter to end of line
EXAMPLE PROGRAM:
;for loop
mov jba 0
A:
cge jba 10
exit 0
dmp jba
dmps 10
add jba 1
jmp A
Last edit: Dienes László 2014-04-13