Solved

HOW CAN I WRITE ASSEMBLER IN TURBO PASCAL ASM?

Posted on 1997-10-29
1
1,624 Views
Last Modified: 2012-08-14
I HAVE THIS PROGRAM

CODE SEGEMENT
ASSUME CS:CODE,DS:CODE
START:MOV AX,CODE
      MOV DS,AX
      MOV AX,7
      INT 21H
      MOV AX,4
      INT 21H
END START
CODE ENDS
I WANT TO KNOW HOW CAN I WRITE ASSEMBLERPROGRAM LIKE THIS
IN TURBO PASCAL ASM ?
0
Comment
Question by:noam
1 Comment
 

Accepted Solution

by:
mes earned 10 total points
ID: 1216379
Hi noam,

In Turbo Pascal you can make a the same procedure START as you see above like this:

procedure start; assembler;
  asm
    push ds
    mov  ax,code
    mov  ds,ax
    mov  ax,7
    int  21h
    mov  ax,4
    int  21h
    pop  ds
  end
end;

Greetings,
MES.

0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article shows the method of using the Resultant Set of Policy Tool to locate Group Policy that applies a particular setting.
Building a successful professional career is a long and difficult journey, especially in case if your decisions are not chosen carefully. For example, if you think that you can get to the desired position without experience and apply for it, your ch…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question