组合语言与系统程式.ppt





《组合语言与系统程式.ppt》由会员分享,可在线阅读,更多相关《组合语言与系统程式.ppt(52页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、组合语言与系统程式 Still waters run deep.流静水深流静水深,人静心深人静心深 Where there is life, there is hope。有生命必有希望。有生命必有希望軟體介紹nsicasmnSIC assemblernsic language program - object programnsicsimnSIC simulatorn執行object programsicasm SIC assembler sicasm SIC assemblern支援SICn不支援STSW這個指令nUse ASCII codenExternal files:nInput fi
2、le: SRCFILEnOutput file: OBJECT、INTFILE、LISFILE sicasm SIC assembler -檔案與assembler關係圖sicasm SIC assemblernSRCFILE 攥寫SIC program處nSource format(請務必依照此格式寫)nBytes n 1-8 labeln 9 blankn10-15 operation code (or assembler directive)n16-17 blankn18-35 operandn36-66 commentnBlank不可以用tab取代,兩者的ASCII code是不同的s
3、icasm SIC assemblernSRCFILE英文字母為大寫英文字母sicasm SIC assemblernOBJFILE 組譯(執行sicasm)後,此處會產生object programsicasm SIC assemblernLISFILE 列出組譯狀況sicasm SIC assemblern當成是有錯,LISFILE會出現錯誤訊息n由於沒有宣告ZERO變數,所以出現找不到operand的錯誤訊息sicasm SIC assemblernINTFILE 這個檔案列出組譯器組譯過程中產生的中間處理過程sicsim SIC simulator sicsim SIC simulat
4、orn支援SIC 和 SIC/XEnMain memory size 最大為2FFF(可更改)nUse ASCII codenExternal files:nInput file: DEV00、DEVF1、DEVF2、 DEVF3nOutput file: DEV04、DEV05、DEV06、LOG sicsim SIC simulator -檔案與simulator關係圖sicsim SIC simulator -處理過程sicsim SIC simulator -處理過程sicsim SIC simulator -處理過程sicsim SIC simulator -處理過程sicsim S
5、IC simulator -處理過程sicsim SIC simulator -Input filenDEV00: object program of bootstrapn當電腦開機或是重新啟動時,會執行bootstrapnbootstrap的功能為:載入第一個在電腦執行的程式n通常第一個在電腦執行的程式為OSn而這個simulator處理的工作較為簡單,所以此處指的是loadersicsim SIC simulator -Input filenDEV00: object program of bootstrapn請勿更改內容sicsim SIC simulator -Input filenD
6、EVF1: object program of loadernloader的功能為:n把要執行的object program載入到memory中n載入完畢後,跳到指定的位址,開始執行載入的程式n指定的位址通常指程式的起始位址nex.下列範例的起始位址1000sicsim SIC simulator -Input filenDEVF1: object program of loadern請勿更改內容sicsim SIC simulator -Input filenDEVF2: OBJFILEn攥寫程式經過sicasm.exe組譯出來的object programsicsim SIC simula
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 组合 语言 系统 程式

限制150内