Re: [cc65] 24bit addresses

Date view Thread view Subject view

From: Groepaz (groepaz_at_gmx.net)
Date: 2003-06-17 15:38:14


On Tuesday 17 June 2003 10:04, Ullrich von Bassewitz wrote:
> 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

yes ofcourse :O) however, since this is a thing used pretty often in 65816 
code a somewhat more convinient solution would be really nice. (also, its 
easier to replace the "^" used in ja by some other prefix, instead of a whole 
expression :=P)

gpz
----------------------------------------------------------------------
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 15:40:27 CEST