mirror of
https://github.com/kaesaecracker/echse.git
synced 2025-09-04 15:07:16 +02:00
improve error handling
This commit is contained in:
parent
5ad6baa30d
commit
a4a027b448
24 changed files with 238 additions and 112 deletions
13
samples/all_instructions.ei
Normal file
13
samples/all_instructions.ei
Normal file
|
@ -0,0 +1,13 @@
|
|||
add 1 2 r0
|
||||
add r0 r1 r0
|
||||
mod r0 10 r1
|
||||
div 100 r1 r1
|
||||
nop
|
||||
put 42 r1
|
||||
put r1 r0
|
||||
sub 10 5 r1
|
||||
sub r1 r1 r1
|
||||
teq r1 r1
|
||||
tlt r0 r1
|
||||
tze r1
|
||||
jze r0 r1
|
7
samples/the_answer.ei
Executable file
7
samples/the_answer.ei
Executable file
|
@ -0,0 +1,7 @@
|
|||
put 23 r0
|
||||
div r0 10 r1
|
||||
add r1 r1 r1
|
||||
add r0 r0 r0
|
||||
sub r0 r1 r0
|
||||
mod r1 3 r1
|
||||
add r1 r0 r1
|
Loading…
Add table
Add a link
Reference in a new issue