RE: 65816 long addressing in assembler

From: Ulf Diabelez Harries (ulf_at_harries.dk)
Date: 2008-10-09 08:05:13

>Example:
>
>.ba $C000                       ; begin address
>LABEL           .by 0, 1, 2, 3, 4
>                lda     $C000                   [1]
>                lda     $00C000         [2]
>                lda     LABEL                   [3]
>
>As my assembler not only checks the value but also checks the textual
>lenght of a value, it is quite obviously that line [1] should be treated
>as normal and [2] as long (). But what about [3]?

I'd prefer the assembler to make the (for me) obvious choice and traslate it to the shortest possible value.
If I want 24bit addressing, I'd prefer either to specify something like LDA.L or switch the assembler temporarily into 24bit addressing mode via preprocessor.

/ulf


       Message was sent through the cbm-hackers mailing list

Archive generated by hypermail pre-2.1.8.