Hacker News new | ask | show | jobs
by bonzini 1 hour ago
With 6-7 general purpose registers you could have; since anyway only three of them were usable for addressing you constantly had to load from memory. just use MOV ES instead of MOV BX to load a pointer and you actually got to increase your GPRs by one or two. Nobody did it except for larger memory areas which were allocated using farmalloc() or the INT 21h allocator.
1 comments

x86 has 7 general purpose registers.

Using a bare segment register as a pointer was quite common. That’s what the DOS memory allocation call would return.