Syscalls were the OS APIs back in the Turbo Pascal days. DOS didn’t have an SDK like we now expect. But people still pulled off some pretty sophisticated stuff in Pascal (personally, I wrote a DOS GUI frontend (like pre-Win 3.x) in Turbo Pascal)
Actually, that might just be the nostalgia talking.
im not sure if sysenter, used on 64bit systems is classed as an interrupt.
the sdk is just a layer on top of that.
ive never used c on dos, it woukdnt surprise me if they used a similar library to linux. theres certainly nothing preventing it.
And of course, modern Pascal compiler like FPC provides OS specific units to do that.