English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 09 February 2006, 17:45   #1
Asman
68k
 
Asman's Avatar
 
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 ? .Maybe only eat stack place . Hmm, any ideas ?

Asman
Asman is offline  
Old 09 February 2006, 22:56   #2
Galahad/FLT
Going nowhere
 
Galahad/FLT's Avatar
 
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.
Galahad/FLT is offline  
Old 10 February 2006, 00:50   #3
Photon
Moderator
 
Photon's Avatar
 
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.
Photon is offline  
Old 10 February 2006, 17:50   #4
NOB
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
NOB is offline  
Old 10 February 2006, 19:00   #5
Asman
68k
 
Asman's Avatar
 
Join Date: Sep 2005
Location: Somewhere
Posts: 829
Quote:
Originally Posted by NOB
movem.l,-(a7) has no sense.
Thats right has no sense but i find this instruction in program pub which is joined to archive of emacs18.59. And this is funny

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.
Asman is offline  
Old 10 February 2006, 23:00   #6
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,657
I have really bad memories of emacs... trying to repress them ...
Photon is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:44.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.09012 seconds with 13 queries