RemoveString

Just starting out? Need help? Post your questions and find answers here.
NewMan
User
User
Posts: 11
Joined: Sun Jul 25, 2004 9:54 am

RemoveString

Post 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?
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Post by ABBKlaus »

hi ,

i buyed purebasic not to do this :lol:
Bonne_den_kule
Addict
Addict
Posts: 841
Joined: Mon Jun 07, 2004 7:10 pm

Post 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:
DarkDragon
Addict
Addict
Posts: 2228
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

ABBKlaus wrote:hi ,

i buyed purebasic not to do this :lol:
buyed = bought ;) (bad Germans, but I am one of them)
bye,
Daniel
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re:

Post by Dude »

This code doesn't work anymore, and the History in the manual doesn't show DisASMCommand() at all. What's the story?
User avatar
chi
Addict
Addict
Posts: 1034
Joined: Sat May 05, 2007 5:31 pm
Location: Linz, Austria

Re: RemoveString

Post by chi »

Take a look at the ExamineAssembly() example...
Et cetera is my worst enemy
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: RemoveString

Post by Dude »

Thanks, Chi! :)
Post Reply