mirror of
https://github.com/KarolS/millfork.git
synced 2025-01-16 00:31:30 +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:
|
||||
LD A,(HL)
|
||||
LD (DE),A
|
||||
INC HL
|
||||
INC DE
|
||||
? CP nullchar
|
||||
? JP NZ, ___strzcopy_loop
|
||||
}
|
||||
@ -47,6 +49,8 @@ void strzpaste(pointer dest, pointer src) {
|
||||
? CP nullchar
|
||||
? RET Z
|
||||
LD (DE),A
|
||||
INC HL
|
||||
INC DE
|
||||
? JP ___strzpaste_loop
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user