Update_internals:
moveq #0,d0
tst.b playmode
bne \no15
or.w #0x8000,d0
\no15
btst #0,state
bne \no14
or.w #0x4000,d0
\no14
btst #2,mode
bne \no13
or.w #0x2000,d0
\no13
btst #3,mode
bne \no12
or.w #0x1000,d0
\no12
btst #1,mode
bne \no11
or.w #0x800,d0
\no11
btst #0,mode
bne \no10
or.w #0x400,d0
\no10
btst #1,state
bne \no7
or.w #0x80,d0
\no7
btst #6,mode
bne \no6
or.w #0x40,d0
\no6
btst #7,mode
bne \no5
or.w #0x20,d0
\no5
btst #5,mode
bne \no4
or.w #0x10,d0
\no4
btst #4,mode
bne \no3
or.w #0x8,d0
\no3
move.w d0,state_and_mode
rts
que tu appelles à la fin de ton gestionnaire de notes si tu as modifé qqch...