Sorry guys im kinda new in this language and i have a small problem here. im supposed to write a code that uses addition and subtraction to clear and set a carry flag it must then display the dumpregs and i think this is how it should look, well not exactly this

main PROC

;ADDITION
MOVE AL,0FFh ;AL = 0FFh
ADD AL,0FFh
SETB C
DumpRegs
exit
.
.
.

Which processor? In general any 8 bit unsigned addition that will cause a result greater than 255 or less than zero for subtraction will cause carry to be set, otherwise it will be reset respectively.