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

Yes, I also have a register dedicated to the word size (4). Since these values are used so commonly, I felt that it didn't make sense to constantly have to load them manually.

You'll also notice that there is no move instruction. With the existence of the zero register, move becomes unnecessary because you can just do

add r1 ZR r2; Moves the contents of register r2 into r1.

There are a number of other similar situations where it makes sense to have zero handy all the time.



"Changing the value in the zero register is not recommended." Hee hee.


:p




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: