Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Shouldn’t it be

*to++ = *from++;



In the original code, actually, no, incrementing "to" was not desired. The "to" was pointing to a hardware memory-mapped register, and it needed to copy to the same memory location each time.


Didn’t know that. Thanks


amen. seems like back in the day that "reg1 = *pc++;" would have been the fastest op in a computer.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: