[comp.sys.atari.st] MW_C Bugs

FORTINP%BNR.CA@FORSYTHE.STANFORD.EDU (Pierre Fortin, P.) (08/09/88)

Well, I am finally getting around to learning/using C and 68000 asm...

However, I have run into the following problems which I think I can
safely say are not of my doing:

1)  I tried assembling the DIALXR program in the July/88 ST-Log...
    Oops, differrent assembler syntax...  (search, thumb, search, flip)
    Ah!  MW_C has "as68toas" source conversion program.  Great!  Let's
    let 'er rip...

    Hmmmm...?
    Input:      loop  tst.l   (a0)+    ;is vector available?
    Output:     loop: tst.l   (a0)+;is    /vector available?

    OK, let's try a test...

    Input:      loop  tst.l   -(a0)    ;is vector available?
                loop  tst.l   (a0)+    ;is vector available?
                loop  tst.l   a0       ;is vector available?
                loop  tst.l   (a0)     ;is vector available?
                etc.
    Output:     loop: tst.l   -(a0)    /is vector available?
                loop: tst.l   (a0)+;is /vector available?   <===<<< ;-(
                loop: tst.l   a0       /is vector available?
                loop: tst.l   (a0)     /is vector available?
                etc.

2)  Awright, manual fix to the above and we should be off and running...
    Surprise! Now "as" wants a piece of me...

    Input (any of):   btst.b  $1,status_flag /is bit set?
                      bset.b  $1,status_flag /set bit
                      (and probably 'bclr.b' & 'bchg.b')
    Output_msg:    "o: undefined symbol"

    Yet...  this code made it unscathed through "as68toas"; while
    a 'sub.l #' got converted to 'subi.l $'...  nice touch here :-)

    BUT...  my 68000 manual says "Attributes: Size=(Byte,Long)"!...?

Pierre Fortin
FORTINP@BNR.BITNET  (I think, I've never mailed myself...)
In Canada's capital:  why do I usually have to locate it relative to
Toronto & Montreal?  Hmmm...

BTW: Is Mark Williams Company on this net?