Quick question

BDM (NT) on Star Choice
Locked
GideonOmega
Junior Member
Posts: 225
Joined: Tue Nov 27, 2007 10:45 am

Quick question

Post by GideonOmega »

Sorry for the Noob question but:

for the following dissasembly:

Code: Select all

00000002 9999                            SUB.L D4,(A1)+
00000004 9999                            SUB.L D4,(A1)+
00000006 0000028A                        ORI.B #$8A,D0
is it correct to say that 9999 and 0000028A would be considered the opcode's -- or are those the hex representations of the machine codes and the Sub.L... are the opcode's? -- if that is incorrect what would those be referred as?

Thanks for your time.
usbbdm
Junior Member
Posts: 8974
Joined: Mon Jul 18, 2005 9:33 pm

Post by usbbdm »

In here 99999999 is the stack
28A is the entry vector.
When reset 1
the RPC will be 28A and A7 will be 99999999.
GideonOmega
Junior Member
Posts: 225
Joined: Tue Nov 27, 2007 10:45 am

Post by GideonOmega »

Interesting -- I hadn't even noticed that --- in respect to that -- I have allot more of the disassembly that I didn't post -- with respect to the disassembly -- would those be considered the machine codes?

the reason I'm asking is I'm trying to correlate it to something I found.

Thanks for your time.
usbbdm
Junior Member
Posts: 8974
Joined: Mon Jul 18, 2005 9:33 pm

Post by usbbdm »

I recommend you download the user manual of MC68331 and all are explained in it. If you have questions post here and we can discuss.
GideonOmega
Junior Member
Posts: 225
Joined: Tue Nov 27, 2007 10:45 am

Post by GideonOmega »

Thanks USBBDM -- I have a copy of the manual -- I'm sorry if I'm not being clear on the question it is more about assembly then specifics to the 68k.

I believe this is the answer -- it is more about terminology:

Code: Select all

OFFSET    MACHINE CODE              SOURCE CODE (Opcode?)
00000002 9999                            SUB.L D4,(A1)+
00000004 9999                            SUB.L D4,(A1)+
00000006 0000028A                        ORI.B #$8A,D0
I'm just trying to make sure I have the terminology correct above -- I'm not looking for an explanation of what the code does, just if I am referencing the disassembly correctly.

Thanks
Locked

Who is online

Users browsing this forum: No registered users and 4 guests