[comp.sys.m68k] MVME147S--Monitor problem...

rasit@cs.UAlberta.CA (M. Rasit Eskicioglu) (12/03/90)

Dear Netters,

I have the following startup code for a simple program (main) that
is executed with the 147Bug.

			global	_start,main,end

		_start:	mov.w 	0x2700, %sr
		_lea:	lea.l	(_start-(_leax+2))(%pc),%a0
			lea.l	_start,%a1
			cmp.l	%a0,%a1
			beq	gobegin
			mov.l	end,%d0
			sub.l	%a1,%d0
			lsr.l	&2,%d0
		movc:	mov.l	(%a0)+,(%a1)+
			dbra	%d0,movc
		gobegin:
			jmp	begin
		begin:	jsr	main
			rts

   Now, when this program is loaded with "bo" into, say, address 0x100000,
   inconsistently, first two or four bytes are being screwed-up. That is,
   when I diassamble the code after it run, I see 000046Fc41fa .... instead
   of 46fc270041fafff8 ...

Any idea why this happens?..

rasit


-- 
+------------------------------------+------------------------+---------------+
| M. Rasit Eskicioglu                |  rasit@alberta.uucp    | M  M RRR  EEE |
| University of Alberta              |  rasit@cs.UAlberta.CA  | MMMM R  R E   |
| Department of Computing Science    |  eski@ualtamts.bitnet  | MMMM RRR  EE  |
| Edmonton, Alberta T6G 2H1          | rasit@ualtamts.bitnet  | M  M R R  E   |
| CANADA                        rasit%alberta@ualtamts.bitnet | M  M R  R EEE |
| Voice : (403)492-3854  +----------------------------------------------------+
| Fax   : (403)492-1071  |
+------------------------+

rasit@cs.UAlberta.CA (M. Rasit Eskicioglu) (12/03/90)

Dear Netters,

I have the following startup code for a simple program (main) that
is executed with the 147Bug.

			global	_start,main,end

		_start:	mov.w 	0x2700, %sr
		_leax:	lea.l	(_start-(_leax+2))(%pc),%a0
			lea.l	_start,%a1
			cmp.l	%a0,%a1
			beq	gobegin
			mov.l	end,%d0
			sub.l	%a1,%d0
			lsr.l	&2,%d0
		movc:	mov.l	(%a0)+,(%a1)+
			dbra	%d0,movc
		gobegin:
			jmp	begin
		begin:	jsr	main
			rts

   Now, when this program is loaded with "bo" into, say, address 0x100000,
   inconsistently, first two or four bytes are being screwed-up. That is,
   when I diassamble the code after it run, I see 000046Fc41fa .... instead
   of 46fc270041fafff8 ...

Any idea why this happens?..

rasit


-- 
+------------------------------------+------------------------+---------------+
| M. Rasit Eskicioglu                |  rasit@alberta.uucp    | M  M RRR  EEE |
| University of Alberta              |  rasit@cs.UAlberta.CA  | MMMM R  R E   |
| Department of Computing Science    |  eski@ualtamts.bitnet  | MMMM RRR  EE  |
| Edmonton, Alberta T6G 2H1          | rasit@ualtamts.bitnet  | M  M R R  E   |
| CANADA                        rasit%alberta@ualtamts.bitnet | M  M R  R EEE |
| Voice : (403)492-3854  +----------------------------------------------------+
| Fax   : (403)492-1071  |
+------------------------+

rasit@cs.UAlberta.CA (M. Rasit Eskicioglu) (12/03/90)

Dear Netters,

I have the following startup code for a simple program (main) that
is executed with the 147Bug.

			global	_start,main,end

		_start:	mov.w 	0x2700, %sr
		_leax:	lea.l	(_start-(_leax+2))(%pc),%a0
			lea.l	_start,%a1
			cmp.l	%a0,%a1
			beq	gobegin
			mov.l	end,%d0
			sub.l	%a1,%d0
			lsr.l	&2,%d0
		movc:	mov.l	(%a0)+,(%a1)+
			dbra	%d0,movc
		gobegin:
			jmp	begin
		begin:	jsr	main
			rts

   Now, when this program is loaded with "bo" into, say, address 0x100000,
   inconsistently, first two or four bytes are being screwed-up. That is,
   when I diassamble the code after it is loaded, I see 000046Fc41fa .... 
   instead of 46fc270041fafff8 ...

Any idea why this happens?..

rasit


-- 
+------------------------------------+------------------------+---------------+
| M. Rasit Eskicioglu                |  rasit@alberta.uucp    | M  M RRR  EEE |
| University of Alberta              |  rasit@cs.UAlberta.CA  | MMMM R  R E   |
| Department of Computing Science    |  eski@ualtamts.bitnet  | MMMM RRR  EE  |
| Edmonton, Alberta T6G 2H1          | rasit@ualtamts.bitnet  | M  M R R  E   |
| CANADA                        rasit%alberta@ualtamts.bitnet | M  M R  R EEE |
| Voice : (403)492-3854  +----------------------------------------------------+
| Fax   : (403)492-1071  |
+------------------------+