It is currently Mon Dec 16, 2019 3:31 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 148 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 10  Next
Author Message
 Post subject:
PostPosted: Sun Sep 02, 2007 10:54 am 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1143
Location: Germany
Hi,

@eddy, what version of tailbite are you using ? I have no problems compiling this to MyDebugErrorPlugin :
Code:
ProcedureDLL MyDivZ(a, b)
  ProcedureReturn a/b
EndProcedure

ProcedureCDLL MyDivZ_DEBUG(a, b)
  If b=0
    TB_DebugError(@"Division by zero!")
  EndIf
EndProcedure

and for the complete path in TBManager you have to enable Display full Source Path in TitleBar in the PureBasic-Preferences :wink:


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Sep 02, 2007 10:56 am 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1143
Location: Germany
Just forgot to say :

new version is out : V1.3 PR 1.856

Quote:
[18] AUG 30th 2007 TailBite v1.3 PR 1.856
- fixed *_Init bug found by nco2k



see first post for more details.

Regards Klaus


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Sep 02, 2007 2:27 pm 
Offline
Addict
Addict
User avatar

Joined: Mon Sep 15, 2003 5:55 am
Posts: 1341
thx klaus, works good now. :)

c ya,
nco2k

_________________
If OSVersion() = #PB_OS_Windows_ME : End : EndIf


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Sep 02, 2007 2:39 pm 
Offline
Addict
Addict
User avatar

Joined: Mon May 26, 2003 3:07 pm
Posts: 1477
Location: Nantes
Oops It was my fault, I clicked on the wrong link.
I tested an old version. :lol:

_________________
Imagewin8.1 x64 5.31 | IDE | PB plugin | Tools | Sprite | JSON | visual tool


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Sep 08, 2007 12:44 pm 
Offline
Addict
Addict
User avatar

Joined: Mon May 26, 2003 3:07 pm
Posts: 1477
Location: Nantes
Does this beta version support ASM code ?

Code:
Structure myStruct
  val.l
  text.s
EndStructure

ProcedureDLL.s d()
  Protected *a.myStruct
  Protected b.myStruct
  Protected *result.myStruct   
  b\val=11111
 
  *a=@b
   
  !MOV Eax,[p.p_a] ;<---- here : unknown symbol
  !MOV [p.p_result],Eax
 
  ProcedureReturn Str(*result\val)
EndProcedure

_________________
Imagewin8.1 x64 5.31 | IDE | PB plugin | Tools | Sprite | JSON | visual tool


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Sep 08, 2007 10:53 pm 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1143
Location: Germany
@eddy :

it was this part of code that was causing the problems :
Code:
        ElseIf Left(ThisLine$, 3)="; !"            ;   CORREGIR ESTO PARA CUANDO HAYA ASM COMENTADO: ; !mov [v_R],... (Rings)
          If Right(ThisLine$, 1)<>":"
            cpos = FindString(ThisLine$, ";", 2)
            If cpos
              THS$ = RTrim(Left(ThisLine$, cpos))
            Else
              THS$ = RTrim(ThisLine$)
            EndIf
            THS$ = Trim(RemoveString(THS$, "; !"))
            ThisLine$+WNL$
            CopyMemoryString(@ThisLine$)
            FileSeeker = FindNextString(WNL$, FileSeeker, FileEnd)+Len(WNL$)
            ThisLine$ = THS$
            Goto CheckASM
          EndIf


i commented them out, i hope without side effects :oops:

new version is out : V1.3 PR 1.857

Quote:
[19] SEP 8th 2007 TailBite v1.3 PR 1.857
- fixed problem with asm comments ; ! (found by eddy)


see first post for more details.

Regards Klaus


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Sep 08, 2007 11:41 pm 
Offline
Addict
Addict
User avatar

Joined: Mon May 26, 2003 3:07 pm
Posts: 1477
Location: Nantes
ABBKlaus wrote:
new version is out : V1.3 PR 1.857

Quote:
[19] SEP 8th 2007 TailBite v1.3 PR 1.857
- fixed problem with asm comments ; ! (found by eddy)




Wait a minute :!: :!: ... The problem is not the commented ASM.
The problem is purebasic ASM symbol (like [p.p_a] )

I made a test :
MOV *a.eax ---> tailbite compiles correctly
!MOV [p.p_a].eax ---> tailbite send an error message

Image

_________________
Imagewin8.1 x64 5.31 | IDE | PB plugin | Tools | Sprite | JSON | visual tool


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Sep 09, 2007 9:41 am 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1143
Location: Germany
@eddy,

i have no problems compiling your code with the new version.
here is the compiled asm code :

Code:
; *a=@b
LEA    eax,[esp+4]
MOV    dword [esp],eax
;
; !MOV Eax,[p.p_a]
p.p_a equ esp+0
p.p_result equ esp+12
p.v_b equ esp+4
MOV Eax,[p.p_a]
; !MOV [p.p_result],Eax
MOV [p.p_result],Eax


Regards Klaus


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Sep 09, 2007 11:05 am 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 3113
Location: United Kingdom
PureBasic must do something to the local variables before they are passed to FASM. That could be why code with the '!' didn't work?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Sep 09, 2007 12:37 pm 
Offline
Addict
Addict
User avatar

Joined: Mon May 26, 2003 3:07 pm
Posts: 1477
Location: Nantes
I tested it
It works :D thx

Why does it use commented line ?

_________________
Imagewin8.1 x64 5.31 | IDE | PB plugin | Tools | Sprite | JSON | visual tool


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Oct 10, 2007 5:15 pm 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1143
Location: Germany
new version is out : V1.3 PR 1.858

Quote:
[20] OKT 10th 2007 TailBite v1.3 PR 1.858
- fixed problem with PB folder detection code


see first post for more details.

Regards Klaus


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Oct 17, 2007 5:54 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 10528
Location: Beyond the pale...
Hi,

everything I tailbite (with the latest version of Tailbite and PB 4.1 beta 4), when the resulting library is used, I get the following linker error :

POLINK : fatal error : File not found : ':Import.LIB'

As I say, Tailbite runs okay and produces the library, but the problem is when I try to use the library etc.

Any ideas?

Thanks.


**EDIT : I went back and compiled with PB 4.1 beta 3 with the earlier version of Tailbite and the resulting libraries run fine; even with PB 4.1 beta 4.

_________________
I may look like a mule, but I'm not a complete ass.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Oct 17, 2007 6:11 pm 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1143
Location: Germany
@srod,

a working snippet to reproduce the problem would be fine :roll:


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Oct 17, 2007 6:15 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 10528
Location: Beyond the pale...
Difficult; both projects I just compiled are huge; but compile fine with PB 4.1 beta 3 and Tailbite 1.3 PR 1.48.

What I can say is that both projects import the GradientFill() function.

I'll try creating a very small program then which reproduces this problem.

_________________
I may look like a mule, but I'm not a complete ass.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Oct 17, 2007 6:30 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 10528
Location: Beyond the pale...
Right, I get the same problem with the following :

Code:
ProcedureDLL.l test(a)
  a+1
  ProcedureReturn a
EndProcedure


I can create the user library okay, but when I try and use this with a simple program

Code:
b = test(6)


I get exactly the same error reported above.

:?

_________________
I may look like a mule, but I'm not a complete ass.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 148 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 10  Next

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