b3ta.com board
You are not logged in. Login or Signup
Home » Messageboard » Message 3693243 (Thread)

# what are the contents of the zero register
after executing the following assembly instructions on a little-endian processor

LD A, 10
LD BC, 522
SUB A,B


piece of piss if you ask me
(, Wed 8 Sep 2004, 21:11, archived)
# hey
that's z80, right?
Didn't know there was a zero register, but there is a zero bit on the flags register.
(, Thu 9 Sep 2004, 12:28, archived)
# Zero.
At least for several RISC processors, where register zero is ALWAYS zero. Kind of a /dev/null. ;)
(, Thu 9 Sep 2004, 21:12, archived)