EASy68K  
It is currently Tue Oct 17, 2017 11:30 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Need help with encoding
PostPosted: Sat Mar 04, 2017 4:13 pm 
Offline

Joined: Sat Mar 04, 2017 4:06 pm
Posts: 1
Hello every one
I need some help with my study. I have to encode some easy68k commands.
One example:
movem.L (a7)+, d2/a0
I encoded the first part of the command:
4CDF. But I couldn't encode the "follow-word" (In Gemran it's the "Folgewort". I don't know the exact technical meaning of it in english, sorry)
The full and correct encoded command of movem.L (a7)+, d2/a0 is:
4CDF 0104
How do you get the 0104?
Thanks for everyone who is helping :)


Top
 Profile  
 
PostPosted: Tue Mar 07, 2017 10:06 pm 
Offline
User avatar

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1048
From the 68000 documentation:

MOVEM

Instruction Format:
Code:
15  14  13  12  11  10   9   8   7    6   5   4   3   2   1   0
 0 | 1 | 0 | 0 | 1 |dr | 0 | 0 | 1 |size|    MODE  | REGISTER

dr field - Specifies the direction of the transfer.
0 - Register to memory.
1 - Memory to register.

size field - Specifies the size of the registers being transferred.
0 - Word transfer
1 - Long transfer

Mode and Register specifies the addressing mode and registers used. Refer to table in the programmers reference manual.

_________________
Prof. Kelly


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group