or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing
xxxxxxxxxx
計算機概論Lab-5
HARDWARE ARCHITECTURE AND DATA MANIPULATION
https://hackmd.io/@IMOK/Lab5
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →講師: 賴昱有
程式語言對於硬體的抽象程度
組合語言
通常組成形式為
e.g.
簡單的加法
組合語言:
對應解釋:
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →Program counter(PC)
address of next instruction
Instruction register(IR)
current instruction
指令表
僅限於今天會使用到的模擬軟體
實際上的組合語言會有多種不同指令集
R, S, T 皆代表 Register
e.g. S 中值為 65 就將記憶體 65 中的值填入 R
e.g. S 中值為 65 就將 R 中的值填入記憶體 65
三種不同的定址方法
BRANCHING
LOOPING
作業網站
作業做完請上傳到 http://140.121.197.13/tutorial
並且注意上傳時間限制、檔名、其他規範
上課時提前做完可以直接給助教 demo 登記
就不需要上傳 demo 過的部分
Question 1
Write a program to compute theand store the results in address
Question 2
Write a program to swap the values of memory location of
Question 3
Fill in the values
Write a assembly program and add the values within the memory locations
Question 4
Write a program to add the values of 1 to x,where 1 ≤ x ≤ 20. (x can be stored in some register)
Question 5
For the program below, instead of addingthe value of memory address
change the program with the available instructions to do subtraction,
i.e.,
Question 6(Hard)
Write a program to perform bubble sortwithin the memory locations of
(Requires using
hint : bubble sort