ACEM PORTAL
Would you like to react to this message? Create an account in a few clicks or log in to continue.
ACEM PORTAL

::Community of ACEM students::
 
HomeHome  GalleryGallery  SearchSearch  Latest imagesLatest images  RegisterRegister  Log in  
Search
 
 

Display results as :
 
Rechercher Advanced Search
Poll
Latest topics
» Primer Imperio-Torre De Control Mp3
8086 program to display the given text in separate line words EmptyFri Feb 14, 2014 1:20 pm by bakakali

» LTSP Deployment
8086 program to display the given text in separate line words EmptySat May 09, 2009 11:31 am by Santos

» GTA SanAndreas 64kB!!!
8086 program to display the given text in separate line words EmptyTue May 05, 2009 2:56 pm by Santos

» EPL names..
8086 program to display the given text in separate line words EmptyThu Apr 30, 2009 4:26 pm by Kxhitiz

» Google logo.
8086 program to display the given text in separate line words EmptyThu Apr 30, 2009 4:22 pm by Kxhitiz

» Google logo.
8086 program to display the given text in separate line words EmptyThu Apr 30, 2009 11:36 am by Santos

» the longest website in the world haha
8086 program to display the given text in separate line words EmptyWed Apr 29, 2009 8:50 am by Kxhitiz

» Ubuntu 9.04 Jaunty Jackalope.
8086 program to display the given text in separate line words EmptySat Apr 25, 2009 12:31 am by Santos

» Program to display text with defined cursor position and defined color
8086 program to display the given text in separate line words EmptySat Apr 25, 2009 12:11 am by Santos

Navigation
 Portal
 Index
 Fun
 Memberlist
 Profile
 FAQ
 Search
May 2024
SunMonTueWedThuFriSat
   1234
567891011
12131415161718
19202122232425
262728293031 
CalendarCalendar

 

 8086 program to display the given text in separate line words

Go down 
3 posters
AuthorMessage
Kxhitiz
Admin
Admin
Kxhitiz


Posts : 24
Join date : 2009-03-06

8086 program to display the given text in separate line words Empty
PostSubject: 8086 program to display the given text in separate line words   8086 program to display the given text in separate line words EmptySun 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
https://advanced.forumotion.net
Formatted

Formatted


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

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

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


Posts : 24
Join date : 2009-03-06

8086 program to display the given text in separate line words Empty
PostSubject: re   8086 program to display the given text in separate line words EmptyTue 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
https://advanced.forumotion.net
pradhoom
Admin
Admin
pradhoom


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

8086 program to display the given text in separate line words Empty
PostSubject: Re: 8086 program to display the given text in separate line words   8086 program to display the given text in separate line words EmptyWed 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
http://www.pradhoom.co.nr
Formatted

Formatted


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

8086 program to display the given text in separate line words Empty
PostSubject: Re: 8086 program to display the given text in separate line words   8086 program to display the given text in separate line words EmptyWed 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
http://www.kantipur.friendhood.net
Kxhitiz
Admin
Admin
Kxhitiz


Posts : 24
Join date : 2009-03-06

8086 program to display the given text in separate line words Empty
PostSubject: correction   8086 program to display the given text in separate line words EmptyWed Mar 11, 2009 4:34 pm

ya bx ko value zero set garnu parcha that is obvious
Back to top Go down
https://advanced.forumotion.net
Sponsored content





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

Back to top Go down
 
8086 program to display the given text in separate line words
Back to top 
Page 1 of 1
 Similar topics
-
» A simple assembly program to display text with background and foreground color
» Program to display text with defined cursor position and defined color
» new 8086 solutions given by the teacher
» program for 8085 to find the smallest number
» 8085 program to find the sums of even and odd numbers of the table

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