![]() |
![]() |
#1 |
68k
Join Date: Sep 2005
Location: Somewhere
Posts: 829
|
$48e70000 instruction
So, few days ago i launch old editor emacs18.59 and in drawer amiga/contribution/kaiser find little program pub. This simply program just open public screen, but on my amiga without coprocessor program generate guru. I find error ( few coprocessor instruction in code) and program works.
But one thing i dont' understand. In code I find follow instruction MOVEM.L ,-(A7) ;$48E70000 I check with Asm-One, also check with bdebeg. But Ira with option -a show MOVEM.L (NOREG!),-(A7) ;094A: 48E70000 Question, What this instruction do ? ![]() ![]() Asman |
![]() |
![]() |
#2 |
Going nowhere
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 9,016
|
Its not anything. Someones forgotten to put the rest of the instruction data in there.
|
![]() |
![]() |
#3 |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,657
|
Yeah, IIRC the second word contain 16 bits of data where each bit set is one register pushed onto the stack. If no bits are set, no register is pushed, so it doesn't compute.
|
![]() |
![]() |
#4 |
Zone Friend
Join Date: Aug 2005
Location: Germany
Age: 52
Posts: 424
|
movem.l,-(a7) has no sense.
MINI_MOVEM TUT ![]() lea $2000,A2 move.l #1,d1 ;d1:=1 move.l #2,d2 ;d2:=2 move.l #$14,a4 ;a4:=$14 movem.l d2/a4/d1,-(a2) ;a2:=a2-3*4=$1ff4 *memory allocation *$1ff4 $1ff5 $1ff6 $1ff7 $1ff8 $1ff9 $1ffa $1ffB $1ffC $1ffd $1ffe $1fff *\---------d1---------/ \----------d2-------/ \----------a4--------/ *the dataregisters will always be stored at the lower mem position *the registers with higher numbers are always stored at the higher mem position movem.l (a2),d6/d5 ;d5:=1;d6:=2 movem.l (a2)+,d7 ;a2:=a2+4 = $1ff8; d7:=1 |
![]() |
![]() |
#5 | |
68k
Join Date: Sep 2005
Location: Somewhere
Posts: 829
|
Quote:
![]() Another thing. Write in for example Asm-One dc.l $45e70000 and debug that, you find movem.l ,-(a7). But try write movem.l ,-(a7) . And that is really funny. ![]() Thanks for answers. Gretz. |
|
![]() |
![]() |
#6 |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,657
|
I have really bad memories of emacs... trying to repress them ...
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
MUI Programming Instruction offered | AmigaDave | Coders. General | 2 | 03 May 2013 23:34 |
Optimizing question: instruction order | TheDarkCoder | Coders. Asm / Hardware | 9 | 29 October 2011 17:07 |
Instruction cache question | Lord Riton | Coders. General | 2 | 07 April 2011 12:25 |
Question about the TAS instruction. | Thorham | Coders. General | 7 | 03 April 2011 13:12 |
Please help me: one by one instruction needed | JewStrangler | support.WinUAE | 15 | 20 September 2010 18:55 |
|
|