Oxygen Basic
Programming => Bugs & Feature Requests => Topic started by: jcfuller on February 24, 2018, 05:17:56 AM
-
Charles,
While checking out the latest download I noticed changes to some of the mcros in Generics.inc from lower case to Camel case. I tried checking if it made a difference and got errors.
James
use rtl64
use generics
sys a,b,c
a = 7
b = 8
c = min(a,b)
print c
; ASM ERR: then mov rax,[rbx+0x1098]!! Unidentified instruction: then
; AFTER: ._c
; LINE: 7
-
Hi James,
These macros are in procedural form and cannot be used as functions. I must rename them for clarity.
macro SetMin(a,m)
=================
if m<a then a=m
end macro
macro SetMax(a,m)
=================
if m>a then a=m
end macro
macro SetMinMax(a,n,m)
======================
if a<n then
a=n
elseif a>m then
a=m
end if
end macro