Author Topic: BxbAsm  (Read 178818 times)

SteveA

  • Guest
Re: BxbAsm
« Reply #255 on: May 10, 2012, 06:51:59 AM »
The attached wherexy.asm is the same one I have.

Edit: the attached bxblib.lib has the same problem.

Then, I can't imagine what the problem might be.
The function "wherexy" controls cursor placement for INPUT statements.

The problem must be elsewhere. I'll go thru the main code and see if I can find it.

EDIT:
Okay...........
I think I've got it,
when I originally stripped this version down, I commented-out some of the ".asm" code that called "wherexy".
The source code and EXE I had sent you was still containing that "blocked-out" code, where as mine was fine.

SEE attached:
« Last Edit: May 10, 2012, 07:27:23 AM by SteveA »

SteveA

  • Guest
Re: BxbAsm
« Reply #256 on: May 10, 2012, 07:32:42 AM »
Your attached library has the problems mentioned before.
It appears you can't use Lcc to create object modules.


Yeh, it's doing something strange.
I don't know why that is, but it certainly is adding something to the ".obj".
I'm going to have to ask Jacob Navia about that.


jcfuller

  • Guest
Re: BxbAsm
« Reply #257 on: May 10, 2012, 07:43:42 AM »
EDIT:
Okay...........
I think I've got it,
when I originally stripped this version down, I commented-out some of the ".asm" code that called "wherexy".
The source code and EXE I had sent you was still containing that "blocked-out" code, where as mine was fine.

That fixed it.

James

jcfuller

  • Guest
Re: BxbAsm
« Reply #258 on: May 10, 2012, 07:52:11 AM »
Steve,
  I don't think Random I/O is working.
The file created by test46 shows binary data when viewed.

James

jcfuller

  • Guest
Re: BxbAsm
« Reply #259 on: May 10, 2012, 07:55:17 AM »
Your attached library has the problems mentioned before.
It appears you can't use Lcc to create object modules.


Yeh, it's doing something strange.
I don't know why that is, but it certainly is adding something to the ".obj".
I'm going to have to ask Jacob Navia about that.



you will have to include lcc library files anyway in order to build  asm -> exe using bxblib.lib because lcc does not use msvcrt for conio.

James

SteveA

  • Guest
Re: BxbAsm
« Reply #260 on: May 10, 2012, 08:00:11 AM »
I don't think Random I/O is working.
The file created by test46 shows binary data when viewed.

No,
actually, it's working.
If you view the .txt file in an editor other than notepad, (like wordpad), it will display.



jcfuller

  • Guest
Re: BxbAsm
« Reply #261 on: May 10, 2012, 08:18:58 AM »
Steve,
  Test 48 crashes.

James

SteveA

  • Guest
Re: BxbAsm
« Reply #262 on: May 10, 2012, 08:33:10 AM »
 Test 48 crashes.

Not on my machine.
I'm using the same Bxbasm.exe as I uploaded to you this AM.

This is the code for #48:
Code: [Select]
'-----cut-n-paste------'
'  test.bas version 48
    DIM az#=1.012345, bz!=123.456
    DIM cz%=123456, dz = 12345, rec = 1, ix = 0
    DIM A$ = "", B$ = "", C1$ = "", D$ = "", E$ = ""
    DIM w$ = "end"
    CLS
'
    OPEN "R", #1, "test.txt", 34
    FIELD #1, 4 AS A$, 4 AS B$, 8 AS C1$, 8 AS D$, 10 AS E$
    FOR ix = 1 TO 5 STEP 1
        LSET A$ = MKI$(dz)
        LSET B$ = MKI$(cz%)
        LSET C1$ = MKS$(bz!)
        LSET D$ = MKD$(az#)
        RSET E$ = w$
        PUT 1, rec
        rec = rec + 1
    NEXT ix
    CLOSE 1
    CLEAR
'
    OPEN "R", #1, "test.txt", 34
    FIELD #1, 4 AS A$, 4 AS B$, 8 AS C1$, 8 AS D$, 10 AS E$
    GET 1, 1
'
    az# = CVD(D$)
    bz! = CVS(C1$)
    cz% = CVI(B$)
    dz =  CVI(A$)
    PRINT "az#="; az#
    PRINT "bz!="; bz!
    PRINT "cz%="; cz%
    PRINT "dz ="; dz
    CLOSE 1
' ------------------------------------------
TheEnd:
  END
' ------------------------------------------


It executes correctly.

EDIT:
Attach your ".asm" file for test48.
« Last Edit: May 10, 2012, 08:53:16 AM by SteveA »

jcfuller

  • Guest
Re: BxbAsm
« Reply #263 on: May 10, 2012, 09:11:02 AM »
Steve,
  I tried with your bxbasm.exe from today, and mine that I created from your source of today. Same results.
I also tried both yours and my  bxblib.lib. same
I also included the test.txt file

James

SteveA

  • Guest
Re: BxbAsm
« Reply #264 on: May 10, 2012, 09:33:27 AM »
I assembled your test48.asm and it is working just fine.
I compared your test.txt with mine and it is correct.

Explain to me what you mean by "crash".


EDIT:
This is what the stored (binary) data looks like in wordpad:
« Last Edit: May 10, 2012, 09:48:20 AM by SteveA »

jcfuller

  • Guest
Re: BxbAsm
« Reply #265 on: May 10, 2012, 10:25:37 AM »
Steve,
  here's what I get:
James
Edit: Win7/64


jcfuller

  • Guest
Re: BxbAsm
« Reply #266 on: May 10, 2012, 10:32:51 AM »
Steve,
  Here's the exe.

James

SteveA

  • Guest
Re: BxbAsm
« Reply #267 on: May 10, 2012, 10:38:59 AM »
Test48.exe executes absolutely fine on XP.

SteveA

  • Guest
Re: BxbAsm
« Reply #268 on: May 10, 2012, 12:55:15 PM »
James,
Since I have no way of testing it, all I can figure is to eliminate a section of code and see where the breaking point is.
The test.txt file is correct. I can only assume that it's working correctly up to that point.
So, I'd comment-out this entire block:

Code: [Select]
'    CLEAR
'
'    OPEN "R", #1, "test.txt", 34
'    FIELD #1, 4 AS A$, 4 AS B$, 8 AS C1$, 8 AS D$, 10 AS E$
'    GET 1, 1
'
'    az# = CVD(D$)
'    bz! = CVS(C1$)
'    cz% = CVI(B$)
'    dz =  CVI(A$)
'    PRINT "az#="; az#
'    PRINT "bz!="; bz!
'    PRINT "cz%="; cz%
'    PRINT "dz ="; dz
'    CLOSE 1


and see if it compiles end executes correctly.
Then, little by little, uncomment lines until we find the one that breaks.

I can't tell if it's a win7 issue or a 64-bit issue.

Steve

jcfuller

  • Guest
Re: BxbAsm
« Reply #269 on: May 10, 2012, 01:05:26 PM »
Steve,
Runs fine when commented but crashes if only CLEAR is uncommented so that appears to be the culprit.

James