Re: 65816 long addressing in assembler

From: Cameron Kaiser (spectre_at_floodgap.com)
Date: 2008-10-09 07:51:30

> I'm revising my assembler. And I'm not satisfied with the way I told my
> assembler how to treat a label as long in 65816 mode. Let me show you
> what I mean:
>  
> 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 can tell you what xa does: right now, nothing. If you want a 24-bit address
for LABEL, you have to ask for it explicitly. There were too many glitches
trying to do it automatically. I might revisit the code later in a future
version.

-- 
------------------------------------ personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckaiser@floodgap.com
-- I went to San Francisco. I found someone's heart. Now what? ----------------

       Message was sent through the cbm-hackers mailing list

Archive generated by hypermail pre-2.1.8.