Solved

HOW CAN I WRITE ASSEMBLER IN TURBO PASCAL ASM?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In the hope of saving someone else's sanity... About a year ago we bought a Cisco 1921 router with two ADSL/VDSL EHWIC cards to load balance local network traffic over the two broadband lines we have, but we couldn't get the routing to work consi…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

863 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

22 Experts available now in Live!

Get 1:1 Help Now