Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Variante 1 mit eigentlich unnötigen Casts (funktioniert):
- ;vfs.c:253: int16_t vfs_create_process_from_memory(uint8_t p1, uint8_t p2, uint8_t p3, void* entry_point, void* sp) {
- ; ---------------------------------
- ; Function vfs_create_process_from_memory
- ; ---------------------------------
- _vfs_create_process_from_memory_start::
- _vfs_create_process_from_memory:
- push ix
- ld ix,#0
- add ix,sp
- ;vfs.c:254: return (int16_t)modsys_invoke(vfs_module_number, VFS_INTFUNC_CREATETASK_MEM, NULL, (uint8_t)p1, (uint8_t)p2, (uint8_t)p3, (void*)entry_point, (void*)sp);
- ld l,9 (ix)
- ld h,10 (ix)
- push hl
- ld l,7 (ix)
- ld h,8 (ix)
- push hl
- ld h,6 (ix)
- ld l,5 (ix)
- push hl
- ld a,4 (ix)
- push af
- inc sp
- ld hl,#0x0000
- push hl
- ld a,#0x01
- push af
- inc sp
- ld a,(_vfs_module_number)
- push af
- inc sp
- call _modsys_invoke
- ld iy,#0x000B
- add iy,sp
- ld sp,iy
- pop ix
- ret
- _vfs_create_process_from_memory_end::
- Variante 2 ohne Casts:
- ;vfs.c:253: int16_t vfs_create_process_from_memory(uint8_t p1, uint8_t p2, uint8_t p3, void* entry_point, void* sp) {
- ; ---------------------------------
- ; Function vfs_create_process_from_memory
- ; ---------------------------------
- _vfs_create_process_from_memory_start::
- _vfs_create_process_from_memory:
- push ix
- ld ix,#0
- add ix,sp
- push af
- ;vfs.c:255: return (int16_t)modsys_invoke(vfs_module_number, VFS_INTFUNC_CREATETASK_MEM, NULL, p1, p2, p3, entry_point, sp);
- ld e,6 (ix)
- ld d,#0x00
- ld a,5 (ix)
- ld -2 (ix),a
- ld -1 (ix),#0x00
- ld l,4 (ix)
- ld h,#0x00
- ld c,9 (ix)
- ld b,10 (ix)
- push bc
- ld c,7 (ix)
- ld b,8 (ix)
- push bc
- push de
- ld c,-2 (ix)
- ld b,-1 (ix)
- push bc
- push hl
- ld hl,#0x0000
- push hl
- ld a,#0x01
- push af
- inc sp
- ld a,(_vfs_module_number)
- push af
- inc sp
- call _modsys_invoke
- ld iy,#0x000E
- add iy,sp
- ld sp,iy
- pop af
- pop ix
- ret
- _vfs_create_process_from_memory_end::
Advertisement
Add Comment
Please, Sign In to add comment