endbss - begbss is no longer computable by the assembler
authorceriel <none@none>
Wed, 28 Jan 1987 18:49:59 +0000 (18:49 +0000)
committerceriel <none@none>
Wed, 28 Jan 1987 18:49:59 +0000 (18:49 +0000)
mach/i80/libmon/head_em.s

index b4b3b2d..2e28aff 100644 (file)
 .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