Skip to main content
Visitor II
February 11, 2004
Question

What determines a 16bit or 8 bit value

  • February 11, 2004
  • 4 replies
  • 1025 views
Posted on February 11, 2004 at 05:10

What determines a 16bit or 8 bit value

    This topic has been closed for replies.

    4 replies

    kaneAuthor
    Visitor II
    February 10, 2004
    Posted on February 10, 2004 at 13:20

    More ASM and I've stumbled across another problem...

    I'm working with some signed binary which is stored in 16bit local variables e.g.

    BYTES

    EXTERN test1.b ; 16-bit

    What defines this as a 16bit value? Most of the routine does not rely on 16bit values anymore, so can I easily convert to 8 bit and not worry about the high and low bytes?

    Visitor II
    February 10, 2004
    Posted on February 10, 2004 at 16:19

    This is just declaring the data as being external, the actual data will be allocated like this:

    .test1 DS.W 1 ; declare 16bit data

    the dot before the data name declares the value as public.

    Have a look at the ST7 Assembler/Linker User Manual for further details.

    Regards

    sjo
    kaneAuthor
    Visitor II
    February 11, 2004
    Posted on February 11, 2004 at 04:56

    Thanks, I've been looking for something like that, but so many to download I didn't know which one I needed.

    Thanks
    Visitor II
    February 11, 2004
    Posted on February 11, 2004 at 05:10

    It is ''ST7 Assembler-Linker User Manual'' downloadable form the same site. I attach it for you.

    [ This message was edited by: Jatin on 11-02-2004 09:41 ]

    [ This message was edited by: Jatin on 11-02-2004 09:43 ]

    ________________

    Attachments :

    1000890988.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzrM&d=%2Fa%2F0X0000000bTf%2Fgqw.wuHlKPly3sEQL6ue2w37stFrQbTv2fe8hX0PyXA&asPdf=false