Author Topic: Get time without firmware with SDCC  (Read 666 times)

0 Members and 1 Guest are viewing this topic.

Offline Arnaud

  • Supporter
  • 6128 Plus
  • *
  • Posts: 683
  • Country: fr
  • Liked: 601
  • Likes Given: 1227
Get time without firmware with SDCC
« on: 20:53, 20 October 15 »
Hello,

i'am trying to replace all my functions with firmware to 100% assembler.

The first one is to get time (the second is read file but i'll see later), is there an easy way to get the time as with CALL #0xBD0D.

Thanks,
Arnaud.

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.336
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2278
  • Likes Given: 3478
Re: Get time without firmware with SDCC
« Reply #1 on: 21:00, 20 October 15 »
Get time counts 300hz interrupts.
So for assembler do the same ;)

My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline Arnaud

  • Supporter
  • 6128 Plus
  • *
  • Posts: 683
  • Country: fr
  • Liked: 601
  • Likes Given: 1227
Re: Get time without firmware with SDCC
« Reply #2 on: 22:00, 20 October 15 »
Ok it's easy ...

... Cpctelera just provides cpct_setInterruptHandler :D

Thanks @arnoldemu.