From 5cf0d8b28061ca52678dc83b88de01e58b84ef71 Mon Sep 17 00:00:00 2001 From: ceriel Date: Wed, 28 Jan 1987 18:49:59 +0000 Subject: [PATCH] endbss - begbss is no longer computable by the assembler --- mach/i80/libmon/head_em.s | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mach/i80/libmon/head_em.s b/mach/i80/libmon/head_em.s index b4b3b2d6..2e28aff9 100644 --- a/mach/i80/libmon/head_em.s +++ b/mach/i80/libmon/head_em.s @@ -12,8 +12,14 @@ .sect .text lxi h,0x1000 ! stack will grow from 0x1000 downwards sphl + lxi d,endbss lxi h,begbss ! clear bss - lxi d,endbss-begbss + mov a,e + sub l + mov e,a + mov a,d + sbb h + mov d,a ! de now contains endbss - begbss mvi c,0 2: mov m,c