Click here to Skip to main content
15,914,014 members
Home / Discussions / Article Writing
   

Article Writing

 
AnswerRe: Delete non(article request) Pin
Pete O'Hanlon22-Jun-08 8:46
mvePete O'Hanlon22-Jun-08 8:46 
JokeRe: Delete non(article request) Pin
Jaime Olivares22-Jun-08 8:59
Jaime Olivares22-Jun-08 8:59 
GeneralRe: Delete non(article request) Pin
Pete O'Hanlon22-Jun-08 9:12
mvePete O'Hanlon22-Jun-08 9:12 
GeneralRe: Delete non(article request) Pin
Paul Conrad28-Jun-08 5:21
professionalPaul Conrad28-Jun-08 5:21 
Questionis it possible? Pin
gillardg17-Jun-08 22:16
gillardg17-Jun-08 22:16 
AnswerRe: is it possible? PinPopular
Pete O'Hanlon18-Jun-08 10:32
mvePete O'Hanlon18-Jun-08 10:32 
AnswerRe: is it possible? Pin
Paul Conrad28-Jun-08 5:23
professionalPaul Conrad28-Jun-08 5:23 
QuestionHelp again Please....i am still learning.....need a tutor Pin
Joselito Garcia15-Jun-08 15:20
Joselito Garcia15-Jun-08 15:20 
The rle compressed data is 1, 4, 3, 9, 5, 3, 2, 7, 0. The program currently just prints all these values except the terminating zero. When properly decompressed, the output should be:

4 9 9 9 3 3 3 3 3 7 7

yet i cannot get it to do so.....
this is my code......I managed to get it to find the number of times yet not produce them as i need which is this
4 9 9 9 3 3 3 3 3 7 7


; rle_soln.asm
; sample program to demonstrate decompressing RLE

include 'emu8086.inc'

org 100h ; set location counter to 100h

jmp CodeStart

DataStart:
; this is the run length encoded data
; notice that it is a list of words (bytes)
; with a zero on the end
rleData dw 1, 4, 3, 9, 5, 3, 2, 7, 0

space db ' ', 0

CodeStart:

; put the address of the first rle value in bx
mov bx, offset rleData

; start a loop that will visit each value in rle data
LoopStart:

; compare value in list with zer0
cmp [bx], 0

; if value was zero, must be end of list so quit
je EndLabel

; move value in list to ax
mov ax, [bx]

; print it
call print_num

; print a space
mov si, offset space
call print_string

; add 2 bytes to the address in bx to move to the
; next value in the list
add bx, 2

; continue the loop until a zero is found
jmp LoopStart

EndLabel:
ret

DEFINE_PRINT_STRING
DEFINE_SCAN_NUM
DEFINE_PRINT_NUM
DEFINE_PRINT_NUM_UNS


Please Email me with an edit to this to show me where my alteration nees to be...
AnswerRe: Help again Please....i am still learning.....need a tutor Pin
Scott Dorman15-Jun-08 15:27
professionalScott Dorman15-Jun-08 15:27 
QuestionI'm a Novice Pin
Joselito Garcia15-Jun-08 15:16
Joselito Garcia15-Jun-08 15:16 
AnswerRe: I'm a Novice Pin
Scott Dorman15-Jun-08 15:26
professionalScott Dorman15-Jun-08 15:26 
AnswerRe: I'm a Novice Pin
Paul Conrad28-Jun-08 5:25
professionalPaul Conrad28-Jun-08 5:25 
Questionrequest : Webbased text editor with HTML output Pin
RAJAGOPAL PATABALLA12-Jun-08 1:24
RAJAGOPAL PATABALLA12-Jun-08 1:24 
AnswerRe: request : Webbased text editor with HTML output Pin
Scott Dorman15-Jun-08 15:24
professionalScott Dorman15-Jun-08 15:24 
QuestionConverting dataset file(.xsd) to something better. Pin
Silver Pearl11-Jun-08 20:29
Silver Pearl11-Jun-08 20:29 
AnswerAm I missing something? Pin
Pete O'Hanlon11-Jun-08 22:05
mvePete O'Hanlon11-Jun-08 22:05 
Questionjava and C# interoperability Pin
John Willcox11-Jun-08 9:55
John Willcox11-Jun-08 9:55 
AnswerRe: java and C# interoperability Pin
Pete O'Hanlon11-Jun-08 10:23
mvePete O'Hanlon11-Jun-08 10:23 
QuestionPDF Manipulation Classes Pin
Zhirayr Avetisyan10-Jun-08 0:21
Zhirayr Avetisyan10-Jun-08 0:21 
AnswerWrong forum - this is for article requests and ideas; not pleas for help Pin
Pete O'Hanlon10-Jun-08 1:17
mvePete O'Hanlon10-Jun-08 1:17 
Questionc# user login information Pin
kingkeamo29-May-08 0:26
kingkeamo29-May-08 0:26 
AnswerWrong forum Pin
Pete O'Hanlon29-May-08 1:43
mvePete O'Hanlon29-May-08 1:43 
Questionreally simple but completly stumped Pin
samuelgamlin25-May-08 4:01
samuelgamlin25-May-08 4:01 
Questionadd check box in gridview and get the checked rows into another gridview in c#.net Pin
senpriya23-May-08 0:20
senpriya23-May-08 0:20 
AnswerStill the incorrect forum Pin
Pete O'Hanlon23-May-08 2:19
mvePete O'Hanlon23-May-08 2:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.