RE: [cc65] Apple II Libraries

Date view Thread view Subject view

From: CHRIS (chris_at_CosmicWolf.com)
Date: 2003-05-06 00:09:29


> now the question is, what about the implementation i have used for some
> hackery so far:
>
> clock_t clock(void)
> {
> 	static clock_t fake;
> 	return(fake++);
> }

Yeah, that is how I would do it.

> ps: is it really that the plain apple2 doesnt even have some sort
> of timer?
> (you dont need periodic irq if you have a timer, obviously :=))

Nope, no timer.  For time, people often purchased a "clock" card;
most models (I had a TimeMaster II H.O. card) had a method of enabling
interrupts (60 times a second).  There is a VSYNC memory location that tells
you if you are in a veritcal retrace, but no way to generate an interrupt
from it.  Some extra hardware is needed to do that; I think the mouse card
uses it to generate ~60 interrupts/sec.

> gpz

I'm still trying to figure out how to compile everything!
Using Windows; have Red-Hat Linux 8.0 in an emulator (Connectix) but
am really really rusty with Unix.

Later!
// CHRIS


----------------------------------------------------------------------
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-05-06 00:06:12 CEST