To use as a template:
'with 4 default params:
macro FunI as int(r, n, a=0,b=0,c=0,d=0)
========================================
push d
push c
push b
push a
call n
'stack ptr adjustment
add esp,16
mov r,eax
end macro
subroutine Calc
===============
mov eax,[esp+4] 'param 1
mov ecx,[esp+8] 'param 2
'mov edx,[esp+8] 'param 3
add eax,ecx
'sub eax,ecx
'imul ecx
'cdq 'needed for div or idiv
'idiv ecx
'shl eax,2
'shr eax,2
'rol eax,1
'ror eax,1
'push eax
'pop eax
'
'result in eax
'implicit ret
===============
end subroutine
'TEST
'====
print FunI(Calc,-1,3)
I like the ability of the macros in Oxygen.
How about extending it with some libraries that would make tasks for people easier (http-library, JSON Library ....)
RE: JSON
JavaScript Object Notation
QuoteHow about extending it with some libraries that would make tasks for people easier (http-library, JSON Library
Much more elegant than XML. You could almost use it as a database in its raw text form. I'm making some notes on this subject.
I did something in Powerbasic, using K.I. Assistance you need just to define the outline and have the code written for you. You need still to test things however.