1 / 3

Exe style program

Exe style program. skeleton. TITLE Exe style skeleton .486 STCK SEGMENT PARA STACK 'stack' use16 DB 64 DUP ('my_stack') ; reserve 256 bytes for stack STCK ENDS DATA1 SEGMENT PARA PUBLIC 'DATA' use16 ; data definitions DATA1 ENDS. COD1 SEGMENT PARA PUBLIC 'CODE' use16

maja
Download Presentation

Exe style program

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Exe style program skeleton

  2. TITLE Exe style skeleton .486 STCK SEGMENT PARA STACK 'stack' use16 DB 64 DUP ('my_stack') ; reserve 256 bytes for stack STCK ENDS DATA1 SEGMENT PARA PUBLIC 'DATA' use16 ; data definitions DATA1 ENDS

  3. COD1 SEGMENT PARA PUBLIC 'CODE' use16 MAIN PROC FAR ; main proc MUST be FAR ASSUME CS:COD1,DS:DATA1,SS:STCK PUSH DS ;save DS on stack for OS return XOR AX,AX ; PUSH AX ;put 0 on stack for OS return MOV AX,DATA1 MOV DS,AX ;load data Segment register RET ; return to OS MAIN ENDP COD1 ENDS END MAIN

More Related