[DONE] TailBite inline ASM call question

TailBite specific forum

Moderators: gnozal, ABBKlaus, lexvictory

sverson
Enthusiast
Enthusiast
Posts: 284
Joined: Sun Jul 04, 2004 12:15 pm
Location: Germany

[DONE] TailBite inline ASM call question

Post by sverson »

I seem to be a !NOP because I don't get it running...

This code works fine

Code: Select all

ProcedureDLL MyLibFunc1(*Pointer)
  !MOV edx, dword [p.p_Pointer]
  !MOV ebx, [edx]
  !ADD ebx, 10
  !JMP l_theo
  !RET
  !NOP
  !XOR ebx, edx
  !NOP
  !RET
  theo:
  !MOV [edx], ebx
  !MOV dword [p.p_Pointer], edx
EndProcedure

ProcedureDLL MyLibFunc2(*Pointer)
  !MOV edx, dword [p.p_Pointer]
  !MOV ebx, [edx]
  !ADD ebx, 10
  !CALL l_nora
  !JMP l_johann
  !RET
  !NOP
  !XOR ebx, edx
  !NOP
  !RET
  nora:
  !NOP
  !MOV [edx], ebx
  !NOP
  !RET
  johann:
  !NOP
  !MOV dword [p.p_Pointer], edx 
EndProcedure

a.l = 90
Debug a
MyLibFunc1(@a)
Debug a
MyLibFunc2(@a)
Debug a

but as soon as i try to make a userlib I get the following error: :cry:
Image

Does anybody know how to make ASM CALLs with TailByte?

THX
Last edited by sverson on Fri May 15, 2009 11:10 am, edited 1 time in total.
jack
Addict
Addict
Posts: 1336
Joined: Fri Apr 25, 2003 11:10 pm

Post by jack »

just a thought, have you tried prefixing the labels with ! and then leave out the l_ prefix?
sverson
Enthusiast
Enthusiast
Posts: 284
Joined: Sun Jul 04, 2004 12:15 pm
Location: Germany

Post by sverson »

Yes - same error :?
The only difference is
  • ...
    nora:
    symbol already defined.
instead of
  • ...
    error_l_nora:
    error: symbol already defined.
The name of the pb source file (error.pb) is not in the message.
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post by lexvictory »

Works fine here.
I was about to ask what version you're using, then I read your screenshot more closely.

The TailBite that is included in JaPBe is not the same as the one managed by ABBKlaus and I. (Gnozal has made his own modifications to El_Choni's PR 1.3 version)

See this link for the latest version (that ABBKlaus has not yet released): https://sourceforge.net/project/downloa ... .05.09.zip
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
sverson
Enthusiast
Enthusiast
Posts: 284
Joined: Sun Jul 04, 2004 12:15 pm
Location: Germany

Post by sverson »

@lexvictory: THX for the hint :)
It works fine with this version - but NOT with the jaPBe one :cry:

One more question:
Where is the source and the batch stored? I can't find them :?:
Image
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post by lexvictory »

Inside the "Asm source files folder" shown in the stringGadget a little further down.
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
sverson
Enthusiast
Enthusiast
Posts: 284
Joined: Sun Jul 04, 2004 12:15 pm
Location: Germany

Post by sverson »

:?: I can't find the "Asm source files folder"
Image
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post by lexvictory »

Image
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
sverson
Enthusiast
Enthusiast
Posts: 284
Joined: Sun Jul 04, 2004 12:15 pm
Location: Germany

Post by sverson »

:oops: It looks like I need new glasses or a little more sleep...

Thanks lexvictory!
Post Reply