Page 1 of 1

RemoveString

Posted: Sat Feb 12, 2005 3:16 pm
by NewMan
i want this info just for knowledge, but how do i convert RemoveString function to pure asm code in pb? i was trying to do that but couldn't accomplish it. can neone help?

Posted: Sun Feb 13, 2005 12:25 pm
by ABBKlaus
hi ,

i buyed purebasic not to do this :lol:

Posted: Sun Feb 13, 2005 12:29 pm
by Bonne_den_kule

Code: Select all

Debug "Mini-Disassembler!" 
  Debug "type in your Code between the 2 Labels START_C: and END_C: " 
  Debug "and let the ErrorLibrary disassemble for you" 
  
  Pointer=?START_C 
  If Pointer<>?END_C 
    SetClipboardText("") 
    Repeat 
      ThisPosition=Pointer 
      Pointer=DisASMCommand(Pointer) 
      Debug Hex(ThisPosition)+" - " + GetDisASMString() 
      SetClipboardText(GetClipboardText()+GetDisASMString()+Chr(13)+Chr(10)) 
    Until Pointer>=?END_C 
  EndIf 
  
  End 
  
  START_C: 
   String$ = RemoveString("alalaakatdgsa", "a") 
  END_C:

Posted: Sun Feb 13, 2005 12:43 pm
by DarkDragon
ABBKlaus wrote:hi ,

i buyed purebasic not to do this :lol:
buyed = bought ;) (bad Germans, but I am one of them)

Re:

Posted: Wed Dec 27, 2017 11:57 am
by Dude
This code doesn't work anymore, and the History in the manual doesn't show DisASMCommand() at all. What's the story?

Re: RemoveString

Posted: Wed Dec 27, 2017 3:12 pm
by chi
Take a look at the ExamineAssembly() example...

Re: RemoveString

Posted: Fri Dec 29, 2017 10:04 am
by Dude
Thanks, Chi! :)