RosettaCodeData/Task/Machine-code/FreeBASIC/machine-code.basic

12 lines
233 B
Plaintext

'' This is an example for the x86 architecture.
Function test (Byval a As Long, Byval b As Long) As Long
Asm
mov eax, [a]
Add eax, [b]
mov [Function], eax
End Asm
End Function
Print test(12, 7)
Sleep