From: Bill Z. <wrz...@po...> - 2005-04-02 20:23:11
|
Steven Schmidt wrote: > Do you know of an existing editor that works in this manner? What part is giving you trouble? Are you familiar enough with binary and boolean math to work through this? Here are some links with an excessive amount of detail: http://mathforum.org/dr.math/faq/faq.bases.html http://mathforum.org/library/drmath/view/54311.html http://mathforum.org/library/drmath/sets/select/dm_twos_complement.html The "twos complement" link is most relevant, as it explains how negative numbers work. I can't find a good, decisive tutorial on binary math, but if you search around that site, you should be able to find answers. Anyway, to answer your question, my own Casio CZ editor is reasonably similar. You need to chop your numbers into 7-bit chunks, and the CZ works with 4-bit chunks. The math is the same, only the constants differ. I've pulled all the code into a common superclass: synthdrivers/CasioCZ1000/CZModel.java -Bill |