組合語言第一次作業 

 

-723910

16-bit Binary

16-bit Hexadecimal

Sign Extension

1

F

1's Complement

1110001110111000

FFFFE3B8

2's Complement

1110001110111001

FFFFE3B9

 

Please state what you learn after trying "debug" or "MASM". 20%

After trying 'debug', I learned how to check the status of CPU's registers, assemble/desamble codes, and run the codes.
I also learn how to use 'interrupt' that system provides.

'debug' provides following commands:
 
command syntex explaination
Go g[=start] [end] run from start to end
Unassembel u[=start] desamble codes from start
Trace t[=address] [n] execute code at address for n instr.
Procedure exec. p trace over code
Name n[file name] set the file name
Write w write coeds to disk with length (BX,CX)
Display d[start] [end] display memory from start to end
Register info. r show the info of all registers
Modify register value r[register] modify the value of register
 

Advanced: 60%

Please collect as more the information of the addressing modes used in 80X86 or other PC system as possible. You can state their histories, characters, performances, and so on. Please find them out in the internet or at library.

Reference:
System Software, An introduction to systems programing 3rd. Edition / Leland L. Beck / Addison Wesley