Re: [cc65] char-copy and interrupts (C64)

Date view Thread view Subject view

From: MagerValp (MagerValp_at_cling.gu.se)
Date: 2003-03-14 10:26:51


>>>>> "TS" == Tim Schürmann <tischuer_at_web.de> writes:

TS> My question is: which is the best method to do this
TS> interrupt-thing in CC65? Should i use inline-assembler or the
TS> POKE-sequence above (which disables the CIA-timer)?

Either way works. SEI/CLI makes for shorter code though, and at least
I think that's more readable.

TS> I noticed, that CC65 uses interrupts internally (as far as i
TS> remeber for the timer-stuff - is this right?), so when it's save
TS> to call this routine? Is there a C-function, that is doing this
TS> interrupt-stuff already (i'm using CC65 2.9.0)?

6502.h has SEI() and CLI() macros.

-- 
    ___          .     .  .         .       . +  .         .      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-03-14 10:29:05 CET