Ah no, I think I can guess (all my understanding is rather fuzzy). This 0-1000 thing, is my old real mode interrupt table (256 entries, of 4 bytes each).
Well, I am surprised to see how this x86emu can be coded in user mode. But I find strange that so much assembler seems to need to be emulated, I was expecting that vm86 mode would make all that unnecessary.