Friday 25 August 2017

Fx options theta


Pilihan Orang Yunani: Theta Risk and Reward Time value decay. Yang disebut silent killer of option buyers, bisa menghapus senyum dari wajah trader yang telah ditentukan begitu sifatnya yang berbahaya menjadi sepenuhnya terasa. Pembeli, menurut definisi, hanya memiliki risiko terbatas dalam strategi mereka bersamaan dengan potensi keuntungan tak terbatas. Meskipun ini mungkin terlihat bagus di atas kertas, dalam praktiknya sering ternyata kematian oleh seribu potongan. Dengan kata lain, memang benar Anda hanya bisa kehilangan apa yang Anda bayar untuk suatu pilihan. Juga benar bahwa tidak ada batasan berapa kali Anda bisa kalah. Dan seperti yang diketahui pemain lotere lainnya, sedikit uang yang dikeluarkan setiap minggu bisa bertambah setelah setahun (atau seumur hidup) tidak memukul jackpot. Untuk pembeli pilihan, oleh karena itu, rasa sakit yang perlahan-lahan mengikis arus perdagangan Anda menuangkan pengalaman. Sekarang, untuk menjadi adil, penjual cenderung mengalami banyak kemenangan kecil, sementara terbuai dengan kesuksesan palsu, hanya untuk tiba-tiba menemukan keuntungan mereka (dan mungkin lebih buruk lagi) dilenyapkan dalam satu langkah buruk terhadap mereka. Kembali ke nilai waktu peluruhan sebagai variabel risiko, ia diukur dalam bentuk laju pembusukan (non-konstan), yang dikenal dengan Theta. Nilai theta selalu negatif untuk pilihan lama karena pilihan selalu kehilangan nilai waktu dengan setiap tick of the clock sampai kadaluarsa tercapai. Sebenarnya, ini adalah fakta kehidupan bahwa semua opsi panjang, tidak peduli apa yang menyerang atau pasar apa, akan selalu memiliki nilai nol pada saat kadaluarsa. Theta akan menghapus nilai waktu semua (juga dikenal sebagai nilai ekstrinsik) meninggalkan pilihan tanpa nilai atau beberapa tingkat nilai intrinsik. Nilai intrinsik akan mewakili sejauh mana opsi berakhir dalam uang. (Untuk informasi lebih lanjut, lihat Pentingnya Nilai Waktu.) Gambar 7: Opsi IBM untuk nilai Theta. Nilai yang diambil pada 29 Desember 2007 dengan IBM di 110.09. Sumber: OptionVue 5 Perangkat Lunak Analisis Pilihan Seperti yang dapat Anda lihat dari lihat Gambar 7, tingkat peluruhan berkurang pada bulan kontrak yang lebih jauh. Kuning menyoroti panggilan yang ada pada uang dan bunga violet yang di-the-money. Panggilan 110 Januari, misalnya, memiliki nilai Theta sebesar -7,58, yang berarti opsi ini kehilangan 7.58 dalam nilai waktu setiap hari. Tingkat peluruhan ini menurun untuk setiap bulan ke belakang 110 panggilan dengan Theta of -2.57. Jika kita memikirkan nilai waktu pada 110 panggilan ini seolah-olah hanya mewakili satu opsi pada bulan Juli, dengan jelas tingkat kehilangan nilai waktu akan meningkat karena panggilan bulan Juli mendekati ekspirasi (yaitu tingkat pembusukan jauh lebih cepat pada opsi Dekat dengan masa kadaluarsa dibandingkan dengan banyak waktu yang tersisa di atasnya). Meski begitu, jumlah premi waktu di bulan-bulan belakang lebih besar. Oleh karena itu, jika seorang pedagang menginginkan lebih sedikit risiko premi dan opsi bulan kembali dipilih, trade-off adalah bahwa premi lebih berisiko dari risiko Delta dan Vega. Dengan kata lain, Anda dapat memperlambat laju pembusukan dengan memilih kontrak opsi dengan lebih banyak waktu untuk melakukannya, namun Anda menambahkan lebih banyak risiko jika ditukar karena harga yang lebih tinggi (dengan kerugian lebih banyak dari harga yang salah) dan dari Perubahan yang merugikan pada volatilitas tersirat (karena premi yang lebih tinggi dikaitkan dengan risiko Vega yang lebih tinggi). Pada Bagian VIII tutorial ini lebih banyak tentang interaksi orang-orang Yunani yang dibahas dan dianalisis. Strategi opsi umum memiliki posisi tanda-tanda theta yang mudah dikategorikan, karena strategi penjualan atau net selling akan selalu memiliki posisi positif Theta sedangkan strategi buy atau net buying akan selalu memiliki posisi negatif Theta. Seperti yang terlihat pada Gambar 8.BREAKING DOWN Theta Theta adalah huruf kedelapan dalam alfabet Yunani. Ini adalah bagian dari kelompok tindakan yang dikenal sebagai orang-orang Yunani. Langkah lainnya termasuk delta. Gamma dan vega. Yang digunakan dalam options pricing. Ukuran theta mengkuantifikasi risiko waktu yang ditentukan pada pilihan karena opsi hanya dapat dieksekusi selama jangka waktu tertentu. Waktu sangat penting bagi pedagang opsi pada tingkat konseptual lebih dari yang praktis, jadi theta tidak sering digunakan oleh pedagang dalam merumuskan nilai opsi. Perbedaan Antara Theta dan Yunani Lain Orang Yunani mengukur sensitivitas harga opsi sehubungan dengan variabel masing-masing. Delta opsi menunjukkan kepekaan harga opsi sehubungan dengan perubahan 1 pada keamanan yang mendasarinya. Gamma pilihan menunjukkan sensitivitas delta pilihan dalam kaitannya dengan perubahan 1 dalam keamanan yang mendasarinya. Vega menunjukkan bagaimana harga opsi secara teoritis berubah untuk setiap satu persentase poin bergerak dalam volatilitas tersirat. Theta untuk Pembeli Opsi vs. Penulis Opsi Jika semuanya tetap sama, pembusukan waktu menyebabkan opsi untuk kehilangan nilainya saat mendekati tanggal kadaluwarsa. Oleh karena itu, theta adalah salah satu orang Yunani utama yang harus dipikirkan pembeli opsi sejak waktu bekerja melawan pemegang opsi lama. Sebaliknya, peluruhan waktu menguntungkan investor yang menulis opsi. Penulis pilihan mendapatkan keuntungan dari kerusakan waktu karena pilihan yang ditulis menjadi kurang berharga seiring dengan berakhirnya pendekatan kadaluarsa. Akibatnya, lebih murah bagi pilihan penulis untuk membeli kembali opsi untuk menutup posisi short. Contoh Theta Misalnya, anggap seorang investor membeli opsi call dengan strike price sebesar 1.150 ketika saham yang mendasari diperdagangkan di 1.125 dengan harga 5. Opsi memiliki lima hari sampai kadaluarsa, dan theta adalah 1. Secara teori, nilainya Dari pilihan tetes 1 per hari sampai mencapai tanggal kedaluwarsa. Oleh karena itu, opsi kehilangan sekitar 20 nilainya jika semua tetap sama. Ini tidak menguntungkan pemegang opsi. Asumsikan opsi tetap di 1.125 dan dua hari telah berlalu. Oleh karena itu, pilihannya adalah senilai 3.CASsette IO Utilities Utilities untuk menangani gambar tape dan floppy disk dari komputer saku vintage. Ini adalah perangkat lunak bebas yang berlisensi di bawah GNU General Public License. Perangkat lunak ini disediakan sebagaimana adanya. Saya tidak dapat diandalkan untuk setiap konsekuensi yang timbul dari penggunaannya. Semua merek dagang, nama perusahaan atau produk milik pemiliknya masing-masing Utilitas di sini pada awalnya ditujukan untuk komputer saku Casio saja. Baru-baru ini saya mulai mendukung mesin lain dengan format data yang sebanding dan sejak itu mengganti nama paket dari Casio Utilities menjadi CASsette IO Utilities. Fokus utamanya masih pada mesin Casio dan sebagian besar dokumentasi hanya menangani mereka. Ini adalah pekerjaan yang sedang berjalan Tidak semua fungsi bekerja pada semua sistem operasi dan beberapa file mungkin ditangani dengan sangat salah. Maaf untuk ketidaknyamanan. Ditambahkan pilihan - d ke list850 untuk mendukung file yang disalin dari disk MD100. Mengerjakan ulang md100 Dihapus - f opsi dan ditambahkan - p opsi berikut info dari Piotr Piatek. Memperbaiki bug yang menyebabkan lingkaran tak berujung saat menulis file gelombang Sharp style. Mempengaruhi wav2wav terutama. Dukungan file data membutuhkan beberapa perbaikan. Ditambahkan opsi untuk menekan output header ke list850. Ditambahkan dukungan untuk file data ke bas850. Menambahkan dukungan Unicode (UTF-8) ke list850, listX07, bas850 dan basX07. Opsi - i mengabaikan data dengan framing framing atau parity pada input file gelombang untuk sebagian besar daftar utilitas. Ditambahkan binari untuk host Windows CE (ARM, CE 3.0) Dukungan PPC yang dihapus untuk OSX (saya tidak lagi memiliki kompiler yang sesuai) list8000 sekarang mendukung tampilan dan ekspor daftar data Range ViewWindow list8000 sekarang mengekspor memori variabel ke file CAS (untuk FA-121) . Bas850 dan md100 memungkinkan perpipaan pada file teks. Fixed beberapa escape sequence (phi-gttheta). List8000 sekarang mendukung ekspor dalam format FA-123FA-124. List8000 - Menambahkan daftar dukungan untuk kalkulator grafis fx-8000G dengan antarmuka FA-80. Wav2wav ditingkatkan untuk mendukung format yang lebih banyak. List74 - Dukungan untuk TI-74 dimulai. WaveX07 - Ditambahkan generator file gelombang untuk Canon X-07. BasX07 - Ditambahkan tokenizer untuk Canon X-07. ListX07 - Program pertama untuk mesin non Casio: Canon X-07. Perangkat lunak berikut disediakan: list702 - Menampilkan isi file biner atau WAV sebagai teks atau data BASIC. Program ini untuk FX-702P. Ini adalah adaptasi list730. List730 - Menampilkan isi file biner atau WAV sebagai teks atau data BASIC. Program ini untuk seri PB-100. Ini awalnya diciptakan oleh Piotr Piatek. Saya telah menambahkan berbagai format file. List850 - Menampilkan isi file biner atau WAV sebagai teks atau data BASIC. Program ini untuk semua mesin yang lebih baru, dimulai dengan PB-700 dan termasuk FX-850 dan PB-1000. FP-200 disertakan juga. List8000 - Menampilkan isi file biner atau WAV sebagai daftar sumber, register, gambar layar atau teks. Program ini untuk rangkaian kalkulator grafis fx-8000G. List8000 dapat mengekspor dalam format file yang dimengerti oleh perangkat lunak Casios FA-121 atau FA-124. ListX07 - Menampilkan isi file biner atau WAV sebagai teks BASIC. Program ini untuk Canon X-07. List74 - Menampilkan isi file biner atau WAV sebagai teks BASIC. Program ini untuk Texas Instruments TI-74. Wave730 - Buat file WAV dari file biner. Program ini untuk seri PB-100. Wave850 - Buat file WAV dari file biner. Program ini untuk semua mesin yang lebih baru, dimulai dengan PB-700 dan termasuk FX-850 dan PB-1000. FP-200 disertakan juga. File dapat dibuat dalam (S) rendah atau (F) mode ast. WaveX07 - Buat file WAV dari file biner. Program ini untuk Canon X-07. Bas702 - Membuat file WAV (atau biner atau ASCII yang dikodekan) dari teks sumber BASIC. Program ini hanya untuk FX-702P. Bas730 - Membuat file WAV (atau biner atau ASCII yang dikodekan) dari teks sumber BASIC. Program ini untuk semua mesin yang lebih tua, dimulai dengan PB-100 atau FX-700P dan termasuk FX-730P dan FX-795P. Bas850 - Membuat file WAV (atau biner atau ASCII yang dikodekan) dari teks sumber BASIC. Program ini untuk semua mesin yang lebih baru, dimulai dengan PB-700 dan termasuk FX-850 dan PB-1000. FP-200 disertakan juga. File WAV dapat dibuat dalam mode S rendah atau (F) ast. Format data yang mungkin adalah teks (untuk dimuat dengan LOAD, A pada beberapa mesin) atau format internal (harus dimuat LOAD). BasX07 - Membuat file WAV (atau biner) dari teks sumber BASIC. Program ini untuk Canon X-07. Wav2raw - Ekstrak gambar biner dari file WAV. Bekerja untuk semua model. Wav2wav - Buat kembali file WAV sedikit demi sedikit. File yang dihasilkan bisa lebih baik dikompresi oleh perangkat lunak kompresi lossless seperti ZIP atau GZIP daripada rekaman asli. Karena rekreasi dilakukan sedikit demi sedikit, program ini harus bekerja untuk file WAV yang tercatat di Kansas City Standard dengan operator 2400 Hz. (Baru-baru ini saya menyertakan dukungan untuk komputer Sharp yang menggunakan frekuensi yang berbeda.) Md100 - Menangani gambar floppy disk MD-100 yang ditulis oleh komputer PB-1000 atau PB-2000C. Pada beberapa sistem PC ini bekerja bahkan di disk sebenarnya Generasi kantong Casio. Komputer saku Casio BASIC dapat dikelompokkan. Dalam setiap kelompok, file program dapat ditukar atau program dapat langsung ditransfer dari satu mesin ke mesin lainnya melalui tape interface mereka. Tidak semua program bisa dijalankan pada semua mesin dalam rangkaian yang sama, karena beberapa kata kunci berbeda. FX-700P misalnya tidak mengerti REM. Detail lebih lanjut tentang berbagai versi BASIC tersedia di lembar perbandingan BASIC saya. Seri PB-100 Ini adalah nama yang diberikan Casio ke berbagai komputer saku awalnya dengan BASIC. Kelompok ini mencakup, sesuai dengan manual Casio berikutnya, mesin berikut: PB-100, PB-110, PB-220, PB-240, PB-300, PB-410, FX-700P, FX-720P, FX-730P , FX-770P, FX-785P, FX-790P dan FX-795P. Saya memiliki beberapa dari mereka: PB-220, PB-300, FX-700P, FX-720P, FX-730P dan FX-795P. Semua model berbagi beberapa fitur umum: Tombol mode beralih antara mode RUN atau WRT (program), memilih mode sudut dan mengarahkan output ke printer opsional (atau built-in). 10 area program terpisah tersedia. Keyboard memiliki satu tombol EXE tunggal. Fungsi bergeser dipilih oleh tombol awalan yang harus ditekan dan dilepaskan sebelum tombol bergeser. Encoding internal bukan ASCII tapi sesuatu yang sangat spesial. Jika Anda tertarik dengan detail teknis, lihatlah halaman Piotr Piateks di Internet. Semua rekaman rekaman telah dilakukan melalui antarmuka FA-3, walaupun PB-220 memerlukan adaptor untuk menghubungkannya secara mekanis. Kecepatan transmisi 300 bit per detik. FX-702P Mesin ini berdiri sendiri. Dialek BASIC nya sedikit aneh. Perintah GOSUB. KEMBALI. PRINT dan INPUT telah diganti oleh GSB. MEMBASAHI. PRT dan INP. Kode karakter internal adalah sesuatu yang istimewa. Ini bukan ASCII atau tidak kompatibel dengan pengkodean seri PB-100. Keyboard memiliki tombol mode yang bekerja cukup banyak seperti pada mesin seri PB-100. Sepuluh area program terpisah tersedia. Keyboard memiliki satu tombol EXE tunggal. Keyboard alfa tidak diatur seperti mesin tik tapi menurut abjad. Dua tombol shift (F1, F2) adalah tombol awalan. Format rekaman memiliki beberapa kesamaan dengan format seri PB-100 namun nampaknya merupakan varian sebelumnya. Program untuk daftar file tape oleh karena itu dieksekusi terpisah sementara generator file gelombang untuk seri PB-100 (wave730) dapat membuat gambar untuk FX-702P. Semua rekaman rekaman telah dilakukan melalui antarmuka FA-2. Kecepatan transmisi 300 bit per detik. PB-700, PB-770 dan FX-750P Ini adalah generasi baru dari kantong BASIC yang tidak memiliki tombol mode. Sebagai gantinya, tombol ENTER pada keypad numerik digunakan untuk perhitungan mode langsung sedangkan tombol kembali untuk memasukkan perintah dan jalur program BASIC. Tombol shift harus ditekan dan ditekan bersamaan dengan tombol yang terpengaruh, seperti pada mesin tik. Sepuluh area program terpisah tersedia. Sebuah kata kunci khusus (PROG) beralih antar area tanpa memulai program. Ada perbedaan halus dalam menangani fungsi logaritma. Sistem PB (seri PB-700 dan PB-1000, lihat di bawah) menggunakan LGT untuk logaritma dasar 10 dan LOG untuk logaritma alami. Semua mesin lain, termasuk seri PB-100 lama, gunakan LOG dan LN masing-masing. Encoding internal adalah ASCII dengan karakter grafis dalam himpunan yang diperluas. Jika Anda tertarik dengan detail teknis, lihatlah halaman Piotr Piateks di Internet. FX-750P memiliki kekhasan yang menyebalkan: Tidak mengerti karakter huruf kecil tapi tidak menampilkan apa-apa. Hal ini membuat tidak mungkin untuk mengedit baris dengan string huruf kecil yang dikirim dari PB-700 atau dimuat dari file PB-700. Saya memiliki PB-700 dan PB-770 dengan antarmuka FA-10 dan FX-750P dengan FA-20. Saya telah menguji program saya dengan mesin dan antarmuka ini. Kecepatan transmisi 300 bit per detik. FX-830P, FX-870P, FX-880P, FX-890P, VX-1 sampai 4, Z-1 dan PB-1000 Mesin ini memiliki implementasi baru BASIC, yang disebut JIS Standard BASIC oleh Casio. PB-1000 memiliki sistem file RAM sedangkan sistem FX dan VX mempertahankan sepuluh area program dari mesin sebelumnya. Encoding internal adalah ASCII namun kata kunci BASIC dan nomor baris dikodekan secara berbeda (nomor baris sekarang dapat mencapai 65535, tidak hanya 9999.) Set karakter yang diperluas berbeda antara PB-1000 dan mesin seri lainnya. PB-1000 berbagi karakter PB-700 dengan grafis khusus sementara sistem FX, VX dan Z menunjukkan simbol matematika dan sains. Z-1 dan saudaranya FX-890P kekurangan antarmuka tape. Semua mesin kecuali PB-1000 terhubung ke antarmuka FA-6. Antarmuka ini menawarkan kecepatan transmisi lebih tinggi 1200 bit per detik. Format blok data adalah varian dari skema PB-700 namun pengkodean program BASIC berbeda. Hal ini dimungkinkan untuk memuat file yang disimpan dengan SAVE, A pada PB-700 ke dalam FX-850P, dan sebaliknya mungkin juga dilakukan. Anda harus membatasi kecepatan 300 bit per detik (SAVE (S) dan LOAD (S) pada FX-850P.) Saya hanya bisa mengetes antarmuka tape dengan VX-1 atau FX-870P karena saya hanya bisa menulis Namun tidak membaca program atau data melalui antarmuka FA-6 dengan mesin tersebut. Sistem FX-850PFX-880P dapat membaca rekaman dari seri PB-100 dengan perintah khusus (PBLOAD. PBGET). PB-1000 memiliki konektor yang sama namun perbedaan mekanis dan elektrikal menghambat penggunaan FA-6. PB-1000 menggunakan antarmuka FA-7 yang menawarkan tingkat transfer yang lebih tinggi (hingga 2400 bit per detik, dapat dipilih oleh switch DIP pada antarmuka.) Z-1 dan FX-890P tidak lagi mendukung kaset namun tetap dapat digunakan. Dengan penerjemah teks sumber bas850 dan antarmuka serial atau USB. FP-200 Ini adalah mesin berukuran A4 di kelasnya sendiri. BASIC mirip dengan PB-1000 namun juga berisi beberapa fitur Microsoft-BASIC. Aplikasi spreadsheet CETL yang disertakan adalah unik. Format rekamannya cukup mirip dengan FX-850P seperti mesin untuk memasukkan penanganan dalam program yang sama. Dalam sebagian besar kasus, peralihan -2 akan menangani perbedaan. Beberapa file dikodekan ASCII kompatibel antara keluarga, khususnya: Kecepatan pitanya 300 baud (hanya format lambat). Pengkodean internal berbeda, file biner tidak dapat dipertukarkan. Format ASCII FP-200s dipahami oleh FX-850P namun bukan PB-1000. Saya tidak bisa mengujinya dengan VX-4 atau FX-870P (lihat di atas.) FP-200 memahami format ASCII dari semua mesin lainnya, dengan kecepatan yang benar. Anda bisa memberi makan file melalui list850 dan bas850 untuk membuat file untuk berbagai platform. Floppy drive MD-100 dengan kalkulator PB-1000 dan PB-2000C MD-100 tidak memiliki antarmuka pita tapi siapa peduli bila floppy disk dengan filesystem nyata sudah tersedia Saya memiliki dua kalkulator saku yang terhubung ke MD-100 : Komputer PB-1000 BASIC dan PB-2000C yang dapat diprogram dalam varian C (ditafsirkan, cukup lambat). Program md100 memahami format disk. Ada BASIC ROM OM-53B yang tersedia untuk PB-2000C yang mengubahnya menjadi PB-1000 dengan kasus yang berbeda, namun saya belum melihat ini. Piotr Piatek memiliki emulator untuk semua ini. Mesin lain Casio fx-8000G Ini bukan komputer saku BASIC tapi kalkulator Grafis. Dengan antarmuka FA-80-nya, Anda dapat menyimpan program, register, grafik dan file teks ke kaset. List8000 mendukung daftar file-file ini. Saya tidak memiliki antarmuka sendiri, jadi perkembangannya lambat. File dapat mengkonotasikan lebih dari satu tipe data. Program daftar isi seperti yang muncul dalam file. Grafik dikonversi ke file BMP berdasarkan permintaan. Rekaman dilakukan pada 2400 baud. Anda mungkin harus mengatur perangkat lunak audio Anda ke tingkat sampling yang tepat untuk membaca file WAV yang dapat diandalkan. Canon X-07 Canon X-07 adalah mesin kecil yang mumpuni dengan BASIC yang kuat dan antarmuka kaset yang ada di dalamnya. Saya baru saja mulai mendukungnya dengan daftar programX07. WaveX07 dan basX07. Encordings berada dalam mode cepat pada 1200 baud, format yang telah didukung oleh perpustakaan gelombang dalam proyek ini. Hanya pengkodean tingkat rendah yang sedikit berbeda: 8 Bit, tidak ada paritas, minimal 2 stop bit. Saya harus menyesuaikan pola gelombang yang dihasilkan agar CLOAD bekerja dengan andal. Texas Instruments TI-74 TI-74 adalah penerus komputer BASIC CC-40 yang gagal secara komersial, karena pada awalnya tidak ada perangkat penyimpanan massal yang tersedia. TI-74 yang lebih baru dapat dilengkapi dengan antarmuka kaset CI-7 melalui konektor DockBus-nya. Logika antarmuka dibangun ke dalam komputer, bukan antarmuka. Hal ini membuat tidak mungkin untuk menggunakan CI-7 melalui adaptor dengan CC-40. CC-40, yang hanya memiliki sedikit prototipe, memiliki antarmuka kaset built-in dan bisa bekerja dengan utilitas saya, tapi saya tidak dapat mengujinya sendiri. BASIC adalah salah satu yang terbaik yang dapat Anda temukan untuk komputer ukuran saku pada masanya. Ini mendukung IO canggih, subprogram dengan parameter, nama variabel panjang, dan banyak lagi. Antarmuka kaset mimiks perangkat DockBus (atau HexBus) 1 .. Ia dapat merekam program BASIC dengan SAVE1.NAME yang dimuat oleh OLD1.NAME atau hanya OLD1 .. Antarmuka ini mendukung file data mode teks berurutan untuk masukan dan keluaran programatik juga. . Anda bahkan dapat LIST1.NAME sebuah program di ASCII namun Anda tidak dapat memasukkannya kembali ke komputer. Saya mengerjakan sebuah solusi tapi itu mungkin memakan waktu lama. Format file gelombang adalah varian yang agak spesial dari Kansas City Standard (KCS) yang digunakan di tempat lain: Frekuensi adalah 1400 Hz dan 700 Hz dan kecepatannya 1400 bit per detik. Ini berarti bahwa hanya setengah dari gelombang yang digunakan untuk sinkronisasi bit nol 700 Hz yang sama sekali berbeda dari KCS dan byte-nya dikodekan tanpa start, parity atau stop bit. Informasi ditransfer dalam blok hingga 64 byte data bersih. Catatan logis dapat terdiri dari beberapa blok. Setiap blok dilindungi oleh checksum sederhana dan ditransmisikan dua kali untuk redundansi. Menyimpan program BASIC relatif cepat karena ditransmisikan sebagai satu catatan logis yang besar. Masih ada cukup banyak overhead sinkronisasi untuk membuat file gelombang 30 detik untuk program singkat tapi program yang lebih lama tidak akan membuat file terlalu lama. Menulis file ASCII adalah masalah yang sama sekali berbeda: overhead ditambahkan untuk setiap record dari file. Pemilik antarmuka PC memiliki lebih banyak pilihan: Mereka dapat langsung menyimpan dan memuat dari sistem file PC. File program bersifat biner dan biasanya memiliki perpanjangan PGM. Program DOS TIC74 yang disertakan dengan perangkat lunak antarmuka menghasilkan file seperti itu dari file teks BASIC. Isi file ini sama dengan single large record yang ditransmisikan melalui kaset. Saya berencana untuk mengambil file PGM seperti masukan dan membuat file gelombang untuk memuatnya tanpa antarmuka PC. Daftar sabar74 sudah bisa menampilkan file seperti daftar BASIC atau mengekstraknya dari rekaman. Cara menangani rekaman rekaman Hubungkan antarmuka pita dengan kabel mikrofon langsung ke kartu suara Anda. Jalankan perangkat lunak perekam audio pilihan Anda dengan parameter berikut: Format file WAV. 8 bit per sampel Lebih banyak bit mungkin tapi tidak diperlukan. Jangan menggunakan format floating point 11025 atau 22050 sampel per detik (Ini ide bagus, tapi tidak wajib, untuk merekam 2400 baud rekaman di 44100 sampel per detik.) Monaural. Tingkat rekaman cukup tinggi untuk mengisi dynamic wave dari wave file. Atau gunakan editor suara seperti Audacity untuk memperkuat sinyal. Kirimkan program atau data dari komputer saku Anda dengan SIMPAN. SIMPAN SEMUA. PUT atau MENULIS dan mulai merekam. Hentikan rekaman saat Ready prompt kembali. Rekaman kecepatan tinggi (1200 baud atau lebih) menyulitkan utilitas untuk menafsirkan pola gelombang dengan benar karena redundansi sangat berkurang. Jika Anda memiliki masalah, coba atur variabel lingkungan WAVEPHASE 1 atau balikkan rekaman dengan editor suara dan coba lagi. Ada masalah dengan kartu suara iMac dan internal saya. Tingkat rekaman pada input line-in sangat rendah. Saya telah menghubungkan USB Soundblaster dengan input mikrofon. Plugin USB noname yang jauh lebih murah dengan masukan mikrofon telah terbukti bekerja dengan baik juga. Pemutaran via kartu suara internal baik-baik saja. Sambungkan masukan EAR dari antarmuka tape ke keluaran PHONES dari kartu suara Anda. Ada masalah yang harus dipecahkan: Anda memerlukan adaptor untuk menghubungkan output stereo kartu suara Anda (hanya satu saluran) ke input mono dari antarmuka tape. Anda dapat merusak kartu suara dengan kabel yang disediakan oleh antarmuka kaset karena memuatkan salah satu saluran output Baca paragraf sebelumnya lagi sebelum Anda melanjutkan Jika semuanya terhubung dengan benar, masukkan perintah LOAD (ALL), READ atau GET yang sesuai dan kemudian Mulai memainkan file WAV. Atur tingkat output lebih tinggi dari biasanya. Jika terlalu keras untuk telinga Anda yang tepat untuk komputer kecil Anda Jika komputer saku membaca dan memproses data dalam sebuah program, memanfaatkan steker REMOT dari antarmuka tape untuk menghentikan pemutaran saat sedang bekerja, Anda harus meniru Ini dengan menghentikan dan melanjutkan pemutaran secara manual. File program tidak masalah dalam hal ini. Menyegarkan Rekaman asli (atau rekaman dari sumber lain di Internet) mungkin tidak optimal untuk pengarsipan. Program kompresi lossless seperti ZIP atau GZIP tidak seperti sinyal analog Beberapa rekaman yang ditemukan di tempat lain tidak memberi tahu antarmuka tape dengan benar saat rekaman selesai. Hal ini bahkan dapat menyebabkan hilangnya jalur program saat mendownload ke kalkulator saku. Wav2wav membuat salinan bit-untuk-bit dari file WAV yang tercatat di Kansas City Standard atau salah satu varian yang didukung. Semua model Casio menggunakan skema perekaman ini, bahkan dalam mode kecepatan cepat atau tinggi (1200 atau 2400 bit per detik) di mana sedikit diwakili oleh hanya satu atau dua gelombang, bukan empat sampai delapan dalam mode standar 300 bit per detik. Perangkat lunak ini mampu merekam rekaman dalam kecepatan 300, 1200 atau 2400 bit per detik ke kecepatan lain lainnya. Ada dua mode khusus untuk perangkat lain: 500 bit per detik untuk komputer saku Sharp dan 1400 bit per detik untuk TI-74 atau TI-95. Ini selalu digunakan untuk input dan output. Tidak masuk akal untuk mengubah kecepatan rekaman ini karena file yang dihasilkan tidak ada gunanya. Pola output adalah gelombang sinus untuk semua kecepatan yang ada untuk TI dimana gelombang persegi digunakan. Hal ini bisa berubah di masa depan. Program ini disebut sebagai berikut: Jika Anda ingin mengulang file 300 baud (e. G file dari PB-700) ke file kecepatan tinggi untuk PB-1000, gunakan opsi --oh saja. Kecepatan input 300 secara default. Jika Anda ingin mengulang file berkecepatan tinggi dari PB-1000 untuk loading ke FX-850P, gunakan kedua opsi tersebut - ih dan - of. Pilihan diurai dari kiri ke kanan. Begitu pun kombinasi - t-karya tapi tidak ada gunanya. Anda bisa menggunakan - f pada 300 file baud. Hal ini dimungkinkan karena frekuensinya sama. Jumlah bit yang dilaporkan akan salah oleh faktor empat dan keandalan konversi sangat berkurang. Jika file yang dikonversi tidak dapat dibaca oleh perangkat, coba lagi dengan variabel lingkungan WAVEPHASE1. Jika file direkam pada volume yang sangat rendah, coba atur variabel lingkungan WAVETHRESHOLD ke nilai di atas 10. Bagaimanapun, lebih baik memuat file ke editor audio dan menormalkannya di sana. Mengkonversi ke format lain Rekaman dapat dianalisis (dan diarsipkan) dengan mudah dengan mengubahnya menjadi format biner. Beberapa format tersedia: Format biner Byte hanyalah data yang diterjemahkan biasa. Ini kehilangan urutan lead-in yang disebut yang digunakan untuk menyinkronkan decoder dan memisahkan blok data. Bita dengan framing framing atau paritas ditinggalkan. Formatnya paling mudah dipahami bagi manusia dan menjadi dasar daftar program. Format biner kata adalah varian dari format biner yang menyimpan informasi lebih banyak tentang aliran data asli. Urutan dalam urutan dikodekan sebagai nilai khusus, semua informasi framing dan paritas dipelihara di byte atas setiap kata data. Format baku kata hanya 12 bit per byte data (dengan bit mulai, berhenti dan paritas) diperluas menjadi 16 bit kata. Data mentah yang dikodekan ASCII adalah format yang dihasilkan dan diterima oleh serial interface Piotrs. Wav2raw mengubah file WAV menjadi salah satu format yang disebutkan di atas: Menambahkan - ke akhir opsi - s. - f atau - h memiliki efek yang sama seperti menyetel variabel lingkungan WAVEPHASE ke 1. Hal ini dapat membantu menghindari kesalahan baca karena fase yang salah pada file gelombang. Gunakan opsi - f - pN2 untuk membaca format Canon X-07. Kalkulator grafis Casio fx-8000G dan fx-8500G dengan antarmuka menggunakan format FA-80 - h. Tes saya memberikan hasil terbaik dengan pilihan - h-. Listing as text Program ini menafsirkan file WAV atau biner dan mengeluarkan isinya sebagai daftar program atau data. Programnya adalah list702. List730 dan list850 Semua program menulis output mereka ke konsol yang bisa dialihkan ke file. Komputer Casio BASIC list702 hanya menangani FX-702P. File data tidak didukung List730 menangani seri PB-100, yaitu FX-730P. File data tidak didukung Gunakan opsi - e. Jika Anda ingin menerjemahkan hasilnya nanti dengan bas730 list850 tahu tentang semua kalkulator Casio BASAH lainnya yang dimulai dengan PB-700, yaitu FX-850P. File data dan file ASCII yang disimpan dengan SAVE, A juga didukung. Gunakan opsi - eP (atau - uP) dan - lP saat mendaftar program PB-1000. -2 menangani semua spesifik FP-200, terutama pengkodean biner yang berbeda. Daftar kalkulator grafik Casio list8000 dan mengkonversi file dari kalkulator grafis fx-8000G. Semua tipe rekaman didukung. Perintah SAVE Name A menyimpan campuran semua format yang tersedia: program, variabel (memori), grafik dan file. List8000 mendukung escape sequence dalam string seperti program lainnya dan telah mewarisi pilihan codepage listX07. Urutan pelarian kompatibel dengan format file CAT (lihat di bawah). Grafik dikonversi ke file BMP jika opsi - g ada. Ini harus diikuti dengan nama file yang diakhiri dengan. bmp dan harus mengandung karakter yang diganti dengan 1 sampai 3. File pertama memiliki resolusi layar yang tepat yaitu 96 x 64 piksel. File kedua memiliki resolusi 192 x 128 piksel. Ini digunakan oleh kalkulator secara internal untuk pencetakan dengan resolusi tinggi. Jika tombol pemilih di sebelah kiri diatur ke N, bukan HD saat menggambar grafik, hanya setiap titik kedua yang ditarik pada gambar beresolusi tinggi. Kedua format adalah bagian dari rekaman grafis pada rekaman itu. Gambar ketiga dibuat yang merupakan salinan yang pertama tapi tiga kali ukurannya: Setiap piksel digambar sebagai persegi 2x2 dengan kolom kosong ke kanan dan sebuah baris kosong ke bawah. Ini terlihat seperti tampilan sebenarnya dimana titik-titik tunggal sedikit spasi. List8000 mendukung konversi ke format file yang dipahami oleh perangkat lunak FA-121 124 dari Casio (lihat di bawah): Format CAS untuk format FA-121 dan CAT untuk FA-122 dan seterusnya. Dengan kabel serial yang tepat dari Casio atau Yellow Computing - kabel USB FX-Interface mereka ke port serial biasa - Anda dapat menghubungkan semua kalkulator grafis terbaru dengan konektor tiga pin bundar. Port USB built-in dari beberapa kalkulator tidak dapat digunakan secara langsung karena FA-124 tidak mendukungnya dalam mode tradisional (FA-123) yang diwajibkan oleh format CAT. Ada beberapa hal yang perlu dipertimbangkan: File CAS: Gunakan opsi - cas dan berikan file output yang berakhiran. CAS. Pilihan opsional dapat diikuti oleh indikator apa yang harus dimasukkan ke dalam file: Semua item, program, file editor, memori atau informasi Range saja. Format file CAS digunakan oleh FA-121, sebuah program Windows 16 bit tua. Anda harus membatasi diri Anda pada 83 nama file untuk file output. File CAS juga bisa diimpor oleh perangkat lunak FA yang baru. Tidak ada konversi kode yang terjadi. Bahkan kalkulator garis atas dari generasi ini, CFX-9800G, dengan senang hati akan mengeksekusi semua kode fx-8000G lama. Saat Anda membuka file tipe A di FA-121, item yang hilang seperti Factor dibuat secara otomatis namun hanya berisi informasi bawaan. Gunakan opsi - casP atau - cas7 jika Anda menargetkan fx-7700GB yang hanya mendukung transfer program. Opsi terakhir memiliki efek menempatkan memori variabel dan file editor ke dalam area program A. B. dll Yang pertama, Prog A. berisi sebuah program untuk menetapkan variabel A Z ke nilai-nilai yang ditemukan di file sumber. Nama file editor asli disimpan sebagai komentar di awal setiap program yang dihasilkan. Tidak ada usaha yang dilakukan untuk menerjemahkan panggilan nama Prog. CAT file: Use option - cat and provide an output file ending in. cat. This file is accepted by FA-122124. FA-124 must be in the traditional mode (Model Type: fx-7400G CFX-9850G) even if you connect a newer calculator. An optional prefix for the program file name conversion must follow the option directly (see below). If you dont have a three pin cable you can still try the conversion option of FA-124 and transfer the converted file in native FA-124 mode over USB. list8000 converts programs, editor files, variables AZ and Range information into both formats. Graphics go into the CAT file format only. All information is written to a single file. In a CAT file, programs are renamed according to their position in the source recording. If you SAVE to cassette with a filename, this will be used as a prefix. You can optionally provide your own prefix after the option - cat. A in the prefix will become the program area digit. If no is present in the prefix, program 0 will get the prefix name alone while the digits 1 9 are appended to the following program areas. Calls to Prog n are automatically converted to Prog name . The tape recording lacks information about the original program areas of the saved programs. This can cause trouble if you are calling one program from the other. Option - p allows to set the area for the first program in the file to a value other than 0 . There are some more syntax differences between the various generations of Casios programming language. Notably the instructions Scl. Cl and Dt cannot be converted into the CAT format. To overcome this, some commands are replaced when a CAT file is created. This should avoid syntax errors but cannot help in all cases. E. g. array access is replaced by list access, but if you rely on a specific mapping between variables AZ and the arrays, you have to modify the program. The Mcl command is changed to clear variables A Z and setup List 1 with 26 elements. Add it in the beginning of your arrray handling program. You should adjust the list size manually after the conversion. Text files are stored in the tape recording under their name together with their passwords. The CAT file format keeps both the name and the password but since this file format is ASCII you can simply edit passwords out. Dont edit the file contents directly in the cat file because the length field will no longer be correct CAS files do not contain passwords. Graphics in a CAT file are converted to various formats: Picture1 to Picture3 contain a centered image (96x64 on a 128x64 screen) in three colors: orange. blue and green. Picture4 has the original 96x64 resolution in blue. Calculators with a wider screen will reject it (in fact, I have yet to find a calculator that loads it.) The high resolution image is not converted because no other calculator can deal with it. In the first example, the first program on the tape will be renamed MYAPP-3.FX. The redirection operator gt is optional for CAT file creation and must be omitted for CAS file output. Canon X-07 listX07 handles the Canon X-07. It supports binary and WAV files from CSAVE only. The escape sequences are a bit different from the Casio machines because the charset differs considerably. See here for a complete list. You can use the DOS or Windows extend character set (code pages 437 or 1252 respectively) on the output with option - c. This will make many special characters in strings or comments, entered with the GRPH key on the X-07, readable on your system. If you want to translate the output later with basX07 you should use option - e and you may use option - c. Both can be mixed. If a matching extended character in the selected code page is found, it will be output instead of the escape sequence. list74 handles the TI-74. It supports binary files or WAV files. A binary file can either be created by wav2raw. be extracted by option - r in an earlier run of list74. or come from the TI PC interface: saved from a TI-74 (or CC-40) or created by the TIC74 compiler. Use option - r if you want to create a file that can be sent to the TI-74 by the PC interface software. The filename must follow the option char directly. No listing is produced then. list74 works for sequential files written to device 1. as well. Options - e and - c work similar to listX07 but the TI supports less national characters. At least some special characters like auml, ouml, uuml or szlig can be used. They cannot be entered directly on the device but may slip in through the PC interface or appear in data files. Creating from binary files Three programs interprete a binary file and create a WAV file from it that can be transferred to the calculator via the sound card. The programs are wave730 . wave850 and waveX07 . The first program handles the Casio PB-100 series, namely the FX-730P and, as a side effect, the FX-702P (but the program name stored in the file isnt correctly displayed on screen.) The second is written for the other BASIC calculators beginning with the PB-700, namely the FX-850P. waveX07 handles the Canon X-07. The lead-in sequences are shorter than in an original file coming from the tape interface. This saves some time when loading the files. The FP-200 needs slightly longer lead-ins: use the -2 switch Creating from BASIC source files These programs take a source file, which might have been created by one of the list utilities or just typed in on the PC, and create a tape file in one of the following formats from it: WAV file, binary file or ASCII encoded file for Piotrs serial interface. The programs are bas702 . bas730, bas850 and basX07 . The last two can create plain ASCII source files for transmission through a serial interface. BASIC programs can be written with lowercase or mixed case keywords. The utilities translate everything outside strings, comments or DATA lines to uppercase before further processing. Uppercasing can be suppressed for the newest machines which support case sensitive variable names. You can use a single apostrophe () instead of REM to start a comment. This is natively supported on the FX-850P and later models and on the X-07 but not on the older machines where it will be translated to REM or :REM depending on its position. Lines that do not start with a line number are ignored. This way you can have lenghty comments in your source code which are not downloaded to your pocket computer. Different generations and lines of pocket computers use different BASIC dialects. The differences are sometimes huge and sometimes very subtle. This ranges from the almost exotic FX-702P BASIC variant with abbreviated keywords like PRT instead of PRINT to minor quirks like the lack of USING in the FX-850P or the renaming of the logarithm functions in the PB-700 and PB-1000. The translators know about some of these specifics and try to bridge the gaps with special options. Of course some restrictions like variable name syntax or memory organization or the lack of functionality cannot be overcome. But I tried hard to avoid these nasty SN Error or ERR-2 messages resulting from unknown keywords where a perfect replacement on the target machine exists. VAC vs. CLEAR is a good example for this. Within the same family, some commands are valid for one machine but not for the other. The statistics functions of the FX-750P are unavailable on the PB-700. bas850 translates these functions to tokens but the PB-700 cannot list or execute them. This is equally true, if you load a programm written on and saved by the FX-750P directly into a PB-700. You will find a detailed analysis of the various BASIC dialects in my BASIC Comparison Sheet . You can translate source files especially written for the FX-702P or from newer Casios standard BASIC keywords like PRINT or INPUT are automatically translated to the special syntax of the FX-702P. The prefix FACT function is replaced by the FX-702P postfix factorial . Some unkown commands like REM or DATA are completely removed. This can lead to lines being deleted and therefore unavailable as jump targets. The PB-700PB-1000 logarithm syntax is supported with the - l option. The FX-702P supports only one array named A(). On the PB-100 series you better use Z() after DEFM when you do not want to overlap your standard variables with your array. bas702 translates the arrayname Z() to array A() to emulate this behaviour. bas702 supports escape sequences anywhere in the code in order to allow the use of the special characters of the pocket computer. An escape starts with a backslash character followed by either one or two characters (see table below) or a two digit hexadecimal code. Set the - e switch on list702 to include these sequences in a program listing Here is the character map: Code 0F is used as the space character. The BASIC tokens range from 60 to AF. The character escape sequences are: DG (deg), gt (greater or equal), lt (less or equal), ltgt (not equal), PI and E (exponent). These are case insensitive: PI and pi are equivalent. The strings gt. lt. ltgt. PI and E in numbers are automatically translated when they occur in normal code. There is no need to escape them, except when you want to use them in strings. The character is treated as deg. is the up arrow and is PI. and are lt, gt and ltgt respectively. So in order to print the character pi, any of the following will do: PI. pi. Pi or 3B. Outside of strings, PI. pi or Pi are also valid. FX-730P family If you have a source file from an FX-702P, which uses some special keywords like PRT or INP. translate your source with the - o option. If you want to port a program from one of the newer machines like the FX-850P, try option - n. The program does its best to translate to the older or newer syntax, but it is not foolproof. The FX-702P postfix factorial is translated to the prefix FACT function. The PB-700PB-1000 logarithm syntax is supported with the - l option. Since the BASIC of the PB-100, PB-300, FX-701P and FX-801P lacks some keywords, notably REM. use option -1 if you want to target one of these. The unknown commands are then excluded from the output. This may lead to lines being dropped as a whole. Their line numbers are no longer available as jump targets Options - n and - o are mutually exclusive. Option -1 may be combined with either one. bas730 supports escape sequences anywhere in the code in order to allow the use of the special characters of the pocket computer. An escape starts with a backslash character followed by either one or two characters (see table below) or a two digit hexadecimal code. Set the - e switch on list730 to include these sequences in a program listing Here is the character map (courtesy Piotr Piatek): Code 00 is used as the space character. The BASIC tokens range from 80 to D1. The character escape sequences are: gt (greater or equal), lt (less or equal), ltgt (not equal), PI. E-. E (exponent), SD. SL (small caps), GA (gamma), SI (lowercase sigma), -1 (small), . (quotes) (circle), SM (Sum), DG (deg), (triangle), (multiply), : (divide), SP (spade), HT (heart), DI (diamond), CL (club), MU (micro), OM (omega), YN (Yen), SQ (square), . (dot) and (block), (backslash), (gray block), (thick slash), Bgt (B) and TA (tau). These are case insensitive: PI and pi are equivalent. The strings gt. lt. ltgt. PI. E - and E in numbers are automatically translated when they occur in normal code. There is no need to escape them, except when you want to use them in strings or comments. The character is treated as deg. . and are the left, right, up and down arrows. So in order to print the character pi, any of the following will do: PI. pi. Pi or 1B. Outside of strings, PI. pi or Pi are also valid. PB-700 and FX-850P families and the FP-200 - tT format is just plain text with all source text translations performed. You can send the result directly to the serial or USB interface. The outfile can be omitted, the output goes to standard out then. This way, you can send the output directly to other utilities like md100. In Windows, the following commands will setup the serial port and send the file directly to the pocket computer: The mode command is necessary only once. On an FX-850P use LOADCOM0:6. to load the file. Ive tried this successfully with the USB-interface by Manfred Becker (see below .) - tA format is compatible with the PB-700, FX-850P series machines and the FP-200. But its slow because each program line is preceeded by a lead-in sequence of about two seconds. This is necessary because the computer needs some time to compile one line in memory before the next line arrives. This is still better than typing the code in. The FP-200 and the FX-850P support - tB format, a blocked variant of the - tA format. Blocking creates less but larger blocks and is therefore faster to load but cannot be used for the PB-1000. The -2 switch sets all relevant options for the FP-200 and adds some special quirks. If you target to this machine, use the -2 switch - t2 creates a binary file for the FP-200. It sets the -2 switch as well. To get a program from the PC into your PB-700, PB-770 or FX-750P, use switch - t7 to create a binary file. This will be much faster than - tA . - t8 is preferable over - tA or - tB if you target the FX-850 or the PB-1000. For the latter, - lF is needed as well, if you are using the correct LGTLOG syntax of the PB series. The token table only contains the FX syntax LOGLN keywords. The - lF switch takes care of the source text translation before the tokenization takes place. There is another caveat: The token table contains all keywords for all known variants of JIS BASIC. If your program uses such a keyword as a variable name on a machine where it is not a reserved word (e. g. VAC which is a replament for CLEAR on the FX-850P but free for use on the PB-1000) the tokenizer will accidently translate your variable name to a token. Rename your variable or use - tA mode instead In any case, be careful to select a speed ( - w or - f ) that is supported by your pocket computer Use - u if you plan to load the file into your FX-750P: This machine does not support lowercase letters On the other hand, option - l allows lowercase variable names and keywords as accepted by the newer machines otherwise, everything outside strings and remarks is translated to uppercase. If you have a source file from an FX-702P or from the PB-100FX-730P series, which have some special keywords like VAC, the - o option might help. The program does its best to translate to the new syntax, but it is not foolproof. The FX-702P postfix factorial is translated to the prefix FACT function. There is a problem with the different meanings of LOG, LN and LGT in the various versions of Casio BASIC. The PB-700 series, the PB-1000 and the FP-200 use LGT for the base 10 logarithm and LOG for the natural logarithm. The other machines use LOG for base 10 logarithm and LN for the natural logarithm. If your source file specifies LOG and LN but you want to transmit the file to a PB-700 or PB-1000, specify - lP to force a translation. In the opposite case, specify - lF if you transfer, for example, a source from a PB-700 to a FX-850P. If your source file already contains the correct logarithm functions, do not specify a conversion There is an Exception: If you are creating a binary file for the PB-1000, you need to use - lF (see above.) With option - d data files can be created for all machines. As a modern PC does not allow the pausing of the sound output to the tape interface by means of a Remote plug, there is the ltdelaygt parameter. It controls the time in tens of seconds between data lines or blocks. You may have to increase this value from its default (two seconds in non blocked mode, four seconds in blocked mode) if you program misses data. There are differences between the PB-700 and later systems. A PB-700 PUT command creates an unnamed tape file with as many lines as there are items in the command. Later systems use OPEN and CLOSE to create named files with as many lines as there are PRINT statements. The FP-200 and the FX-850P support large blocks of several records before a new lead-in sequence is output. Option -2 forces this mode. For other systems just set the the ltcountgt parameter of option - d to B. Here are a few examples: PB-700: bas850 - w - d30,1 DATAFILE. DAT DATAFILE. WAV This matches a single variable as in GET A. Set option - d30,3 for GET A, B,C. The value 30 for the lead-in time is arbitrary. In most cases the default of 20 works fine. For each tape file, two blocks are written to the wav-file, header and data, each with its own lead-in of the requested length FX-850P: bas850 - w - d, B DATAFILE. DAT DATAFILE. WAV This will create a file with large data blocks. The lead-in time per block is 40 in this case. You can try to decrease it to 30 or some such. FP-200: bas850 - w - d -2 DATAFILE. DAT DATAFILE. WAV Option -2 forces large blocks and a modified line end (CR LF). This is FP-200 specific. bas850 supports escape sequences anywhere in the code in order to allow the use of the special characters of the pocket computer without resorting to the CHR function. An escape starts with a backslash character followed by either one or two characters (see table below) or a two digit hexadecimal code. Set the - e switch on list850 to include these sequences in a program listing Here are the character maps for the PB-700 and the FX-850P (courtesy Casio and some editing by me): PB-700 and PB-1000 character map. The FP-200 uses a reduced version of this map. FX-850P character map. Also valid for VX and Z machines. The character escape sequences for the FX-850P are: AN (Angstroumlm), IN (integral), RT (root), (over), SM (Sum), OM (omega), (gray block), (block), AL (alpha), BT (beta), GA (gamma), EP (epsilon), TH (theta), MU (micro), SI (sigma), P S (psi), S0. S9. S. S-. SN. SX. -1 (superscripts), : (divide), . (dot), DG (deg), gt (greater or equal), lt (less or equal), ltgt (not equal), . V. lt-. - gt (arrows), PI (pi), SP (spade), HT (heart), DI (diamond), CL (club), SQ (square), (circle), TR (triangle). (multiply), PN (pound), CN (cent), -. - (signs), YN (Yen), (backslash, same as Yen). These are not case sensitive: PI and pi are equivalent. The symbolic escape sequences help in porting software from the older PB-100FX-700 series machines and are easier to remember. Just use the - e switch on list730 . Use option - uF if you have created the source text in UTF-8 format. A complete list of the supported extended characters is contained in the following document: CasioFX-850PCharset. pdf With option - eP set on bas850 . a different set of character escapes is used, because the PB-700 and PB-1000 support a different character set. Hexadecimal escapes are not affected by this option. The following codes are used instead (some looking a little strange, like the arrows): 1. 8 (horizontal bars), 1. 7 (vertical bars), (over), (gray block), (block), . (dot), DG (deg), . V. lt-. - gt (sort of arrows), SP (spade), HT (heart), DI (diamond), CL (club), LD (large dot), (circle), TR (triangle), YN (Yen), (backslash). Use option - uP if you have created the source text in UTF-8 format. A complete list of the supported extended characters is contained in the following document: CasioPB700Charset. pdf On the PB-700 and the FX-750P, lines with escape codes beyond 7F cannot be edited because the codes are replaced by their corresponding keywords when using LIST or EDIT. You can still LOAD and RUN such a program. Code F0 (multiplication sign) is not allowed on these machines because it breaks the transmission protocol. It can only be used in the form CHR(ampHF0). Canon X-07 The program supports three output formats: - b creates a binary file, used mainly for debugging the tokenizer or later translation with waveX07. - w creates a WAV file which can be fed to the computer via the sound card. - t creates plain text but all source text translations are performed. The delay value inserts a short break for the slow X-07 and controls the line termination: CR only if a delay is specified, the system default (CRLF for DOS, LF for Unix) without delay. The output can be sent to your machine directly via the serial interface (see below for details.) The Canon X-07 has an extended character set with many special characters for foreign languages like French or German. You can use your favorite editor in DOS or Windows and type text in strings, comments or data lines without worrying about the encoding. If you are on DOS use option - cD. on Windows use option - cW. If your text is in UTF-8 format use option - cU. Escape sequences are supported as well such as :A for Auml or e for eacute. The complete list is in the following document: CanonX-07Token. pdf. You can use binary escape sequences like 86 for Auml. terlalu. A single backslash serves as the marker for an escape sequence. Therefore, in order to enter a backslash for the integer division, you need to encode it as (or YN because it is displayed as the Yen symbol yen on the machine). Using the serial interface on the Canon X-07 to enter a program The Canon X-07 lacks the ability to load an ASCII program with the LOAD command from the serial interface. Instead, it can be remotely controlled from another computer or terminal over the serial line. This way, an ASCII file can be simply typed in from the controlling system. To enable this feature, it is easiest to type in a small program first: The program is now ready to be run from the memory disk with RUNREMOTE. Before you start downloading, make sure to delete the current program. Otherwise, new lines will be merged with existing ones. You can now send your source from the PC. The following example is for a command prompt on Windows: The mode command is necessary only once. The basX07 command assumes that you have entered the text with a windows editor and you want to translate extended characters from Windows to the machines character set. If you see obvious garbage on the display, then the X-07 was too slow to read and store all the lines. You will then need to reduce the speed further or increase the delay after option - t . Turning the machine off and on returns control to the keyboard. An example: Dumping the memory of a PB-770 Here is a short example on how to get the RAM contents of a PB-770 as a binary dump file into your PC. This does not work for the FX-750P or the PB-700 because they lack the necessary PEEK function. Only RAM can be accessed, PEEK does not read out the ROM contents. PEEK(ampH0000) and PEEK(ampH8000) return identical values. PB-770 BASIC source The following source text should be created on the PC and transferred to the PB-770 via sound card: Save the file as pb-dump. txt and translate it to a WAV file: The wav file can now be downloaded to your PB-770. A simple LOAD on the machine will do. Getting the data into your PC Set up your recording software on the PC and start recording. You will need a lot of space. About half of the recording will be silence which you can edit out later if you like. Now run the program and enter the start address and the number of kilobytes to transfer. RAM seems to start at address 0000. Without RAM expansion, the size is 8 kb. Each block of 256 bytes takes about 75 seconds to collect and another 70 seconds to write out. This totals to about 80 minutes for 8 kb of RAM. After the last block has been written, save the recording as a WAV file, lets say as dump. wav . Converting the data The following command converts dump. wav into a readable format: The conversion takes its time because of the size of the WAV file. The file dump. txt can be inspected with an editor or treated with the following simple C program: The filenames dump. txt and dump. bin are hardcoded into the source. Feel free to improve it. The binary file is updated with each run of the program so that you can upload the dump in chunks of your liking. The new data will be inserted or updated in the correct position of dump. bin . Download all files including Windows executable of undump. exe here: mvcsys. dedownloadpb-dump. zip How to handle floppy disk images Creating an image An MD-100 image is a file that contains the sectors of a real 3.5 floppy disk. The disks are written with 80 tracks and 16 sectors of 256 bytes length on each track. Only one side of the disk is used. I use double density disks (without the second hole in the case) but high density disk may work if you cover the hole with black tape. You should format the floppy in the MD-100 drive. Now you need access to a Linux PC. Sorry, I havent written software yet to copy the disk under DOS or Windowsreg. In order to access the disk physically you need to tell the floppy driver about the format of the disk. Ive had success with the package fdutils-5.5 . In the Linux subdirectory of casutil youll find shell scripts to setup the drive, read and write floppies. The setup script makedev. sh creates the device devfd0casio and configures it with setfdprm SS DD ssize256 sect16 . Copying is done with dd . The sample script getmd100.sh creates an image file named md100.img . The md100 program can create an image if you precede the image name by the option - c. It is possible to create disk images of up to 512 blocks instead of the default 320 blocks, but these cannot be written back to a real disk. A new image is filled with empty blocks. The option is mostly ignored if the image already exists but you can increase the maximum allowed size of the image with its parameter. Writing to a floppy The image created in the step above can be written back to a real floppy in pretty much the same way. A sample script putmd100.sh is provided in the linux subdirectory. Manipulating files A single program, md100 . does all the manipulations to the disk image (or the real disk on some operating systems, see below .) Patterns are DOS style, but you can use for all files. Wildcard expansion on local files depends on the platform. On Linux this is automatic, on other platforms it depends on the compiler. The Borland compiler has wildcard support, the library wildargs. obj is automatically linked in by the compile jobs provided with the package. Patterns for files on the floppy must be included in double quotes. MD-100 filenames and types The MD-100 filenames are only eight characters long plus three characters for a file extension. Filenames can contain many characters not allowed on your PC. Case is respected just like on Unix file systems. There are no subdirectories on an MD-100 floppy. Files have an additional attribute, the file type. Both the PB-1000 and the PB-2000C use the file type to select the correct handling of a file selected from the menu. I know of the following types: S - Sequential files, including MEMO files, assembly source files, C data files, files loaded via RS-232C and BASIC programs saved with SAVE, A. Sequential files are opened with the MEMO editor and can be read and written by BASIC or C programs. The contents is ASCII text with CR LF delimiters. R - Relative or Random data files. They can only exist on a disk, not in PB-1000 RAM. C does not use type R files. The contents is defined by the BASIC FIELD statement. M - Machine code files, created by the PB-1000 assembler. B - BASIC programs in internal representation. C - C source or BAT files. The contents is ASCII text with CRLF delimiters, just like sequential files. The PB-2000C can change the file type between C and S from the menu. The PB-1000 misinterprets a type C file and thinks it is a type R file. Consequently it refuses to copy such a file to RAM. There is an additional attribute byte stored in each directory entry on the disk. Bit 0 is used to protect a file. You can set or select the attribute byte with the - p option. Space allocation is done in blocks of 4 sectors (1KB) each. The size in bytes is computed by multiplying the total number of sectors by 256 and searching backwards the last sector of the file for the EOF marker 1A. The marker is added even on empty files. The following examples assume that you have an image named md100.img in the current directory and that the md100 executable is in your path. Listing the disk directory If you want to specify a pattern, the command name dir must be spelled out: The double quotes around the patterns are essential The - i option forces a case insensitive search. You can use the - u or - l options to convert all filenames to upper or lower case. With the options - t andor - p the listing can be restricted to files of a certain type or with a certain protection setting: Listing files Files on the image can be displayed as text with the type command: (Ask me for a complete listing. The authors pages have seemingly gone.) The file name(s) can be patterns and the options - i. - t and - p do also work. If more than one file is specified, each listing is preceded by the filename and a colon. Listings can be binary (hex dump) or ASCII (the default for most file types). You can force a specific listing style with the options - b or - a : As you can see, BASIC programs are decoded from their internal, tokenized form. I cannot guarantee that the decoder works correctly in all cases, save your programs in ASCII from the calculator if you want to be on the safe side Option - e creates the same escape syntax as list850 does. Copying files to the PC The commands get and mget copy single or multiple files from the image to your PC. The only difference is that get just copies one file (in case of a pattern the first that matches) while the second argument is the new name given to the file on your PC. With mget you can copy a bunch of files in one go but your options to rename the files on your PC are limited to a directory name given with the - d option. Both commands allow the file selection options - i. - t and - f and the case conversion options - l and - u . Use get to copy a single file: This will copy the binary file, not the ASCII code of PI. BAS. You can specify no destination at all (defaults to the current directory), an explicit name, a directory ending in or a name ending in . The trailing in the destination filename is replaced by the source file name. If you want an ASCII copy (just like the type command) specify the - a option. Escape syntax can be created with the - e option: If you want to copy multiple files, use mget : The destination (after the - d option) must end in a directory delimiter or . This is prepended (without the trailing ) to the filename from the floppy image. The source filename pattern(s) must be enclosed in double quotes to prevent the shell from interpreting the wildcard characters. Some characters from the source file name are translated to an underscore. Copying files to the floppy image The commands to copy PC files to the floppy image are put and mput . Again, the main difference is that put copies just one file while mput copies a bunch of files in one go. When copying files to the MD-100 image or the floppy, you need to decide which type to assign to the file. The md100 program tries to guess the file type from the extension correctly:.c ..h and. BAT files are of type C..BAS is type B..REL is type R and all others are type S. You can override this with the - t option. The protection attribute is set to 0 by default but can be changed with the - p option. Files saved on your PC with mget in binary mode should be copied back with the - b switch set. This ensures that the file is transferred unchanged to the floppy image. PC text files should be transferred with the - a switch set to ensure ASCII mode. This way, the correct line termination ( CR LF ) is forced on the destination file. ASCII mode is default for all files except types M. R and B. Escape syntax is supported with the - e option, just like in bas850 . If you are unsure whether a copy command will do what you intended, use the option - n before the image name or between the command and its parameters. This prevents updates to the image or the floppy. Use put to copy a single PC file to the image: Since no destination filename was given it was built from the source file. The - u option forces the name to be all upper case. The - e option interprets escape sequences like PI or 80 and translates them to their binary equivalent. The file PI. ASC can later be opened on the PB-1000 with the memo editor or it can be loaded from the BASIC command prompt with LOAD0:PI. ASC. The BASIC interpreter compiles the file to internal format upon loading. You can use piping with the put command if you replace the source filename with stdin or stdin. EXT. Its better to provide a destination filename with a proper extension. Otherwise, the file will be created under the name stdin. EXT . Here is an example: The option - lP of bas850 will translate the fx-850 logarithm syntax LOG LN to the PB-100 syntax LGT LOG . With put and mput . destination names can be patterns included in double quotes. In order to copy all files ending on. asc on your PC to the floppy image and renaming them to be all lowercase and to end on. txt . enter the following command: Note the double quotes around the MD-100 pattern. txt but not around the PC pattern. asc . The third column is the size in blocks. Renaming or deleting files and setting file attributes The commands ren , del and set change the directory of the floppy image. They all work on file patterns or on single files. To rename all BASIC files to lower case with the extension. bas use the following command: As usual, all patterns must be enclosed in double quotes. With the ren command, all patterns except the last are considered source files, the last pattern forms the new name(s). To delete some C files from the image, enter: Use option - tC and the pattern to delete all type C files. To change all type C files to be of type S and alter the protection attribute, enter: This allows access to the files created by the PB-2000C from a PB-1000. The protection attribute is supposed to protect the file against writing. Direct floppy access On Linux, you can replace the image name in the md100 commands by devfd0casio . the device created with makedev. sh. All operations are directly performed on the floppy. Thats much slower than manipulating an image but you save the work of copying the image back and forth. On Windows youll need an additional package, LibDsk. This is a library to directly access floppies in various formats. See the file readme. txt in the win32 subdirectory. The library is cross platform and it should be perfectly possible to use it on other platforms. I simply havent tried it, yet. You can set the - DLIBDSK switch of your C compiler and try for yourself. To access the floppy, replace the image name with A: . Ive written an OS2 floppy access module as well, but that doesnt work, I keep getting read errors. My interest in OS2 has ceased so updates are unlikely. -( BASIC Comparison Sheet Ive made an attempt to compare the various BASIC dialects of different pocket computers in tabular form: Download page. The link points to the online version of the download page, a local copy is part of this package. The comparison includes Casio, Sharp, HP, TI, Canon and Epson machines. Casio Pages The following Internet sites have more or less influenced my work. More links can be found on these pages. Piotr Piatek has inspired much of what you can find here. Some recent bug fixes and contributions, e. g. direct floppy access from DOS, are by him. He has a deep insight in Casio hardware and has even built the interfaces himself. Visit his site at pisi. plpiotr433index. htm Ledudus site, dedicated to Casio calculators and pocket computers, with many pictures and links: ledudupockets. asp (English and French). Information about the PB-700 can be found on the pages of Christophe le Glatin, now hosted by Ledudu: casio. leduducasiopb700casiopb700.htm. Some French r equired. Thomaacutes Wrobel has collected technical information about the PB-1000: itkp. uni-bonn. de Viktor Toths rskey. org is a site that deals with many programmable calculators, among them several Casio models: rskey. org . The Pocket Computer Museum has many pictures and technical data. It hosts some software for Sharp pocket computers: pocket. free. frindex. html . SilRun Systems (Silent Runner) hosts many scanned Casio manuals: silrun. de . Manfred Becker has created a USB interface and a BASIC program editor for the FX-850P and its successors: manib. ma. funpic. dedetaschenrechner. htm (German pages only). The various file formats of Casio graphics calculators are the topic of the Casio file format documentation project. casetta. tuxfamily. orgformats . Casios communication software FA-124 can be downloaded here: world. casioeduresourcesfa124 Floppy access LibDsk . the library used to access the floppy to manipulate MD-100 disks is written by John Elliot: seasip. demon. co. ukUnixLibDsk . The auxiliary Windows driver fdrawcmd that LibDsk uses is the work of Simon Owen: simonowenfdrawcmd . Contact: Marcus von Cube ltmarcusmvcsys. de gt Page last updated: March 15, 2015

No comments:

Post a Comment