delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2005/05/07/13:19:57

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
From: <ams AT ludd DOT ltu DOT se>
Message-Id: <200505062345.j46NjM7t028889@speedy.ludd.ltu.se>
Subject: DJASM: cr4 patch
To: DJGPP-WORKERS <djgpp-workers AT delorie DOT com>
Date: Sat, 7 May 2005 01:45:19 +0200 (CEST)
X-Mailer: ELM [version 2.4ME+ PL78 (25)]
MIME-Version: 1.0
X-ltu-MailScanner-Information: Please contact the ISP for more information
X-ltu-MailScanner: Found to be clean
X-MailScanner-From: ams AT ludd DOT ltu DOT se
Reply-To: djgpp-workers AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019