Added subtract and calling
This commit is contained in:
parent
1ade055e09
commit
c9aea0c4e6
3 changed files with 101 additions and 3 deletions
15
tests/call.asm
Normal file
15
tests/call.asm
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
include "fvm.inc"
|
||||
|
||||
org 0x4000000000000000
|
||||
start:
|
||||
MovI64 r95, UART_TX
|
||||
call function
|
||||
MovI64 r2, 0x69
|
||||
St8 r2, r95
|
||||
MovI64 r2, 0x0a
|
||||
St8 r2, r95
|
||||
Halt
|
||||
function:
|
||||
MovI64 r2, 0x48
|
||||
St8 r2, r95
|
||||
Ret
|
||||
Loading…
Add table
Add a link
Reference in a new issue