Re: A83: Resize a program...
[Prev][Next][Index][Thread]
Re: A83: Resize a program...
See my comments.
inc de
inc de
add hl,de ; hl = ptr to byte after existing program
ex de,hl
ld hl,20
inc de ; de = 2nd byte after existing prog
; the insert location will now insert
; between the 1st and 2nd byte of whatever
; var data is after the program that you
; wanted to insert 20 bytes into
call _insertmem
Sebastiaan Roodenburg wrote:
>
> > Try removing the 'inc de' before the call to
> > 'InsertMem'. You are inserting 1 byte into whatever
> > data follows your program. If this doesn't work
> > I'll look at it on my simulator.
>
> Why should i remove the inc de??? its there to tell the insertmem to
> insert 20 bytes ( 'ld hl,20' ) at the end of the file...
>
> -------------------------------------------------------------------------------
>
> Part 1.2 Type: application/ms-tnef
> Encoding: base64
References: