logoalt Hacker News

rasztoday at 7:56 AM1 replyview on HN

Looking at some random 1989 Zenith 386SX bios written in assembly so purely programmer preferences:

8 'sub al, al', 14 'sub ah, ah', 3 'sub ax, ax'

26 'xor al, al', 43 'xor ah, ah', 3 'xor ax, ax'

edit: checked a 2010 bios and not a single 'sub x, x'


Replies

pishpashtoday at 8:10 AM

Could be used to express 1 bit of information in some non-obvious convention.