lecture3assemblylanguagefundamentals内容摘要:

6 4 K Co m pa ct C o d e = 6 4 K L a rg e Array s = 6 4 K Hug e Array s 6 4 K allo wed Fla t 32 b it ad d ress es , Pro tected m o d e o n ly Outline  Basic Elements of Assembly  Sample Program  Assembling, Linking, and Running  Defining Data  Symbolic Constants Assembling, Linking and Running Source file (.asm) Text editor Assembler Object file (.obj) Listing file (.lst) Linker Link library (.lib) Executable program (.exe) Map file (.map) Dos Loader Output ML  Assembling Assembling, Linking and Running Two staged process: – Assemble: Converts assembly language into machine language. Uses source file, outputs object file and optionally the list file – Link: Connects (links) the different .obj and library files together to create the executable file. Uses the object file(s) and optionally a library. Outputs executable file and optionally map file Both done with ML mand  MASM  ML bines assembling and linking  Example ml Zi Fl Fm  Zi Include debug information for Codeview  Fl Produce listing file  Fm Produce map file  Options are CASE SENSITIVE!  You can use or / for options Assembling, Linking and Running ALL THESE COMMANDS HAVE BEEN INCLUDED IN THE – make32 filename Defining Data  Directives (see pp. 8081) DB, BYTE 8bit unsigned integer SBYTE 8bit singed integer DW, WORD 16bit unsigned integer SWORD 16bit signed integer DWORD 32bit integer SDWORD 32bit signed integer REAL4 32bit IEEE short real REAL8 64bit IEEE long real Defining Data Symbolic name for a location in memory During assembly, the value of a variable name is its offset from the beginning of the segment! Examples: Name byte Joe Brown Cost word 14 Defining Data  General Format [name]。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。