ぱたへね

はてなダイアリーはrustの色分けができないのでこっちに来た

2008-10-01から1ヶ月間の記事一覧

Exercise 2.52 Instruction Set Styles

このCソースに対して等価なアセンブラを書き、4つのアーキテクチャを比較しなさい。 a = b + c; b = a + c; d = a - b; Accumulator Accumulatorの場合は8命令で実行できます。 load AddressB add AddressC # b + c store AddressA add AddressC # a + c sto…

プリント基板の電気的特性

PCB

技術者の為のプリント基板設計入門から抜粋しました。 配線抵抗 1cmあたりの抵抗値[Ω] t:導体厚(mm) 幅[mm] t=0.035 t=0.07 1.0 0.0048 0.0.0024 0.5 0.0096 0.0.0048 0.3 0.016 0.008 0.2 0.024 0.012 0.1 0.048 0.024 スルーホールの抵抗 穴経[mm] 抵抗[mΩ…

Instruction Set Styles

a = b +c; を、Accumulator、Memory-memory、Stack、Load-storeの命令セットスタイルでどうなるか考えて考えようという問題。a,b,cはメモリ上の変数です。Load-storeの命令スタイルは、教科書にでてくるMIPSのスタイルです。 Accumulator Accumulatorの場合…

SPEC2006

教科書に出てくるSPEC(Standard Performance Evaluation Corporation)について、簡単に調べました。総本山 http://www.specbench.org/CPU関連の最新はSPEC2006になります。 http://www.specbench.org/cpu2006/INT版の一覧はこちらになります。 http://www.sp…

PowerPC

In More DepthにPowerPCの特徴が書いてあったのでまとめました。PowerPCはMIPSに近いアーキテクチャを持っています。一番の違い(The primary difference)は、2つの追加のアドレッシングモードと、いくつかの命令です。 Indexed Addressing と Update Address…

Exercise 2.22 MIPS Coding and ASCII Strings その2

2.22 [20] Write a procedure, bcount, in MIPS assembly language. The bcount procedure takes a single argument, which is a pointer to a string in register $a0, and it returns a count of the total number of b characters in the string in regis…

Exercise 2.21 MIPS Coding and ASCII Strings

[30] Write a program in MIPS assembly language to convert an ASCII decimal string to an integer. Your program should expect register $a0 to hold the address of a null-terminated string containing some combination of the digits 0 through 9.…