This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's z80 & ez80 Assembly subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. Z80 & 68k Assembly => z80 & ez80 Assembly
Author Message
anduril66
Anduril is the Flame of the West!


Member


Joined: 25 May 2003
Posts: 129

Posted: 01 Oct 2003 12:49:42 pm    Post subject:

Is there any hex program that can make your calc play sounds without any accessories besides earphones?
Back to top
interwined


Newbie


Joined: 26 Sep 2003
Posts: 39

Posted: 01 Oct 2003 02:07:48 pm    Post subject:

What exactly is the point of even having your calculator produce a sound? The quality would seem to be pretty bad as well as the little memory it has and standard headphones don't fit in where the link does.
Back to top
JoeImp
Enlightened


Active Member


Joined: 24 May 2003
Posts: 747

Posted: 01 Oct 2003 03:11:54 pm    Post subject:

Even if there's no use for it, (Which there is), its great to just learn stuff too. The only sound ive worked with is with TI-Jukebox. It comes with a program to make your own music, then play it in the jukebox. I know some people here might know how to do it all yourself tho.

Imp
Back to top
Adm.Wiggin
aka Tianon


Know-It-All


Joined: 02 Jun 2003
Posts: 1874

Posted: 01 Oct 2003 05:36:48 pm    Post subject:

Why do you use the TI-Jukebox? use CalcMod... it makes Jukebox look like a joke! Smile and, i have made such a program... might send it to you if i could get an e-mail or something...
Back to top
anduril66
Anduril is the Flame of the West!


Member


Joined: 25 May 2003
Posts: 129

Posted: 02 Oct 2003 09:50:11 am    Post subject:

andurilti@yahoo.ca

Or, you could post it (the hex code here).

Thanks.
Back to top
Adm.Wiggin
aka Tianon


Know-It-All


Joined: 02 Jun 2003
Posts: 1874

Posted: 02 Oct 2003 08:50:05 pm    Post subject:

ok, ill post the hex code :
Code:
AsmPrgm
3E540600
CDAA9D4F
C53E44CD
AA9D626B
C1CDBA9D
C9F5EFC5
41217984
F177EFE3
4AEFEF4A
C9F31ED0
E5793D20
FD7BEE03
5FD300E1
2B20F1FB
C9

Thats all folks!

INPUTS :
T = Tone
D = Duration


CREDIT FOR INSPIRATION GOES TO Darth Android!


Last edited by Guest on 02 Oct 2003 08:50:50 pm; edited 1 time in total
Back to top
anduril66
Anduril is the Flame of the West!


Member


Joined: 25 May 2003
Posts: 129

Posted: 03 Oct 2003 12:57:23 pm    Post subject:

Sweet, by any chance do you have the asm source (like the compiler commands)? It's okay if you don't. Thanks a bunch.
Back to top
Adm.Wiggin
aka Tianon


Know-It-All


Joined: 02 Jun 2003
Posts: 1874

Posted: 03 Oct 2003 04:04:02 pm    Post subject:

you want the source? for just the routine? or my whole program?
Back to top
anduril66
Anduril is the Flame of the West!


Member


Joined: 25 May 2003
Posts: 129

Posted: 06 Oct 2003 09:57:11 am    Post subject:

Just the routine (the hex code you posted).
Back to top
sgm


Calc Guru


Joined: 04 Sep 2003
Posts: 1265

Posted: 06 Oct 2003 02:51:54 pm    Post subject:

Ever heard of a disassembler?
Back to top
Adm.Wiggin
aka Tianon


Know-It-All


Joined: 02 Jun 2003
Posts: 1874

Posted: 06 Oct 2003 09:17:20 pm    Post subject:


Code:
;   ---------= Make a sound =---------
;       c=frequency, b=duration
beep:
    di
    ld e,$D0
beepl1:
    ld  a,c
beepl2:
    dec a
    jr  nz,beepl2
    ld  a,e
    xor %00000011
    ld  e,a
    out (0),a
    djnz beepl1
    ei
    ret
does that help? the only problem with a decomplier is that it may not sometimes work correctly (with bcalls and the like)

if you use this, you must give credit to : Dan Weiss aka Dwedit
he created IceClimb which is where this source came from
Back to top
anduril66
Anduril is the Flame of the West!


Member


Joined: 25 May 2003
Posts: 129

Posted: 09 Oct 2003 09:43:16 am    Post subject:

Are ther anly numbers that d and t have to be in between. When I run the program exactly as you typed it, my calc freezes.
Back to top
Adm.Wiggin
aka Tianon


Know-It-All


Joined: 02 Jun 2003
Posts: 1874

Posted: 09 Oct 2003 04:47:21 pm    Post subject:

um, it shouldnt freeze Confused uh oh...


Darth: can you please post the hex code to the version that i sent you? cause i KNOW that it worked Neutral
Back to top
anduril66
Anduril is the Flame of the West!


Member


Joined: 25 May 2003
Posts: 129

Posted: 10 Oct 2003 11:05:33 am    Post subject:

Also, my earphone pins are too large to fit into the hole. Do you need special earphones or an adaptor?
Back to top
Adm.Wiggin
aka Tianon


Know-It-All


Joined: 02 Jun 2003
Posts: 1874

Posted: 10 Oct 2003 04:26:45 pm    Post subject:

go down to RadioShack (or equivilant) and get yourself a 3.5mm to 2.5mm adapter...

Note : if you just plan to use normal sound, then you can get either mono or stereo adapter, but if you plan to use CalcMod, then get Stereo... cause it supports it :)

you can also tune to a blank FM (or is it AM?) station and hold the calc up to the antenna... sound! Smile
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are UTC - 5 Hours

 

Advertisement