Author Topic: TI-Boy SE  (Read 224735 times)

0 Members and 3 Guests are viewing this topic.

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: TI-Boy SE
« Reply #765 on: November 02, 2010, 05:45:12 pm »
It might be possible, but without interrupts I don't have very accurate or reliable timing. I tried playing a solid tone and it sounded awful. Now that I think about it though, it could be because Wabbitemu had bad sound emulation recently.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline qazz42

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1130
  • Rating: +30/-12
  • hiiiiiiiii
    • View Profile
Re: TI-Boy SE
« Reply #766 on: November 02, 2010, 05:51:08 pm »
yeah, wabbit was ear raping me too `-`

I think what you had was probably fine tho, and remember, just add the option to turn off and on :D

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: TI-Boy SE
« Reply #767 on: November 02, 2010, 07:01:36 pm »
TI-Boy already got sound :P
Not in this version.
oh

I assume by what you discuss after this post that sound might be gone for good?

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: TI-Boy SE
« Reply #768 on: November 02, 2010, 07:06:57 pm »
Maybe a light version w/o sound? Or is the new version using interrupts for something else?

Offline qazz42

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1130
  • Rating: +30/-12
  • hiiiiiiiii
    • View Profile
Re: TI-Boy SE
« Reply #769 on: November 02, 2010, 07:14:40 pm »
Idk, calc84 would be the best to answer this x.x

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: TI-Boy SE
« Reply #770 on: November 02, 2010, 11:14:17 pm »
When an interrupt occurs the return location is pushed to the stack. I am using the stack pointer in an odd way to make CPU emulation faster, thus I can't use interrupts. I actually use one interrupt, the ON interrupt, because that is the Quit key and doesn't need to know where to return. As for sound, I am still uncertain as to whether I can pull that off.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: TI-Boy SE
« Reply #771 on: November 03, 2010, 12:22:35 am »
Ahh ok. Sound really isn't a big deal, it was just kind of a novelty in the old build anyway. Although it was neat. =)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: TI-Boy SE
« Reply #772 on: November 03, 2010, 12:38:27 am »
Ah ok, well it doesn't matter much since most people got no adapters, although it would be cool if you manage to pull that off. :)

Offline DrDnar

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 546
  • Rating: +97/-1
    • View Profile
Re: TI-Boy SE
« Reply #773 on: November 03, 2010, 03:06:33 am »
The (crystal) timers don't need interrupts to work. You can check them passively. I assume the issue here is being able to force the link lines high/low at the right time when you're using them passively. Quick research on Wikipedia suggests that if you get the pitch constant to within 25 cents, the variation in pitch will be acceptable, perhaps unnoticeable. To provide, say, 8000 Hz audio, you'd have to get your code to check and output 8000 times a second, with a sample-to-sample time variation of no more than 1.1%. . . . Actually, these numbers are starting to make this sound pretty hard. With interrupts, the timing is easy, but without them, you'd need even way more checks than for doing the grayscale.
"No tools will make a man a skilled workman, or master of defense, nor be of any use to him who has not learned how to handle them, and has never bestowed any attention upon them. . . . Yes, [] the tools which would teach men their own use would be beyond price."—Plato's The Republic, circa 380 BC

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: TI-Boy SE
« Reply #774 on: November 03, 2010, 08:05:02 am »
I'm already using the crystal timers without interrupts :)
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: TI-Boy SE
« Reply #775 on: November 03, 2010, 12:00:43 pm »
One question I have: what makes sound so hard to implement in this version compared to the previous one? Is it just because of the lower RAM usage (to keep compatibility with newer calcs)?

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: TI-Boy SE
« Reply #776 on: November 03, 2010, 02:11:22 pm »
Because I need interrupts for accurate timing.

Edit:
That is, I need interrupts to guarantee that my sound code will be executed with correct timing.
« Last Edit: November 03, 2010, 02:12:44 pm by calc84maniac »
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline qazz42

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1130
  • Rating: +30/-12
  • hiiiiiiiii
    • View Profile
Re: TI-Boy SE
« Reply #777 on: November 03, 2010, 03:06:22 pm »
how off would the sound be if you didnt have the interrupts. and is sounds possible without interrupts? I mean without caring about the timing ;)

Offline KisforKeyboard

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 19
  • Rating: +1/-0
    • View Profile
Re: TI-Boy SE
« Reply #778 on: November 03, 2010, 03:11:44 pm »
haha wow so this is that thing where you have gameboy on a calculator

Offline qazz42

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1130
  • Rating: +30/-12
  • hiiiiiiiii
    • View Profile
Re: TI-Boy SE
« Reply #779 on: November 03, 2010, 03:17:51 pm »
yep, problem is that newer ones won't work unless you got a special beta from calc84 :P although there is the gbc4nspire but you need a nspire and a crappy OS. welcome to omni btw (I dont post in introduce yourself ^.^)