Skip to content

Commit d66afd0

Browse files
author
np511
committed
Make ioRegisterHandler thread-safe
1 parent d60a3e8 commit d66afd0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/00/link.asm

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ default_header_handlers_end:
9898
ioRegisterHandler:
9999
push hl
100100
push de
101+
push bc
102+
ld c, a
103+
ld a, i
104+
push af
105+
ld a, c
106+
di
101107
push af
102108
push bc
103109
push ix
@@ -123,6 +129,11 @@ ioRegisterHandler:
123129
ld (hl), b \ dec hl
124130
pop af
125131
ld (hl), a
132+
pop af
133+
jp po, _
134+
ei
135+
_:
136+
pop bc
126137
pop de
127138
pop hl
128139
ret

0 commit comments

Comments
 (0)