Considering a 16 bits architecture:
In the following code,
test.s
bits 16 section .text test: aam 7 ; divide n by 7 mov cl, al ; c