Notice: SSI.php was unable to load a session! This may cause problems with logout and other functions - please make sure SSI.php is included before *anything* else in all your scripts! in /home/tiplus/www/forum/SSI.php on line 180
This is the assembly stack application !
Post useful routines here (written by you or anybody else).

Posting a routine give you points that you can spend by voting for others routines :
Now some rules :

Code routines

; hl = map to decompress
; de = destination
; Decompress a rle from hl to destination
rleDecompress = SAFERAM_OFFSET
rleRepeterPourTous:
; 1 Lire le nombre de fois que sera repete la valeur
ld b, (hl)

ld a, b
or a ; si 0
ret z ; fin du traitement
; 2 Lire la valeur a repeter
call loadNextHL
ld a, (hl)

rleRepeterPourUn:
ld (de), a
inc de
djnz rleRepeterPourUn

; 3 Passer au suivant
call loadNextHL
jr rleRepeterPourTous
;; Pas besoin de ret il est plus haut :)
1 votesPlease log in to propose another solution or vote for this routine

Post your routine

You must log in to post routines