ACEM PORTAL

::Community of ACEM students::
 
HomeHome  CalendarCalendar  GalleryGallery  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log in  
Search
 
 

Display results as :
 
Rechercher Advanced Search
Poll
Latest topics
» Primer Imperio-Torre De Control Mp3
Fri Feb 14, 2014 1:20 pm by bakakali

» LTSP Deployment
Sat May 09, 2009 11:31 am by Santos

» GTA SanAndreas 64kB!!!
Tue May 05, 2009 2:56 pm by Santos

» EPL names..
Thu Apr 30, 2009 4:26 pm by Kxhitiz

» Google logo.
Thu Apr 30, 2009 4:22 pm by Kxhitiz

» Google logo.
Thu Apr 30, 2009 11:36 am by Santos

» the longest website in the world haha
Wed Apr 29, 2009 8:50 am by Kxhitiz

» Ubuntu 9.04 Jaunty Jackalope.
Sat Apr 25, 2009 12:31 am by Santos

» Program to display text with defined cursor position and defined color
Sat Apr 25, 2009 12:11 am by Santos

Navigation
 Portal
 Index
 Fun
 Memberlist
 Profile
 FAQ
 Search
September 2017
SunMonTueWedThuFriSat
     12
3456789
10111213141516
17181920212223
24252627282930
CalendarCalendar

Share | 
 

 8086 program to display the given text in separate line words

View previous topic View next topic Go down 
AuthorMessage
Kxhitiz
Admin
Admin
avatar

Posts : 24
Join date : 2009-03-06

PostSubject: 8086 program to display the given text in separate line words   Sun Mar 08, 2009 10:20 pm

.model small
.stack
.data

maxchar db 100
actchar db ?
str db 100 dup(?)
count db 0

.code
main proc far
mov ax, @data
mov ds, ax

lea dx, maxchar
mov ah, 0ah
int 21h


mov cl, actchar ;act comes after max & ah 0a le after max or at act, the no. of char stores
mov ch, 00h

l1: mov dl, str[bx]
cmp dl, 32
jnz l2
inc count


l2: inc bx
loop l1

mov ah,02
mov dl, 0ah
int 21h
mov dl, 0dh
int 21h

inc count

add count, 30h
mov dl, count
mov ah, 02
int 21h

mov ax, 4c00h
int 21h
Back to top Go down
View user profile http://advanced.chforum.net
Formatted

avatar

Posts : 7
Join date : 2009-03-07
Location : www.kantipur.friendhood.net

PostSubject: Re: 8086 program to display the given text in separate line words   Mon Mar 09, 2009 9:46 pm

Stack kati bhanera ta defined chaina ni program ma k ho ????
Back to top Go down
View user profile http://www.kantipur.friendhood.net
Kxhitiz
Admin
Admin
avatar

Posts : 24
Join date : 2009-03-06

PostSubject: re   Tue Mar 10, 2009 11:42 am

Formatted wrote:
Stack kati bhanera ta defined chaina ni program ma k ho ????

bro stack size suruma define garena bhane default site 64k lincha ni ta
Back to top Go down
View user profile http://advanced.chforum.net
pradhoom
Admin
Admin
avatar

Posts : 6
Join date : 2009-03-07
Age : 30
Location : Kathmandu

PostSubject: Re: 8086 program to display the given text in separate line words   Wed Mar 11, 2009 10:56 am

Kxhitiz wrote:
Formatted wrote:
Stack kati bhanera ta defined chaina ni program ma k ho ????

bro stack size suruma define garena bhane default site 64k lincha ni ta

right. and besides no push/pop or any call instructions or ISR (except int 21h) that can overwrite the registers is used. so the registers are safe.
Back to top Go down
View user profile http://www.pradhoom.co.nr
Formatted

avatar

Posts : 7
Join date : 2009-03-07
Location : www.kantipur.friendhood.net

PostSubject: Re: 8086 program to display the given text in separate line words   Wed Mar 11, 2009 12:50 pm

l1: mov dl, str[bx]
Kxhitiz Bro 'bx' ko value initially kati ho tyo pani hunu paryo ni
Ani Bro Qn chai yeuta chha answer chai arkai.
Your Answer doesnt display the given text in separate line.
It only displays the number of words entered by user instead.


You can see the solution here
NOTE: Solutions are visible only for registered user
Back to top Go down
View user profile http://www.kantipur.friendhood.net
Kxhitiz
Admin
Admin
avatar

Posts : 24
Join date : 2009-03-06

PostSubject: correction   Wed Mar 11, 2009 4:34 pm

ya bx ko value zero set garnu parcha that is obvious
Back to top Go down
View user profile http://advanced.chforum.net
Sponsored content




PostSubject: Re: 8086 program to display the given text in separate line words   

Back to top Go down
 
8086 program to display the given text in separate line words
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» BASIC RUNNING MESSAGE DISPLAY
» example of Basic turbo C program in PLC Programming
» "Refer a Friend" program on Taiwan Servers?
» DeAveiro Basketball Skills Development Program
» how do you display your gamertag?

Permissions in this forum:You cannot reply to topics in this forum
ACEM PORTAL :: Programming :: Assembly Language-
Jump to: