Re: [cc65] 24bit addresses

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-06-17 10:04:43


Hi!

On Tue, Jun 17, 2003 at 03:39:48AM +0200, Groepaz wrote:
> 1) getting the MSB of a 24bit value.... something like the > operator but
> returning the upper 8 bits of a 24bit range instead.

        (val >> 16) & $FF

> 2) forcing 16bit absolute opcodes with 8bit arguments....
[...]
> 3) like 2), but for 24bit addresses.

I think we had the discussion before. I don't know an easy way to do this,
because the existing operators are handled as part of the expression. The '<'
and '>' operators generate 8 bit expressions, and the code generator chooses
zero page addressing whenever it detects an 8 bit address. Forcing it the
other way round is not possible, so I will have to find another way. I will
think about it.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-06-17 10:05:36 CEST