none) (albert
2020-03-07 10:39:51 UTC
I have an 64 bits Forth system, and I can add a program that
executes a single instruction, like so
"
WANT ASSEMBLERi86
CODE PIET
MOVI|X, AX| 2 IL,
NEXT,
END-CODE
"
And execute it like so
PIET OK
This program does nothing. It fills EAX with 2 which is inconsequential
because EAX is a free register. [Only SP BP and SI are used in the
virtual system.]
Now let us prefix the instruction, such that the alternate register set
is used. This should be likewise inconsequential.
CODE PIET1
$49 C, \ That is the way to do that in Forth
MOVI|X, AX| 2 IL,
NEXT,
END-CODE
Now PIET1 leads to a segfault.
I've no clue what could cause this.
I have been working with those prefixes for ages.
My ciasdis has disassembled and reassembled a 64 bit elf program
without problems.
[ This is in the context of an optimiser, I seem to have used
this R1 in optimised programs, that work. ]
Groetjes Albert
executes a single instruction, like so
"
WANT ASSEMBLERi86
CODE PIET
MOVI|X, AX| 2 IL,
NEXT,
END-CODE
"
And execute it like so
PIET OK
This program does nothing. It fills EAX with 2 which is inconsequential
because EAX is a free register. [Only SP BP and SI are used in the
virtual system.]
Now let us prefix the instruction, such that the alternate register set
is used. This should be likewise inconsequential.
CODE PIET1
$49 C, \ That is the way to do that in Forth
MOVI|X, AX| 2 IL,
NEXT,
END-CODE
Now PIET1 leads to a segfault.
I've no clue what could cause this.
I have been working with those prefixes for ages.
My ciasdis has disassembled and reassembled a 64 bit elf program
without problems.
[ This is in the context of an optimiser, I seem to have used
this R1 in optimised programs, that work. ]
Groetjes Albert
--
This is the first day of the end of your life.
It may not kill you, but it does make your weaker.
If you can't beat them, too bad.
***@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst
This is the first day of the end of your life.
It may not kill you, but it does make your weaker.
If you can't beat them, too bad.
***@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst