68000 - 68k -- Why is this loading FF? -
i've been trying figure out why program loads ff d1. here code:
org $1000 start: move.b pattern,d1 simhalt pattern equ $aa50 end start
my thoughts pattern in hex. it's word. i'm moving least significant byte of pattern d1. least significant byte 50 in hex, 01010000 in binary. expect d1 contain $00000050 instead contains $000000ff. i'm @ loss. ff 11111111 in binary (obviously) not 01010000.
any appreciated. i'm using easy68k.
looks you're loading in ff address $0000aa50. that's guess, i'll try out see if case.
**----------------------------------------------------------------------------- org $1000 start: move.b #pattern,d1 ;declare pattern ;hexadecimal using # simhalt pattern equ $aa50 ;errror:this exceed 8 bits ;else use move.w *pattern equ $50 ;this works using move.b end start **-----------------------------------------------------------------------------
Comments
Post a Comment