Quote from: Jean-Marie on Today at 20:06Quote from: lightforce6128 on Today at 18:54Until now I did not find the code location where this position is stored. It surely needs to be altered.
I found the decoding routine at B000h, and the BC register seems to contains the size of the compressed data. I guess I'll have to modify it since the size is a bit larger with the new shuffled data.
org &1B39
ld bc,&002c
ld de,&d7cc
ld hl,&d7cb
ld (hl),&0004
ldir
;;ld bc,&0030
;;ld de,&6dc0
;;ld hl,&6930 ;;move spikes tiles to buffer
;;ldir
;;ld bc,&0040
;;ld de,&6d40
;;ld hl,&6cb0 ;;move flames tiles to buffer
;;ldir
ld hl,&1b1f
call &d600 ;;set palette
ld b,&0006
ld ix,&243e
ld de,&0006
ld hl,&24fe
l1b6e:
ld c,&0010
l1b70:
ld (ix+&0000),l
ld (ix+&0001),h
inc ix
inc ix
l1b7a:
ld a,(hl)
inc hl
cp &00d3
jp z,l1b85
add hl,de
jp l1b7a
l1b85:
dec c
jp nz,l1b70
djnz l1b6e
ret
Quote from: lightforce6128 on Today at 18:54Until now I did not find the code location where this position is stored. It surely needs to be altered.I found the decoding routine at B000h, and the BC register seems to contains the size of the compressed data. I guess I'll have to modify it since the size is a bit larger with the new shuffled data.
org #b000
ld hl,(#b05b) ;;hl=1BB0
ld de,(#b05d) ;;de=1AFF
ld bc,(#b05f) ;;bc=481A (data size?)
inc bc
ldir
ld ix,(#b063) ;;ix=7FFF
ld hl,(#b065) ;;hl=6319
ld de,(#b059) ;;de=A5CC (escape code)
ld bc,(#b05d) ;;bc=1AFF
lb01d:
ld a,(hl)
cp e
jr z,#b03f
ld (ix+#00),a
dec hl
dec ix
push af
ld a,h
cp b
jr nz,lb030
ld a,l
cp c
jr z,lb033
lb030:
pop af
jr lb01d
lb033:
pop af
ld a,(#b067)
or a
nop
nop
ret
Quote from: Jean-Marie on Today at 12:51The problem stems from writing the new file on the disc, as Daren used some intricated code to uncompress the Data. But hopefully, I'll find a solution. I just need to have a serious look at the decoding routine.
Quote from: Prodatron on 16:15, 22 February 25Meanwhile in a secret lab at TMTLogic:"SE Play" by TMTLogic is now available in the SymbOS.org download area:
Quote from: GUNHED on Today at 11:46You can't switch ROMs during data transfer.Are you speaking about sending data packages to the M4Board via OUT?
Page created in 0.051 seconds with 18 queries.