On 2025-02-03 5:06 p.m., Chuck Guzis via cctalk wrote:
On 2/3/25 15:47, ben via cctalk wrote:
No compiler generates bad code,just some hardware
was never meant to
have stack based addressing, like the 6502 or the 8088/8086.
Really? The x86 family does indeed have stack-based addressing. In
particular, The BP register holds the base of the stack frame and the
assumed segment is SS. Even the lowly 8085 has some (undocumented) nod
toward stack addressing.
I don't like to have to play around with, DS and SS
and that index register mess. The 6809 or the PDP-11 makes
for easy indexing.
--Chuck
Was the X86 family meant for pascal type languages?
Other than the small model, every thing is a hack.