[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

2834.0. "size of status register on 68000?" by SPIDER::LONG () Wed Aug 16 1989 01:20

I've been trying to convert an exception handling package that I picked up
off the net to a MANX library and have come down to one line of assembly
code I can't reconcile:
		andi  #$dfff,sr

MANX understands that sr is the status register but it gives a message 
something like a operand mismatch. If I make the immediate value a byte
it assembles fine and then crashes after linking and running ( not really
unexpected ;^} ).  What was unexpected was that Lattice considers the
status register 16bits and MANX, only 8.  This is V3.4a of MANX.  Does
anybody know if this is a known bug and what the workaround might be ( on
my knees without a 68000 manual ).

	Thanks,
		Dick
T.RTitleUserPersonal
Name
DateLines
2834.1joke FollowsWJG::GUINEAUOpening the doors of PerceptionWed Aug 16 1989 11:2810
Heck, Just *cast* it:

>	andi  #$dfff,sr

	andi  #$dfff,(word)sr

:-)

John
2834.2Getting worse...LOWLIF::DAVISThat's not a BUG, it's a FEATURE!Wed Aug 16 1989 14:064
Hey John, I don't C what you mean!


...richard