It is currently Tue Mar 31, 2020 8:29 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: [DONE] TailBite inline ASM call question
PostPosted: Thu May 14, 2009 4:58 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jul 04, 2004 12:15 pm
Posts: 284
Location: Germany
I seem to be a !NOP because I don't get it running...

This code works fine
Code:
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.

Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri May 15, 2009 12:20 am 
Offline
Addict
Addict

Joined: Fri Apr 25, 2003 11:10 pm
Posts: 1218
just a thought, have you tried prefixing the labels with ! and then leave out the l_ prefix?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri May 15, 2009 1:09 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jul 04, 2004 12:15 pm
Posts: 284
Location: Germany
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.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri May 15, 2009 7:52 am 
Offline
Addict
Addict

Joined: Sun May 15, 2005 5:15 am
Posts: 1027
Location: Australia
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!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri May 15, 2009 11:26 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jul 04, 2004 12:15 pm
Posts: 284
Location: Germany
@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


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri May 15, 2009 11:43 am 
Offline
Addict
Addict

Joined: Sun May 15, 2005 5:15 am
Posts: 1027
Location: Australia
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!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri May 15, 2009 12:48 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jul 04, 2004 12:15 pm
Posts: 284
Location: Germany
:?: I can't find the "Asm source files folder"
Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri May 15, 2009 12:55 pm 
Offline
Addict
Addict

Joined: Sun May 15, 2005 5:15 am
Posts: 1027
Location: Australia
Image

_________________
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri May 15, 2009 2:04 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jul 04, 2004 12:15 pm
Posts: 284
Location: Germany
:oops: It looks like I need new glasses or a little more sleep...

Thanks lexvictory!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye