I need to write inline assembly code in C in format like this:
asm(
"mov %1, %%ax\n\t"
"inc %%ax\n"
"mov %%ax, %0"
:"=r" (a)
:"r" (a)
);
This code in asm() need to do break and assign current time to variables declared in C outside of asm() func. I have tried to write my own code but I even struggle to do break instruction... I'm on intel and using codeblock. Any good sources of inline-assembly are welcome too. EDIT: I need something like this:
int 21h -> break
AH = 2Ah
CX -> year
DH -> month
DL -> day
AH = 2Ch
CH -> hour
CL -> min
DH -> sec
RET