fb:porticula NoPaste
ASM-Code für ne Exe
Uploader: | PMedia |
Datum/Zeit: | 23.06.2007 11:45:27 |
; EXE format allows several segments - for stack, data and code.
TITLE 8086 Code Template (for EXE file)
; AUTHOR emu8086
; DATE ?
; 8086 Code Template
DSEG SEGMENT 'DATA'
; TODO: add your data here!!!!
DSEG ENDS
SSEG SEGMENT STACK 'STACK'
DW 100h DUP(?)
SSEG ENDS
CSEG SEGMENT 'CODE'
START PROC FAR
; Store return address to OS:
PUSH DS
MOV AX, 0
PUSH AX
; set segment registers:
MOV AX, DSEG
MOV DS, AX
MOV ES, AX
; TODO: add your code here!!!!
; return to operating system:
RET
START ENDP
CSEG ENDS
END START ; set entry point.