move.l #PROCESS_STACK_TOP,d0 //PROCESS_STACK_TOP points to ram //full read,write and execute permissions move.l d0,SP move.l #0x00002700,d0 move d0,SR jsr test move.l #0x00000700,d0 move.w d0,SR //after the execution of the move.w move.l #1,d0 //all instructions generate a privilege move.l #1,d1 //violation add.l d1,d0 jsr test trap #15 test: rts