diff --git a/lib/freebsd/x86-mes-gcc/crt1.c b/lib/freebsd/x86-mes-gcc/crt1.c index a5998043..151d0279 100644 --- a/lib/freebsd/x86-mes-gcc/crt1.c +++ b/lib/freebsd/x86-mes-gcc/crt1.c @@ -48,7 +48,7 @@ _start () asm ( "mov %%ebp,%%eax\n\t" "add $4,%%eax\n\t" - "movzbl (%%eax),%%eax\n\t" + "mov (%%eax),%%eax\n\t" "add $3,%%eax\n\t" "shl $2,%%eax\n\t" "add %%ebp,%%eax\n\t" @@ -64,7 +64,7 @@ _start () "mov %ebp,%eax\n\t" "add $4,%eax\n\t" - "movzbl (%eax),%eax\n\t" + "mov (%eax),%eax\n\t" "push %eax\n\t" "call main\n\t" diff --git a/lib/freebsd/x86-mes-mescc/crt1.c b/lib/freebsd/x86-mes-mescc/crt1.c index 0e92ad34..83cde649 100644 --- a/lib/freebsd/x86-mes-mescc/crt1.c +++ b/lib/freebsd/x86-mes-mescc/crt1.c @@ -1,6 +1,6 @@ /* -*-comment-start: "//";comment-end:""-*- * GNU Mes --- Maxwell Equations of Software - * Copyright © 2017,2018,2019 Jan (janneke) Nieuwenhuizen + * Copyright © 2017,2018,2019,2021 Jan (janneke) Nieuwenhuizen * * This file is part of GNU Mes. * @@ -37,7 +37,7 @@ _start () asm ("mov____%ebp,%eax"); asm ("add____$i8,%eax !4"); - asm ("movzbl_(%eax),%eax"); + asm ("mov____(%eax),%eax"); asm ("add____$i8,%eax !3"); asm ("shl____$i8,%eax !0x02"); @@ -51,7 +51,7 @@ _start () asm ("mov____%ebp,%eax"); asm ("add____$i8,%eax !4"); - asm ("movzbl_(%eax),%eax"); + asm ("mov____(%eax),%eax"); asm ("push___%eax"); main (); diff --git a/lib/linux/x86-mes-gcc/crt0.c b/lib/linux/x86-mes-gcc/crt0.c index 91bfda8b..91ec0e55 100644 --- a/lib/linux/x86-mes-gcc/crt0.c +++ b/lib/linux/x86-mes-gcc/crt0.c @@ -33,7 +33,7 @@ _start () asm ( "mov %%ebp,%%eax\n\t" "add $4,%%eax\n\t" - "movzbl (%%eax),%%eax\n\t" + "mov (%%eax),%%eax\n\t" "add $3,%%eax\n\t" "shl $2,%%eax\n\t" "add %%ebp,%%eax\n\t" @@ -48,7 +48,7 @@ _start () "mov %ebp,%eax\n\t" "add $4,%eax\n\t" - "movzbl (%eax),%eax\n\t" + "mov (%eax),%eax\n\t" "push %eax\n\t" "call _main\n\t" diff --git a/lib/linux/x86-mes-gcc/crt1.c b/lib/linux/x86-mes-gcc/crt1.c index a909199b..74cfe066 100644 --- a/lib/linux/x86-mes-gcc/crt1.c +++ b/lib/linux/x86-mes-gcc/crt1.c @@ -1,6 +1,7 @@ /* -*-comment-start: "//";comment-end:""-*- * GNU Mes --- Maxwell Equations of Software * Copyright © 2017,2018,2019 Jan (janneke) Nieuwenhuizen + * Copyright © 2021 Paul Dersey * * This file is part of GNU Mes. * @@ -48,7 +49,7 @@ _start () asm ( "mov %%ebp,%%eax\n\t" "add $4,%%eax\n\t" - "movzbl (%%eax),%%eax\n\t" + "mov (%%eax),%%eax\n\t" "add $3,%%eax\n\t" "shl $2,%%eax\n\t" "add %%ebp,%%eax\n\t" @@ -64,7 +65,7 @@ _start () "mov %ebp,%eax\n\t" "add $4,%eax\n\t" - "movzbl (%eax),%eax\n\t" + "mov (%eax),%eax\n\t" "push %eax\n\t" "call main\n\t" diff --git a/lib/linux/x86-mes-mescc/crt1.c b/lib/linux/x86-mes-mescc/crt1.c index e4ef3c38..05f189d1 100644 --- a/lib/linux/x86-mes-mescc/crt1.c +++ b/lib/linux/x86-mes-mescc/crt1.c @@ -1,6 +1,6 @@ /* -*-comment-start: "//";comment-end:""-*- * GNU Mes --- Maxwell Equations of Software - * Copyright © 2017,2018 Jan (janneke) Nieuwenhuizen + * Copyright © 2017,2018,2021 Jan (janneke) Nieuwenhuizen * * This file is part of GNU Mes. * @@ -37,7 +37,7 @@ _start () asm ("mov____%ebp,%eax"); asm ("add____$i8,%eax !4"); - asm ("movzbl_(%eax),%eax"); + asm ("mov____(%eax),%eax"); asm ("add____$i8,%eax !3"); asm ("shl____$i8,%eax !0x02"); @@ -51,7 +51,7 @@ _start () asm ("mov____%ebp,%eax"); asm ("add____$i8,%eax !4"); - asm ("movzbl_(%eax),%eax"); + asm ("mov____(%eax),%eax"); asm ("push___%eax"); main ();