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

Does someone know what "mov dl,[fs:46ch]" does? In win32, fs and gs point to some process or thread info blocks, but in DOS? I was never aware of anything regarding the fs register and DOS unless a dos extender was run or pmode was entered!


If memory serves me right, fs=gs=0 in DOS mode, and 46C is a tick counter of some sort.

And on a C64, addresses 53280 and 53281 change text background and border. Don't know why I remember these things.


fs (and gs) is/are initially set to 0 when a com file gets executed.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: