Hi! everyone,I was wondering how to make a really fast 3 bytes rotation routine(or not) that is axe friendly, so I came out with this:
ld a,(hl)
inc hl
ld b,(hl)
inc hl
ld c,(hl)
ld d,a
rl d
rl c
rl b
rl a
ld (hl),c
dec hl
ld (hl),b
dec hl
ld (hl),a
The hex code is like that
7E
23
46
23
4E
57
CB12
CB11
CB10
CB17
71
2B
70
2B
77
Please don't forget it must be axe friendly, so we use it like that:
.pointer
Pic1
Asm(7E2346234E57CB12CB11CB10CB17712B702B77)
Sorry if my English is bad, I'm French