mirror of
https://github.com/pnx/m16vm
synced 2026-06-17 03:50:03 +02:00
asm: adding example files
This commit is contained in:
parent
3528c467ac
commit
0f41fc0870
2 changed files with 48 additions and 0 deletions
15
asm/test.as
Normal file
15
asm/test.as
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
; NOTE: This is just to check the syntax.
|
||||
; No logic behind any of the instructions (will prob crash)
|
||||
movl $0, 3
|
||||
movl $5, 6500
|
||||
; Comment
|
||||
noop ; Comment
|
||||
start0: add $3, $0, $1
|
||||
sw $2, $3, $2
|
||||
ld $5, $0, $3
|
||||
beq $0, $1, 1
|
||||
beq $0, $1, -25
|
||||
beq $0, $1, -4000
|
||||
jr $5, 0
|
||||
int $0, 1
|
||||
jmp 5
|
||||
Loading…
Add table
Add a link
Reference in a new issue