--- gforth/arch/386/asm.fs 2000/07/30 19:56:05 1.4 +++ gforth/arch/386/asm.fs 2003/03/09 15:16:57 1.10 @@ -1,4 +1,24 @@ \ *** Assembler for the Intel i486 *** 07nov92py + +\ Copyright (C) 1992-2000 by Bernd Paysan + +\ Copyright (C) 2000,2001 Free Software Foundation, Inc. + +\ This file is part of Gforth. + +\ Gforth is free software; you can redistribute it and/or +\ modify it under the terms of the GNU General Public License +\ as published by the Free Software Foundation; either version 2 +\ of the License, or (at your option) any later version. + +\ This program is distributed in the hope that it will be useful, +\ but WITHOUT ANY WARRANTY; without even the implied warranty of +\ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +\ GNU General Public License for more details. + +\ You should have received a copy of the GNU General Public License +\ along with this program; if not, write to the Free Software +\ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA. \ \ The syntax is reverse polish. Source and destination are \ reversed. Size prefixes are used instead of AX/EAX. Example: @@ -34,7 +54,7 @@ base @ get-current ALSO ASSEMBLER DEFINI Variable >codes : (+rel ; -Create nrc ] c, here allot c! (+rel [ +Create nrc ' c, A, ' here A, ' allot A, ' c! A, ' (+rel A, : nonrelocate nrc >codes ! ; nonrelocate @@ -280,7 +300,7 @@ $27 bc: DAA $2F bc: DAS $37 bc: : aa: Create c, DOES> ( -- ) c@ imm# @ 0= IF &10 imm ! THEN 1 imm# ! finish ; -$D4 aa: AAM $D5 aa: AAD $D7 bc: XLAT +$D4 aa: AAM $D5 aa: AAD $D6 bc: SALC $D7 bc: XLAT $60 bc: PUSHA $61 bc: POPA $90 bc: NOP @@ -574,5 +594,5 @@ $BB 3Dnow: PSWABD : SFENCE : makeflag [A] ~cond AL swap setIF 1 # AX and AX dec [F] ; -previous set-current decimal base ! +previous previous set-current decimal base !