Added subtract and calling

This commit is contained in:
cannoli-fruit 2026-07-24 04:08:33 -04:00
commit c9aea0c4e6
3 changed files with 101 additions and 3 deletions

15
tests/call.asm Normal file
View 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