mirror of
https://github.com/KarolS/millfork.git
synced 2024-09-29 09:55:38 +00:00
8080: Fix string module
This commit is contained in:
parent
4ea8658d5b
commit
f04f5ec111
@ -34,6 +34,8 @@ void strzcopy(pointer dest, pointer src) {
|
|||||||
___strzcopy_loop:
|
___strzcopy_loop:
|
||||||
LD A,(HL)
|
LD A,(HL)
|
||||||
LD (DE),A
|
LD (DE),A
|
||||||
|
INC HL
|
||||||
|
INC DE
|
||||||
? CP nullchar
|
? CP nullchar
|
||||||
? JP NZ, ___strzcopy_loop
|
? JP NZ, ___strzcopy_loop
|
||||||
}
|
}
|
||||||
@ -47,6 +49,8 @@ void strzpaste(pointer dest, pointer src) {
|
|||||||
? CP nullchar
|
? CP nullchar
|
||||||
? RET Z
|
? RET Z
|
||||||
LD (DE),A
|
LD (DE),A
|
||||||
|
INC HL
|
||||||
|
INC DE
|
||||||
? JP ___strzpaste_loop
|
? JP ___strzpaste_loop
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user