|
|
|
|
|
by tasty_freeze
189 days ago
|
|
The Z80 had LDIR which was a string copy instructions. The byte at (HL) would be read from memory, then written to (DE), HL and DE would be incremented, and BC decremented and then repeated until BC became zero. LDDR was the same but decremented HL and DE on each iteration instead. There were versions for doing IN and OUT as well, and there was an instruction for finding a given byte value in a string, but I never used those so I don't recall the details. |
|
I was referring to LODSB/W (x86) which is quite useful for processing arrays.