View Single Post
Old 21 November 2019, 23:21   #9
Per aspera ad astra

ross's Avatar
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 49
Posts: 2,346
Originally Posted by geldo79 View Post
move.b $FF,(a0,d1.l)
or in a more compact form:
st (a0,d1.l)
set 8 consecutive pixels but only on one plane.
If you have four plane you need to do four of this instructions, a write for every plane (and color 15 is then used).

move.w $FFFF,(a0,d1.l)
move.l $FFFFFFFF,(a0,d1.l)
EDIT: sure a word/longword read from an odd memory address,
but for the intended immediate form (#$) could also end up to a word/longword write to an odd memory address, depending on d1.l value.
Both crash on bare 68k processor.

Last edited by ross; 22 November 2019 at 00:36.
ross is offline  
Page generated in 0.04186 seconds with 11 queries