Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/libload/libload.asm
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ disable_relocations

ld a, (iy + LIB_FLAGS)
ld (flag_save), a
ld (ix_save), ix ; save IX since older ICE programs don't

ld hl, $AA55AA
xor a, a
Expand Down Expand Up @@ -129,7 +128,6 @@ disable_relocations
jr z, start
ld a, (flag_save)
ld (iy + LIB_FLAGS), a ; restore flag bits
ld ix, (ix_save) ; restore IX register
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not needed since ix is not modified

jp (hl) ; return to execution if there are no libs

macro relocate? name, address*
Expand Down Expand Up @@ -188,6 +186,7 @@ macro rload? name
end macro

start:
ld (ix_save), ix ; save IX since older ICE programs don't
push hl
call ti.PushOP1 ; save calling program name
pop hl
Expand Down
Loading