Mail Archives: djgpp-workers/2005/05/07/13:19:57
I tried to use cr4 in djasm and found out that it didn't know what I
was talking about.
Patch (pasted) to add cr4 to djasm follows.
Right,
MartinS
Index: djgpp/src/djasm/djasm.y
===================================================================
RCS file: /cvs/djgpp/djgpp/src/djasm/djasm.y,v
retrieving revision 1.2
diff -p -u -r1.2 djasm.y
--- djgpp/src/djasm/djasm.y 16 Jun 2003 10:18:12 -0000 1.2
+++ djgpp/src/djasm/djasm.y 7 May 2005 11:04:30 -0000
@@ -1,3 +1,4 @@
+/* Copyright (C) 2005 DJ Delorie, see COPYING.DJ for details */
/* Copyright (C) 2001 DJ Delorie, see COPYING.DJ for details */
/* Copyright (C) 1999 DJ Delorie, see COPYING.DJ for details */
/* Copyright (C) 1998 DJ Delorie, see COPYING.DJ for details */
@@ -655,6 +656,7 @@ struct opcode opcodes[] = {
{"cr0", CRREG, 0},
{"cr2", CRREG, 2},
{"cr3", CRREG, 3},
+ {"cr4", CRREG, 4},
{"dr0", DRREG, 0},
{"dr1", DRREG, 1},
Index: djgpp/src/docs/kb/wc204.txi
===================================================================
RCS file: /cvs/djgpp/djgpp/src/docs/kb/wc204.txi,v
retrieving revision 1.175
diff -p -u -r1.175 wc204.txi
--- djgpp/src/docs/kb/wc204.txi 17 Mar 2005 18:55:06 -0000 1.175
+++ djgpp/src/docs/kb/wc204.txi 7 May 2005 11:04:30 -0000
@@ -1091,3 +1091,17 @@ Modifies the character classes used by f
character used by functions for converting numeric strings from input
and to output, and function @code{strftime} uses the appropriate NLS
formats for @code{"%x"} and @code{"%X"} conversions.
+
+@pindex djasm AT r{, cr4 register}
+@code{djasm} recognises the fourth control register, @var{cr4}.
- Raw text -