🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by taylor Mon, 22 May 1989 06:45
bug in GAS (NS32K) exts/inss instructions
#1618
Author: taylor
Date: Mon, 22 May 1989 06:45
33 lines
1243 bytes
For the exts/inss instructions, the size of the bit field is allowed to
be from 1 to 32 bits long.  But, gas only allows the bit field to be
from 1 to 31 bits long.

The fix is easy.  Here it is.

RCS file: RCS/ns32k.c,v
retrieving revision 1.4
diff -c -r1.4 ns32k.c
*** /tmp/,RCSt1a15610	Mon May 22 02:38:30 1989
--- ns32k.c	Sat May 20 01:00:34 1989
***************
*** 847,853 ****
        IIF(11,2,42,
  	  (unsigned long)argv[i], /* i always 3 here */
  	  0,0,0,0,0,
! 	  bit_fix_new(5,0,1,31,-1,0,-1),-1,0);
        break;
      case 'i':
        iif.instr_size+=1;
--- 847,853 ----
        IIF(11,2,42,
  	  (unsigned long)argv[i], /* i always 3 here */
  	  0,0,0,0,0,
! 	  bit_fix_new(5,0,1,32,-1,0,-1),-1,0);
        break;
      case 'i':
        iif.instr_size+=1;

David
--
David Taylor
taylor@think.com, ...!think!taylor
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads