🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.68k
Article #976

Re: 68k assembler question

#976
From: Kevin Meyer
Date: Mon, 19 May 1986 15:35
21 lines
1508 bytes
> I am using a 68000 based SBC for the VMEbus to debug prototype hardware for 
> this bus.  To debug the interrupting capablilities of my hardware, I need
> to stop the 68000 and wait for an interrupt (level=4).
> 
> This works:
> 0010AC		MOVE 	#2300,SR
> 0010B0		JMP	$10B0
> 
> This doesn't:
> 0010AC		STOP #2300

If you look at the next word of instruction  (in  the  binary  code)
past  the  stop  opcode, it will tell you the constant that is to be
put into the status register.  Since you have a "$" in front of  the
address to which you wish to jump indicating a hex address, I should
think you need a "$" in front of the hex constant you  wish  to  put
into  the  status register.  Looking at the next word of instruction
after the STOP opcode would tell you.  The default decimal value for
2300  would be encoded as hex $8FC.  The STOP instruction will cause
a priviledge violation exception if the immediate data  placed  into
the SR clears the S-bit.
Technical Details
Message-ID: <214@motsj1.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utcs!mnetor!motsj1!kjm
References: <316@sdcarl.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/5/84; site motsj1.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utcs!mnetor!motsj1!kjm
From: kjm@motsj1.UUCP (Kevin Meyer)
Newsgroups: net.micro.68k
Subject: Re: 68k assembler question
Message-ID: <214@motsj1.UUCP>
Date: Mon, 19-May-86 11:35:56 EDT
Article-I.D.: motsj1.214
Posted: Mon May 19 11:35:56 1986
Date-Received: Tue, 20-May-86 18:26:35 EDT
References: <316@sdcarl.UUCP>
Organization: Motorola Semiconductor , San Jose, CA  95117
Lines: 21