ack/mach/i80
George Koehler c95bcac91d Correct the stack pointer when i80 shrinks an integer.
The code used `sphl` to set the stack pointer, but the correct value
was in de, not hl.  Fix by swapping the values of de and hl, so `sphl`
is now correct.  When we shrink an integer from 4 to 2 bytes, both
registers de and hl point to copies of the result, but only one
register preserves the stack below the result.

This fixes writehex() in tests/plat/lib/test.c, when I compile it with
ack -mcpm, so it preserves the pointer to "0123456789abcdef", so it
writes hexadecimal digits and not garbage.

This bug goes back to commit 157b243 of Mar 18, 1985, so the bug is
32 years old, and probably the oldest bug that I ever fixed.
2017-12-07 15:39:41 -05:00
..
as Change the i80 assembler to be three-pass, which allows forward references; 2016-12-29 17:08:53 +00:00
dl Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
libem Correct the stack pointer when i80 shrinks an integer. 2017-12-07 15:39:41 -05:00
libend Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
libmon Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
ncg Kill registers a, de, when i80 ncg does Call libem. 2017-12-06 22:14:00 -05:00
top Distributions are a pain --- let's not bother any more. Instead, we just tag 2016-09-02 23:00:38 +02:00
Action system-call to MON mapping is in libsys 1991-09-17 09:47:16 +00:00
mach_params Fixed mach_params 1991-09-18 09:58:12 +00:00