Re: [cc65] mouse irq callback

Date view Thread view Subject view

From: MagerValp (MagerValp_at_cling.gu.se)
Date: 2003-10-04 01:37:20


>>>>> "G" = Groepaz <groepaz_at_gmx.net> wrote:

G> mmmh not 100% sure, but i think the compiler is correct here....
G> however, this:

G> c=(((int)i)/8)

G> should result in what you expect.

Doesn't seem to help here:

;
; *x = (((unsigned int) gfx_pointer_xpos) / 8);
;
L0054:	ldy     #$03
	jsr     ldaxysp
	sta     sreg
	stx     sreg+1
	lda     _gfx_pointer_xpos
	lsr     a
	lsr     a
	lsr     a
	ldy     #$00
	sta     (sreg),y

-- 
                       Wildstar delenda est
    ___          .     .  .         .       . +  .         .      o   
  _|___|_   +   .  +     .     +         .  Per Olofsson, arkadspelare
    o-o    .      .     .   o         +          MagerValp_at_cling.gu.se
     -       +            +    .     http://www.cling.gu.se/~cl3polof/
----------------------------------------------------------------------
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-10-04 01:39:38 CEST