肉汁
( 25 )育教 日一初月二年未辛膺夏
報日憍
六期星 日六十月三(一九九一)年十八國民華中
Computer(24)
Example: write machine codes for the following machine instruction
using the operation codes just defined.
(a)Move the content of memory location 15 to the accumulator.
100.01111
Central Memory
Memory
Content
location
1991 中學會考預習專欄
明德出版社
MILL & DALE PRESS
K. Choy
LOAD Operand
Of111z - 15:0
1
10001111
00010000
10110001
Computer Operation by Machine Code.
Machine code is machine dependent, different machines use different machine codes. Therefore questions of computer operation will assume a list of operation code:
Basic assumptions
(1)The computer uses 8-bit words to represent instruction.
(Memory location 15)
(b)Add the content of memory location 15 to the accumulator..
01100000
11100000
000,10000
ADD Operand
10000元=
1610
Memory locations not used.
00001001
Machine code program stored in the memory location
訊航 E
周赕慈利 自從印尼 後,由本港到 有若干本港旅 由五天虿九天 因多蘭旅行瑚 應可能不去,
E
巴 點美
未必会
!
溷遊⌈ 千元:
(memory Jocation 16)
.00001010
Datd stored in the memory.locations.
00010011
(c)store the content of accumulator to the memory location 17.
101 10001
Memory locations not used.
STORE. Operand
10001 = 17
3 bits Queration
code
5. bits Operand
The first 3 wits are the operation codes and the last 5 bits are use to represent the operands.
(2)3 bits of operation codes can stand for B different instructions. (3)5 bits of operand can stand for 2 operands i.e. 32 memory!
locations.
(4)A set of operation codes are used for explanation. It is necessary to realize that the table will be different from thosej defined in the examination paper. Therefore you are suggested to Tearn only the idea.
Type of
Operation
Operation
Code
Arithmetic Operation
000
Input/output operation
.001
011
Moving data
100.
Sequence
110
. control
Program control
Operation description
ADD the content of the memory location (operand) to the content of accumulator. The result is stored in the accumulator,
SUBTRACT the content of the operand from the content of the accumulator. The result is stored in the accumulator.
INPUT a number from the keyboard and store the value into the accumulator.
OUTPUT the content of the
·accumulator to the monitor screen.
LOAD the content of the operand into the accumulator.
STORE the content of the
accumulator into the memory
specified by the operand.
JUMP to the locationfeet f
秘
the operand if the fontie
accumulator is less a
STOP program execution.
(memory location 17)
(d)Display the content of the accumulator to the monitor screen.
011 00000
OUTPUT Neglected because the monitor screen is assumed.. (e)urite a machine code program to add two numbers stored in memory
focations:15 and 17. The sum is then stored in location 17. The result is displayed on the monitor screen.
Flowchart
START
Machine code program,
Program 010-00000
101 10000
Move the, content
010 00000
of Tocation 15
to ACC
101 01111
100-01111
000 10000
000 10000
101, 10001
01:1 :00000
101 10001
Add the content
of location 16
to the ACC
Store the content
of ACC to
location 17
sp the
content of ACC,
to ine 'screen
STOP
011.00000
111 00000
圖
*Remarks: The program and the data are both stored in the memory
locations. The storage is shown below:
Operation code
000
001
010
011
100"
101
110
1.11
The last machine program may be changed to assembly language:"
Assembly language
*IMP
STA 16
INP
T 01111.
000 10000
101 10001
011 00000
411 00000
STA 15
ADD. .16
STA
17
OUP
"STP
Program dry run
Instruction
·Accumulator
15
16
17
Screen
1.0
10
19.
10
19
10
19
10
19
$
Example: Modify the program so that the two values should be input
through the keyboard.
111 00000
Explanation
Input a value through keyboard. Store the value to location 16. Input the second value.
Store the value to location 15. Add location 16 to accumulator. Store the 'sum to location 1.7. Display the sum
. Stop:program execution.
Assembly Language.
Machine codes are difficult to handle.
-Mnemonic codes are used to represent the operation codes. In
recent papers, mnemonic codes are used for machine codes.
Mnemonic codes should be changed to machine codes before it can be ̇executed by the translation program called the assembler. Example:
Mnemonic code
ADD
SUB
INP
OUP
LOA
STA
JMP
STP
ent assemblers for different machines use different mnemonic les.
5
預
倒
五千
詢相
印尼旅遊業漸蓬勃
旅行團行程有出入
具一定悟力,如台北使是亞洲區 作爲後盾,而其他亞洲城市 - 亦
·的航空貨運中心,特別是有中國
由 - 認爲本港在亞洲區是具實質 華民航空是次申請所持之理
采月矛耳言證明不裕言
公司指出,確能配合下一個世紀 至於香港新機場的興趣,該 的航空貨運發展,而現時國泰航
對香港廠商及貨主而言,這種貿 乏一個本地的全貨運航空公司, .該公司堅持,本港目前正缺,
再購買新機。對今次聆雅用分作 兩次舉行,陳氏指出是史無前 若今次牌照申請獲准,則會考虑
803865X - 20MHZ Turbo $6,990
(80386-25/33MHZ DX
$9,990
20036 SY*
·B0286 中央微處理器A0MHZ
- 1 MB 高速暫存記憶容量
·40 MB硬盤(取存速度ME
1.1.2 MB 5.25吋磁碟機
串聯蟑
101鍵盤
·14吋黑白雙色顯示器
特價 HK$4,990,00
免費送貨服務
Hatio.
先進電腦中
招生
特價電腦套餐
電腦入門
DOS
LOTUS 123
DBASE
WORDSTAR
中文(國喬/倚天'}
DBASE PROGRAMMING
ADVANCE LOTUS
兒童電腦興趣班
會考電腦補習班
BASIC / COBOL
80286-16MHZ Turbo
80386SX - 20MHZ Turbo.
86486-5/3012
$250
$395
$495
$495
$495
$495
$595
$595
每月$185
每月:$195 每月$195
SPECIAL OFF-SALES FOR EDUCATIONAL
Freecom 286/12 Computer
Basic Unit
--- 80286 CPU 12MHz Ovial state
(16MHz)
·ts tam on board;
12M Floppy Disk Driver
- 1 Sertat, 1 Paralel and 1 Game
[/Û port
101-Keys enhanced keyboard
LED Display
One year full warranty
Freedom 2866/92-400
- Basic Lini + 14° Dual Mantor
+ Dual Card
+-40M 28ins AT-Bus Harddisk
w/adaptor
Freecoin 266/12-40V.
Basic Una
+ VGA Card ·
14" VGA Monitor
1-40M 28ms AT Bus Harddisk
władaptor
*Standard Special
4.500.00 3.672.00
8.500.00 7.227.00
船名
馬婚土(MAR
國興
KUO
LUCI
感
ALS.
斯里瑪泰 LANI
Marksdata Computer Limited Unit 10, SIF Kingsford Ind. Cir.)
12.112 00 10.296.00,
HK $7001
"SUPREME SHIELD" FIX-008
"Tho Stale-of-the Art", Break-through Technology
and New Concept of microcomputer virus protaction card.
安心 ANG
鱷魚驕傲
ALLI
̇海陸快㞊' SL. E
·请造毛里求斯 | NL. K
REF
·海鑽石 NEP. 雅士百合 咨
ACX
SL. E
烏修馬士基 MAR 安娜馬士基 ANN
佐治華盛頓播 GEO| 大同二號
TAT
馬士基桃 MAE
$10,500
本书心學生另有折扣)
Computer
九龍旺角彌敦道691 號永如大厦 3/F
Tel:3961970
ES, Wong Hoi Rd., Kowloon Bay
To 761-7803 Fax: 751-7759
Authorized Västilmtor:
Auto Office Systones Co.
Now Line Computer Gupplies
TEL:1/2 G15DE.
MacToda (HK) Co.
歡迎使用信用咭付款
Giant WinIndustrial Co.
FLAT 7, 1F., KINGSFORD INDUSTRIAL CENTRE,
13 WANG 1101 ROAD, KOWLOON DAY, KLN., HI.K.
TEL: 852-759 9111
Advance
TEL:852-7286159
HKD. 6,770.00
Room 1404-5
VS POWER
VS-POWER 80286 12MHZ
IMIN RAM ON: BOARD
-AT. I/O Card
-1.2M Floppy Disk Drive
-1.44M Floppy Disk Drive
-40M Hard Disk (28ms)
-100/FDD Controller Card -Mini Tower or RT Case
with Power Supply
-101-Keys Keyboard
-14" Paper White Monitori
-Dual Display Card
* One Year Warranty
m
萬寶電腦公司
MacroPro Computer Company-
dBase
Symphony
Wordstar
Dac Easy
Basic/Advanced Basic 國業中文系統全科
x
屬靈電子有限公司
Tai(852) 399 0252 Teex: 65322 KANIKHX
CWH: KARELESUA PAC (052) HD (047), 342 6038
COMPUCON
日本
286/386
Hong Kong Plaza
186-191
Connaught Rd W Hong Kong
電腦證書課程
全港最大電腦訓練中心,面積廣闊,設備完善 保證每人一機,免費講義,全部電腦枱
每類課程每星期皆有數班
東方榮譽
GOL
000
̇紅旗一九五 HON
江
FUPI
TON
縂利普輯 VED.
JAN
學員可獲10小時免距練習
DOS
領先電腦系統
溜 打 HAI 惊
SUIJ
附齷管理程式應用
$250/$380
Dos
File Programming
80286系統
Lotus
Macro Programming AutoCAD 電腦繪圖設計
dBase Programming
$3900
從 MINI 期 筱 HAI
Framework
$750/$1200
石滤
DAS
WordPertect
AutoCAD
兒童興趣班
80386系統 $8400
KIN
E. CI
海洋大数
OCE
$200
雅獒殊润
INZE
以上系統包全年上門保登
YER
劑,領先電腦中心
九龍彌敦道178號瓶成糰2/F,全服(山林浙入口) 佐款地能站柯士甸流出口
Tel: 7237833 Fax : 123171.
澳紐
海松浙臂土利中明通信疝
MAF
SON
洲 缎
ZIE
恃樂總統 PRE!
SIA
NL.
R.K.
日、韓
台灣、斯里蘭卡、馬爾代夫
歐洲、印度
美、加
大阪、東京、廸士尼 七天豪華團
$7,990
名古屋、東京、迪士尼
華
$6,490
北海道、京、廸士尼 五、七天豪華團 $7,500起
韓國漢城、俗離山 四、五天豪華團 【韓國娀、溫
天豪華團 4 $4,390 韓國、濟州、華克山莊
$4,39019
台灣四天渡假團 $3,090 台灣環島六天 高級團
欧洲十、十二天 渡假圈
$3,990 台灣環島阿里山八天
鹿兒島、九州五、七、 八天豪華團
四、五天豪華團 $4,500L 漢城、華克山莊、州、釜山 五天豪華團 $4,890
高級園 九 $4,950
$10,790起
歐陸十二天探團
蘇聯、北歐
十三團
十五、十七淡
鹽威粥加(樂)绺
* 6,600
六、九、十一、十三、
澳加西(東)烨七、九,十一、
七、十天
糙
312,780
十三、十五天
$10,300起
(北路)七、十天
$21,000
溫哥華(多倫多〉 四六天
* 8,090
七、冷淡
九州、舆京、廸士尼
七、八天豪華團 $4,5BH起
韓國、本州、廸士尼 八天豪華團
馬爾代夫六、八天 豪華遊
$6,290元 斯里蘭卡、馬爾代夫 八天豪華遊 $6,690
欧洲十三、十五灭 康樂團
柏斯、猕製、
$8,090
$13,600起
歐陸十四天業線團
東南歐十三、 十五天圈
溫華、洛磯底 五、六天
坎培拉七天
s11,100 拉
$14.100
热佩洛古旅樑家 八天
大堡礁、黃金海岸、霉梨、 塑尚狱七、九天
韓國、九州
$13,000起
印度八天豪華$7,880
*14,200
澳加古城遊踪中...、 十三天
$12,000 照醐味、大海洋路、鬆、 (北陆)
$16,000
JAL
八
58,900
☆熊睡阋酬谢情世纪通行,免首年年皺
104130344 38: 842 641
Zascha vár
Canadion JALU
黃金海岸、梨、火墙拉、
辉腾、粗西蘭北島)
$12,190起
米、坎培拉、認製、紐西蘭
$10,000€
金海岸、製、坎培拉
七十三派
$10,000€
紅頭銜(南北)、澳洲版蹴 八,九、十三天 312,780
星晨旅遊
MorningStar
明我训 MIN
MIL
谜 Star
怨 FUC
垃 灣 EVE
胎名
金虎狼 JENI 甥
MIN
羅地點老战 LAL 讚
诽 HAN
VEL
译 MIL
SEA
000
SL.
车站麻中心418中门分
阿拉伯饰 ARE
SL.:
736 3368 (2
5218161(98)
[332 0995(862)
07233)
405 4401(64)
• MEN DE ALUNEFIOM 3412001,400)
MENJALA : 7350333 62524366
迷糊背
WALT TRE
我
起
CHE
OKI
NEF
EVL
牌照編號 350018
Page 25Page 26
筆中
心
No comments yet.
Private notes are available after approval.