Author Topic: OxyEdit  (Read 45985 times)

0 Members and 3 Guests are viewing this topic.

Emil_halim

  • Guest
Re: OxyEdit
« Reply #60 on: March 18, 2013, 10:36:37 AM »

Aurel ,

thanks for that beautiful Editor , but sometimes it closed it self with out any close action by me.

I will try Sphinx C-- editor , it is not finished but can handle the work.   

Emil_halim

  • Guest
Re: OxyEdit
« Reply #61 on: March 19, 2013, 07:32:10 AM »

here it is with source code

i will check your new one , thanks.

 

X

Emil_halim

  • Guest
Re: OxyEdit
« Reply #62 on: March 19, 2013, 07:53:15 AM »
Quote
who is author of this editor ?

the auther is QS_Ong ,

see this like http://c--sphinx.narod.ru/indexe.htm the program name is "cmmedit.zip (75k)"

Emil_halim

  • Guest
Re: OxyEdit
« Reply #63 on: March 19, 2013, 08:12:13 AM »
Quote
and currently can compile file but cannot run compiled

I have fixed it.

here is the run function before the fix
Code: [Select]
void run(dword lpFileName)
{
byte outbuffer[256];
STARTUPINFO startupinfo = 0;
PROCESS_INFORMATION pinfo = 0;

lstrcpy(#outbuffer,lpFileName);
lstrlen(lpFileName);
lstrcpy(#outbuffer[EAX-3],"exe");  // here is the error
CreateProcess(0,#outbuffer,0,0,TRUE,0,0,0,#startupinfo,#pinfo);
}

and  here is the correct line after fixing
Code: [Select]
lstrcpy(#outbuffer[EAX-5],"exe");

really i want to see Oxygen someday sporting 'Heih Level asm' just like Spinx c-- and ziron (http://codeziron.com/)


X

Emil_halim

  • Guest
Re: OxyEdit
« Reply #64 on: March 19, 2013, 08:20:18 AM »

here it is  c--39b26.zip (299k) , C-- compiler (v0.239 b26 ) beta version.

from  here http://c--sphinx.narod.ru/indexe.htm

Emil_halim

  • Guest
Re: OxyEdit
« Reply #65 on: March 19, 2013, 08:36:37 AM »


i am not sure what you exactly mean under Heigh Level asm but oxygen


Ok Aurel ,

see this function from Sphinx c--
Code: [Select]
void RemoveFileExt(dword lpFileName)
{
lstrlen(lpFileName);
EDX = lpFileName;
WHILE (EAX)
{
EAX--;
IF(DSBYTE [EDX+EAX]=='.')
{
DSBYTE [EDX+EAX] = 0;
BREAK;
}
}
}

and this from Ziron , i have add some Plugins for that language see this http://codeziron.com/forum.php?page=topic&id=140

Code: [Select]
//http://codeziron.com/forum.php?page=topic&id=31
function getFileExt(char* path) {
  eax = path;   
  while (char[eax] != 0) {
    eax++;
  }
  while (char[eax] != ord('.')) {
    eax--;
  }
  eax++;
}

and here may latest try with HighLevelAsm with BCX
http://tech.groups.yahoo.com/group/BCX/message/42880

Peter

  • Guest
Re: OxyEdit
« Reply #66 on: March 19, 2013, 10:23:37 AM »
Quote
void   RemoveFileExt(dword lpFileName)
{
   lstrlen(lpFileName);
   EDX = lpFileName;
   WHILE (EAX)
   {
      EAX--;
      IF(DSBYTE [EDX+EAX]=='.')
      {
         DSBYTE [EDX+EAX] = 0;
         BREAK;
      }
   }
}

This high assembling is really a stupid thing.
C is much easier and has the same effect.

I program directly with machine-code, that is really an easy thing.
We can directly insert asm code in Basic code. What want we more?

Peter

  • Guest
Re: OxyEdit
« Reply #67 on: March 19, 2013, 10:29:55 AM »
 
Quote
but i am not asm coder and i prefer basic...

That is so, I have no idea about machine-code programming.  :D

Peter

  • Guest
Re: OxyEdit
« Reply #68 on: March 19, 2013, 10:54:32 AM »
 
Quote
like brad'pete'

Charles, Aurel annoys me, banish him!  ;D

JRS

  • Guest
Re: OxyEdit
« Reply #69 on: March 19, 2013, 10:58:30 AM »
Quote
like brad'pete'

Charles, Aurel annoys me, banish him!  ;D

+1  ;D

Emil_halim

  • Guest
Re: OxyEdit
« Reply #70 on: March 19, 2013, 11:06:33 AM »
Quote
stupid thing
peter , i think this is not constructive at all.

Quote
C is much easier and has the same effect.

I program directly with machine-code, that is really an easy thing.
We can directly insert asm code in Basic code. What want we more?

you are totally wrong , the idea here is not inserting asm code with basic or  ogram directly with machine-code.

it is all about the presentation readability of the source code For Eaxmple ,which is the beter
Code: [Select]
mov  Eax , 10 Or
Code: [Select]
Eax = 10  

if any one has no idea about asm , he will recognize the last one.    

Peter

  • Guest
Re: OxyEdit
« Reply #71 on: March 19, 2013, 11:29:07 AM »
mov eax,10 is better, I see what I do.
EAX=10  looks like a variable  EAX!

Okay, I have  no knowledge about machine programming. I am an idiot.

Emil_halim

  • Guest
Re: OxyEdit
« Reply #72 on: March 19, 2013, 11:40:22 AM »

Quote
EAX=10  looks like a variable  EAX!

in High Level asm , all registers name "Eax,ebx....." are reserved word , so you can not use them as a  variable.

Charles Pegge

  • Guest
Re: OxyEdit
« Reply #73 on: March 19, 2013, 11:50:49 AM »
In OxygenBasic you can be very naughty with registers, and treat them as variables, as long as you know which get overwritten and when. The ebx,ebp,and esp registers should always be restored if asm instructions write to them.

Eax is a very busy register since it is used as the integer accumulator, but this works

eax=0x123
print hex eax


Charles

Emil_halim

  • Guest
Re: OxyEdit
« Reply #74 on: March 19, 2013, 12:03:12 PM »

ok , when we code in asm , we should take care of which register should not be changed and which are not.

Quote
but this works

eax=0x123

does that supported aslo

if eax = 10 .....