So, I have been trying to use the OS routine InsertMem, and it doesn't seem to be behaving like I would like it to. In theory, does it insert extra bytes at the given pointer, expanding something like this:
Code:
To this?:
Code:
If this is called?:
Code:
While this is not really a working example, this is the problem that I have been having. How does the InsertMem routine behave? Does it simply return a pointer to free ram, or something else along those lines? Thanks!
Code:
Addr: $0000 -- $FA,$FF,$02,$56 ...
To this?:
Code:
Addr: $0000 -- $FA,$FF,$00,$00,$00,$02,$56 ...
If this is called?:
Code:
ld de,Addr+3
ld hl,3
bcall InsertMem
While this is not really a working example, this is the problem that I have been having. How does the InsertMem routine behave? Does it simply return a pointer to free ram, or something else along those lines? Thanks!