Solved

HOW CAN I WRITE ASSEMBLER IN TURBO PASCAL ASM?

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Are you unable to connect or configure Hotmail email account in Microsoft Outlook 2010, 2007? Or Outlook.com emails are not downloading to Outlook? Lets’ see the problem and resolve Outlook Connector error syncing folder hierarchy (0x8004102A).
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now