nocrew / ostis

Atari ST Emulator
GNU Lesser General Public License v2.1
20 stars 4 forks source link

Clock functions #130

Closed larsbrinkhoff closed 8 years ago

larsbrinkhoff commented 8 years ago

Start defining a separate unit which controls the system clock. This unit makes calls to other devices to advance their state machines.

larsbrinkhoff commented 8 years ago

Oops, have to fix a bug.

larsbrinkhoff commented 8 years ago

Fixed. Go ahead.

larsbrinkhoff commented 8 years ago

The delay API keeps a linked list, sorted by time, with the time delta in each element. The elements are allocated with malloc. The API is used very frequently, e.g. every four clock cycle in the MMU, so this may impose an overhead. Maybe the element should be statically allocated in an array.