[Prev][Next][Index][Thread]
A92: What the <bleep>?
I was trying to make a prog that activates a function when you hit [ON]
using Int 5
it runs okay until you press [ON]. how come, when you hit [ON] it sez,
"iLLEGAL iNSTRUCTION"?
_________________________________________
move.l a7,stored_stack_pointer_value
move.w #$700,d0
trap #1
bclr.b #2,$600001
move.l $78,stored_int6_value
move.l test(pc),$78
bset.b #2,$600001
trap #1
move.l #$0FFFFFFF,d7
sub1_to_running_value:
sub.l #1,d7
nop
nop
nop
DBmi d7,sub1_to_running_value
move.w #$700,d0
trap #1
bclr.b #2,$600001
move.l stored_int6_value,$78
bset.b #2,$600001
trap #1
rts
test:
rte
stored_stack_pointer_value dc.l 0
stored_int6_value dc.l 0
_comment dc.b "Hey!",0
end
________________________________________