iLMS知識社群(Sites)師生部落格(Blogs)朝陽首頁(Homepage)TronClass教學平台登入
位置: 王駿恭 > 未分類
111
by 王駿恭 2018-06-13 14:53:08, 回應(0), 人氣(62)
; Program Template           (Template.asm)

; Program Description:

; Author:

; Creation Date:

; Revisions:

; Date:              Modified by:

.386

.model flat,stdcall

.stack 4096

ExitProcess PROTO, dwExitCode:DWORD

.data

myBytes BYTE 10h,20h,30h,40h
myWords WORD 8Ah,3Bh,72h,44h,66h
myDoubles DWORD 1,2,3,4,5
myPointer DWORD myDoubles

.code

main PROC

mov esi,OFFSET myBytes
mov al,[esi];
mov al,[esi+3]; 
mov esi,OFFSET myWords+2
mov ax,[esi]; 
mov edi,8
mov edx,[myDoubles+edi];
mov edx,myDoubles[edi]
mov ebx,myPointer
mov eax,[ebx+4]

INVOKE ExitProcess,0

main ENDP

; (insert additional procedures here)

END main

回應