Page 1 of 1

[DONE] TailBite inline ASM call question

Posted: Thu May 14, 2009 4:58 pm
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

Posted: Fri May 15, 2009 12:20 am
by jack
just a thought, have you tried prefixing the labels with ! and then leave out the l_ prefix?

Posted: Fri May 15, 2009 1:09 am
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.

Posted: Fri May 15, 2009 7:52 am
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

Posted: Fri May 15, 2009 11:26 am
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

Posted: Fri May 15, 2009 11:43 am
by lexvictory
Inside the "Asm source files folder" shown in the stringGadget a little further down.

Posted: Fri May 15, 2009 12:48 pm
by sverson
:?: I can't find the "Asm source files folder"
Image

Posted: Fri May 15, 2009 12:55 pm
by lexvictory
Image

Posted: Fri May 15, 2009 2:04 pm
by sverson
:oops: It looks like I need new glasses or a little more sleep...

Thanks lexvictory!