Better HN
topnewbestaskshowjobs
Log inSign up

leanchess

3 karma · joined Nov 29, 2019 (7y ago) · 2 submissions

Submissions

comment 6y ago · link · parent

Thanks.

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