TailBite specific forum
Moderators: gnozal , ABBKlaus , lexvictory
sverson
Enthusiast
Posts: 284 Joined: Sun Jul 04, 2004 12:15 pm
Location: Germany
Post
by sverson » Thu May 14, 2009 4:58 pm
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:
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
Posts: 1336 Joined: Fri Apr 25, 2003 11:10 pm
Post
by jack » Fri May 15, 2009 12:20 am
just a thought, have you tried prefixing the labels with ! and then leave out the l_ prefix?
sverson
Enthusiast
Posts: 284 Joined: Sun Jul 04, 2004 12:15 pm
Location: Germany
Post
by sverson » Fri May 15, 2009 1:09 am
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
Posts: 1027 Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:
Post
by lexvictory » Fri May 15, 2009 7:52 am
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
Posts: 284 Joined: Sun Jul 04, 2004 12:15 pm
Location: Germany
Post
by sverson » Fri May 15, 2009 11:26 am
@lexvictory: THX for the hint
It works fine with this version - but NOT with the jaPBe one
One more question:
Where is the source and the batch stored? I can't find them
lexvictory
Addict
Posts: 1027 Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:
Post
by lexvictory » Fri May 15, 2009 11:43 am
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
Posts: 284 Joined: Sun Jul 04, 2004 12:15 pm
Location: Germany
Post
by sverson » Fri May 15, 2009 12:48 pm
I can't find the "Asm source files folder"
lexvictory
Addict
Posts: 1027 Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:
Post
by lexvictory » Fri May 15, 2009 12:55 pm
Demonio Ardente
Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
sverson
Enthusiast
Posts: 284 Joined: Sun Jul 04, 2004 12:15 pm
Location: Germany
Post
by sverson » Fri May 15, 2009 2:04 pm
It looks like I need new glasses or a little more sleep...
Thanks lexvictory!