音楽は素敵な力を持っていると、前から思っていた。高校時代にギターの勉強をやってみたし、中学の時にリコーダーも結構楽しかった。大学に入ったら、ピアノを習い始めた。なかなか進んでいないけど、少しずつ進歩している。でもそれぞれ今話していた楽器はとても持ちやすいとは言えない。そこはハーモニカが登場する。ポケットに入れるサイズで、音も良いし、そこまで弾きにくくない。
僕の選んだモデルはHohnerのGolden Melodyという。とても使いやすいけど、気を付かないと簡単に錆びるから、ケア出来る人にお進め。こういう形の楽器:
従兄弟にもプレゼントしようと思っていたけど、やはり子供には音の質がある程度下げても、取りあえず弾きやすくて上手な奴が必要と思って、スズキのBlues Masterにしておいた。 こんな感じの:
Blues MasterはOverblowingとかは少し無理なんだけど、弾き始める時にGolden Melodyより音を出しやすい。
ちなみに、今一つ一つ音符を出す練習をしている。試験があるので、あまりそんなことする時間がないけど、良いストレス解消方法になっている!
早く”Oh Susanna”とかBachの”Minuetto"が弾けるようになりたいなぁ。
ではでは、この辺失礼致しますっ! (Z80もまだ研究中だべー)
Showing posts with label Tutorials. Show all posts
Showing posts with label Tutorials. Show all posts
Saturday, May 10, 2014
Wednesday, April 23, 2014
最近ザイログのZ80のアセンブラに興味がある。
弟はITの勉強を手伝ってくれと言うから、特に関心を持たず弄ってみたけど、流石にそれだけ有名のあるプロセッサーだね。Z80のアセンブラはちょうど現在によく使われているMCU(マイクロコントローラーユニット)と今のコンピューターの間のアセンブラを利用しているので、教育に良いと言われる理由が良く解った。
プロラッミングしてみたら、やはり面白いと思ってしまった。結構基本的なアセンブラなんだけど、とりあえず常識としてしっかり学んでおくようにしたい。その価値があると判断した。そういう訳なんだけど、もしかしたらもう一つのブログでいくつか練習のために書いてみた例のようなプログラムをポストするかもしれない。
ちなみに、知りたい人がいらっしゃると、とても便利な開発ソフトを見つけたよ。ジェノヴァ大学の先生が作って下さったらしい。エディタはエミュレータ丸ごとと一緒になっていて、もの凄く楽。ホームページもソフトも英語だし、実際にアイコンがとても解りやすくて、英語をあまり馴染まなくても大丈夫というぐらいの使い勝手。良かったら試してみたい人はここからダウンロードしてみてね: http://www.esng.dibe.unige.it/deeds/Index.htm
誰も怖がらせたくないけど、一応今日書いたパラレルで入力した6ビットのデータをシリアルで出力するプログラムをここに添付する。勿論最初の例としてかなり難しいけど、既に他のアセンブラをお使いになった方には具体的にZ80のアセンブラがどんな感じかを解ってもらえるには最適と思う。まだ経験のない人には、これぐらいのレベルに着くまで多分1週間から1ヶ月まで掛かれるとかもしれない。では、早速だけど:
;Parallel-Serial 6 bit
;This program gets a parallel INPUT on port 12h
;Bit 0 is the TRIGGER, if it changes from 0 to 1
;data is sent serially on bit 0 of the OUTPUT port 14h.
;Data is composed of 6 bits from bit 1 to 6 of INPUT.
;Bit 7 is supposed to be always in low state.
;Once a sequence is sent, program waits for next one.
INPUT EQU 12H ;Input port address
OUTPUT EQU 14H ;Output port address
ORG 0000H ;Z80 starts here on reset
JP START ;skips memory reserved to interrupts
ORG 0100H ;our program will start from address 100h
START: LD SP, 0FFFFH ;inizializes the stack pointer
LD B, 00H ;I will use register B to fast clear register A
WAIT_0: IN A, (INPUT) ;get INPUT
BIT 0, A ;when bit 0 goes from low to high we are ready
JP NZ, WAIT_0 ;to send data serially on bit 0 of the OUTPUT port
WAIT_1: IN A, (INPUT)
BIT 0, A
JP Z, WAIT_1
LD C, A ;saves the INPUT in register C
LD D, 08H ;register D will count the number of sent bits
NEXT: RR C ;rotates C right. Bit 0 will be moved to the Carry flag
LD A, B ;resets A
RLA ;RLA gets the Carry flag an pushes it in bit 0 of A register
OUT (OUTPUT), A ;updates OUTPUT
CALL WAIT_1MS ;waits 1ms (WAIT_1MS is a function)
DEC D ;count the sent bit
JP NZ, NEXT ;if there are still bits to be sent, keeps sending
JP WAIT_0 ;otherwise jumps to start waiting for next sequence.
WAIT_1MS:LD A, 238D ;we will do 238 cycles to pause 1ms
LOOP: DEC A ;that is because the system is supposed to work with a 10MHz clock
NOP ;and instructions inside the loop use 42 clock cycles.
NOP ;respectively DEC = 4, NOP = 4, JP = 10
NOP ;thus for a total of about 10,000 cycles.
NOP
NOP
NOP
NOP
JP NZ, LOOP
RET ;goes back to main program
最後に忘れて欲しくないこと:今SDCCはZ80のアセンブラも書けるので、アセンブラの使いたくない人はCを使ってこのオープンソースコンパイラを使用してプログラミンング出来るよ。質問があれば、どうぞコメントはいつも大歓迎。それでは、また今度!
プロラッミングしてみたら、やはり面白いと思ってしまった。結構基本的なアセンブラなんだけど、とりあえず常識としてしっかり学んでおくようにしたい。その価値があると判断した。そういう訳なんだけど、もしかしたらもう一つのブログでいくつか練習のために書いてみた例のようなプログラムをポストするかもしれない。
ちなみに、知りたい人がいらっしゃると、とても便利な開発ソフトを見つけたよ。ジェノヴァ大学の先生が作って下さったらしい。エディタはエミュレータ丸ごとと一緒になっていて、もの凄く楽。ホームページもソフトも英語だし、実際にアイコンがとても解りやすくて、英語をあまり馴染まなくても大丈夫というぐらいの使い勝手。良かったら試してみたい人はここからダウンロードしてみてね: http://www.esng.dibe.unige.it/deeds/Index.htm
誰も怖がらせたくないけど、一応今日書いたパラレルで入力した6ビットのデータをシリアルで出力するプログラムをここに添付する。勿論最初の例としてかなり難しいけど、既に他のアセンブラをお使いになった方には具体的にZ80のアセンブラがどんな感じかを解ってもらえるには最適と思う。まだ経験のない人には、これぐらいのレベルに着くまで多分1週間から1ヶ月まで掛かれるとかもしれない。では、早速だけど:
;Parallel-Serial 6 bit
;This program gets a parallel INPUT on port 12h
;Bit 0 is the TRIGGER, if it changes from 0 to 1
;data is sent serially on bit 0 of the OUTPUT port 14h.
;Data is composed of 6 bits from bit 1 to 6 of INPUT.
;Bit 7 is supposed to be always in low state.
;Once a sequence is sent, program waits for next one.
INPUT EQU 12H ;Input port address
OUTPUT EQU 14H ;Output port address
ORG 0000H ;Z80 starts here on reset
JP START ;skips memory reserved to interrupts
ORG 0100H ;our program will start from address 100h
START: LD SP, 0FFFFH ;inizializes the stack pointer
LD B, 00H ;I will use register B to fast clear register A
WAIT_0: IN A, (INPUT) ;get INPUT
BIT 0, A ;when bit 0 goes from low to high we are ready
JP NZ, WAIT_0 ;to send data serially on bit 0 of the OUTPUT port
WAIT_1: IN A, (INPUT)
BIT 0, A
JP Z, WAIT_1
LD C, A ;saves the INPUT in register C
LD D, 08H ;register D will count the number of sent bits
NEXT: RR C ;rotates C right. Bit 0 will be moved to the Carry flag
LD A, B ;resets A
RLA ;RLA gets the Carry flag an pushes it in bit 0 of A register
OUT (OUTPUT), A ;updates OUTPUT
CALL WAIT_1MS ;waits 1ms (WAIT_1MS is a function)
DEC D ;count the sent bit
JP NZ, NEXT ;if there are still bits to be sent, keeps sending
JP WAIT_0 ;otherwise jumps to start waiting for next sequence.
WAIT_1MS:LD A, 238D ;we will do 238 cycles to pause 1ms
LOOP: DEC A ;that is because the system is supposed to work with a 10MHz clock
NOP ;and instructions inside the loop use 42 clock cycles.
NOP ;respectively DEC = 4, NOP = 4, JP = 10
NOP ;thus for a total of about 10,000 cycles.
NOP
NOP
NOP
NOP
JP NZ, LOOP
RET ;goes back to main program
最後に忘れて欲しくないこと:今SDCCはZ80のアセンブラも書けるので、アセンブラの使いたくない人はCを使ってこのオープンソースコンパイラを使用してプログラミンング出来るよ。質問があれば、どうぞコメントはいつも大歓迎。それでは、また今度!
Thursday, March 6, 2014
Cooperate to the Open Japanese-English Dictionary! オープン日英辞典に協力しましょう! WWWJDIC & JMdic
Have you ever felt your dictionary should contain more expressions or lacks of words?? The open JMDict project managed by Jim Breen and few other brave official editors is completely free and contains more than 173,000 entries as of now. But the best it is You can contribute and add your own (each entry submission is carefully revised)!
I have been using the WWWJDIC for very long time, and I love the many related software that generated from it, as the Zkanji project that I use on an every day basis. Sometimes I have to spend a considerable amount of time in deciphering the complete meaning of a word, and it is quite fulfilling to know my efforts were not only for me, but also helped the people to come! Moreover, updating the dictionary also aid my review, as I can also have the new vocabulary in my flash card program (Zkanji) after some time (few months).
皆さん、一緒にJMDictを磨いていきましょう!
http://www.edrdg.org/jmdictdb/cgi-bin/edform.py?svc=jmdict&sid=
Just today during my studies I dropped the following submissions (still pending):
I have been using the WWWJDIC for very long time, and I love the many related software that generated from it, as the Zkanji project that I use on an every day basis. Sometimes I have to spend a considerable amount of time in deciphering the complete meaning of a word, and it is quite fulfilling to know my efforts were not only for me, but also helped the people to come! Moreover, updating the dictionary also aid my review, as I can also have the new vocabulary in my flash card program (Zkanji) after some time (few months).
皆さん、一緒にJMDictを磨いていきましょう!
http://www.edrdg.org/jmdictdb/cgi-bin/edform.py?svc=jmdict&sid=
Just today during my studies I dropped the following submissions (still pending):
- 食欲をそそる
- 逢い引き
- 面積
- ご自愛ください
- 感謝感激
- 感謝感激雨霰
- 汚職撲滅
- 今までで;これまでで
- 最大規模
- 大声で叫ぶ
- 宇治茶
- 静岡茶
- 日本三大茶
- 三大茶
- 三大銘茶
- 二大
- 日本二大茶
Saturday, January 18, 2014
Copy - The new frontier of Clouding! and why it wins over Dropbox and Google Drive
I have been trying many cloud storage services, but most of them made me unsatisfied, with Copy Sync, for the first time after long I was pleasurably satisfied.
Let me tell you why. Well, first you might try it yourself the special 20GB of storage campaign: if you use an invitation link to register you get 5 extra GB together with the one inviting you (instead of 15GB)!! I drop here mine so you can use it to register later if you like.
https://copy.com?r=IwvAB6
The second part of my stratification in fact lies in what other clouding software left me unsatisfied with.
Feel free to ask any question regarding the various differences in the cloud storage services and I'll be more then happy to reply you!! Just drop a comment!
https://copy.com?r=IwvAB6 <- to register ;)
Let me tell you why. Well, first you might try it yourself the special 20GB of storage campaign: if you use an invitation link to register you get 5 extra GB together with the one inviting you (instead of 15GB)!! I drop here mine so you can use it to register later if you like.
https://copy.com?r=IwvAB6
The second part of my stratification in fact lies in what other clouding software left me unsatisfied with.
- First, Dropbox does Delta Syncing and it's really cool even to use together Truecrypt Volumes. But free storage is just not enough: 2GB end in the blink of an eye.
- Most of cloud services out there, including Google Drive (as of 2014/01), fail in meeting on one very basic requirement: differential syncing. That is delta sync, the capacity to actually re-upload only the single part of a file that changed without re-transfering the whole thing wasting bandwidth.. Crucial when often changing bits of huge files as I do.
- Copy sync has 20GB of storage (if you use the link above to register), delta syncing with real-time syncronization (based on timestamps so be aware of properly setting your Truecrypt Volume in case you plan to use them together) and clients for ALL platforms, including Linux, Mac OS, Windows, Android, iOS, Windows Phones and more to come!
- The Web-interface is just good-looking and intuitive, I like it. A true eye-candy ;)
Feel free to ask any question regarding the various differences in the cloud storage services and I'll be more then happy to reply you!! Just drop a comment!
https://copy.com?r=IwvAB6 <- to register ;)
Tuesday, September 17, 2013
貧乏大学生生活・サバイバル料理教室・その一 「ペンネ・カロテ・パンチェッタ・ポモドロ」
よしと、今年の貧乏大学生生活は始まるのだ。
どうやって今年度も終わりまで生き残れるのだろう。
さあ、でもその一つは料理だ。自分でご飯を作って何となく出来るだけ早くて安い料理を作るコツを身に覚えないといけない!
だと、どうすれば良い?
ふふふ、知らんわそんなの! 僕も精一杯で何となくしようとしている。
といっても、もしかして、僕の経験を聞いて少しでも良いアイデアが出るかも知れない。
そう考えながら、このサバイバル料理教室のシリズを始めようとする。
では、今回作った料理は「ペンネ・カロテ・パンチェッタ・ポモドロ」になっている。
日本語で「人参・豚バラ・トマトソースのペンネ」という意味。
知らない人がいるとペンネはイタリアのパスタの一種だ。
どうやって今年度も終わりまで生き残れるのだろう。
さあ、でもその一つは料理だ。自分でご飯を作って何となく出来るだけ早くて安い料理を作るコツを身に覚えないといけない!
だと、どうすれば良い?
ふふふ、知らんわそんなの! 僕も精一杯で何となくしようとしている。
といっても、もしかして、僕の経験を聞いて少しでも良いアイデアが出るかも知れない。
そう考えながら、このサバイバル料理教室のシリズを始めようとする。
では、今回作った料理は「ペンネ・カロテ・パンチェッタ・ポモドロ」になっている。
日本語で「人参・豚バラ・トマトソースのペンネ」という意味。
知らない人がいるとペンネはイタリアのパスタの一種だ。
あんまり長く説明しないけど、サバイバル料理だから間に合わせも大事だ。
勉強も忙しいし、よく実際に「これしかないから、とりあえずこれで何となく程度美味しい料理を作ってみよう」という形になってしまうだろう。
材料は
- ペンネ 70グラムか100グラム
- トマトソース 半缶
(160ミリリットルぐらい) - 小さい人参 一本
(約60・80グラムだろう) - 豚バラ 約35・50グラム
(僕はイタリアだから一センチの厚さのパンチェッタにした) - オーリブ油 (Extra Virgin Olive Oil) 大さじ一つ
- 塩 少々
- パルメザンチーズ 少々
まずパスタを茹でる鍋に水を入れ、火につける。
後は蓋のある小鍋を探し、その中に1.5センチの四角い形にした人参とオーリブ油と塩を入れる。小鍋を小さい火につけて、蓋をする。人参が柔らかくなるまで待ちながら(約10分掛かる)、豚バラも1.5センチぐらい四角くして切る。この時に水が沸騰したはずだ。パスタの鍋にパスタと塩(大さじ一つぐらい)を入れる。人参が良い感じになる時に豚バラも小鍋に入れ、色が抜けるまで優しくミックスする。トマトソースを入れる。一分したら火を切って、こうやって出来たソースをもう出来ているパスタにミックスして、パルメザンチーズを掛けて食べる。出来やがり!
全部で20分で出来るはず。
Sunday, September 1, 2013
How To Apply Contact Lenses
You can find good vids on youtube on applying contact lens... just like this one:
Yet I feel for a total beginner like me it's still not enough...
Will I ever be able to put lens fast and smoothly??
Moreover it seems like my eyes don't really like them...
Two things I found to be useful myself (but might be totally wrong, so be careful):
1. If you pull down the skin under your eye and try to insert one side of the lens in the created opening it seems the lens will most likely just go in place themselves..
2. When you try to pull out the lens it is good to bring the lens down with a finger first (in the area created pulling down the skin under your eye) and only then try to get it with two fingers....
Well, last time I tried I really couldn't help closing my eyelid and I got my eyes quite itchy... T^T
Yet I feel for a total beginner like me it's still not enough...
Will I ever be able to put lens fast and smoothly??
Moreover it seems like my eyes don't really like them...
Two things I found to be useful myself (but might be totally wrong, so be careful):
1. If you pull down the skin under your eye and try to insert one side of the lens in the created opening it seems the lens will most likely just go in place themselves..
2. When you try to pull out the lens it is good to bring the lens down with a finger first (in the area created pulling down the skin under your eye) and only then try to get it with two fingers....
Well, last time I tried I really couldn't help closing my eyelid and I got my eyes quite itchy... T^T
Subscribe to:
Posts (Atom)



