Author Topic: OxyEdit  (Read 45984 times)

0 Members and 2 Guests are viewing this topic.

Peter

  • Guest
Re: OxyEdit
« Reply #75 on: March 19, 2013, 12:09:07 PM »
Code: [Select]
eax=100
if eax=100
   print "yes"
else
   print "no"
end if   

Emil_halim

  • Guest
Re: OxyEdit
« Reply #76 on: March 19, 2013, 12:14:07 PM »

thanks peter  :)

but the question here , does Oxygen treats eax as a register or just a variable ? 

Peter

  • Guest
Re: OxyEdit
« Reply #77 on: March 19, 2013, 12:30:21 PM »
Have a look!
Code: [Select]
eax=100
push eax

if eax=100
   print "yes"
else
   print "no"
end if

pop eax
xor edx, edx
mov edx, eax
print edx

if eax >99  then print "I am 100"   'does work!
if eax <101 then print "What?"      'doesn't work  

Charles Pegge

  • Guest
Re: OxyEdit
« Reply #78 on: March 19, 2013, 12:39:24 PM »
Yes but eax is overwritten by a booli, so no good for elseif.

You should be able to do select eax  .. case .. end select

in these cases eax is a register.

If you are not using assembler in a function it is also possible to hijack register names, by redefining them:

function f()
sys eax,ebx,ecx
...
end function


but you won't be able to use those names in assembler inside the function. Outside, they revert to asm registers.

« Last Edit: March 19, 2013, 12:46:36 PM by Charles Pegge »

Emil_halim

  • Guest
Re: OxyEdit
« Reply #79 on: March 19, 2013, 12:50:40 PM »
Charles , what wrong with this code
Code: [Select]
$ filename "test2.exe"
include "..\..\inc\RTL32.inc"

addr ecx,xx
[ecx] = 100
print hex [ecx]
end

.xx
dd  0

it should print 100 , but it does not run at all

Peter

  • Guest
Re: OxyEdit
« Reply #80 on: March 19, 2013, 01:02:09 PM »
'$ filename "test2.exe"
'include "..\..\inc\RTL32.inc"

addr ecx,xx
[ecx] = 100
print hex [ecx]
end

.xx
dword  0

Emil_halim

  • Guest
Re: OxyEdit
« Reply #81 on: March 19, 2013, 01:07:41 PM »
peter , the same here , nothing changed!!!!! 

Peter

  • Guest
Re: OxyEdit
« Reply #82 on: March 19, 2013, 01:10:08 PM »
I got  hex 64  =(100)

Emil_halim

  • Guest
Re: OxyEdit
« Reply #83 on: March 19, 2013, 01:12:32 PM »
which version of Oxygen.dll you are using?

Peter

  • Guest
Re: OxyEdit
« Reply #84 on: March 19, 2013, 01:16:28 PM »
This version.

X

JRS

  • Guest
Re: OxyEdit
« Reply #85 on: March 19, 2013, 01:16:56 PM »
Please people....
return to BASIC ::)

What part of open source Basic compiler project don't you get?

Emil_halim

  • Guest
Re: OxyEdit
« Reply #86 on: March 19, 2013, 01:21:43 PM »
peter , i have the same version , but still have the problem !!!!!

i am using win7 version 32

Peter

  • Guest
Re: OxyEdit
« Reply #87 on: March 19, 2013, 01:31:59 PM »
wierd, I am using Win7 64 bit!

JRS

  • Guest
Re: OxyEdit
« Reply #88 on: March 19, 2013, 01:49:27 PM »
The problem seems obvious to me, you're both using Windows.   :D

Peter

  • Guest
Re: OxyEdit
« Reply #89 on: March 19, 2013, 01:53:18 PM »
Aright!  This can not go well.