Solved

HOW CAN I WRITE ASSEMBLER IN TURBO PASCAL ASM?

Posted on 1997-10-29
1
1,623 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
Google always has something new and amazing up its sleeve, and the most current thing that they have been working on is another step in the evolution of Google Search, from machine learning to its brilliant successor, deep learning.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

832 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