LeanChess – The World's Smallest Chess Programleanchess.com1 points·by leanchess·قبل 7 سنوات·0 comments
leanchess·قبل 7 سنوات·discussThanks.Indeed, the very first instruction is int 10h ;BIOS display mode 0 that relies on AX being 0.As for CX, there aren't that many loops in LeanChess (precisely 5, but who's counting :)). However, CH being always 00h allows to save a couple more bytes by doing mov cl, 8 instead of mov cx, 8
Indeed, the very first instruction is
that relies on AX being 0.
As for CX, there aren't that many loops in LeanChess (precisely 5, but who's counting :)). However, CH being always 00h allows to save a couple more bytes by doing
instead of